New module 'logbl-ieee'.
[gnulib.git] / ChangeLog
1 2012-04-03  Bruno Haible  <bruno@clisp.org>
2
3         New module 'logbl-ieee'.
4         * modules/logbl-ieee: New file.
5
6         Tests for module 'logb-ieee'.
7         * modules/logb-ieee-tests: New file.
8         * tests/test-logb-ieee.c: New file.
9
10         New module 'logb-ieee'.
11         * modules/logb-ieee: New file.
12
13         Tests for module 'logbf-ieee'.
14         * modules/logbf-ieee-tests: New file.
15         * tests/test-logbf-ieee.c: New file.
16         * tests/test-logb-ieee.h: New file.
17
18         New module 'logbf-ieee'.
19         * modules/logbf-ieee: New file.
20
21 2012-04-03  Bruno Haible  <bruno@clisp.org>
22
23         Tests for module 'logbl'.
24         * modules/logbl-tests: New file.
25         * tests/test-logbl.c: New file.
26
27         New module 'logbl'.
28         * lib/math.in.h (logbl): New declaration.
29         * lib/logbl.c: New file.
30         * m4/logbl.m4: New file.
31         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
32         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
33         REPLACE_LOGBL.
34         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
35         REPLACE_LOGBL.
36         * modules/logbl: New file.
37         * tests/test-math-c++.cc: Check the declaration of logbl.
38         * doc/posix-functions/logbl.texi: Mention the new module.
39
40 2012-04-02  Bruno Haible  <bruno@clisp.org>
41
42         Tests for module 'logbf'.
43         * modules/logbf-tests: New file.
44         * tests/test-logbf.c: New file.
45
46         New module 'logbf'.
47         * lib/math.in.h (logbf): New declaration.
48         * lib/logbf.c: New file.
49         * m4/logbf.m4: New file.
50         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
51         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
52         REPLACE_LOGBF.
53         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
54         REPLACE_LOGBF.
55         * modules/logbf: New file.
56         * tests/test-math-c++.cc: Check the declaration of logbf.
57         * doc/posix-functions/logbf.texi: Mention the new module.
58
59 2012-04-02  Bruno Haible  <bruno@clisp.org>
60
61         logb tests: More tests.
62         * tests/test-logb.h: New file, based on tests/test-logb.c and
63         tests/test-frexp.h.
64         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
65         (main): Just invoke test_function.
66         * modules/logb-tests (Files): Add tests/test-logb.h,
67         tests/minus-zero.h, tests/randomd.c.
68         (Makefile.am): Add randomd.c to test_logb_SOURCES.
69
70         logb: Provide replacement and workarounds.
71         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
72         is 1.
73         * lib/logb.c: New file.
74         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
75         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
76         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
77         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
78         * modules/logb (Files): Add lib/logb.c.
79         (Depends-on): Add isfinite, frexp, isnand.
80         (configure.ac): Compile the replacement code logb.c if needed.
81         * tests/test-math-c++.cc: Check the declaration of logb.
82         * doc/posix-functions/logb.texi: Mention the replacement and the bug
83         with subnormal numbers.
84
85 2012-04-02  Bruno Haible  <bruno@clisp.org>
86
87         log10* tests: Speed up.
88         * tests/test-log10.h (test_function): Reduce amount of random numbers
89         to test.
90
91 2012-04-01  Bruno Haible  <bruno@clisp.org>
92
93         logf-ieee: Fix test whether logf works.
94         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
95
96 2012-04-01  Bruno Haible  <bruno@clisp.org>
97
98         log10l: Work around log10l-ieee test failure on IRIX 6.5.
99         * lib/log10l.c: Include <float.h>
100         (log10l): On IRIX, normalize the +Infinity value.
101         * modules/log10l (Depends-on): Add 'float'.
102         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
103         +Infinity.
104
105         log10f-ieee: Work around test failure on NetBSD 5.1.
106         * m4/log10f-ieee.m4: New file.
107         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
108         test whether log10f works with a negative argument. Replace it if not.
109         * lib/log10f.c (log10f): For negative arguments, return NaN.
110         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
111         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
112         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
113
114         log10f-ieee: Work around test failure on Solaris 9.
115         * modules/log10f-ieee (Depends-on): Add log10-ieee.
116         (configure.ac): Require gl_FUNC_LOG10F.
117
118         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
119         * m4/log10-ieee.m4: New file.
120         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
121         whether log10 works with a negative argument. Replace it if not.
122         * lib/log10.c (log10): For negative arguments, return NaN.
123         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
124         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
125         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
126
127         Tests for module 'log10l-ieee'.
128         * modules/log10l-ieee-tests: New file.
129         * tests/test-log10l-ieee.c: New file.
130
131         New module 'log10l-ieee'.
132         * modules/log10l-ieee: New file.
133
134         Tests for module 'log10-ieee'.
135         * modules/log10-ieee-tests: New file.
136         * tests/test-log10-ieee.c: New file.
137
138         New module 'log10-ieee'.
139         * modules/log10-ieee: New file.
140
141         Tests for module 'log10f-ieee'.
142         * modules/log10f-ieee-tests: New file.
143         * tests/test-log10f-ieee.c: New file.
144         * tests/test-log10-ieee.h: New file.
145
146         New module 'log10f-ieee'.
147         * modules/log10f-ieee: New file.
148
149 2012-04-01  Bruno Haible  <bruno@clisp.org>
150
151         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
152         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
153         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
154         workaround.
155         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
156         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
158         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
159         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
160         (Depends-on): Update conditions.
161         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
162         IRIX 6.5, OSF/1 5.1 problems.
163
164 2012-04-01  Bruno Haible  <bruno@clisp.org>
165
166         log10f: Work around OSF/1 5.1 bug.
167         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
168         * lib/log10f.c (log10f): If logf exists, use it and provide just the
169         workaround.
170         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
171         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
173         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
174         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
175         (Depends-on): Update conditions.
176         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
177
178 2012-04-01  Bruno Haible  <bruno@clisp.org>
179
180         log10: Work around OSF/1 5.1 bug.
181         * lib/math.in.h (log10): New declaration.
182         * lib/log10.c: New file.
183         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
184         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
185         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
187         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
188         * modules/log10 (Files): Add lib/log10.c.
189         (Depends-on): Add math.
190         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
191         * tests/test-math-c++.cc: Check the declaration of log10.
192         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
193
194 2012-03-31  Bruno Haible  <bruno@clisp.org>
195
196         log10l tests: More tests.
197         * modules/log10l-tests (Files): Add tests/test-log10l.h,
198         tests/minus-zero.h, tests/randoml.c.
199         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
200         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
201         (main): Invoke test_function.
202
203         log10f tests: More tests.
204         * modules/log10f-tests (Files): Add tests/test-log10.h,
205         tests/minus-zero.h, tests/randomf.c.
206         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
207         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
208         (main): Invoke test_function.
209
210         log10 tests: More tests.
211         * tests/test-log10.h: New file.
212         * modules/log10-tests (Files): Add tests/test-log10.h,
213         tests/minus-zero.h, tests/randomd.c.
214         (Makefile.am): Add randomd.c to test_log10_SOURCES.
215         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
216         (main): Invoke test_function.
217
218 2012-03-31  Simon Josefsson  <simon@josefsson.org>
219
220         fflush: Fix syntax error.
221         * lib/fflush.c: Include unused-parameter.h, needed for
222         _GL_UNUSED_PARAMETER.
223         * modules/fflush (Depends-on): Add snippet/unused-parameter.
224
225 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
226
227         regex: pacify GCC when compiling GRUB
228         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
229         a diagnostic.  Reported by Vladimir Serbinenko in
230         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
231
232 2012-03-29  Eric Blake  <eblake@redhat.com>
233
234         stdio: don't assume gets any more
235         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
236         support.
237         * modules/stdio (Makefile.am): Likewise.
238         * lib/stdio-read.c (gets): Likewise.
239         * tests/test-stdio-c++.cc: Likewise.
240         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
241         * lib/stdio.in.h (gets): Make warning occur in more places.
242         * doc/posix-functions/gets.texi (gets): Update documentation.
243         Reported by Christer Solskogen.
244
245         maint.mk: fix syntax checks without exclusions
246         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
247         Reported by Daniel P. Berrange.
248
249         strerror_r: avoid compiler warning
250         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
251         level.
252
253         fflush: avoid compiler warning
254         * lib/fflush.c (update_fpos_cache): Mark variables that are
255         potentially unused.
256
257 2012-03-25  Bruno Haible  <bruno@clisp.org>
258
259         Tests for module 'localeconv'.
260         * modules/localeconv-tests: New file.
261         * tests/test-localeconv.c: New file.
262
263         New module 'localeconv'.
264         * lib/locale.in.h (localeconv): New declaration.
265         * lib/localeconv.c: New file.
266         * m4/localeconv.m4: New file.
267         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
268         REPLACE_LOCALECONV.
269         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
270         REPLACE_LOCALECONV.
271         * modules/localeconv: New file.
272         * modules/nl_langinfo (Depends-on): Add localeconv.
273         * modules/human (Depends-on): Likewise.
274         * doc/posix-functions/localeconv.texi: Mention the new module.
275
276 2012-03-25  Bruno Haible  <bruno@clisp.org>
277
278         locale: Provide a complete 'struct lconv'.
279         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
280         'struct lconv' does not contain int_p_cs_precedes.
281         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
282         * doc/posix-headers/locale.texi: Update.
283
284         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
285         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
286         * doc/posix-headers/locale.texi: Update.
287
288         locale: Provide a working 'struct lconv'.
289         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
290         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
291         'struct lconv' does not even contain decimal_point.
292         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
293         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
294         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
295         * doc/posix-headers/locale.texi: Mention the problems with
296         'struct lconv'.
297         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
298
299 2012-03-24  Bruno Haible  <bruno@clisp.org>
300
301         Enable common subexpression optimization in GCC.
302         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
303         macros.
304         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
305         GCC attribute 'const'.
306         (uc_locale_language): Declare with GCC attribute 'pure'.
307         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
308         with GCC attribute 'const'.
309         * lib/unictype.in.h (uc_is_general_category_withtable,
310         uc_combining_class, uc_combining_class_name,
311         uc_combining_class_long_name, uc_bidi_class_name,
312         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
313         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
314         uc_decimal_value, uc_digit_value, uc_numeric_value,
315         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
316         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
317         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
318         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
319         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
320         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
321         Declare with GCC attribute 'const'.
322         (uc_general_category_name, uc_general_category_long_name,
323         uc_general_category_byname, uc_general_category,
324         uc_is_general_category, uc_combining_class_byname,
325         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
326         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
327         Declare with GCC attribute 'pure'.
328         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
329         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
330         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
331         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
332         with GCC attribute 'pure'.
333         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
334         'const'.
335         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
336         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
337         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
338         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
339         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
340         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
341         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
342         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
343         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
344         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
345         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
346         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
347         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
348         GCC attribute 'pure'.
349         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
350         'const'.
351         * lib/uniwidth.in.h (uc_width): Simplify declaration.
352         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
353         u32_strwidth): Declare with GCC attribute 'pure'.
354
355         Enable common subexpression optimization in GCC.
356         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
357         (alphasort): Declare with GCC attribute 'pure'.
358         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
359         (atoll): Declare with GCC attribute 'pure'.
360         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
361         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
362         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
363         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
364         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
365         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
366         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
367
368 2012-03-24  Bruno Haible  <bruno@clisp.org>
369
370         gnulib-tool: Avoid unintended error output from 'cmp'.
371         * gnulib-tool (func_add_file, func_update_file, func_import): Use
372         "cmp -s", not "cmp > /dev/null".
373
374 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
375
376         gnulib-tool: fix imprecise comments w.r.t. an automake bug
377
378         It's not just Automake versions < 1.9b that creates an empty
379         pkgdatadir at installation time if pkgdata_DATA is specified
380         to empty; modern automake versions do this as well, at least
381         until automake 1.11.4 (not yet released at the moment of writing,
382         but soon to appear).  That behaviour was generally considered a
383         feature rather than a bug, at least until this discussion:
384         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
385
386         See also automake bugs #10997 and #11030.
387
388         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
389         reference to relevant automake bug numbers.
390         (func_emit_tests_Makefile_am): Likewise.
391
392 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
393
394         announce-gen: use Digest::SHA when possible
395         * build-aux/announce-gen: Use Digest::SHA when possible, falling
396         back to Digest::SHA1 if necessary.
397
398 2012-03-20  Jim Meyering  <meyering@redhat.com>
399
400         tests: avoid gcc warnings about argv vs. const initializers
401         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
402         warnings about discarding 'const' qualifier from pointer target type.
403         * tests/test-posix_spawn2.c (main): Likewise.
404
405 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
406
407         README-release: simplify slightly
408         * top/README-release: Run "git checkout master" only once.
409
410 2012-03-15  Mark Wielaard  <mark@klomp.org>
411
412         git-merge-changelog: add specific example on how to use with hg.
413         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
414
415 2012-03-18  Mark Wielaard  <mark@klomp.org>
416
417         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
418
419 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
420
421         git-version-gen: don't let "prefix" envvar cause trouble
422         * build-aux/git-version-gen (prefix): Initialize properly,
423         so as not to use a value specified via the environment.
424         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
425
426 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
427
428         regex: diagnose too-large repeat counts in EREs
429         Previously, the code did not diagnose the too-large repeat count
430         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
431         as if it were 'b\{1000000000}', which is unexpected.
432         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
433         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
434         is a reasonable one for this problem.  Another option would be to
435         create a new REG_OVERFLOW error for repeat counts that are too large.
436         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
437         count is too large, so that the caller can distinguish the two cases.
438         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
439         "Too large" return code, and that repeat counts are one example of this.
440
441 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
442
443         doc: some glibc x32 integer width issues
444         * doc/posix-headers/sys_types.texi (sys/types.h):
445         * doc/posix-headers/time.texi (time.h):
446         Mention that glibc x32 does not conform to POSIX in a couple of
447         areas related to integer widths.
448
449 2012-03-15  Bruno Haible  <bruno@clisp.org>
450
451         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
452         * lib/fma.c (VOLATILE): New macro.
453         (FUNC): Use it to work around a GCC compiler bug.
454
455 2012-03-13  Bruno Haible  <bruno@clisp.org>
456
457         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
458         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
459         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
460         REPLACE_HYPOTL to 1.
461         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
462
463 2012-03-13  Bruno Haible  <bruno@clisp.org>
464
465         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
466         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
467         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
468         REPLACE_REMAINDERL to 1.
469         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
470         bug.
471
472 2012-03-13  Bruno Haible  <bruno@clisp.org>
473
474         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
475         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
476         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
477         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
478         too big rounding errors.
479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
480         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
481         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
482         (Depends-on): Update conditions.
483         * tests/test-sqrtl.c (my_ldexpl): New function.
484         (main): Add test of a particular value.
485         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
486
487 2012-03-13  Pádraig Brady  <P@draigBrady.com>
488
489         doc: Update timer_* platform portability notes.
490         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
491         that always return ENOSYS.
492         * doc/posix-functions/timer_delete.texi: Likewise.
493         * doc/posix-functions/timer_gettime.texi: Likewise.
494         * doc/posix-functions/timer_settime.texi: Likewise.
495
496 2012-03-13  Bruno Haible  <bruno@clisp.org>
497
498         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
499         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
500         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
501         REPLACE_CBRTL to 1.
502         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
503
504 2012-03-13  Bruno Haible  <bruno@clisp.org>
505
506         remainderl: Avoid compilation error on AIX >= 5.2.
507         * lib/math.in.h (remainderl): Undefine macro from the system header.
508
509 2012-03-13  Bruno Haible  <bruno@clisp.org>
510
511         Avoid compilation errors with MSVC option -fp:strict.
512         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
513         * lib/cbrtf.c: Likewise.
514         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
515
516 2012-03-12  Bruno Haible  <bruno@clisp.org>
517
518         uninorm: Don't crash in out-of-memory conditions.
519         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
520         gracefully.
521         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
522         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
523
524 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
525
526         quote: fix syntax-check
527         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
528         also exports quote_quoting_options.
529
530 2012-03-12  Simon Josefsson  <simon@josefsson.org>
531
532         Collapse list of copyright years to ranges.  See
533         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
534         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
535         build-aux/csharpexec.sh.in, build-aux/gnupload,
536         build-aux/install-reloc, build-aux/javacomp.sh.in,
537         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
538         build-aux/move-if-change, build-aux/reloc-ldflags,
539         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
540
541 2012-03-11  Bruno Haible  <bruno@clisp.org>
542
543         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
544         * m4/log2f-ieee.m4: New file.
545         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
546         whether log2f works with a minus zero argument. Replace it if not.
547         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
548         (Depends-on): Add log2-ieee.
549         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
550         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
551
552         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
553         * m4/log2-ieee.m4: New file.
554         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
555         whether log2 works with a minus zero argument. Replace it if not.
556         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
557         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
558         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
559
560         Tests for module 'log2l-ieee'.
561         * modules/log2l-ieee-tests: New file.
562         * tests/test-log2l-ieee.c: New file.
563
564         New module 'log2l-ieee'.
565         * modules/log2l-ieee: New file.
566
567         Tests for module 'log2-ieee'.
568         * modules/log2-ieee-tests: New file.
569         * tests/test-log2-ieee.c: New file.
570
571         New module 'log2-ieee'.
572         * modules/log2-ieee: New file.
573
574         Tests for module 'log2f-ieee'.
575         * modules/log2f-ieee-tests: New file.
576         * tests/test-log2f-ieee.c: New file.
577         * tests/test-log2-ieee.h: New file.
578
579         New module 'log2f-ieee'.
580         * modules/log2f-ieee: New file.
581
582 2012-03-11  Bruno Haible  <bruno@clisp.org>
583
584         Tests for module 'log2l'.
585         * modules/log2l-tests: New file.
586         * tests/test-log2l.c: New file.
587
588         New module 'log2l'.
589         * lib/math.in.h (log2l): New declaration.
590         * lib/log2l.c: New file.
591         * m4/log2l.m4: New file.
592         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
593         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
594         REPLACE_LOG2L.
595         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
596         REPLACE_LOG2L.
597         * modules/log2l: New file.
598         * tests/test-math-c++.cc: Check the declaration of log2l.
599         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
600         and OSF/1 problems.
601
602 2012-03-11  Bruno Haible  <bruno@clisp.org>
603
604         Tests for module 'log2f'.
605         * modules/log2f-tests: New file.
606         * tests/test-log2f.c: New file.
607
608         New module 'log2f'.
609         * lib/math.in.h (log2f): New declaration.
610         * lib/log2f.c: New file.
611         * m4/log2f.m4: New file.
612         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
613         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
614         REPLACE_LOG2F.
615         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
616         REPLACE_LOG2F.
617         * modules/log2f: New file.
618         * tests/test-math-c++.cc: Check the declaration of log2f.
619         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
620         and OSF/1 and Cygwin problems.
621
622 2012-03-11  Bruno Haible  <bruno@clisp.org>
623
624         Tests for module 'log2'.
625         * modules/log2-tests: New file.
626         * tests/test-log2.c: New file.
627         * tests/test-log2.h: New file.
628
629         New module 'log2'.
630         * lib/math.in.h (log2): New declaration.
631         * lib/log2.c: New file.
632         * m4/log2.m4: New file.
633         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
635         REPLACE_LOG2.
636         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
637         REPLACE_LOG2.
638         * modules/log2: New file.
639         * tests/test-math-c++.cc: Check the declaration of log2.
640         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
641         and OSF/1 and Cygwin problems.
642
643 2012-03-11  Bruno Haible  <bruno@clisp.org>
644
645         exp2* tests: More tests.
646         * tests/test-exp2.h (test_function): Test all integral arguments that
647         don't need to overflow or denormalized numbers.
648         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
649         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
650         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
651
652 2012-03-10  Bruno Haible  <bruno@clisp.org>
653
654         log1pl-ieee: Work around test failure on AIX 7.1.
655         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
656
657         log1pl-ieee: Work around test failure on IRIX 6.5.
658         * m4/log1pl-ieee.m4: New file.
659         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
660         test whether log1pl works with a minus zero argument. Replace it if
661         not.
662         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
664         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
665         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
666         (Depends-on): Update conditions.
667         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
668         m4/signbit.m4.
669         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
670         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
671
672         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
673         * m4/log1pf-ieee.m4: New file.
674         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
675         test whether log1pf works with a minus zero argument. Replace it if
676         not.
677         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
678         m4/signbit.m4.
679         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
680         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
681
682         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
683         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
684         (configure.ac): Require gl_FUNC_LOG1PF.
685
686         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
687         * m4/log1p-ieee.m4: New file.
688         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
689         whether log1p works with a minus zero argument. Replace it if not.
690         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
692         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
693         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
694         (Depends-on): Update conditions.
695         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
696         m4/signbit.m4.
697         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
698         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
699
700         Tests for module 'log1pl-ieee'.
701         * modules/log1pl-ieee-tests: New file.
702         * tests/test-log1pl-ieee.c: New file.
703
704         New module 'log1pl-ieee'.
705         * modules/log1pl-ieee: New file.
706
707         Tests for module 'log1p-ieee'.
708         * modules/log1p-ieee-tests: New file.
709         * tests/test-log1p-ieee.c: New file.
710
711         New module 'log1p-ieee'.
712         * modules/log1p-ieee: New file.
713
714         Tests for module 'log1pf-ieee'.
715         * modules/log1pf-ieee-tests: New file.
716         * tests/test-log1pf-ieee.c: New file.
717         * tests/test-log1p-ieee.h: New file.
718
719         New module 'log1pf-ieee'.
720         * modules/log1pf-ieee: New file.
721
722 2012-03-10  Bruno Haible  <bruno@clisp.org>
723
724         Tests for module 'log1pl'.
725         * modules/log1pl-tests: New file.
726         * tests/test-log1pl.c: New file.
727
728         New module 'log1pl'.
729         * lib/math.in.h (log1pl): New declaration.
730         * lib/log1pl.c: New file.
731         * m4/log1pl.m4: New file.
732         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
733         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
734         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
735         * modules/log1pl: New file.
736         * tests/test-math-c++.cc: Check the declaration of log1pl.
737         * doc/posix-functions/log1pl.texi: Mention the new module.
738
739 2012-03-10  Bruno Haible  <bruno@clisp.org>
740
741         Tests for module 'log1pf'.
742         * modules/log1pf-tests: New file.
743         * tests/test-log1pf.c: New file.
744
745         New module 'log1pf'.
746         * lib/math.in.h (log1pf): New declaration.
747         * lib/log1pf.c: New file.
748         * m4/log1pf.m4: New file.
749         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
751         REPLACE_LOG1PF.
752         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
753         REPLACE_LOG1PF.
754         * modules/log1pf: New file.
755         * tests/test-math-c++.cc: Check the declaration of log1pf.
756         * doc/posix-functions/log1pf.texi: Mention the new module.
757
758 2012-03-10  Bruno Haible  <bruno@clisp.org>
759
760         log1p tests: More tests.
761         * tests/test-log1p.h: New file.
762         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
763         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
764         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
765         (main): Invoke test_function.
766
767         log1p: Provide replacement for Minix and MSVC.
768         * lib/math.in.h (log1p): New declaration.
769         * lib/log1p.c: New file.
770         * m4/log1p.m4: New file.
771         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
773         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
774         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
775         (Depends-on): Add math, isnand, log, round.
776         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
777         HAVE_LOG1P is 0.
778         * tests/test-math-c++.cc: Check the declaration of log1p.
779         * doc/posix-functions/log1p.texi: Mention the replacement.
780
781 2012-03-10  Bruno Haible  <bruno@clisp.org>
782
783         math tests: Small simplification.
784         * tests/test-exp.h (test_function): Use the same err_bound for
785         'double' on platforms with sizeof (long double) == sizeof (double)
786         than on platforms with sizeof (long double) > sizeof (double).
787         * tests/test-exp2.h (test_function): Likewise.
788         * tests/test-expm1.h (test_function): Likewise.
789         * tests/test-log.h (test_function): Likewise.
790
791 2012-03-10  Bruno Haible  <bruno@clisp.org>
792
793         Fix some comments.
794         * lib/expl.c: Fix an ambiguous comment.
795         * lib/expm1.c: Likewise.
796         * lib/expm1l.c: Likewise.
797         * lib/exp2.c: Likewise.
798         * lib/exp2l.c: Likewise.
799
800 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
801
802         regex: allow inclusion of <regex.h> before <limits.h>
803         Without this patch, portable programs had to include <limits.h> before
804         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
805         I ran into this problem with a test version of GNU grep on Solaris 8.
806         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
807         This is done conditionally so that this change can be merged
808         back to glibc.
809         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
810         using the included regex.
811
812         fts: depend on fdopendir
813         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
814         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
815         problem was introduced when fdopendir was split out.
816
817 2012-03-10  Bruno Haible  <bruno@clisp.org>
818
819         Remove unused variables.
820         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
821         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
822
823 2012-03-10  Bruno Haible  <bruno@clisp.org>
824
825         isnanf-nolibm: Fix last commit.
826         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
827
828         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
829         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
830
831 2012-03-10  Bruno Haible  <bruno@clisp.org>
832
833         logf-ieee: Work around test failure on NetBSD 5.1.
834         * m4/logf-ieee.m4: New file.
835         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
836         whether logf works with a negative argument. Replace it if not.
837         * lib/logf.c (logf): For negative arguments, return NaN.
838         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
839         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
840         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
841
842         logf-ieee: Work around test failure on Solaris 9.
843         * modules/logf-ieee (Depends-on): Add log-ieee.
844         (configure.ac): Require gl_FUNC_LOGF.
845
846         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
847         * m4/log-ieee.m4: New file.
848         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
849         log works with a negative argument. Replace it if not.
850         * lib/log.c (log): For negative arguments, return NaN.
851         * modules/log-ieee (Files): Add m4/log-ieee.m4.
852         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
853         * doc/posix-functions/log.texi: Mention the log-ieee module.
854
855         Tests for module 'logl-ieee'.
856         * modules/logl-ieee-tests: New file.
857         * tests/test-logl-ieee.c: New file.
858
859         New module 'logl-ieee'.
860         * modules/logl-ieee: New file.
861
862         Tests for module 'log-ieee'.
863         * modules/log-ieee-tests: New file.
864         * tests/test-log-ieee.c: New file.
865
866         New module 'log-ieee'.
867         * modules/log-ieee: New file.
868
869         Tests for module 'logf-ieee'.
870         * modules/logf-ieee-tests: New file.
871         * tests/test-logf-ieee.c: New file.
872         * tests/test-log-ieee.h: New file.
873
874         New module 'logf-ieee'.
875         * modules/logf-ieee: New file.
876
877 2012-03-10  Bruno Haible  <bruno@clisp.org>
878
879         log: Fix bug introduced on 2012-03-09.
880         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
881
882 2012-03-10  Pádraig Brady  <P@draigBrady.com>
883
884         timer-time: link explicitly with pthreads on glibc
885         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
886         to support static linking, when newer glibc is
887         detected, as that contains pthread emulation of
888         POSIX timer functions where required.
889         * modules/timer-time: Depend on threadlib to
890         pull in the appropriate library to link.
891
892 2012-03-10  Bruno Haible  <bruno@clisp.org>
893
894         log* tests: More tests.
895         * tests/test-log.h: New file.
896         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
897         (main): Invoke test_function.
898         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
899         (main): Invoke test_function.
900         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
901         (main): Invoke test_function.
902         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
903         tests/randomd.c.
904         (Makefile.am): Add randomd.c to test_log_SOURCES.
905         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
906         tests/randomf.c.
907         (Makefile.am): Add randomf.c to test_logf_SOURCES.
908         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
909         tests/randoml.c.
910         (Depends-on): Add 'float'.
911         (Makefile.am): Add randoml.c to test_logl_SOURCES.
912
913 2012-03-09  Bruno Haible  <bruno@clisp.org>
914
915         logl: Work around OSF/1 5.1 bug.
916         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
917         * lib/logl.c (logl): If logl exists, use it and provide just the
918         workaround.
919         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
920         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
922         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
923         * modules/logl (configure.ac): Consider REPLACE_LOGL.
924         (Depends-on): Update conditions.
925         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
926
927 2012-03-09  Bruno Haible  <bruno@clisp.org>
928
929         logf: Work around OSF/1 5.1 bug.
930         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
931         * lib/logf.c (logf): If logf exists, use it and provide just the
932         workaround.
933         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
934         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
936         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
937         * modules/logf (configure.ac): Consider REPLACE_LOGF.
938         (Depends-on): Update conditions.
939         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
940
941 2012-03-09  Bruno Haible  <bruno@clisp.org>
942
943         log: Work around OSF/1 5.1 bug.
944         * lib/math.in.h (log): New declaration.
945         * lib/log.c: New file.
946         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
947         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
948         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
949         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
950         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
951         * modules/log (Files): Add lib/log.c.
952         (Depends-on): Add math.
953         (configure.ac): If REPLACE_LOG is 1, compile an override.
954         * tests/test-math-c++.cc: Check the declaration of log.
955         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
956
957 2012-03-09  Jim Meyering  <meyering@redhat.com>
958
959         readtokens.c: adjust wording in a comment
960         * lib/readtokens.c: Insert omitted "that" in a comment.
961
962 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
963
964         modechange: add notations +40, 00440, etc.
965         * lib/modechange.c (mode_compile): Support new notations
966         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
967
968 2012-03-08  Bruno Haible  <bruno@clisp.org>
969
970         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
971         * m4/exp2l-ieee.m4: New file.
972         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
973         test whether exp2l works with a NaN argument and with a negative
974         infinity argument. Replace it if not.
975         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
977         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
978         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
979         (Depends-on): Update conditions.
980         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
981         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
982         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
983
984         Tests for module 'exp2l-ieee'.
985         * modules/exp2l-ieee-tests: New file.
986         * tests/test-exp2l-ieee.c: New file.
987
988         New module 'exp2l-ieee'.
989         * modules/exp2l-ieee: New file.
990
991         Tests for module 'exp2-ieee'.
992         * modules/exp2-ieee-tests: New file.
993         * tests/test-exp2-ieee.c: New file.
994
995         New module 'exp2-ieee'.
996         * modules/exp2-ieee: New file.
997
998         Tests for module 'exp2f-ieee'.
999         * modules/exp2f-ieee-tests: New file.
1000         * tests/test-exp2f-ieee.c: New file.
1001         * tests/test-exp2-ieee.h: New file.
1002
1003         New module 'exp2f-ieee'.
1004         * modules/exp2f-ieee: New file.
1005
1006 2012-03-08  Bruno Haible  <bruno@clisp.org>
1007
1008         Tests for module 'exp2l'.
1009         * modules/exp2l-tests: New file.
1010         * tests/test-exp2l.c: New file.
1011
1012         New module 'exp2l'.
1013         * lib/math.in.h (exp2l): New declaration.
1014         * lib/exp2l.c: New file.
1015         * lib/expl-table.c: New file, extracted from lib/expl.c.
1016         * lib/expl.c (gl_expl_table): New declaration.
1017         (expl): Remove expl_table. Update reference.
1018         * m4/exp2l.m4: New file.
1019         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1021         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1022         * modules/exp2l: New file.
1023         * modules/expl (Files): Add lib/expl-table.c.
1024         (configure.ac): Compile also expl-table.c.
1025         * tests/test-math-c++.cc: Check the declaration of exp2l.
1026         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1027         problem.
1028
1029 2012-03-08  Bruno Haible  <bruno@clisp.org>
1030
1031         Tests for module 'exp2f'.
1032         * modules/exp2f-tests: New file.
1033         * tests/test-exp2f.c: New file.
1034
1035         New module 'exp2f'.
1036         * lib/math.in.h (exp2f): New declaration.
1037         * lib/exp2f.c: New file.
1038         * m4/exp2f.m4: New file.
1039         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1040         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1041         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1042         * modules/exp2f: New file.
1043         * tests/test-math-c++.cc: Check the declaration of exp2f.
1044         * doc/posix-functions/exp2f.texi: Mention the new module and the
1045         IRIX problem.
1046
1047 2012-03-08  Bruno Haible  <bruno@clisp.org>
1048
1049         Tests for module 'exp2'.
1050         * modules/exp2-tests: New file.
1051         * tests/test-exp2.c: New file.
1052         * tests/test-exp2.h: New file.
1053
1054         New module 'exp2'.
1055         * lib/math.in.h (exp2): New declaration.
1056         * lib/exp2.c: New file.
1057         * m4/exp2.m4: New file.
1058         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1060         REPLACE_EXP2.
1061         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1062         REPLACE_EXP2.
1063         * modules/exp2: New file.
1064         * tests/test-math-c++.cc: Check the declaration of exp2.
1065         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1066         and OpenBSD problems.
1067
1068 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1069
1070         savedir: fix comment typo
1071         * lib/savedir.c (savedirstream): Fix typo in comment.
1072
1073 2012-03-08  Bruno Haible  <bruno@clisp.org>
1074
1075         test-readtokens.c: use const; remove unwarranted cast
1076         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1077
1078 2012-03-08  Bruno Haible  <bruno@clisp.org>
1079
1080         fmal: Avoid compilation error on AIX.
1081         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1082         AIX 5.2..7.1.
1083
1084 2012-03-08  Bruno Haible  <bruno@clisp.org>
1085
1086         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1087         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1088         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1089         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1090         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1091         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1092         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1093
1094 2012-03-08  Bruno Haible  <bruno@clisp.org>
1095
1096         remainderf: Override buggy system function on IRIX 6.5.
1097         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1098         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1099         when it exists.
1100         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1101
1102 2012-03-08  Jim Meyering  <meyering@redhat.com>
1103
1104         test-readtokens.c: avoid const-related compilation warnings
1105         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1106
1107 2012-03-07  Jim Meyering  <meyering@redhat.com>
1108             Bruno Haible  <bruno@clisp.org>
1109
1110         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1111         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1112         tests/randomd.c.
1113         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1114         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1115         tests/randoml.c.
1116         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1117
1118 2012-03-07  Bruno Haible  <bruno@clisp.org>
1119
1120         expm1l: Avoid compilation error on AIX.
1121         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1122         AIX 5.2..7.1.
1123
1124 2012-03-07  Bruno Haible  <bruno@clisp.org>
1125
1126         expm1l: Don't override undeclared system function on IRIX 6.5.
1127         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1128         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1129         it exists. Set HAVE_DECL_EXPM1L.
1130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1131         HAVE_EXPM1L.
1132         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1133         HAVE_EXPM1L.
1134         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1135
1136 2012-03-07  Bruno Haible  <bruno@clisp.org>
1137
1138         remainderl: Don't override undeclared system function on IRIX 6.5.
1139         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1140         HAVE_REMAINDERL.
1141         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1142         declared when it exists. Set HAVE_DECL_REMAINDERL.
1143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1144         not HAVE_REMAINDERL.
1145         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1146         HAVE_REMAINDERL.
1147         * doc/posix-functions/remainderl.texi: Mention missing declaration
1148         problem.
1149
1150 2012-03-07  Bruno Haible  <bruno@clisp.org>
1151
1152         rintf: Don't override undeclared system function on IRIX 6.5.
1153         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1154         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1155         exists. Set HAVE_DECL_RINTF.
1156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1157         HAVE_RINTF.
1158         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1159         HAVE_RINTF.
1160         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1161
1162 2012-03-07  Bruno Haible  <bruno@clisp.org>
1163
1164         roundl: Avoid compilation error on AIX.
1165         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1166         AIX 5.2..7.1.
1167
1168 2012-03-07  Bruno Haible  <bruno@clisp.org>
1169
1170         roundl: Don't override undeclared system function on IRIX 6.5.
1171         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1172         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1173         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1174         * modules/roundl (configure.ac): For replacement code, test
1175         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1176         (Depends-on): Update conditions.
1177         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1178
1179 2012-03-07  Bruno Haible  <bruno@clisp.org>
1180
1181         roundf: Don't override undeclared system function on IRIX 6.5.
1182         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1183         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1184         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1185         * modules/roundf (configure.ac): For replacement code, test
1186         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1187         (Depends-on): Update conditions.
1188         * modules/roundf-ieee (Depends-on): Update conditions.
1189         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1190
1191 2012-03-07  Bruno Haible  <bruno@clisp.org>
1192
1193         round: Don't override undeclared system function on IRIX 6.5.
1194         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1195         argument.
1196         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1197         also when it is not declared. Set HAVE_ROUND. For replacement code,
1198         test HAVE_ROUND, not HAVE_DECL_ROUND.
1199         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1200         not HAVE_DECL_ROUND.
1201         (Depends-on): Update conditions.
1202         * modules/round-ieee (Depends-on): Update conditions.
1203         * doc/posix-functions/round.texi: Mention the IRIX problem.
1204
1205 2012-03-07  Bruno Haible  <bruno@clisp.org>
1206
1207         copysignf: Don't override undeclared system function on IRIX 6.5.
1208         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1209         HAVE_COPYSIGNF.
1210         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1211         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1213         not HAVE_COPYSIGNF.
1214         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1215         HAVE_COPYSIGNF.
1216         * doc/posix-functions/copysignf.texi: Mention missing declaration
1217         problem.
1218
1219 2012-03-07  Jim Meyering  <meyering@redhat.com>
1220
1221         readtokens: add tests
1222         * modules/readtokens-tests: New file.
1223         * tests/test-readtokens.c: New file.
1224
1225 2012-03-07  Jim Meyering  <meyering@redhat.com>
1226
1227         quotearg: the module must now include quote.h
1228         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1229         So must the module.
1230         * modules/quotearg (Files): Add quote.h.
1231
1232 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1233
1234         readtokens: avoid core dumps with unusual calling patterns
1235         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1236         * lib/readtokens.c: Include limits.h.
1237         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1238         (readtoken): Don't cache the delimiters; the cache code was buggy
1239         if !delim && saved_delim, or if the new n_delim differs from the old.
1240         Also, it wasn't thread-safe.
1241
1242 2012-03-07  Bruno Haible  <bruno@clisp.org>
1243
1244         quote: Adhere to common module description layout.
1245         * modules/quote (Makefile.am): Add back empty section.
1246
1247 2012-03-06  Akim Demaille  <demaille@gostai.com>
1248
1249         quote: fuse into quotearg
1250         This patch is made for the benefit of Bison.
1251         quote does not leave the choice of the quoting style to the user.
1252         quoting_style provides poor customizability, yet quoting_options,
1253         which is very rich, is hidden inside quotearg.c.  So in order to
1254         allow quote customization, move its implementation to quotearg.c.
1255         * lib/quote.c: Remove.
1256         * modules/quote: Adjust.
1257         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1258         warning: provide all the members of literal structs.
1259         (quote_quoting_options): New.
1260         (quote, quote_n): Import implementation from quote.c.
1261         * lib/quote.h: Import the comments from quote.c.
1262         (quote_quoting_options): New.
1263
1264 2012-03-06  Bruno Haible  <bruno@clisp.org>
1265
1266         Tests for module 'expm1l-ieee'.
1267         * modules/expm1l-ieee-tests: New file.
1268         * tests/test-expm1l-ieee.c: New file.
1269
1270         New module 'expm1l-ieee'.
1271         * modules/expm1l-ieee: New file.
1272
1273         Tests for module 'expm1f-ieee'.
1274         * modules/expm1f-ieee-tests: New file.
1275         * tests/test-expm1f-ieee.c: New file.
1276
1277         New module 'expm1f-ieee'.
1278         * modules/expm1f-ieee: New file.
1279
1280         Tests for module 'expm1-ieee'.
1281         * modules/expm1-ieee-tests: New file.
1282         * tests/test-expm1-ieee.c: New file.
1283         * tests/test-expm1-ieee.h: New file.
1284
1285         New module 'expm1-ieee'.
1286         * modules/expm1-ieee: New file.
1287         * m4/expm1-ieee.m4: New file.
1288         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1289         whether expm1 works with a minus zero argument. Replace it if not.
1290         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1292         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1293         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1294         (Depends-on): Update conditions.
1295         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1296         AIX problem.
1297
1298 2012-03-06  Bruno Haible  <bruno@clisp.org>
1299
1300         Work around expm1f bug on IRIX 6.5.
1301         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1302         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1303         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1304         not work.
1305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1306         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1307         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1308         (Depends-on): Update conditions.
1309         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1310
1311 2012-03-06  Bruno Haible  <bruno@clisp.org>
1312
1313         Tests for module 'expm1l'.
1314         * modules/expm1l-tests: New file.
1315         * tests/test-expm1l.c: New file.
1316
1317         New module 'expm1l'.
1318         * lib/math.in.h (expm1l): New declaration.
1319         * lib/expm1l.c: New file.
1320         * m4/expm1l.m4: New file.
1321         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1323         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1324         * modules/expm1l: New file.
1325         * tests/test-math-c++.cc: Check the declaration of expm1l.
1326         * doc/posix-functions/expm1l.texi: Mention the new module.
1327
1328 2012-03-06  Bruno Haible  <bruno@clisp.org>
1329
1330         Tests for module 'expm1f'.
1331         * modules/expm1f-tests: New file.
1332         * tests/test-expm1f.c: New file.
1333
1334         New module 'expm1f'.
1335         * lib/math.in.h (expm1f): New declaration.
1336         * lib/expm1f.c: New file.
1337         * m4/expm1f.m4: New file.
1338         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1339         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1340         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1341         * modules/expm1f: New file.
1342         * tests/test-math-c++.cc: Check the declaration of expm1f.
1343         * doc/posix-functions/expm1f.texi: Mention the new module.
1344
1345 2012-03-06  Bruno Haible  <bruno@clisp.org>
1346
1347         Tests for module 'expm1'.
1348         * modules/expm1-tests: New file.
1349         * tests/test-expm1.c: New file.
1350         * tests/test-expm1.h: New file.
1351
1352         New module 'expm1'.
1353         * lib/math.in.h (expm1): New declaration.
1354         * lib/expm1.c: New file.
1355         * m4/expm1.m4: New file.
1356         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1358         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1359         * modules/expm1: New file.
1360         * tests/test-math-c++.cc: Check the declaration of expm1.
1361         * doc/posix-functions/expm1.texi: Mention the new module.
1362
1363 2012-03-06  Bruno Haible  <bruno@clisp.org>
1364
1365         math: Ensure declarations of math functions.
1366         * modules/acosf (Depends-on): Add 'extensions'.
1367         * modules/asinf (Depends-on): Likewise.
1368         * modules/atan2f (Depends-on): Likewise.
1369         * modules/atanf (Depends-on): Likewise.
1370         * modules/cbrt (Depends-on): Likewise.
1371         * modules/cbrtf (Depends-on): Likewise.
1372         * modules/cbrtl (Depends-on): Likewise.
1373         * modules/copysignf (Depends-on): Likewise.
1374         * modules/copysignl (Depends-on): Likewise.
1375         * modules/cosf (Depends-on): Likewise.
1376         * modules/coshf (Depends-on): Likewise.
1377         * modules/expf (Depends-on): Likewise.
1378         * modules/fabsf (Depends-on): Likewise.
1379         * modules/fabsl (Depends-on): Likewise.
1380         * modules/fmaf (Depends-on): Likewise.
1381         * modules/fmal (Depends-on): Likewise.
1382         * modules/fmodf (Depends-on): Likewise.
1383         * modules/fmodl (Depends-on): Likewise.
1384         * modules/frexpf (Depends-on): Likewise.
1385         * modules/frexpl (Depends-on): Likewise.
1386         * modules/hypot (Depends-on): Likewise.
1387         * modules/hypotf (Depends-on): Likewise.
1388         * modules/hypotl (Depends-on): Likewise.
1389         * modules/ldexpf (Depends-on): Likewise.
1390         * modules/ldexpl (Depends-on): Likewise.
1391         * modules/log10f (Depends-on): Likewise.
1392         * modules/log10l (Depends-on): Likewise.
1393         * modules/log1p (Depends-on): Likewise.
1394         * modules/logb (Depends-on): Likewise.
1395         * modules/logf (Depends-on): Likewise.
1396         * modules/modff (Depends-on): Likewise.
1397         * modules/modfl (Depends-on): Likewise.
1398         * modules/powf (Depends-on): Likewise.
1399         * modules/remainderf (Depends-on): Likewise.
1400         * modules/remainderl (Depends-on): Likewise.
1401         * modules/rintf (Depends-on): Likewise.
1402         * modules/rintl (Depends-on): Likewise.
1403         * modules/sinf (Depends-on): Likewise.
1404         * modules/sinhf (Depends-on): Likewise.
1405         * modules/sqrtf (Depends-on): Likewise.
1406         * modules/tanf (Depends-on): Likewise.
1407         * modules/tanhf (Depends-on): Likewise.
1408         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1409         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1410         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1411         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1412         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1413         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1414         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1415         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1416         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1417         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1418         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1419         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1420         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1421         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1422         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1423         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1424         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1425         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1426         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1427         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1428         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1429         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1430         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1431         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1432         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1433         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1434         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1435         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1436         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1437         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1438         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1439         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1440         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1441         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1442         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1443         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1444         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1445         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1446         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1447         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1448         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1449
1450 2012-03-06  Bruno Haible  <bruno@clisp.org>
1451
1452         math: Update module names in warnings.
1453         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1454         tanl): Use specific module name in warn-on-use warning.
1455
1456 2012-03-06  Bruno Haible  <bruno@clisp.org>
1457
1458         expl: Simplify computation.
1459         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1460
1461 2012-03-05  Bruno Haible  <bruno@clisp.org>
1462
1463         exp* tests: More tests.
1464         * tests/test-exp.h: New file.
1465         * tests/test-exp.c: Include <float.h> and test-exp.h.
1466         (main): Invoke test_function.
1467         * tests/test-expf.c: Include <float.h> and test-exp.h.
1468         (main): Invoke test_function.
1469         * tests/test-expl.c: Include <float.h> and test-exp.h.
1470         (main): Invoke test_function.
1471         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1472         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1473         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1474         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1475         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1476         (Depends-on): Add 'float'.
1477         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1478
1479         expl: Fix precision of computed result.
1480         * lib/expl.c: Completely rewritten.
1481         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1482         (Maintainer): Add me.
1483         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1484
1485 2012-03-05  Bruno Haible  <bruno@clisp.org>
1486
1487         cbrt* tests: More tests.
1488         * tests/test-cbrt.h: New file.
1489         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1490         (main): Invoke test_function.
1491         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1492         (main): Invoke test_function.
1493         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1494         (main): Invoke test_function.
1495         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1496         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1497         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1498         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1499         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1500         (Depends-on): Add 'float'.
1501         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1502
1503 2012-03-05  Bruno Haible  <bruno@clisp.org>
1504
1505         hypot* tests: More tests.
1506         * tests/test-hypot.h: New file, partially extracted from
1507         tests/test-hypotl.c.
1508         * tests/test-hypot.c: Include test-hypot.h.
1509         (main): Invoke test_function.
1510         * tests/test-hypotf.c: Include test-hypot.h.
1511         (main): Invoke test_function.
1512         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1513         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1514         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1515         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1516         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1517         tests/randomf.c.
1518         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1519         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1520         tests/randoml.c.
1521         (Depends-on): Add 'fpucw', 'float'.
1522         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1523
1524 2012-03-05  Bruno Haible  <bruno@clisp.org>
1525
1526         fpucw: Doc about FreeBSD.
1527         * lib/fpucw.h: Mention FreeBSD in comments.
1528
1529 2012-03-04  Bruno Haible  <bruno@clisp.org>
1530
1531         sqrt* tests: More tests.
1532         * tests/test-sqrt.h: New file.
1533         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1534         (main): Invoke test_function.
1535         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1536         (main): Invoke test_function.
1537         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1538         (main): Invoke test_function.
1539         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1540         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1541         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1542         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1543         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1544         (Depends-on): Add 'float'.
1545         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1546
1547 2012-03-04  Bruno Haible  <bruno@clisp.org>
1548
1549         remainder* tests: More tests.
1550         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1551         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1552         (main): Invoke test_function.
1553         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1554         (main): Invoke test_function.
1555         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1556         (main): Invoke test_function.
1557         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1558         tests/randomd.c.
1559         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1560         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1561         tests/randomf.c.
1562         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1563         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1564         tests/randoml.c.
1565         (Depends-on): Add 'float'.
1566         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1567
1568 2012-03-04  Bruno Haible  <bruno@clisp.org>
1569
1570         remainder, remainderf, remainderl: Fix computation for large quotients.
1571         * lib/remainder.c: Completely rewritten.
1572         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1573         USE_FLOAT.
1574         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1575         USE_LONG_DOUBLE.
1576         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1577         isnand, isinf. Remove round, fma.
1578         * modules/remainderf (Files): Add lib/remainder.c.
1579         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1580         Remove roundf, fmaf.
1581         * modules/remainderl (Files): Add lib/remainder.c.
1582         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1583         isinf. Remove roundl, fmal.
1584         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1585         REMAINDER_LIBM.
1586         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1587         REMAINDERF_LIBM.
1588         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1589         REMAINDERL_LIBM.
1590
1591 2012-03-04  Bruno Haible  <bruno@clisp.org>
1592
1593         fmod* tests: More tests.
1594         * tests/test-fmod.h (my_ldexp): New function.
1595         (test_function): Reduce amount of random numbers to test. Add tests
1596         of very large quotients x / y.
1597         * tests/test-fmod.c (MAX_EXP): New macro.
1598         * tests/test-fmodf.c (MAX_EXP): Likewise.
1599         * tests/test-fmodl.c (MAX_EXP): Likewise.
1600
1601 2012-03-04  Bruno Haible  <bruno@clisp.org>
1602
1603         fmod, fmodl: Fix computation for large quotients x / y.
1604         * lib/fmod.c: Completely rewritten.
1605         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1606         USE_LONG_DOUBLE.
1607         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1608         isnand. Remove fma.
1609         * modules/fmodl (Files): Add lib/fmod.c.
1610         (Depends-on): Add float, isfinite, signbit, fabsl,
1611         frexpl, ldexpl, isnanl. Remove fma.
1612         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1613         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1614
1615 2012-03-03  Bruno Haible  <bruno@clisp.org>
1616
1617         fmod* tests: More tests.
1618         * tests/test-fmod.h: New file.
1619         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1620         (main): Invoke test_function.
1621         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1622         (main): Invoke test_function.
1623         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1624         (main): Invoke test_function.
1625         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1626         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1627         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1628         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1629         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1630         (Depends-on): Add 'float'.
1631         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1632
1633 2012-03-03  Bruno Haible  <bruno@clisp.org>
1634
1635         rint* tests: More tests.
1636         * tests/test-rint.h: New file, partially extracted from
1637         tests/test-rintl.c.
1638         * tests/test-rint.c: Include test-rint.h.
1639         (main): Invoke test_function.
1640         * tests/test-rintf.c: Include test-rint.h.
1641         (main): Invoke test_function.
1642         * tests/test-rintl.c: Include test-rint.h.
1643         (main): Invoke test_function.
1644         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1645         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1646         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1647         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1648         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1649         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1650
1651 2012-03-03  Bruno Haible  <bruno@clisp.org>
1652
1653         modf* tests: More tests.
1654         * tests/test-modf.h: New file.
1655         * tests/test-modf.c: Include <float.h> and test-modf.h.
1656         (main): Invoke test_function.
1657         * tests/test-modff.c: Include <float.h> and test-modf.h.
1658         (main): Invoke test_function.
1659         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1660         (main): Invoke test_function.
1661         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1662         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1663         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1664         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1665         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1666         (Depends-on): Add 'float'.
1667         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1668
1669 2012-03-03  Bruno Haible  <bruno@clisp.org>
1670
1671         fabs* tests: More tests.
1672         * tests/test-fabs.h: New file, partially extracted from
1673         tests/test-fabsl.c.
1674         * tests/test-fabs.c (RANDOM): New macro.
1675         * tests/test-fabsf.c (RANDOM): New macro.
1676         * tests/test-fabsl.c (RANDOM): New macro.
1677         * modules/fabs-tests (Files): Add tests/randomd.c.
1678         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1679         * modules/fabsf-tests (Files): Add tests/randomf.c.
1680         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1681         * modules/fabsl-tests (Files): Add tests/randoml.c.
1682         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1683
1684 2012-03-03  Bruno Haible  <bruno@clisp.org>
1685
1686         ldexp* tests: More tests.
1687         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1688         * tests/test-ldexp.c (RANDOM): New macro.
1689         * tests/test-ldexpf.c (RANDOM): New macro.
1690         * tests/test-ldexpl.c (RANDOM): New macro.
1691         * modules/ldexp-tests (Files): Add tests/randomd.c.
1692         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1693         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1694         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1695         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1696         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1697
1698 2012-03-03  Bruno Haible  <bruno@clisp.org>
1699
1700         frexp* tests: More tests.
1701         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1702         * tests/test-frexp.c (RANDOM): New macro.
1703         * tests/test-frexpf.c (RANDOM): New macro.
1704         * tests/test-frexpl.c (RANDOM): New macro.
1705         * modules/frexp-tests (Files): Add tests/randomd.c.
1706         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1707         * modules/frexpf-tests (Files): Add tests/randomf.c.
1708         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1709         * modules/frexpl-tests (Files): Add tests/randoml.c.
1710         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1711
1712 2012-03-03  Bruno Haible  <bruno@clisp.org>
1713
1714         Support for pseudo-random numbers in tests.
1715         * tests/randomf.c: New file.
1716         * tests/randomd.c: New file.
1717         * tests/randoml.c: New file.
1718         * tests/macros.h (randomf, randomd, randoml): New declarations.
1719
1720 2012-03-03  Bruno Haible  <bruno@clisp.org>
1721
1722         frexp* tests: Refactor.
1723         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1724         * tests/test-frexp.c: Include and use it.
1725         * tests/test-frexpf.c: Likewise.
1726         * tests/test-frexpl.c: Likewise.
1727         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1728         * modules/frexpf-tests (Files): Likewise.
1729         * modules/frexpl-tests (Files): Likewise.
1730
1731 2012-03-02  Jim Meyering  <meyering@redhat.com>
1732
1733         maint: don't specify XZ_OPT=-9ev in dist-related rule
1734         Using xz's -9 option is warranted only if you have a very large
1735         tarball (see xz's documentation for the sizes vs. presets), and
1736         requires 64MiB of memory at decompression time.
1737         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1738         Automake's default of just "-e" is fine.  Override on a
1739         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1740
1741 2012-03-01  Eric Blake  <eblake@redhat.com>
1742
1743         maint.mk: allow announcement for non-gnulib project
1744         * maint.mk (announcement): Skip gnulib version if not used.
1745
1746 2012-03-01  Jim Meyering  <meyering@redhat.com>
1747
1748         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1749         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1750         envvar settings cannot interfere.  Otherwise, setting envvars like
1751         prohibit=foo require=bar, etc. would cause spurious test failures.
1752
1753 2012-03-01  Eric Blake  <eblake@redhat.com>
1754
1755         maint.mk: add per-line exclusions to prohibitions
1756         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1757         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1758         (sc_const_long_option): Use it.
1759
1760 2012-03-01  Bruno Haible  <bruno@clisp.org>
1761
1762         Tests for module 'expl-ieee'.
1763         * modules/expl-ieee-tests: New file.
1764         * tests/test-expl-ieee.c: New file.
1765
1766         New module 'expl-ieee'.
1767         * modules/expl-ieee: New file.
1768
1769         Tests for module 'exp-ieee'.
1770         * modules/exp-ieee-tests: New file.
1771         * tests/test-exp-ieee.c: New file.
1772
1773         New module 'exp-ieee'.
1774         * modules/exp-ieee: New file.
1775
1776         Tests for module 'expf-ieee'.
1777         * modules/expf-ieee-tests: New file.
1778         * tests/test-expf-ieee.c: New file.
1779         * tests/test-exp-ieee.h: New file.
1780
1781         New module 'expf-ieee'.
1782         * modules/expf-ieee: New file.
1783
1784 2012-02-29  Bruno Haible  <bruno@clisp.org>
1785
1786         cbrtl-ieee: Work around test failure on IRIX 6.5.
1787         * m4/cbrtl-ieee.m4: New file.
1788         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1789         test whether cbrtl works with a minus zero argument. Replace it if not.
1790         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1792         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1793         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1794         (Depends-on): Update conditions.
1795         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1796         m4/signbit.m4.
1797         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1798         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1799         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1800
1801         Tests for module 'cbrtl-ieee'.
1802         * modules/cbrtl-ieee-tests: New file.
1803         * tests/test-cbrtl-ieee.c: New file.
1804
1805         New module 'cbrtl-ieee'.
1806         * modules/cbrtl-ieee: New file.
1807
1808         Tests for module 'cbrt-ieee'.
1809         * modules/cbrt-ieee-tests: New file.
1810         * tests/test-cbrt-ieee.c: New file.
1811
1812         New module 'cbrt-ieee'.
1813         * modules/cbrt-ieee: New file.
1814
1815         Tests for module 'cbrtf-ieee'.
1816         * modules/cbrtf-ieee-tests: New file.
1817         * tests/test-cbrtf-ieee.c: New file.
1818         * tests/test-cbrt-ieee.h: New file.
1819
1820         New module 'cbrtf-ieee'.
1821         * modules/cbrtf-ieee: New file.
1822
1823 2012-02-29  Bruno Haible  <bruno@clisp.org>
1824
1825         cbrtf: Work around bug in IRIX 6.5 system function.
1826         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1827         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1828         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1829         work.
1830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1831         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1832         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1833         (Depends-on): Update conditions.
1834         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1835
1836 2012-02-29  Bruno Haible  <bruno@clisp.org>
1837
1838         Tests for module 'cbrtl'.
1839         * modules/cbrtl-tests: New file.
1840         * tests/test-cbrtl.c: New file.
1841
1842         New module 'cbrtl'.
1843         * lib/math.in.h (cbrtl): New declaration.
1844         * lib/cbrtl.c: New file.
1845         * m4/cbrtl.m4: New file.
1846         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1848         HAVE_DECL_CBRTL.
1849         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1850         HAVE_DECL_CBRTL.
1851         * modules/cbrtl: New file.
1852         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1853         * doc/posix-functions/cbrtl.texi: Mention the new module.
1854
1855 2012-02-29  Bruno Haible  <bruno@clisp.org>
1856
1857         Tests for module 'cbrtf'.
1858         * modules/cbrtf-tests: New file.
1859         * tests/test-cbrtf.c: New file.
1860
1861         New module 'cbrtf'.
1862         * lib/math.in.h (cbrtf): New declaration.
1863         * lib/cbrtf.c: New file.
1864         * m4/cbrtf.m4: New file.
1865         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1867         HAVE_DECL_CBRTF.
1868         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1869         HAVE_DECL_CBRTF.
1870         * modules/cbrtf: New file.
1871         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1872         * doc/posix-functions/cbrtf.texi: Mention the new module.
1873
1874 2012-02-29  Bruno Haible  <bruno@clisp.org>
1875
1876         cbrt: Provide replacement on MSVC and Minix.
1877         * lib/math.in.h (cbrt): New declaration.
1878         * lib/cbrt.c: New file.
1879         * m4/cbrt.m4: New file.
1880         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1881         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1882         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1883         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1884         (Depends-on): Add dependencies.
1885         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1886         * tests/test-math-c++.cc: Check the declaration of cbrt.
1887         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1888         replacement.
1889
1890 2012-02-29  Bruno Haible  <bruno@clisp.org>
1891
1892         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1893         * m4/hypotl-ieee.m4: New file.
1894         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1895         test whether hypotl works with mixed NaN and Infinity arguments.
1896         Replace it if not.
1897         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1899         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1900         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1901         (Depends-on): Update conditions.
1902         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1903         (Depends-on): Add hypot-ieee.
1904         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1905         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1906
1907         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1908         * m4/hypotf-ieee.m4: New file.
1909         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1910         test whether hypotf works with mixed NaN and Infinity arguments.
1911         Replace it if not.
1912         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1913         (Depends-on): Add hypot-ieee.
1914         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1915         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1916
1917         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1918         * lib/math.in.h (hypot): New declaration.
1919         * lib/hypot.c: New file.
1920         * m4/hypot-ieee.m4: New file.
1921         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1922         whether hypot works with mixed NaN and Infinity arguments. Replace it
1923         if not.
1924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1925         REPLACE_HYPOT.
1926         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1927         * modules/hypot (Files): Add lib/hypot.c.
1928         (Depends-on): Add dependencies.
1929         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
1930         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
1931         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
1932         * tests/test-math-c++.cc: Check the declaration of hypot.
1933         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
1934
1935         Tests for module 'hypotl-ieee'.
1936         * modules/hypotl-ieee-tests: New file.
1937         * tests/test-hypotl-ieee.c: New file.
1938
1939         New module 'hypotl-ieee'.
1940         * modules/hypotl-ieee: New file.
1941
1942         Tests for module 'hypot-ieee'.
1943         * modules/hypot-ieee-tests: New file.
1944         * tests/test-hypot-ieee.c: New file.
1945
1946         New module 'hypot-ieee'.
1947         * modules/hypot-ieee: New file.
1948
1949         Tests for module 'hypotf-ieee'.
1950         * modules/hypotf-ieee-tests: New file.
1951         * tests/test-hypotf-ieee.c: New file.
1952         * tests/test-hypot-ieee.h: New file.
1953
1954         New module 'hypotf-ieee'.
1955         * modules/hypotf-ieee: New file.
1956
1957 2012-02-29  Bruno Haible  <bruno@clisp.org>
1958
1959         Remove unused variables.
1960         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
1961         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1962         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1963         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1964
1965 2012-02-29  Eric Blake  <eblake@redhat.com>
1966
1967         termios: fix pid_t always, not just for tcgetsid
1968         * doc/posix-headers/termios.texi (termios.h): Mention problem.
1969         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
1970         just when building tcgetsid.
1971
1972 2012-02-29  Bruno Haible  <bruno@clisp.org>
1973
1974         Tests for module 'hypotl'.
1975         * modules/hypotl-tests: New file.
1976         * tests/test-hypotl.c: New file.
1977
1978         New module 'hypotl'.
1979         * lib/math.in.h (hypotl): New declaration.
1980         * lib/hypotl.c: New file.
1981         * m4/hypotl.m4: New file.
1982         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
1984         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
1985         * modules/hypotl: New file.
1986         * tests/test-math-c++.cc: Check the hypotl declaration.
1987         * doc/posix-functions/hypotl.texi: Mention the new module.
1988
1989 2012-02-29  Eric Blake  <eblake@redhat.com>
1990
1991         tcgetsid: fix cygwin header bug
1992         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
1993
1994         docs: update cygwin progress
1995         * doc/posix-functions/llround.texi (llround): Added in cygwin
1996         1.7.8.
1997         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
1998         * doc/glibc-functions/program_invocation_name.texi
1999         (program_invocation_name): Likewise.
2000         * doc/glibc-functions/program_invocation_short_name.texi
2001         (program_invocation_short_name): Likewise.
2002         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2003         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2004         Likewise.
2005         * doc/posix-functions/pthread_spin_destroy.texi
2006         (pthread_spin_destroy): Added in cygwin 1.7.10.
2007         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2008         Likewise.
2009         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2010         Likewise.
2011         * doc/posix-functions/pthread_spin_trylock.texi
2012         (pthread_spin_trylock): Likewise.
2013         * doc/posix-functions/pthread_spin_unlock.texi
2014         (pthread_spin_unlock): Likewise.
2015         * doc/posix-functions/pthread_setschedprio.texi
2016         (pthread_setschedprio): Likewise.
2017         * doc/posix-functions/pthread_attr_getstack.texi
2018         (pthread_attr_getstack): Likewise.
2019         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2020         (pthread_attr_getstackaddr): Likewise.
2021         * doc/glibc-functions/pthread_getattr_np.texi
2022         (pthread_getattr_np): Likewise.
2023         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2024         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2025         * doc/posix-functions/clock_settime.texi (clock_settime):
2026         Likewise.
2027         * doc/posix-functions/pthread_attr_getguardsize.texi
2028         (pthread_attr_getguardsize): Likewise.
2029         * doc/posix-functions/pthread_attr_setguardsize.texi
2030         (pthread_attr_setguardsize): Likewise.
2031         * doc/posix-functions/pthread_attr_setstack.texi
2032         (pthread_attr_setstack): Likewise.
2033         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2034         (pthread_attr_setstackaddr): Likewise.
2035         * doc/posix-functions/clock_getcpuclockid.texi
2036         (clock_getcpuclockid): Likewise.
2037         * doc/posix-functions/pthread_getcpuclockid.texi
2038         (pthread_getcpuclockid): Likewise.
2039         * doc/glibc-functions/error.texi (error): Likewise.
2040         * doc/glibc-functions/error_at_line.texi (error_at_line):
2041         Likewise.
2042         * doc/glibc-functions/error_message_count.texi
2043         (error_message_count): Likewise.
2044         * doc/glibc-functions/error_one_per_line.texi
2045         (error_one_per_line): Likewise.
2046         * doc/glibc-functions/error_print_progname.texi
2047         (error_print_progname): Likewise.
2048         * doc/posix-functions/pthread_condattr_getclock.texi
2049         (pthread_condattr_getclock): Likewise.
2050         * doc/posix-functions/pthread_condattr_setclock.texi
2051         (pthread_condattr_setclock): Likewise.
2052         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2053         Likewise.
2054         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2055         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2056         * doc/glibc-functions/get_current_dir_name.texi
2057         (get_current_dir_name): Likewise.
2058         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2059         Likewise.
2060         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2061         wrong return type.
2062         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2063         1.7.11.
2064
2065 2012-02-29  Bruno Haible  <bruno@clisp.org>
2066
2067         Tests for module 'hypotf'.
2068         * modules/hypotf-tests: New file.
2069         * tests/test-hypotf.c: New file.
2070
2071         New module 'hypotf'.
2072         * lib/math.in.h (hypotf): New declaration.
2073         * lib/hypotf.c: New file.
2074         * m4/hypotf.m4: New file.
2075         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2076         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2077         REPLACE_HYPOTF.
2078         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2079         REPLACE_HYPOTF.
2080         * modules/hypotf: New file.
2081         * tests/test-math-c++.cc: Check the hypotf declaration.
2082         * doc/posix-functions/hypotf.texi: Mention the new module.
2083
2084         hypot: Prepare for hypotf module.
2085         * m4/hypot.m4: New file.
2086         * modules/hypot (Files): Add m4/hypot.m4.
2087         (configure.ac): Invoke gl_FUNC_HYPOT.
2088
2089 2012-02-29  Bruno Haible  <bruno@clisp.org>
2090
2091         hypot tests: More tests.
2092         * tests/test-hypot.c: Include <float.h>.
2093         (main): Add tests about overflow and underflow.
2094
2095 2012-02-29  Bruno Haible  <bruno@clisp.org>
2096
2097         math code: Add comments.
2098         * lib/acosl.c: Add comment about related glibc source files.
2099         * lib/asinl.c: Likewise.
2100         * lib/atanl.c: Likewise.
2101         * lib/expl.c: Likewise.
2102         * lib/logl.c: Likewise.
2103         * lib/sincosl.c: Likewise.
2104         * lib/sinl.c: Likewise.
2105         * lib/tanl.c: Likewise.
2106         * lib/trigl.c: Likewise.
2107         * lib/cosl.c: Likewise. Fix comments.
2108
2109 2012-02-28  Bruno Haible  <bruno@clisp.org>
2110
2111         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2112         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2113         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2114         HUGE_VALL are defined.
2115         (numeric_equald): Renamed from numeric_equal.
2116         (numeric_equalf, numeric_equall): New functions.
2117         (main): Check also HUGE_VALF, HUGE_VALL.
2118         * modules/math-tests (Files): Add tests/macros.h.
2119         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2120         HUGE_VALL.
2121
2122 2012-02-28  Bruno Haible  <bruno@clisp.org>
2123
2124         doc: Move ISO C11 feature notes into POSIX chapters.
2125         * doc/posix-functions/aligned_alloc.texi: Renamed from
2126         doc/glibc-functions/aligned_alloc.texi.
2127         * doc/posix-functions/quick_exit.texi: Renamed from
2128         doc/glibc-functions/quick_exit.texi.
2129         * doc/posix-headers/uchar.texi: Renamed from
2130         doc/glibc-headers/uchar.texi.
2131         * doc/posix-functions/c16rtomb.texi: Renamed from
2132         doc/glibc-functions/c16rtomb.texi.
2133         * doc/posix-functions/c32rtomb.texi: Renamed from
2134         doc/glibc-functions/c32rtomb.texi.
2135         * doc/posix-functions/mbrtoc16.texi: Renamed from
2136         doc/glibc-functions/mbrtoc16.texi.
2137         * doc/posix-functions/mbrtoc32.texi: Renamed from
2138         doc/glibc-functions/mbrtoc32.texi.
2139         * doc/gnulib.texi: Update.
2140         (Glibc uchar.h): Remove section.
2141         Suggested by Eric Blake.
2142
2143 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2144
2145         stdnoreturn: port to MSVC better
2146         MSVC standard headers use __declspec(noreturn), so #define noreturn
2147         to empty on that platform.  Reported by Bruno Haible in
2148         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2149         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2150         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2151
2152 2012-02-28  Bruno Haible  <bruno@clisp.org>
2153
2154         doc: Mention new glibc headers and functions.
2155         * doc/glibc-headers/uchar.texi: New file.
2156         * doc/glibc-functions/aligned_alloc.texi: New file.
2157         * doc/glibc-functions/c16rtomb.texi: New file.
2158         * doc/glibc-functions/c32rtomb.texi: New file.
2159         * doc/glibc-functions/clock_adjtime.texi: New file.
2160         * doc/glibc-functions/fanotify_init.texi: New file.
2161         * doc/glibc-functions/fanotify_mark.texi: New file.
2162         * doc/glibc-functions/inet6_opt_append.texi: New file.
2163         * doc/glibc-functions/inet6_opt_find.texi: New file.
2164         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2165         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2166         * doc/glibc-functions/inet6_opt_init.texi: New file.
2167         * doc/glibc-functions/inet6_opt_next.texi: New file.
2168         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2169         * doc/glibc-functions/inet6_rth_add.texi: New file.
2170         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2171         * doc/glibc-functions/inet6_rth_init.texi: New file.
2172         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2173         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2174         * doc/glibc-functions/inet6_rth_space.texi: New file.
2175         * doc/glibc-functions/login.texi: New file.
2176         * doc/glibc-functions/mbrtoc16.texi: New file.
2177         * doc/glibc-functions/mbrtoc32.texi: New file.
2178         * doc/glibc-functions/name_to_handle_at.texi: New file.
2179         * doc/glibc-functions/ntp_gettimex.texi: New file.
2180         * doc/glibc-functions/open_by_handle_at.texi: New file.
2181         * doc/glibc-functions/prlimit.texi: New file.
2182         * doc/glibc-functions/process_vm_readv.texi: New file.
2183         * doc/glibc-functions/process_vm_writev.texi: New file.
2184         * doc/glibc-functions/recvmmsg.texi: New file.
2185         * doc/glibc-functions/scandirat.texi: New file.
2186         * doc/glibc-functions/sendmmsg.texi: New file.
2187         * doc/glibc-functions/setns.texi: New file.
2188         * doc/glibc-functions/timespec_get.texi: New file.
2189         * doc/gnulib.texi: Include them.
2190         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2191         sections.
2192         Reported by Eric Blake.
2193
2194 2012-02-28  Bruno Haible  <bruno@clisp.org>
2195
2196         Avoid compilation errors with MSVC option -fp:strict.
2197         * lib/floor.c: Use MSVC specific pragma fenv_access.
2198         * lib/ceil.c: Likewise.
2199         * lib/trunc.c: Likewise.
2200         * lib/round.c: Likewise.
2201         * lib/rint.c: Likewise.
2202         * lib/fma.c: Likewise.
2203         * lib/integer_length.c: Likewise.
2204         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2205         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2206         * tests/test-floor2.c: Likewise.
2207         * tests/test-floorf2.c: Likewise.
2208         * tests/test-ceil2.c: Likewise.
2209         * tests/test-ceilf2.c: Likewise.
2210         * tests/test-trunc2.c: Likewise.
2211         * tests/test-truncf2.c: Likewise.
2212         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2213
2214 2012-02-27  Bruno Haible  <bruno@clisp.org>
2215
2216         Tests for module 'sqrtl-ieee'.
2217         * modules/sqrtl-ieee-tests: New file.
2218         * tests/test-sqrtl-ieee.c: New file.
2219
2220         New module 'sqrtl-ieee'.
2221         * modules/sqrtl-ieee: New file.
2222
2223         Tests for module 'sqrt-ieee'.
2224         * modules/sqrt-ieee-tests: New file.
2225         * tests/test-sqrt-ieee.c: New file.
2226
2227         New module 'sqrt-ieee'.
2228         * modules/sqrt-ieee: New file.
2229
2230         Tests for module 'sqrtf-ieee'.
2231         * modules/sqrtf-ieee-tests: New file.
2232         * tests/test-sqrtf-ieee.c: New file.
2233         * tests/test-sqrt-ieee.h: New file.
2234
2235         New module 'sqrtf-ieee'.
2236         * modules/sqrtf-ieee: New file.
2237
2238 2012-02-27  Bruno Haible  <bruno@clisp.org>
2239
2240         remainderl-ieee: Work around test failure on OSF/1.
2241         * m4/remainderl-ieee.m4: New file.
2242         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2243         present, test whether remainderl works with a zero second argument.
2244         Replace it if not.
2245         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2247         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2248         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2249         (Depends-on): Update conditions.
2250         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2251         (Depends-on): Add remainder-ieee.
2252         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2253         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2254         module.
2255
2256         remainderf-ieee: Work around test failure on OSF/1.
2257         * m4/remainderf-ieee.m4: New file.
2258         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2259         present, test whether remainderf works with a zero second argument.
2260         Replace it if not.
2261         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2263         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2264         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2265         (Depends-on): Update conditions.
2266         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2267         (Depends-on): Add remainder-ieee.
2268         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2269         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2270         module.
2271
2272         remainder-ieee: Work around test failure on OSF/1.
2273         * m4/remainder-ieee.m4: New file.
2274         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2275         present, test whether remainder works with a zero second argument.
2276         Replace it if not.
2277         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2278         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2279         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2280         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2281         (Depends-on): Update dependencies.
2282         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2283         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2284         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2285
2286         Tests for module 'remainderl-ieee'.
2287         * modules/remainderl-ieee-tests: New file.
2288         * tests/test-remainderl-ieee.c: New file.
2289
2290         New module 'remainderl-ieee'.
2291         * modules/remainderl-ieee: New file.
2292
2293         Tests for module 'remainder-ieee'.
2294         * modules/remainder-ieee-tests: New file.
2295         * tests/test-remainder-ieee.c: New file.
2296
2297         New module 'remainder-ieee'.
2298         * modules/remainder-ieee: New file.
2299
2300         Tests for module 'remainderf-ieee'.
2301         * modules/remainderf-ieee-tests: New file.
2302         * tests/test-remainderf-ieee.c: New file.
2303         * tests/test-remainder-ieee.h: New file.
2304
2305         New module 'remainderf-ieee'.
2306         * modules/remainderf-ieee: New file.
2307
2308 2012-02-27  Bruno Haible  <bruno@clisp.org>
2309
2310         modff, modfl: Fix configure syntax error.
2311         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2312         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2313
2314 2012-02-27  Bruno Haible  <bruno@clisp.org>
2315
2316         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2317         * m4/fmodl-ieee.m4: New file.
2318         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2319         whether fmodl works with zero arguments. Replace it if not.
2320         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2321         (Depends-on): Add fmod-ieee.
2322         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2323         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2324
2325         fmodf-ieee: Work around test failure on OSF/1.
2326         * m4/fmodf-ieee.m4: New file.
2327         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2328         whether fmodf works with zero arguments. Replace it if not.
2329         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2331         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2332         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2333         (Depends-on): Update dependencies.
2334         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2335         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2336         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2337
2338         fmodf-ieee: Work around test failure on MSVC 9.
2339         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2340         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2341
2342         fmod-ieee: Work around test failures on OSF/1, mingw.
2343         * m4/fmod-ieee.m4: New file.
2344         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2345         whether fmod works with zero arguments. Replace it if not.
2346         * lib/math.in.h (fmod): New declaration.
2347         * lib/fmod.c: New file.
2348         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2349         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2350         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2351         * modules/fmod (Files): Add lib/fmod.c.
2352         (Depends-on): Add math, isinf, trunc, fma.
2353         (configure.ac): Arrange to compile lib/fmod.c if needed.
2354         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2355         m4/signbit.m4.
2356         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2357         * tests/test-math-c++.cc: Check the declaration of fmod.
2358         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2359
2360         fmodl-ieee: Fix test failures.
2361         * lib/fmodl.c (fmodl): Treat Inf specially.
2362         * modules/fmodl (Depends-on): Add isinf.
2363
2364         Tests for module 'fmodl-ieee'.
2365         * modules/fmodl-ieee-tests: New file.
2366         * tests/test-fmodl-ieee.c: New file.
2367
2368         New module 'fmodl-ieee'.
2369         * modules/fmodl-ieee: New file.
2370
2371         Tests for module 'fmod-ieee'.
2372         * modules/fmod-ieee-tests: New file.
2373         * tests/test-fmod-ieee.c: New file.
2374
2375         New module 'fmod-ieee'.
2376         * modules/fmod-ieee: New file.
2377
2378         Tests for module 'fmodf-ieee'.
2379         * modules/fmodf-ieee-tests: New file.
2380         * tests/test-fmodf-ieee.c: New file.
2381         * tests/test-fmod-ieee.h: New file.
2382
2383         New module 'fmodf-ieee'.
2384         * modules/fmodf-ieee: New file.
2385
2386 2012-02-27  Bruno Haible  <bruno@clisp.org>
2387
2388         Tests for module 'rintl-ieee'.
2389         * modules/rintl-ieee-tests: New file.
2390         * tests/test-rintl-ieee.c: New file.
2391
2392         New module 'rintl-ieee'.
2393         * modules/rintl-ieee: New file.
2394
2395         Tests for module 'rint-ieee'.
2396         * modules/rint-ieee-tests: New file.
2397         * tests/test-rint-ieee.c: New file.
2398
2399         New module 'rint-ieee'.
2400         * modules/rint-ieee: New file.
2401
2402         Tests for module 'rintf-ieee'.
2403         * modules/rintf-ieee-tests: New file.
2404         * tests/test-rintf-ieee.c: New file.
2405         * tests/test-rint-ieee.h: New file.
2406
2407         New module 'rintf-ieee'.
2408         * modules/rintf-ieee: New file.
2409
2410 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2411
2412         regex: re_search etc. should return -2 when memory exhausted
2413         This bug was uncovered when testing 'grep'.  Without the fix,
2414         re_search and friends return -1 when memory is exhausted, but -1
2415         means no match, and this causes grep to falsely report no-match
2416         instead of memory-exhaustion.  See
2417         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2418         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2419         trouble; this can occur if re_search_internal ran out of memory.
2420
2421 2012-02-26  Bruno Haible  <bruno@clisp.org>
2422
2423         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2424         * m4/modfl-ieee.m4: New file.
2425         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2426         whether modfl works with Inf. Replace it if not.
2427         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2429         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2430         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2431         (Depends-on): Update dependencies.
2432         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2433         m4/signbit.m4.
2434         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2435         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2436
2437         modfl-ieee: Fix dependencies.
2438         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2439
2440         modfl-ieee: Fix test failures.
2441         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2442         * modules/modfl (Depends-on): Add isfinite, isinf.
2443
2444         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2445         * m4/modff-ieee.m4: New file.
2446         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2447         whether modff works with NaN and Inf. Replace it if not.
2448         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2450         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2451         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2452         (Depends-on): Update dependencies.
2453         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2454         m4/signbit.m4.
2455         (Depends-on): Add modf-ieee.
2456         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2457         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2458
2459         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2460         * m4/modf-ieee.m4: New file.
2461         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2462         whether modf works with NaN and Inf. Replace it if not.
2463         * lib/math.in.h (modf): New declaration.
2464         * lib/modf.c: New file.
2465         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2466         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2467         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2468         * modules/modf (Files): Add lib/modf.c.
2469         (Depends-on): Add math, isfinite, trunc, isinf.
2470         (configure.ac): Addrange to compile lib/modf.c if needed.
2471         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2472         m4/signbit.m4.
2473         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2474         * tests/test-math-c++.cc: Check the declaration of modf.
2475         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2476
2477         Tests for module 'modfl-ieee'.
2478         * modules/modfl-ieee-tests: New file.
2479         * tests/test-modfl-ieee.c: New file.
2480
2481         New module 'modfl-ieee'.
2482         * modules/modfl-ieee: New file.
2483
2484         Tests for module 'modf-ieee'.
2485         * modules/modf-ieee-tests: New file.
2486         * tests/test-modf-ieee.c: New file.
2487
2488         New module 'modf-ieee'.
2489         * modules/modf-ieee: New file.
2490
2491         Tests for module 'modff-ieee'.
2492         * modules/modff-ieee-tests: New file.
2493         * tests/test-modff-ieee.c: New file.
2494         * tests/test-modf-ieee.h: New file.
2495
2496         New module 'modff-ieee'.
2497         * modules/modff-ieee: New file.
2498
2499 2012-02-26  Bruno Haible  <bruno@clisp.org>
2500
2501         Tests for module 'fabsl-ieee'.
2502         * modules/fabsl-ieee-tests: New file.
2503         * tests/test-fabsl-ieee.c: New file.
2504
2505         New module 'fabsl-ieee'.
2506         * modules/fabsl-ieee: New file.
2507
2508         Tests for module 'fabs-ieee'.
2509         * modules/fabs-ieee-tests: New file.
2510         * tests/test-fabs-ieee.c: New file.
2511
2512         New module 'fabs-ieee'.
2513         * modules/fabs-ieee: New file.
2514
2515         Tests for module 'fabsf-ieee'.
2516         * modules/fabsf-ieee-tests: New file.
2517         * tests/test-fabsf-ieee.c: New file.
2518         * tests/test-fabs-ieee.h: New file.
2519
2520         New module 'fabsf-ieee'.
2521         * modules/fabsf-ieee: New file.
2522
2523 2012-02-26  Bruno Haible  <bruno@clisp.org>
2524
2525         Tests for module 'fmal-ieee'.
2526         * modules/fmal-ieee-tests: New file.
2527         * tests/test-fmal-ieee.c: New file.
2528
2529         New module 'fmal-ieee'.
2530         * modules/fmal-ieee: New file.
2531
2532         Tests for module 'fma-ieee'.
2533         * modules/fma-ieee-tests: New file.
2534         * tests/test-fma-ieee.c: New file.
2535
2536         New module 'fma-ieee'.
2537         * modules/fma-ieee: New file.
2538
2539         Tests for module 'fmaf-ieee'.
2540         * modules/fmaf-ieee-tests: New file.
2541         * tests/test-fmaf-ieee.c: New file.
2542         * tests/test-fma-ieee.h: New file.
2543
2544         New module 'fmaf-ieee'.
2545         * modules/fmaf-ieee: New file.
2546
2547 2012-02-26  Bruno Haible  <bruno@clisp.org>
2548
2549         Tests for module 'ldexpl-ieee'.
2550         * modules/ldexpl-ieee-tests: New file.
2551         * tests/test-ldexpl-ieee.c: New file.
2552
2553         New module 'ldexpl-ieee'.
2554         * modules/ldexpl-ieee: New file.
2555
2556         Tests for module 'ldexp-ieee'.
2557         * modules/ldexp-ieee-tests: New file.
2558         * tests/test-ldexp-ieee.c: New file.
2559
2560         New module 'ldexp-ieee'.
2561         * modules/ldexp-ieee: New file.
2562
2563         Tests for module 'ldexpf-ieee'.
2564         * modules/ldexpf-ieee-tests: New file.
2565         * tests/test-ldexpf-ieee.c: New file.
2566         * tests/test-ldexp-ieee.h: New file.
2567
2568         New module 'ldexpf-ieee'.
2569         * modules/ldexpf-ieee: New file.
2570
2571 2012-02-26  Bruno Haible  <bruno@clisp.org>
2572
2573         Refactor frexp*-ieee tests.
2574         * tests/test-frexp-ieee.h: New file.
2575         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2576         (main): Just call test_function.
2577         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2578         (main): Just call test_function.
2579         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2580         (main): Just call test_function.
2581         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2582         * modules/frexp-ieee-tests (Files): Likewise.
2583         * modules/frexpl-ieee-tests (Files): Likewise.
2584
2585         Tests for module 'frexpl-ieee'.
2586         * modules/frexpl-ieee-tests: New file.
2587         * tests/test-frexpl-ieee.c: New file.
2588
2589         New module 'frexpl-ieee'.
2590         * modules/frexpl-ieee: New file.
2591
2592         Tests for module 'frexp-ieee'.
2593         * modules/frexp-ieee-tests: New file.
2594         * tests/test-frexp-ieee.c: New file.
2595
2596         New module 'frexp-ieee'.
2597         * modules/frexp-ieee: New file.
2598
2599         Tests for module 'frexpf-ieee'.
2600         * modules/frexpf-ieee-tests: New file.
2601         * tests/test-frexpf-ieee.c: New file.
2602
2603         New module 'frexpf-ieee'.
2604         * modules/frexpf-ieee: New file.
2605
2606 2012-02-26  Bruno Haible  <bruno@clisp.org>
2607
2608         roundl-ieee tests: More tests.
2609         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2610         (main): Add tests for [MX] shaded specification in POSIX.
2611         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2612         (Depends-on): Add isnanl-nolibm.
2613
2614         round-ieee tests: More tests.
2615         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2616         (main): Add tests for [MX] shaded specification in POSIX.
2617         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2618         (Depends-on): Add isnand-nolibm.
2619
2620         roundf-ieee tests: More tests.
2621         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2622         (main): Add tests for [MX] shaded specification in POSIX.
2623         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2624         (Depends-on): Add isnanf-nolibm.
2625
2626         truncl-ieee tests: More tests.
2627         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2628         (main): Add tests for [MX] shaded specification in POSIX.
2629         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2630         (Depends-on): Add isnanl-nolibm.
2631
2632         trunc-ieee tests: More tests.
2633         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2634         (main): Add tests for [MX] shaded specification in POSIX.
2635         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2636         (Depends-on): Add isnand-nolibm.
2637
2638         truncf-ieee tests: More tests.
2639         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2640         (main): Add tests for [MX] shaded specification in POSIX.
2641         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2642         (Depends-on): Add isnanf-nolibm.
2643
2644         ceill-ieee tests: More tests.
2645         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2646         (main): Add tests for [MX] shaded specification in POSIX.
2647         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2648         (Depends-on): Add isnanl-nolibm.
2649
2650         ceil-ieee tests: More tests.
2651         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2652         (main): Add tests for [MX] shaded specification in POSIX.
2653         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2654         (Depends-on): Add isnand-nolibm.
2655
2656         ceilf-ieee tests: More tests.
2657         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2658         (main): Add tests for [MX] shaded specification in POSIX.
2659         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2660         (Depends-on): Add isnanf-nolibm.
2661
2662         floorl-ieee tests: More tests.
2663         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2664         (main): Add tests for [MX] shaded specification in POSIX.
2665         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2666         (Depends-on): Add isnanl-nolibm.
2667
2668         floor-ieee tests: More tests.
2669         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2670         (main): Add tests for [MX] shaded specification in POSIX.
2671         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2672         (Depends-on): Add isnand-nolibm.
2673
2674         floorf-ieee tests: More tests.
2675         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2676         (main): Add tests for [MX] shaded specification in POSIX.
2677         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2678         (Depends-on): Add isnanf-nolibm.
2679
2680 2012-02-26  Bruno Haible  <bruno@clisp.org>
2681
2682         fpieee: More comments.
2683         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2684
2685 2012-02-25  Bruno Haible  <bruno@clisp.org>
2686
2687         Tests for module 'log10l'.
2688         * modules/log10l-tests: New file.
2689         * tests/test-log10l.c: New file.
2690         * tests/test-math-c++.cc: Check the declaration of log10l.
2691
2692         New module 'log10l'.
2693         * lib/math.in.h (log10l): New declaration.
2694         * lib/log10l.c: New file.
2695         * m4/log10l.m4: New file.
2696         * modules/log10l: New file.
2697         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2698         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2699         HAVE_DECL_LOG10L.
2700         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2701         HAVE_DECL_LOG10L.
2702         * doc/posix-functions/log10l.texi: Mention the new module.
2703
2704 2012-02-25  Bruno Haible  <bruno@clisp.org>
2705
2706         fmodl, remainder*: Avoid wrong results due to rounding errors.
2707         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2708         expected bounds.
2709         * lib/remainderf.c (remainderf): Likewise.
2710         * lib/remainder.c (remainder): Likewise.
2711         * lib/remainderl.c (remainderl): Likewise.
2712
2713 2012-02-25  Bruno Haible  <bruno@clisp.org>
2714
2715         Tests for module 'remainderl'.
2716         * modules/remainderl-tests: New file.
2717         * tests/test-remainderl.c: New file.
2718         * tests/test-math-c++.cc: Check the declaration of remainderl.
2719
2720         New module 'remainderl'.
2721         * lib/math.in.h (remainderl): New declaration.
2722         * lib/remainderl.c: New file.
2723         * m4/remainderl.m4: New file.
2724         * modules/remainderl: New file.
2725         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2726         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2727         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2728         HAVE_REMAINDERL.
2729         * doc/posix-functions/remainderl.texi: Mention the new module.
2730
2731 2012-02-25  Bruno Haible  <bruno@clisp.org>
2732
2733         Tests for module 'remainderf'.
2734         * modules/remainderf-tests: New file.
2735         * tests/test-remainderf.c: New file.
2736         * tests/test-math-c++.cc: Check the declaration of remainderf.
2737
2738         New module 'remainderf'.
2739         * lib/math.in.h (remainderf): New declaration.
2740         * lib/remainderf.c: New file.
2741         * m4/remainderf.m4: New file.
2742         * modules/remainderf: New file.
2743         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2744         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2745         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2746         HAVE_REMAINDERF.
2747         * doc/posix-functions/remainderf.texi: Mention the new module.
2748
2749 2012-02-25  Bruno Haible  <bruno@clisp.org>
2750
2751         remainder: Support for MSVC.
2752         * lib/math.in.h (remainder): New declaration.
2753         * lib/remainder.c: New file.
2754         * m4/remainder.m4: New file.
2755         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2756         (Depends-on): Add math, round, fma.
2757         (configure.ac): Use results of gl_FUNC_REMAINDER.
2758         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2759         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2760         HAVE_DECL_REMAINDER.
2761         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2762         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2763         * tests/test-math-c++.cc: Check the declaration of remainder.
2764         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2765         problems are fixed.
2766
2767 2012-02-25  Bruno Haible  <bruno@clisp.org>
2768
2769         Tests for module 'fmodl'.
2770         * modules/fmodl-tests: New file.
2771         * tests/test-fmodl.c: New file.
2772         * tests/test-math-c++.cc: Check the declaration of fmodl.
2773
2774         New module 'fmodl'.
2775         * lib/math.in.h (fmodl): New declaration.
2776         * lib/fmodl.c: New file.
2777         * m4/fmodl.m4: New file.
2778         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2779         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2780         REPLACE_FMODL.
2781         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2782         REPLACE_FMODL.
2783         * modules/fmodl: New file.
2784         * doc/posix-functions/fmodl.texi: Mention the new module.
2785
2786 2012-02-25  Bruno Haible  <bruno@clisp.org>
2787
2788         Tests for module 'modfl'.
2789         * modules/modfl-tests: New file.
2790         * tests/test-modfl.c: New file.
2791         * tests/test-math-c++.cc: Check the declaration of modfl.
2792
2793         New module 'modfl'.
2794         * lib/math.in.h (modfl): New declaration.
2795         * lib/modfl.c: New file.
2796         * m4/modfl.m4: New file.
2797         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2798         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2799         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2800         * modules/modfl: New file.
2801         * doc/posix-functions/modfl.texi: Mention the new module.
2802
2803 2012-02-25  Bruno Haible  <bruno@clisp.org>
2804
2805         Tests for module 'fabsl'.
2806         * modules/fabsl-tests: New file.
2807         * tests/test-fabsl.c: New file.
2808         * tests/test-math-c++.cc: Check the declaration of fabsl.
2809
2810         New module 'fabsl'.
2811         * lib/math.in.h (fabsl): New declaration.
2812         * lib/fabsl.c: New file.
2813         * m4/fabsl.m4: New file.
2814         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2816         REPLACE_FABSL.
2817         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2818         REPLACE_FABSL.
2819         * modules/fabsl: New file.
2820         * doc/posix-functions/fabsl.texi: Mention the new module.
2821
2822 2012-02-25  Bruno Haible  <bruno@clisp.org>
2823
2824         fabs tests: More tests.
2825         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2826         (zero): New variable.
2827         (main): Add tests for signed zero.
2828         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2829
2830         fabsf tests: More tests.
2831         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2832         (zero): New variable.
2833         (main): Add tests for signed zero.
2834         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2835
2836 2012-02-24  Bruno Haible  <bruno@clisp.org>
2837
2838         atanl: Provide function definition on MSVC.
2839         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2840         function pointer.
2841         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2842
2843 2012-02-24  Bruno Haible  <bruno@clisp.org>
2844
2845         acosl: Provide function definition on MSVC.
2846         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2847         function pointer.
2848         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2849
2850 2012-02-24  Bruno Haible  <bruno@clisp.org>
2851
2852         asinl: Provide function definition on MSVC.
2853         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2854         function pointer.
2855         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2856
2857 2012-02-24  Bruno Haible  <bruno@clisp.org>
2858
2859         tanl: Provide function definition on MSVC.
2860         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2861         function pointer.
2862         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2863
2864 2012-02-24  Bruno Haible  <bruno@clisp.org>
2865
2866         cosl: Provide function definition on MSVC.
2867         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2868         function pointer.
2869         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2870
2871 2012-02-24  Bruno Haible  <bruno@clisp.org>
2872
2873         sinl: Provide function definition on MSVC.
2874         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2875         function pointer.
2876         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2877
2878 2012-02-24  Bruno Haible  <bruno@clisp.org>
2879
2880         logl: Provide function definition on MSVC.
2881         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2882         function pointer.
2883         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2884
2885 2012-02-24  Bruno Haible  <bruno@clisp.org>
2886
2887         expl: Provide function definition on MSVC.
2888         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2889         function pointer.
2890         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2891
2892 2012-02-24  Bruno Haible  <bruno@clisp.org>
2893
2894         sqrtl: Provide function definition on MSVC.
2895         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2896         a function pointer.
2897         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2898
2899 2012-02-24  Bruno Haible  <bruno@clisp.org>
2900
2901         ceill: Provide function definition on MSVC.
2902         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2903         used as a function pointer.
2904         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2905
2906 2012-02-24  Bruno Haible  <bruno@clisp.org>
2907
2908         floorl: Provide function definition on MSVC.
2909         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2910         used as a function pointer.
2911         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2912
2913 2012-02-24  Bruno Haible  <bruno@clisp.org>
2914
2915         ceilf: Provide function definition on MSVC.
2916         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2917         used as a function pointer.
2918         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2919
2920 2012-02-24  Bruno Haible  <bruno@clisp.org>
2921
2922         floorf: Provide function definition on MSVC.
2923         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2924         used as a function pointer.
2925         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2926
2927 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2928
2929         stdnoreturn: new module
2930         This implements a replacement for C11's <stdnoreturn.h>.
2931         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
2932         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
2933         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2934         * tests/test-stdnoreturn.c: New files.
2935
2936 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2937
2938         regex: fix false multibyte matches in some regular expressions
2939         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
2940         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
2941         * lib/regex_internal.c (re_string_skip_chars):
2942         Fix miscomputation of remain_len that may cause incomplete
2943         multi-byte character and false match.
2944
2945 2012-02-24  Jim Meyering  <meyering@redhat.com>
2946
2947         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
2948         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
2949         uses with "==" *before* the call, e.g., 0 == strcmp (...)
2950         Remove now-unnecessary str''cmp obfuscation.
2951         Suggested by Akim Demaille.
2952
2953 2012-02-24  Bruno Haible  <bruno@clisp.org>
2954
2955         streq: Rename macro.
2956         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
2957         * NEWS: Mention the change.
2958         * lib/mbrtowc.c (mbrtowc): Update.
2959         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
2960         * lib/wcwidth.c (wcwidth): Update.
2961         Suggested by Akim Demaille and Jim Meyering.
2962
2963 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2964
2965         regex: fix typo in definition of MIN
2966         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
2967         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
2968
2969 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2970             Bruno Haible  <bruno@clisp.org>
2971
2972         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
2973         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
2974         entries into a stack-allocated buffer directly.
2975         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
2976
2977 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2978             Bruno Haible  <bruno@clisp.org>
2979
2980         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
2981
2982          - There were several instances of this pattern:
2983
2984              for (;;) {
2985                n = acl (f, GETACLCNT, 0, NULL);
2986                [ allocate an array A of size N ]
2987                if (acl (f, GETACL, n, a) == n)
2988                  break;
2989              }
2990
2991            This loop might never terminate if some other process is constantly
2992            manipulating the file's ACL.  The loop should be rewritten to
2993            terminate.
2994
2995          - The acl (... GETACLNT ...) call is merely an optimization; its value
2996            is merely a hint as to how big to make the array.  A better
2997            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
2998            and just guess a reasonably-big size, growing the size and trying
2999            again if it's not large enough.  This guarantees termination, and
3000            saves a system call.
3001
3002         * lib/acl-internal.h: Include <limits.h>.
3003         (MIN, SIZE_MAX): New macros.
3004         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3005         a stack-allocated buffer, and use malloc if it does not fit. Don't
3006         use GETACLCNT.
3007         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3008
3009 2012-02-19  Bruno Haible  <bruno@clisp.org>
3010
3011         acl: Fix endless loop on Solaris with vxfs.
3012         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3013         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3014         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3015         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3016         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3017         Reported by Bill Jones in
3018         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3019
3020 2012-02-19  Bruno Haible  <bruno@clisp.org>
3021
3022         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3023         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3024         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3025         that this function returns 0 in some more cases.
3026
3027 2012-02-19  Bruno Haible  <bruno@clisp.org>
3028
3029         acl: Update doc references.
3030         * doc/acl-resources.txt: Update links to Solaris documentation.
3031
3032 2012-02-19  Bruno Haible  <bruno@clisp.org>
3033
3034         Fix test failure in many locales on Solaris 11.
3035         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3036         'tr' arguments.
3037         * tests/test-pipe-filter-ii1.c (main): Likewise.
3038         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3039         expressions in the C locale.
3040         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3041         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3042
3043 2012-02-19  Bruno Haible  <bruno@clisp.org>
3044
3045         gnulib-tool: Improve usage message.
3046         * gnulib-tool (func_usage): Move doc of --help and --version to the
3047         section "Operation modes".
3048
3049 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3050
3051         README-release: make it easier to execute commands
3052         * top/README-release: break commands out on to separate lines.
3053
3054 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3055
3056         GNUmakefile: simplify detection of unconfigured trees
3057         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3058         whether the tree make is being run from is already configured or
3059         not.  Related simplifications.
3060
3061 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3062
3063         * gnulib-tool (func_usage): Document --help and --version.
3064
3065 2012-02-11  Jim Meyering  <meyering@redhat.com>
3066
3067         bootstrap: don't exit 0 upon gnulib-tool failure
3068         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3069         its exit status, not 0.
3070
3071 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3072
3073         README-release: various improvements
3074         * top/README-release: Give a command to push changes for the
3075         release.  Add "distcheck" to list of other pre-release checks.
3076         Fix instance of "make stable" which should be "make TYPE".
3077
3078 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3079
3080         maint: replace FSF snail-mail addresses with URLs
3081         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3082         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3083         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3084         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3085         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3086         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3087         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3088         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3089         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3090         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3091         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3092         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3093         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3094         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3095         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3096         * lib/glthread/thread.c, lib/glthread/thread.h:
3097         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3098         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3099         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3100         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3101         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3102         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3103         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3104         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3105         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3106         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3107         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3108         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3109         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3110         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3111         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3112         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3113         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3114         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3115         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3116         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3117         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3118         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3119         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3120         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3121         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3122         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3123         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3124         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3125         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3126         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3127         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3128         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3129         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3130         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3131         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3132         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3133         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3134         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3135         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3136         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3137         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3138         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3139         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3140         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3141         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3142         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3143         * tests/test-poll.c, tests/test-quotearg-simple.c:
3144         * tests/test-quotearg.c, tests/test-quotearg.h:
3145         * tests/test-round-ieee.c, tests/test-round1.c:
3146         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3147         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3148         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3149         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3150         * tests/test-strerror.c, tests/test-strerror_r.c:
3151         * tests/test-strsignal.c, tests/test-strverscmp.c:
3152         * tests/test-xmemdup0.c:
3153         Replace FSF snail mail addresses with URLs, as per GNU coding
3154         standards.  See glibc bug
3155         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3156
3157 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3158
3159         README-release: capitalize a word and split a line
3160         * top/README-release: Fix punctuation and spacing.
3161
3162 2012-02-08  Akim Demaille  <demaille@gostai.com>
3163
3164         fatal-signal: use C prototypes (with explicit void).
3165         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3166         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3167
3168 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3169
3170         regex: spelling fix
3171         * lib/regexec.c: spelling fix
3172
3173         regex: rely on stdint.h for SIZE_MAX
3174         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3175
3176 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3177
3178         regex: merge glibc changes
3179
3180         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3181         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3182         (init_word_char): Work even if bitset words are not exactly 32 or
3183         64 bits wide.  Don't assume there are no padding bits.
3184         * lib/regex.c [_LIBC]: Do not include <config.h>.
3185         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3186         and -Wtype-limits.
3187         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3188         needless disagreement with glibc.  All uses changed.  Define it to
3189         1 only if _GNU_SOURCE, to match glibc.
3190         (_REG_RM_NAME): Remove; no longer needed, since the names in
3191         question are now all protected by __USE_GNU.
3192         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3193         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3194         * lib/regex_internal.h (MIN): New macro.
3195
3196         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3197         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3198
3199         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3200         * lib/regex_internal.c (re_string_fetch_byte_case):
3201         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3202         is miscompiled, and it turns out it is because of an incorrect
3203         attribute on re_string_fetch_byte_case.  Unlike
3204         re_string_peek_byte_case, this one is really not pure, it modifies
3205         memory (increments pstr->cur_idx), and with the pure attribute GCC
3206         assumed it doesn't and it cached the presumed value of
3207         regexp->cur_idx in a variable across the
3208          for (;; ++i)
3209            {
3210              if (i >= BRACKET_NAME_BUF_SIZE)
3211                return REG_EBRACK;
3212              if (token->type == OP_OPEN_CHAR_CLASS)
3213                ch = re_string_fetch_byte_case (regexp);
3214              else
3215                ch = re_string_fetch_byte (regexp);
3216              if (re_string_eoi(regexp))
3217                return REG_EBRACK;
3218              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3219                break;
3220              elem->opr.name[i] = ch;
3221            }
3222
3223         2011-11-29 Andreas Schwab <schwab@redhat.com>
3224         * lib/regcomp.c (build_equiv_class):
3225         Fix access after end of search string in regex matcher.
3226
3227         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3228         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3229
3230         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3231         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3232
3233         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3234         * lib/regcomp.c (parse_branch, parse_sub_exp):
3235         More regex memory leak fixes and tests.
3236         (parse_sub_exp, parse_bracket_exp):
3237         Fix memory leak for some invalid regular expressions.
3238
3239         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3240         * lib/regex_internal.c, lib/regexec.c:
3241         Fix unnecessary overallocation due to incomplete character.  When
3242         incomplete characters are found at the end of a string the code
3243         ran amok and allocated lots of memory.  Stricter limits are now in
3244         place.
3245
3246         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3247         * lib/regex.h: Update documentation.
3248
3249         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3250         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3251
3252         2010-05-05 Andreas Schwab <schwab@redhat.com>
3253         * lib/regexec.c (find_collation_sequence_value):
3254         Fix lookup of collation sequence value during regexp matching.
3255
3256         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3257         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3258
3259         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3260         * lib/regex.h: Cleanup namespace.
3261
3262         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3263         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3264
3265         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3266         * lib/regex_internal.h: Prevent some declarations and definitions
3267         to be seen when used in tests.
3268
3269         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3270         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3271         __libc_lock_* macros if not _LIBC.
3272         (struct re_dfa_t): Add lock.
3273
3274 2012-02-07  Eric Blake  <eblake@redhat.com>
3275
3276         maint.mk: also prohibit lower-case @var@
3277         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3278         lower case, like @top_srcdir@.
3279
3280 2012-02-04  Eric Blake  <eblake@redhat.com>
3281
3282         canonicalize: avoid uninitialized memory use
3283         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3284         random '/' left in dest.
3285         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3286
3287 2012-02-04  Bruno Haible  <bruno@clisp.org>
3288
3289         isatty: Fix test failure of ptsname_r on native Windows.
3290         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3291         and don't set errno.
3292         (isatty): Test first whether fd is valid. Set errno when returning 0.
3293
3294 2012-02-04  Bruno Haible  <bruno@clisp.org>
3295
3296         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3297         * tests/test-spawn-pipe-main.c: Include progname.h.
3298         (main): Invoke set_program_name.
3299         * modules/spawn-pipe-tests (Depends-on): Add progname.
3300
3301         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3302         * tests/test-nonblocking-socket-main.c: Include progname.h.
3303         (main): Invoke set_program_name.
3304         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3305
3306         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3307         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3308         (main): Invoke set_program_name.
3309         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3310
3311 2012-02-04  Eric Blake  <eblake@redhat.com>
3312
3313         canonicalize-lgpl: fix // handling
3314         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3315
3316         canonicalize: fix // handling
3317         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3318         /// to //, since only // is special.
3319
3320 2012-02-04  Bruno Haible  <bruno@clisp.org>
3321
3322         ioctl: Fix test failure on native Windows.
3323         * lib/ioctl.c: Include msvc-nothrow.h.
3324         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3325
3326 2012-02-04  Bruno Haible  <bruno@clisp.org>
3327
3328         fsync: Avoid test failure on native Windows.
3329         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3330         read-only.
3331
3332 2012-02-04  Bruno Haible  <bruno@clisp.org>
3333
3334         sys_select: Avoid syntax error on OpenBSD 5.0.
3335         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3336         currently being included, just include the system's <sys/select.h>.
3337
3338 2012-02-04  Bruno Haible  <bruno@clisp.org>
3339
3340         sys_select: Avoid syntax error on OpenBSD 5.0.
3341         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3342         <sys/select.h>, not before.
3343         Reported by Jiri B <jirib@devio.us>.
3344
3345 2012-02-04  Bruno Haible  <bruno@clisp.org>
3346
3347         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3348         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3349         global variables.
3350         * tests/test-get-rusage-data.c (main): Likewise.
3351         Reported by Jim Meyering.
3352
3353 2012-02-04  Bruno Haible  <bruno@clisp.org>
3354
3355         stdioext: Fix last commit.
3356         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3357
3358 2012-02-03  Bruno Haible  <bruno@clisp.org>
3359
3360         stdioext: Add tentative support for Plan9.
3361         * lib/stdio-impl.h: Include <errno.h>.
3362         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3363         * lib/freadable.c (freadable): Likewise.
3364         * lib/fwritable.c (fwritable): Likewise.
3365         * lib/fbufmode.c (fbufmode): Likewise.
3366         * lib/freading.c (freading): Likewise.
3367         * lib/fwriting.c (fwriting): Likewise.
3368         * lib/freadptr.c (freadptr): Likewise.
3369         * lib/freadseek.c (freadptrinc): Likewise.
3370         * lib/freadahead.c (freadahead): Likewise.
3371         * lib/fpurge.c (fpurge): Likewise.
3372         * lib/fseeko.c (rpl_fseeko): Likewise.
3373         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3374         Reported by Jens Staal <staal1978@gmail.com>.
3375
3376 2012-02-02  Jim Meyering  <meyering@redhat.com>
3377
3378         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3379         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3380         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3381         not even to try to add the attribute.  Instead, add a pragma to suppress
3382         the suggestion/warning.
3383
3384 2012-01-31  Karl Berry  <karl@gnu.org>
3385
3386         setstate doc: typo.
3387         * doc/posix-functions/setstate.texi (setstate): { not (.
3388
3389 2012-01-31  Bruno Haible  <bruno@clisp.org>
3390
3391         popen: Make more robust on Windows.
3392         * lib/popen.c: On native Windows, use the _popen based code even if
3393         HAVE_POPEN is set.
3394         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3395         environment variable on native Windows.
3396
3397 2012-01-30  Bruno Haible  <bruno@clisp.org>
3398
3399         pclose: Fix typo.
3400         * lib/stdio.in.h (pclose): Fix typo in warning message.
3401
3402 2012-01-30  Bruno Haible  <bruno@clisp.org>
3403
3404         doc about getlogin_r, setstate.
3405         * doc/posix-functions/getlogin_r.texi: List the incompatible
3406         declaration problem under "not fixed by gnulib".
3407         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3408         problem on Solaris 11 and other platforms.
3409
3410 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3411             Bruno Haible  <bruno@clisp.org>
3412
3413         poll tests: Make test more robust.
3414         * tests/test-poll.c: Include macros.h.
3415         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3416         return value of various I/O operations.
3417         * modules/poll-tests (Files): Add tests/macros.h.
3418
3419 2012-01-30  Bruno Haible  <bruno@clisp.org>
3420
3421         sys_stat: Fix support for mingw64 and MSVC.
3422         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3423         header files already do it.
3424         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3425         stat itself.
3426         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3427
3428 2012-01-30  Bruno Haible  <bruno@clisp.org>
3429
3430         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3431         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3432         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3433
3434 2012-01-29  Bruno Haible  <bruno@clisp.org>
3435
3436         quotearg: Fix test failure on MacOS X 10.5.
3437         * tests/test-quotearg-simple.c: Include localcharset.h.
3438         (main): If the locale encoding is not ASCII, bypass the tests of
3439         locale_quoting_style and clocale_quoting_style.
3440         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3441
3442 2012-01-29  Jim Meyering  <meyering@redhat.com>
3443
3444         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3445         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3446         detect uses of canonicalize_file_name.
3447
3448 2012-01-28  Bruno Haible  <bruno@clisp.org>
3449
3450         test-framework-sh: Fix test failure with AIX 7.1 diff.
3451         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3452         in column 1, like 'diff -c' does.
3453         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3454         whether 'diff -u' is used. Instead, test whether the output contains
3455         some '@' character.
3456
3457 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3458
3459         strtoimax: eliminate need for stdint.h, inttypes.h checks
3460         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3461         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3462         the prerequisites for a recently-introduced strtoimax test.
3463         I guess this might cause strtoimax to be replaced when not
3464         strictly necessary on older hosts, but this shouldn't introduce
3465         any bugs and it should make Emacs 'configure' faster on typical
3466         modern hosts.  Problem discovered when importing the latest gnulib
3467         to an Emacs test version.
3468         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3469
3470 2012-01-28  Bruno Haible  <bruno@clisp.org>
3471
3472         sys_time: Override 'struct timeval' on some native Windows platforms.
3473         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3474         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3475         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3476         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3477         needs to be overridden.
3478         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3479         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3480         * tests/test-sys_select.c: Check that the tv_sec member has the same
3481         size as a 'time_t'.
3482         * tests/test-sys_time.c: Likewise.
3483         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3484         is set, set also REPLACE_GETTIMEOFDAY.
3485         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3486         convert the resulting 'struct timeval' before returning.
3487         * lib/select.c: Include <sys/time.h>.
3488         (select, timeval): Undefine at the right place.
3489         * modules/select (Depends-on): Add sys_time.
3490         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3491         some Windows platforms.
3492         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3493
3494 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3495
3496         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3497         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3498         an integer.
3499         * lib/fcntl.c (dupfd): Likewise.
3500         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3501
3502 2012-01-28  Bruno Haible  <bruno@clisp.org>
3503
3504         fcntl: Avoid compilation error on native Windows.
3505         * modules/fcntl (Depends-on): Add 'close'.
3506
3507 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3508
3509         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3510         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3511         pointer to an integer.
3512         * lib/poll.c (IsConsoleHandle): Likewise.
3513         * lib/isatty.c (IsConsoleHandle): Likewise.
3514
3515 2012-01-28  Jim Meyering  <meyering@redhat.com>
3516
3517         doc: clarify README-release
3518         * top/README-release: Clarify: you should make a point to have
3519         the latest stable versions of build tools in your PATH, and the
3520         reference to buildreq is solely for its list of tool names, not
3521         for its minimal-functional version numbers.
3522         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3523
3524         maint.mk: use more readable (yet functionally equivalent) quoting
3525         It is common to quote a single quote in a single quoted string like
3526         this:  '...'\''...'.  Unless you know the idiom, that looks like
3527         gibberish, so prefer to double-quote the string when possible.
3528         Then you can use a more readable, lone single quote: "...'..."
3529         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3530         "don't" is more readable than the equivalent 'don'\''t'.
3531         (sc_cast_of_x_alloc_return_value): Likewise.
3532         (sc_cast_of_alloca_return_value): Likewise.
3533         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3534         rather than '\'':'\''.
3535
3536 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3537
3538         stdalign: relax _Alignof and tighten _Alignas test
3539         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3540         as it was too strict: alignof must divide offsetof, but it need
3541         not equal offsetof.  Inspired by Joseph S. Myers's comment
3542         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3543         Conversely, tighten the _Alignas test a bit, as the resulting
3544         alignment must be exactly 8.
3545
3546 2012-01-27  Bruno Haible  <bruno@clisp.org>
3547
3548         stdalign: Document the last change.
3549         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3550
3551 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3552
3553         stdalign: check that alignof and offsetof are consistent
3554         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3555         Problem reported for gnulib by Richard W.M. Jones in
3556         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3557
3558 2012-01-27  Jim Meyering  <meyering@redhat.com>
3559
3560         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3561         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3562         convert a sequence with gaps to the minimal containing range.
3563         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3564         * tests/test-update-copyright.sh: Test for this.
3565         The FSF confirmed it is ok to do this, assuming there is at
3566         least one significant change per year in the affected range:
3567         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3568
3569 2012-01-26  Bruno Haible  <bruno@clisp.org>
3570
3571         pipe2: refine doc about thread-safety
3572         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3573         multithread-safety problem.
3574         * doc/glibc-functions/accept4.texi: Likewise.
3575
3576 2012-01-26  Bruno Haible  <bruno@clisp.org>
3577
3578         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3579         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3580         In the test program, include <fcntl.h>, for O_RDONLY.
3581
3582 2012-01-26  Eric Blake  <eblake@redhat.com>
3583
3584         pipe2: document lack of thread-safety in replacement
3585         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3586         issue in replacement.
3587         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3588         Based on a report by Eric Wong.
3589
3590 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3591             Bruno Haible  <bruno@clisp.org>
3592
3593         malloca: Avoid warnings on x86_64 mingw64.
3594         * lib/malloca.c: Include <stdint.h>.
3595         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3596         * modules/malloca (Depends-on): Add stdint.
3597         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3598
3599 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3600
3601         obstack: remove __STDC__ conditionals
3602         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3603         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3604         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3605         m4/include_next.m4 as the only gnulib-maintained places that still
3606         refer to __STDC__.
3607
3608 2012-01-24  Bruno Haible  <bruno@clisp.org>
3609
3610         havelib: Modern quoting.
3611         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3612         the recent change to the GNU coding standards.
3613
3614 2012-01-24  Bruno Haible  <bruno@clisp.org>
3615
3616         stdint: Improve support for Android.
3617         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3618         Reported by Simon Josefsson <simon@josefsson.org>.
3619
3620 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3621
3622         doc: omit trailing empty lines from INSTALL etc.
3623         * doc/Makefile (INSTALL): Omit trailing empty lines.
3624         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3625         omit trailing empty lines.  This simplifies the build procedure.
3626
3627 2012-01-23  Jim Meyering  <meyering@redhat.com>
3628
3629         tests: avoid spurious warnings about gl_sockets_startup
3630         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3631         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3632         reporting a "statement with no effect".
3633         * tests/test-accept.c (main): Mark as "(void)".
3634         * tests/test-accept4.c (main): Likewise.
3635         * tests/test-bind.c (main): Likewise.
3636         * tests/test-connect.c (main): Likewise.
3637         * tests/test-getpeername.c (main): Likewise.
3638         * tests/test-getsockname.c (main): Likewise.
3639         * tests/test-getsockopt.c (main): Likewise.
3640         * tests/test-listen.c (main): Likewise.
3641         * tests/test-recv.c (main): Likewise.
3642         * tests/test-recvfrom.c (main): Likewise.
3643         * tests/test-send.c (main): Likewise.
3644         * tests/test-sendto.c (main): Likewise.
3645         * tests/test-setsockopt.c (main): Likewise.
3646         * tests/test-shutdown.c (main): Likewise.
3647
3648 2012-01-21  Bruno Haible  <bruno@clisp.org>
3649
3650         locale-fr.m4: Fix for Android.
3651         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3652         failure of the test program on Bionic libc.
3653
3654 2012-01-21  Jim Meyering  <meyering@redhat.com>
3655
3656         bootstrap: fail when bootstrap_post_import_hook fails
3657         Otherwise, it's far too easy to miss diagnostics emitted
3658         between gnulib-tool's output and that of running configure.
3659         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3660
3661 2012-01-17  Jim Meyering  <meyering@redhat.com>
3662
3663         maint: enable sc_trailing_blank
3664         * build-aux/pmccabe.css: Remove trailing blanks.
3665         * doc/acl-cygwin.txt: Likewise.
3666         * doc/gnu-oids.texi: Likewise
3667         * cfg.mk: Enable sc_trailing_blank.
3668         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3669
3670 2012-01-17  Jim Meyering  <meyering@redhat.com>
3671
3672         maint: enable sc_prohibit_openat_without_use
3673         * cfg.mk: Enable sc_prohibit_openat_without_use.
3674         Exempt lib/selinux-at.c.
3675
3676 2012-01-17  Jim Meyering  <meyering@redhat.com>
3677
3678         maint: enable sc_prohibit_cloexec_without_use
3679         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3680         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3681
3682 2012-01-17  Jim Meyering  <meyering@redhat.com>
3683
3684         maint: enable sc_prohibit_intprops_without_use
3685         * cfg.mk: Enable sc_prohibit_intprops_without_use
3686         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3687
3688 2012-01-17  Jim Meyering  <meyering@redhat.com>
3689
3690         maint: enable sc_prohibit_hash_pjw_without_use
3691         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3692         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3693         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3694         following " (".
3695
3696 2012-01-17  Jim Meyering  <meyering@redhat.com>
3697
3698         maint: enable double-word-prohibiting rule
3699         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3700         Exempt three files.
3701
3702 2012-01-17  Jim Meyering  <meyering@redhat.com>
3703
3704         maint: remove empty lines at EOF, but excluding modules/*
3705         Apply syntax rules at home as well as abroad.  Most changes
3706         were induced by running this:
3707           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3708             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3709             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3710         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3711         Exempt modules/* and two binary files.
3712         Also exempt doc/INSTALL*, per request from Bruno Haible.
3713         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3714         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3715         * doc/Copyright/request-assign.future: Likewise.
3716         * doc/Copyright/request-disclaim.changes: Likewise.
3717         * doc/INSTALL: Likewise.
3718         * doc/INSTALL.ISO: Likewise.
3719         * doc/INSTALL.UTF-8: Likewise.
3720         * doc/acl-cygwin.txt: Likewise.
3721         * doc/acl-resources.txt: Likewise.
3722         * doc/fdl-1.2.texi: Likewise.
3723         * doc/fdl-1.3.texi: Likewise.
3724         * doc/fdl.texi: Likewise.
3725         * lib/argp-pin.c: Likewise.
3726         * lib/round.c: Likewise.
3727         * lib/unicase/u16-totitle.c: Likewise.
3728         * lib/unictype/block_test.c: Likewise.
3729         * lib/uninorm/canonical-decomposition.c: Likewise.
3730         * m4/README: Likewise.
3731         * m4/relocatable-lib.m4: Likewise.
3732         * tests/test-isnand-nolibm.c: Likewise.
3733         * tests/test-isnand.c: Likewise.
3734         * tests/uninorm/NormalizationTest.txt: Likewise.
3735
3736 2012-01-17  Jim Meyering  <meyering@redhat.com>
3737
3738         maint: add framework to run syntax-check rules against gnulib sources
3739         * cfg.mk: New file, to disable all currently-failing tests.
3740         We'll enable them one by one, as they are made to pass.
3741         * Makefile (sc_maint): New rule.
3742
3743 2012-01-21  Bruno Haible  <bruno@clisp.org>
3744
3745         stdint: Add support for Android.
3746         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3747         include the system's <stdint.h>.
3748         Reported by Simon Josefsson <simon@josefsson.org>.
3749
3750 2012-01-19  Jim Meyering  <meyering@redhat.com>
3751
3752         bootstrap: add bootstrap_post_import_hook
3753         Bison does still need something like the gnulib_mk_hook whose
3754         invocation I had to remove along with slurp in commit 767ccd40.
3755         Technically, we could get along without it, but doing so would
3756         have required living with a warning and a mandatory post-bootstrap
3757         automake rerun.
3758         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3759         (bootstrap_post_import_hook): New function.
3760         Invoke it after gnulib-tool --import and before autoreconf.
3761
3762 2012-01-18  Jim Meyering  <meyering@redhat.com>
3763
3764         gitlog-to-changelog: don't use "no_"-prefixed variable name
3765         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3766         to enable both --cluster and --no-cluster.  Change variable name,
3767         s/\$no_cluster/$cluster/, and reverse usage to match.
3768
3769         gitlog-to-changelog: use "||", not "or" in expressions
3770         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3771         expressions.
3772
3773 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3774
3775         gitlog-to-changelog: new option --no-cluster
3776         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3777         clustering of adjacent commit messages.
3778
3779 2012-01-17  Jim Meyering  <meyering@redhat.com>
3780
3781         maint: spell file systems with two words, not one
3782         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3783         two words, not one.
3784
3785 2012-01-16  Jim Meyering  <meyering@redhat.com>
3786
3787         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3788         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3789
3790 2012-01-16  Eric Blake  <eblake@redhat.com>
3791
3792         bootstrap: cater to autoconf 2.59
3793         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3794         is not available.
3795
3796         bootstrap: properly check for libtool
3797         * build-aux/bootstrap (libtoolize): Also run libtool when older
3798         usage is detected.
3799
3800 2012-01-15  Bruno Haible  <bruno@clisp.org>
3801
3802         Improve support for MSVC 9.
3803         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3804         clashes on MSVC.
3805         * lib/fcntl.in.h: Likewise.
3806         * lib/stdlib.in.h: Likewise.
3807         * lib/sys_stat.in.h: Likewise.
3808
3809 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3810
3811         gnupload: we hold the master copy of this script now
3812         For motivation and more information, see:
3813         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3814         * build-aux/gnupload: Make it clear in the heading comments that the
3815         master copy of this file is maintained by gnulib.  Since we are at
3816         it, bump its copyright year and ...
3817         ($scriptversion): ... the date in its version.
3818         ($usage): Patches and bug reports should be sent to the gnulib list,
3819         not the automake one.
3820         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3821         anymore.
3822
3823 2012-01-15  Bruno Haible  <bruno@clisp.org>
3824
3825         Fix module 'random'.
3826         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3827         initstate, setstate are declared.
3828
3829 2012-01-14  Bruno Haible  <bruno@clisp.org>
3830
3831         Tests for module 'random'.
3832         * modules/random-tests: New file.
3833         * tests/test-random.c: New file, based on tests/test-random_r.c.
3834
3835         New module 'random'.
3836         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3837         declarations.
3838         * lib/random.c: New file, based on glibc/stdlib/random.c.
3839         * m4/random.m4: New file.
3840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3841         HAVE_RANDOM.
3842         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3843         * modules/random: New file.
3844         * config/srclist.txt: Add an entry for random.c.
3845         * doc/posix-functions/random.texi: Mention the 'random' module.
3846         * doc/posix-functions/initstate.texi: Likewise.
3847         * doc/posix-functions/setstate.texi: Likewise.
3848         * doc/posix-functions/srandom.texi: Likewise.
3849
3850 2012-01-12  Bruno Haible  <bruno@clisp.org>
3851
3852         random_r: Use common idioms.
3853         * lib/random_r.c: Include <stdlib.h> first.
3854
3855         random_r: Override incompatible API on AIX, OSF/1.
3856         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3857         Override the system function if REPLACE_RANDOM_R is 1.
3858         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3859         and OSF/1, set REPLACE_RANDOM_R.
3860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3861         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3862         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3863         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3864         * doc/glibc-functions/random_r.texi: Likewise.
3865         * doc/glibc-functions/setstate_r.texi: Likewise.
3866
3867         random_r: Support for MSVC 9.
3868         * lib/random_r.c: Include stdint.h, not inttypes.h.
3869
3870 2012-01-12  Eric Blake  <eblake@redhat.com>
3871
3872         inet_ntop: guard extra work by IF_LINT
3873         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3874         better code generation when not checking for warnings.
3875         Suggested by Paul Eggert and Jim Meyering.
3876
3877         strptime: fix regression on mingw
3878         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3879         Fix regression.  Reported by Bruno Haible.
3880
3881 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3882             Bruno Haible  <bruno@clisp.org>
3883
3884         copy-file: add error-code-returning variant.
3885         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3886         (qcopy_file_preserving): New declaration.
3887         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3888         copy_file_preserving. Change return type to 'int'. Don't emit an error
3889         message here.
3890         (copy_file_preserving): New function.
3891         * tests/test-copy-file.c: Include <stdlib.h>.
3892         (main): Test qcopy_file_preserving if the environment variable
3893         NO_STDERR_OUTPUT is set.
3894         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3895         with NO_STDERR_OUTPUT
3896         * tests/test-copy-file-2.sh: Likewise.
3897
3898 2012-01-10  Bruno Haible  <bruno@clisp.org>
3899
3900         copy-file: Use 'quote' module consistently.
3901         * lib/copy-file.c (copy_file_preserving): Use quote().
3902
3903         copy-file: Refactor.
3904         * lib/copy-file.c: Include quote.h.
3905         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3906         message here.
3907         * modules/copy-file (Depends-on): Add quote.
3908
3909         acl: Export qcopy_acl.
3910         * lib/acl.h (qcopy_acl): New declaration.
3911         * lib/copy-acl.c (qcopy_acl): Make non-static.
3912
3913         acl: Rename a local variable.
3914         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3915
3916         acl: Align return values of copy_acl and qcopy_acl.
3917         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3918         maybe < -1.
3919
3920 2012-01-11  Eric Blake  <eblake@redhat.com>
3921
3922         strptime: silence gcc warnings
3923         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3924         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3925         Reported by Daniel P. Berrange.
3926
3927         inet_ntop: silence gcc warning
3928         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
3929         Reported by Daniel P. Berrange.
3930
3931 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
3932
3933         getloadavg test: skip the test on GNU/Linux without /proc mounted
3934         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
3935         file.  When /proc is not mounted, it always fails with ENOENT.
3936         * tests/test-getloadavg.c (main): Treat ENOENT return code from
3937         getloadavg(3) the same way as ENOSYS and ENOTSUP.
3938
3939 2012-01-10  Bruno Haible  <bruno@clisp.org>
3940
3941         regex: Avoid link error on MSVC 9.
3942         * modules/regex (Depends-on): Add wctype.
3943
3944 2012-01-10  Bruno Haible  <bruno@clisp.org>
3945
3946         doc: Mention --with-tests option.
3947         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
3948         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
3949         --with-tests.
3950         Reported by Reuben Thomas.
3951
3952 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
3953
3954         users.txt: order package names lexicographically.
3955         * users.txt: Order package names lexicographically.
3956
3957 2012-01-10  Jim Meyering  <meyering@redhat.com>
3958
3959         maint.mk: fix description in comment
3960         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
3961
3962         ignore-value: remove deprecated ignore_ptr function
3963         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
3964         * NEWS: Note this.
3965
3966 2012-01-09  Jim Meyering  <meyering@redhat.com>
3967
3968         test-init.sh: avoid a subshell
3969         * tests/test-init.sh: Remove protective subshell.
3970         Suggested by Bernhard Voelker.  While a subshell is normally
3971         required to protect against older shells (Solaris, FreeBSD) that
3972         warn about a missing program before performing redirection, the
3973         shell-selection tests performed by init.sh probably exclude any
3974         offending shell.
3975
3976 2012-01-08  Bruno Haible  <bruno@clisp.org>
3977
3978         setlocale tests: Avoid test failure on Solaris 11 2011-11.
3979         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
3980         variable.
3981
3982 2012-01-08  Bruno Haible  <bruno@clisp.org>
3983
3984         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
3985         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3986         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3987         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
3988         macro.
3989         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
3990         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3991         * lib/spawn_faction_addopen.c: Add workaround implementation if
3992         HAVE_WORKING_POSIX_SPAWN.
3993         * modules/spawn (Makefile): Substitute
3994         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3995         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
3996         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
3997         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3998         (Depends-on): Update conditions.
3999         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4000         the Solaris 11 bug.
4001
4002 2012-01-08  Bruno Haible  <bruno@clisp.org>
4003
4004         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4005         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4006         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4007         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4008         macro.
4009         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4010         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4011         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4012         HAVE_WORKING_POSIX_SPAWN.
4013         * modules/spawn (Makefile): Substitute
4014         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4015         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4016         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4017         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4018         (Depends-on): Update conditions.
4019         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4020         the Solaris 11 bug.
4021
4022 2012-01-08  Bruno Haible  <bruno@clisp.org>
4023
4024         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4025         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4026         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4027         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4028         HAVE_WORKING_POSIX_SPAWN.
4029         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4030         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4031         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4032         * lib/spawn_faction_addclose.c: Add workaround implementation if
4033         HAVE_WORKING_POSIX_SPAWN.
4034         * modules/spawn (Makefile): Substitute
4035         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4036         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4037         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4038         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4039         (Depends-on): Update conditions.
4040         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4041         the Solaris 11 bug.
4042
4043 2012-01-08  Bruno Haible  <bruno@clisp.org>
4044
4045         doc: Update for Solaris 11 2011-11.
4046         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4047         * m4/printf.m4: Update comments.
4048
4049 2012-01-08  Bruno Haible  <bruno@clisp.org>
4050
4051         mktime: Avoid compilation error on Solaris 11.
4052         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4053
4054 2012-01-08  Bruno Haible  <bruno@clisp.org>
4055
4056         doc: Small fix.
4057         * doc/posix-headers/nl_types.texi: Correct platforms list.
4058
4059 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4060
4061         Add lgpl-3.0 module.
4062         * MODULES.html.sh (Support for building documentation): Add
4063         lgpl-3.0.
4064         * modules/lgpl-3.0: New file.
4065
4066 2012-01-08  Jim Meyering  <meyering@redhat.com>
4067
4068         select.c: indent with spaces, not TABs
4069         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4070
4071 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4072
4073         quotearg: do not use grave accent for left quote
4074         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4075         locale_quoting_style.
4076         (quotearg_buffer_restyled): Fix example.
4077         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4078
4079 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4080
4081         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4082         Most programs do not have translation catalogs for English and much
4083         less separate catalogs for British and American English.  Drop the
4084         suggestion to translators about these two, and provide it
4085         automatically for Unicode locales.  Like most programs, even those
4086         using American English, we use single quotation marks.  This conflicts
4087         with the American typographic convention, but works better when you
4088         cite the entire error message within double quotes.  It also tries not
4089         to clash with established practice and with what non-gnulib programs
4090         will usually do.
4091         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4092         using an UTF-8 or GB-18030 locale.  The list of other locales with
4093         quotes was provided by Bruno Haible.
4094         (quotearg_buffer_restyled): Adjust instructions to translators.
4095         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4096         text, since this would be wrong when using Unicode.
4097         * modules/quotearg: Depend on c-strcaseeq.
4098
4099 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4100
4101         quotearg: fix Wikipedia link
4102         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4103
4104 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4105
4106         Fix for mingw with MSVC9.
4107         * m4/ld-version-script.m4: Check that compiler rejects version
4108         scripts with syntax errors.  Reported by Bruno Haible
4109         <bruno@clisp.org>.
4110
4111 2012-01-06  Bruno Haible  <bruno@clisp.org>
4112
4113         Talk about "native Windows API", not "Woe32".
4114         * lib/accept4.c: Update comments to mention native Windows.
4115         * lib/execute.c: Likewise.
4116         * lib/fatal-signal.c: Likewise.
4117         * lib/localcharset.c: Likewise.
4118         * lib/nanosleep.c: Likewise.
4119         * lib/nl_langinfo.c: Likewise.
4120         * lib/pclose.c: Likewise.
4121         * lib/pipe-filter-gi.c: Likewise.
4122         * lib/pipe-filter-ii.c: Likewise.
4123         * lib/pipe.c: Likewise.
4124         * lib/pipe2.c: Likewise.
4125         * lib/popen.c: Likewise.
4126         * lib/progreloc.c: Likewise.
4127         * lib/relocatable.c: Likewise.
4128         * lib/sigaction.c: Likewise.
4129         * lib/sigprocmask.c: Likewise.
4130         * lib/spawn-pipe.h: Likewise.
4131         * lib/spawn-pipe.c: Likewise.
4132         * lib/spawni.c: Likewise.
4133         * lib/stat-time.h: Likewise.
4134         * lib/w32spawn.h: Likewise.
4135         * tests/test-isatty.c: Likewise.
4136         * lib/config.charset: More comments.
4137         * doc/gnulib-intro.texi: Mention native Windows.
4138         * doc/posix-functions/_Exit_C99.texi: Likewise.
4139         * doc/posix-headers/fcntl.texi: Likewise.
4140
4141 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4142
4143         argp: Avoid crash if translator uses % characters in a translation.
4144         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4145         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4146
4147 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4148
4149         doc: C11 and C++11 are now official
4150         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4151         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4152         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4153         * modules/stdalign:
4154         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4155
4156 2012-01-06  Bruno Haible  <bruno@clisp.org>
4157
4158         uc-is-grapheme-break tests: Tweak.
4159         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4160         message.
4161
4162 2012-01-06  Bruno Haible  <bruno@clisp.org>
4163
4164         test-init.sh: correct the test for diff -u
4165         * tests/test-init.sh: Also redirect stdout to /dev/null.
4166
4167 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4168
4169         Use ', not `, for quoting output.
4170         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4171         (print_changelog_deltas, get_tool_versions, main program):
4172         * build-aux/git-version-gen:
4173         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4174         * build-aux/move-if-change (help):
4175         * build-aux/useless-if-before-free (usage, main program):
4176         * check-module (parse_module_file, usage)
4177         (find_included_lib_files, check_module):
4178         * lib/argmatch.c (main) [TEST]:
4179         * lib/argp-help.c (_help):
4180         * lib/getopt1.c (main) [TEST]:
4181         * lib/git-merge-changelog.c (usage):
4182         * lib/xstrtol-error.c (xstrtol_error):
4183         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4184         * m4/argz.m4 (gl_FUNC_ARGZ):
4185         * m4/bison.m4 (gl_BISON):
4186         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4187         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4188         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4189         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4190         * m4/gc-random.m4 (gl_GC_RANDOM):
4191         * m4/intl.m4 (gt_CHECK_DECL):
4192         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4193         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4194         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4195         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4196         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4197         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4198         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4199         * tests/test-dirname.c (main):
4200         * tests/test-getpass.c (main):
4201         * tests/test-iconvme.c (main):
4202         * tests/test-parse-datetime.c (LOG):
4203         * tests/test-xstrtoimax.sh:
4204         * tests/test-xstrtol.sh:
4205         * tests/test-xstrtoll.sh:
4206         * tests/test-xstrtoumax.sh:
4207         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4208         * top/GNUmakefile (abort-due-to-no-makefile):
4209         Quote 'like this', not `like this', as per the recent change to
4210         the GNU coding standards.
4211
4212 2012-01-05  Bruno Haible  <bruno@clisp.org>
4213
4214         strtoimax: Don't force a replacement on systems where intmax_t is int.
4215         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4216         'intmax_t' is not larger than 'int'.
4217         Reported by Pádraig Brady <P@draigBrady.com>.
4218
4219 2012-01-05  Bruno Haible  <bruno@clisp.org>
4220
4221         doc: Mention NetBSD bugs.
4222         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4223         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4224
4225 2012-01-05  Bruno Haible  <bruno@clisp.org>
4226
4227         strtoumax tests: Enhance tests.
4228         * tests/test-strtoumax.c (main): Add tests for large values.
4229
4230 2012-01-05  Bruno Haible  <bruno@clisp.org>
4231
4232         strtoimax: Work around AIX 5.1 bug.
4233         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4234         definition.
4235         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4236         Set HAVE_STRTOIMAX.
4237         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4238         REPLACE_STRTOIMAX.
4239         * modules/inttypes-incomplete (Makefile.am): Substitute
4240         REPLACE_STRTOIMAX.
4241         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4242         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4243         (Depends-on): Update conditions.
4244         * tests/test-strtoimax.c (main): Add tests for large values.
4245         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4246
4247 2012-01-05  Bruno Haible  <bruno@clisp.org>
4248
4249         inttypes: Modernize.
4250         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4251         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4252         (Makefile.am): Update inttypes.h rule.
4253
4254 2012-01-05  Jim Meyering  <meyering@redhat.com>
4255
4256         init.sh: don't waste a subshell just to redirect stderr
4257         * tests/init.sh: In testing for diff -u and diff -c, use a
4258         stderr-redirecting exec inside `...` rather than a subshell.
4259
4260         test-init.sh: avoid failure on HP-UX 11.00
4261         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4262         resolves to diff -c or cmp.  Reported by Bruno Haible.
4263
4264 2012-01-05  Bruno Haible  <bruno@clisp.org>
4265
4266         Tests for module 'strtoull'.
4267         * modules/strtoull-tests: New file.
4268         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4269
4270 2012-01-05  Bruno Haible  <bruno@clisp.org>
4271
4272         Tests for module 'strtoll'.
4273         * modules/strtoll-tests: New file.
4274         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4275
4276 2012-01-05  Bruno Haible  <bruno@clisp.org>
4277
4278         Tests for module 'strtoul'.
4279         * modules/strtoul-tests: New file.
4280         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4281
4282 2012-01-05  Bruno Haible  <bruno@clisp.org>
4283
4284         Tests for module 'strtol'.
4285         * modules/strtol-tests: New file.
4286         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4287
4288 2012-01-04  Jim Meyering  <meyering@redhat.com>
4289
4290         test-init.sh: accommodate Solaris 5.10's different diff -u output
4291         * tests/test-init.sh: Also exempt @@ lines from the comparison
4292         of diff output, since Solaris 5.10 and GNU diff formats differ.
4293         Reported by Stefano Lattarini.
4294
4295 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4296
4297         test-posixtm: don't assume signed integer wraparound
4298         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4299         after signed integer overflow.  Inspired by (though it may not
4300         fix) Bruno Haible's bug report in
4301         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4302
4303         Spell out "Windows 9x" and "Windows XP".
4304         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4305         "Windows 9x" and "WinXP" with "Windows XP".
4306
4307 2012-01-04  Jim Meyering  <meyering@redhat.com>
4308
4309         test-vc-list-files-cvs.sh: remove obsolete comment
4310         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4311         double exit.  Now that's all encapsulated via skip_ and Exit.
4312
4313 2012-01-04  Bruno Haible  <bruno@clisp.org>
4314
4315         Talk about "native Windows API", not "Win32".
4316         * lib/classpath.c: Update comments to mention native Windows.
4317         * lib/csharpexec.c: Likewise.
4318         * lib/dup2.c: Likewise.
4319         * lib/error.c: Likewise.
4320         * lib/fcntl.c: Likewise.
4321         * lib/filename.h: Likewise.
4322         * lib/findprog.c: Likewise.
4323         * lib/get-rusage-as.c: Likewise.
4324         * lib/get-rusage-data.c: Likewise.
4325         * lib/getpagesize.c: Likewise.
4326         * lib/javaexec.c: Likewise.
4327         * lib/msvc-inval.c: Likewise.
4328         * lib/msvc-nothrow.c: Likewise.
4329         * lib/nanosleep.c: Likewise.
4330         * lib/nonblocking.c: Likewise.
4331         * lib/printf-parse.c: Likewise.
4332         * lib/setlocale.c: Likewise.
4333         * lib/sigaction.c: Likewise.
4334         * lib/strerror_r.c: Likewise.
4335         * lib/tmpdir.c: Likewise.
4336         * lib/vasnprintf.c: Likewise.
4337         * lib/w32spawn.h: Likewise.
4338         * lib/waitpid.c: Likewise.
4339         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4340         * m4/locale-ar.m4: Likewise.
4341         * m4/locale-fr.m4: Likewise.
4342         * m4/locale-ja.m4: Likewise.
4343         * m4/locale-tr.m4: Likewise.
4344         * m4/locale-zh.m4: Likewise.
4345         * m4/printf.m4: Likewise.
4346         * tests/test-cloexec.c: Likewise.
4347         * tests/test-copy-acl.sh: Likewise.
4348         * tests/test-copy-file.sh: Likewise.
4349         * tests/test-file-has-acl.sh: Likewise.
4350         * tests/test-set-mode-acl.sh: Likewise.
4351         * tests/test-dup-safer.c: Likewise.
4352         * tests/test-dup2.c: Likewise.
4353         * tests/test-dup3.c: Likewise.
4354         * tests/test-fcntl.c: Likewise.
4355         * tests/test-nonblocking-pipe.h: Likewise.
4356         * tests/test-nonblocking-socket.h: Likewise.
4357         * tests/test-pipe.c: Likewise.
4358         * tests/test-pipe2.c: Likewise.
4359         * tests/test-spawn-pipe-child.c: Likewise.
4360         * doc/acl-resources.txt: Likewise.
4361         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4362         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4363         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4364         * lib/localcharset.c: Update comments to mention native Windows.
4365         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4366         * lib/localename.c: Likewise.
4367         * lib/progreloc.c: Likewise.
4368         * lib/relocatable.c: Likewise.
4369         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4370         (windows_compute_revents): Renamed from win32_compute_revents.
4371         (windows_compute_revents_socket): Renamed from
4372         win32_compute_revents_socket.
4373         * lib/select.c: Update comments to mention native Windows.
4374         (windows_poll_handle): Renamed from win32_poll_handle.
4375         * m4/threadlib.m4: Update comments to mention native Windows.
4376         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4377         --enable-threads=windows instead of --enable-threads=win32. Set
4378         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4379         * lib/glthread/lock.h: Update comments to mention native Windows.
4380         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4381         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4382         USE_WIN32_THREADS.
4383         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4384         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4385         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4386         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4387         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4388         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4389         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4390         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4391         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4392         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4393         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4394         * tests/test-tls.c: Likewise.
4395         Rationale:
4396         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4397         on both 32-bit and 64-bit Windows systems.
4398         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4399         line of distinction is between "native Windows" on one side and Unix/
4400         POSIX systems on the other side. More details in
4401         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4402         Suggested by Paul Eggert.
4403
4404 2012-01-03  Bruno Haible  <bruno@clisp.org>
4405
4406         isatty: Support for MSVC 9.
4407         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4408         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4409         (_isatty_nothrow): New function.
4410         (isatty): Use it instead of _isatty.
4411         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4412         * lib/poll.c (IsConsoleHandle): Likewise.
4413         * lib/select.c (IsConsoleHandle): Likewise.
4414         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4415         (gl_PREREQ_ISATTY): New macro.
4416         * modules/isatty (Depends-on): Add msvc-inval.
4417         (configure.ac): Invoke gl_PREREQ_ISATTY.
4418
4419 2012-01-03  Jim Meyering  <meyering@redhat.com>
4420
4421         maint.mk: remove temporary transition aid from over 1.5 years ago
4422         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4423         purpose was to aid in the transition (avoiding silent malfunction)
4424         from that old name to the new _sc_search_regexp.  This shim was
4425         added by commit 219c504b.
4426
4427         init.sh: do not try to accommodate compare arguments starting with "-"
4428         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4429         compare arguments that start with "-".  Besides, we do not worry
4430         about this when invoking diff or cmp; why start now with sed?
4431         Using "--" to separate options from argument would trigger sed
4432         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4433         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4434
4435 2012-01-02  Bruno Haible  <bruno@clisp.org>
4436
4437         Enhance tests for module 'isatty'.
4438         * modules/isatty-tests (Depends-on): Add pipe-posix.
4439         * tests/test-isatty.c: Include <fcntl.h>.
4440         (DEV_NULL): New macro.
4441         (main): Test the resut of isatty() also on regular files, pipes, and
4442         /dev/null.
4443
4444         New module 'isatty'.
4445         * lib/unistd.in.h (isatty): New declaration.
4446         * lib/isatty.c: New file, based on an idea of
4447         Bastien Roucariès <roucaries.bastien@gmail.com>.
4448         * m4/isatty.m4: New file.
4449         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4450         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4451         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4452         REPLACE_ISATTY.
4453         * modules/isatty: New file.
4454         * doc/posix-functions/isatty.texi: Mention the new module.
4455         Suggested by Paolo Bonzini.
4456
4457 2012-01-02  Bruno Haible  <bruno@clisp.org>
4458
4459         canonicalize: Tweak 2011-12-29 commit.
4460         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4461         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4462
4463 2012-01-02  Jim Meyering  <meyering@redhat.com>
4464
4465         gitlog-to-changelog: describe input syntax in --help output
4466         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4467
4468         gitlog-to-changelog: fix typo in --help: show backslash before email @
4469         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4470         in sources, but not in actual output.
4471
4472 2011-12-30  Jim Meyering  <meyering@redhat.com>
4473
4474         gitlog-to-changelog: don't malfunction when name contains %-directive
4475         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4476         in a name string cause trouble.  E.g., with a user name of "%s",
4477         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4478
4479 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4480
4481         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4482         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4483         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4484         the "  (tiny change)" notation that is appended to the standard
4485         ChangeLog "date  name  email" header line.
4486
4487 2012-01-01  Jim Meyering  <meyering@redhat.com>
4488
4489         test-framework-sh: init.sh: fix "make dist" failure
4490         When using gnulib-tool's --with-tests option and any module that
4491         depends on test-framework-sh, "make dist" would fail due to the
4492         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4493         in the gltests directory, and not in the gllib/ directory.
4494         One way to work around that is to move the EXTRA_DIST += init.sh
4495         from the primary module to the -tests one:
4496         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4497         * modules/test-framework-sh (Makefile.am): ...not here.
4498         Reported by Tom G. Christensen in
4499         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4500
4501         version-etc: update copyright year reported by --version
4502         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4503
4504 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4505
4506         canonicalize: only stat() if required
4507         * lib/canonicalize.c (canonicalize_filename_mode):
4508         Avoid calling l?stat() when both CAN_MISSING,
4509         and CAN_NOLINKS are set, as we neither need
4510         to resolve symlinks or test component existence.
4511
4512 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4513
4514         doc: cover st_ino issues once; add OpenVMS etc.
4515         * doc/posix-functions/stat.texi (stat):
4516         * doc/posix-functions/lstat.texi (lstat):
4517         * doc/posix-functions/fstatat.texi (fstatat):
4518         * doc/posix-functions/fstat.texi (fstat):
4519         Move general 'struct stat' stuff to sys_stat.texi,
4520         leaving behind a pointer.
4521         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4522         Merge duplicate info about 'struct stat' problems into here.
4523         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4524         and suggest partial workarounds.
4525
4526         same-inode: port to OpenVMS
4527         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4528         three st_ino values.
4529
4530 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4531
4532         canonicalize: fix references to stat() and lstat()
4533         * lib/canonicalize.c (canonicalize_filename_mode):
4534         Ensure references always resolve to a replacement
4535         function if required (even via a macro).
4536
4537 2011-12-30  Jim Meyering  <meyering@redhat.com>
4538
4539         gitlog-to-changelog: remove a little duplication
4540         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4541         rather than twice.
4542
4543 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4544
4545         canonicalize: add support for not resolving symlinks
4546         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4547         indicate we don't want to follow symlinks.  Also
4548         provide CAN_MODE_MASK to aid setting these existing
4549         mutually exclusive values.
4550         * lib/canonicalize.c (canonicalize_filename_mode):
4551         Extract the flags from can_mode parameter, which
4552         are currently just used to select between stat()
4553         and lstat().  Also ensure that mutually exclusive
4554         values are flagged immediately as invalid.
4555         * tests/test-canonicalize.c: Verify symlinks are
4556         not followed, and that invalid flag combinations
4557         are diagnosed.
4558
4559 2011-12-25  Jim Meyering  <meyering@redhat.com>
4560
4561         gitlog-to-changelog: do not clump multi-paragraph entries
4562         Identical header lines (date,name,email+coauthors) are suppressed,
4563         thus putting all entries with those same characteristics under
4564         a single header.  However, when a log entry consists of two or
4565         more paragraphs, it may not be clear where it starts and ends.
4566         This change makes it so that such an entry is always separated
4567         from others by a header line, even when that header would
4568         otherwise be suppressed.
4569         * build-aux/gitlog-to-changelog: Implement the above.
4570         Inspired by a related request from Stefano Lattarini in
4571         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4572
4573 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4574
4575         announce-gen: fix `cmd' typo in diagnostic
4576         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4577         diagnostic: a missing '$' meant that the command was not output.
4578
4579 2011-12-23  Jim Meyering  <meyering@redhat.com>
4580
4581         test-framework-sh: distribute init.sh
4582         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4583         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4584         fail due to the lack of init.sh.
4585
4586         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4587         * modules/atexit-tests: Rather than listing tests/init.sh,
4588         now that there's a module for it, simply depend on that new module.
4589         * modules/closein-tests: Likewise.
4590         * modules/exclude-tests: Likewise.
4591         * modules/getcwd-tests: Likewise.
4592         * modules/perror-tests: Likewise.
4593         * modules/pread-tests: Likewise.
4594         * modules/pwrite-tests: Likewise.
4595         * modules/vc-list-files-tests: Likewise.
4596         * modules/verify-tests: Likewise.
4597         * modules/xalloc-die-tests: Likewise.
4598         * modules/xstrtoimax-tests: Likewise.
4599         * modules/xstrtol-tests: Likewise.
4600         * modules/xstrtoll-tests: Likewise.
4601         * modules/xstrtoumax-tests: Likewise.
4602         * modules/yesno-tests: Likewise.
4603
4604 2011-12-22  Jim Meyering  <meyering@redhat.com>
4605
4606         test-framework-sh: add minimal tests of init.sh's compare function
4607         * modules/test-framework-sh-tests: New file.
4608         * tests/test-init.sh: New file.
4609
4610         test-framework-sh: new module
4611         * modules/test-framework-sh: New file.
4612         * MODULES.html.sh (Support for maintaining and releasing projects):
4613         List it.
4614
4615         init.sh: do not emit simulated diff output to stderr
4616         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4617
4618 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4619
4620         .gitignore: ignore gnulib.dvi and regex.info
4621         * doc/.gitignore:add gnulib.dvi and regex.info
4622
4623 2011-12-22  Jim Meyering  <meyering@redhat.com>
4624
4625         init.sh: correct previous change
4626         * tests/init.sh (compare): My previous change was wrong.
4627         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4628
4629         init.sh: avoid unwarranted test failure when using "set -e"
4630         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4631         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4632         a use like "compare exp out" would get evoke an unconditional failure.
4633
4634 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4635
4636         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4637         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4638         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4639         autoreconf that did not.
4640         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4641         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4642
4643 2011-12-17  Jim Meyering  <meyering@redhat.com>
4644
4645         bootstrap: remove some now-unneeded code
4646         This script arose back when gnulib-tool was young.
4647         Since then, it has seen improvements that render much of this
4648         script unnecessary.  In particular, it can now make symlinks
4649         to the files it uses.  Also, I no longer see as much value in
4650         marking files as read-only via comments.
4651         If you relied on the symlink-creation feature of the preceding
4652         version of this script, you can get most of that functionality
4653         by adding the --symlink option to the definition of
4654         gnulib_tool_option_extras in your bootstrap.conf file.
4655         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4656         Run autopoint and libtoolize *before* gnulib-tool.
4657         After it, run an abbreviated autoreconf, rather than a loop around
4658         all tools.
4659         (slirp, bt_mark_as_generated): Remove functions.
4660
4661 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4662
4663         ftoastr: fix typo
4664         * lib/ftoastr.h: Fix misspelling in comment.
4665
4666 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4667
4668         * top/README-release: fix punctuation.
4669
4670 2011-12-17  Jim Meyering  <meyering@redhat.com>
4671
4672         bootstrap: correct the recent buildreq change
4673         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4674         had no effect.
4675         * build-aux/bootstrap (buildreq): Bracket each search term with
4676         "*...*", so that the shell "case" statement works as intended.
4677         Add comments.
4678
4679 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4680
4681         build: let bootstrap resort to wget when downloading .po files
4682         * build-aux/bootstrap (download_po_files): Fallback to wget when
4683         downloading the .po files via rsync fails.  This is necessary to
4684         bootstrap from behind a strict firewall.
4685
4686 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4687
4688         stdint: don't assume C++11 when compiling with g++
4689         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4691         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4692         work also in C++ before C++11, as that improperly inhibits
4693         generating a substitute stdint.h for that case.
4694
4695 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4696
4697         alloca: protect comment from gnulib-tool
4698         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4699         that gnulib-tool doesn't think it's a license, and munge it to
4700         say "GCC version 3".
4701
4702 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4703
4704         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4705         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4706         $(abs_top_builddir) instead of $(top_builddir).
4707
4708 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4709
4710         strftime-tests: also test nanoseconds
4711         * tests/test-strftime.c (T): Add a test of %N.
4712
4713 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4714
4715         inttypes, stdint: add C++11 support
4716         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4717         when including inttypes.h and stdint.h.  Support this change to
4718         the standard.
4719         * doc/posix-headers/inttypes.texi (inttypes.h):
4720         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4721         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4722         Define if not defined already, for the benefit of pre-C++11 hosts.
4723         Define the standard format macros (e.g., PRId8) always.
4724         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4725         Likewise, if __cpluspus.  Define the standard constant and limit
4726         macros (e.g., INT8_C, INT8_MAX) always.
4727         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4728         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4729         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4730         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4731         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4732         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4733         Likewise.
4734
4735 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4736
4737         nonblocking tests: Fix test failure on Linux/PPC.
4738         Suggested by Prerna Saxena in
4739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4740         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4741         Set to 1100000.
4742
4743 2011-12-12  Jim Meyering  <meyering@redhat.com>
4744
4745         argmatch: don't hard-code `' when listing valid option arguments
4746         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4747         use the quote function to add quotes.  Use fputs rather than
4748         fprintf for the format string with no format directive.
4749
4750 2011-12-07  Eric Blake  <eblake@redhat.com>
4751
4752         bootstrap: detect tools required by gnulib-tool
4753         * build-aux/bootstrap (buildreq): Provide minimum implicit
4754         dependencies.
4755         * DEPENDENCIES: Mention patch as a prereq.
4756
4757 2011-12-04  Bruno Haible  <bruno@clisp.org>
4758
4759         sethostname: Port to Windows platforms.
4760         * lib/sethostname.c: Provide an alternate implementation for Windows
4761         platforms.
4762         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4763         (main): Skip the test if sethostname() fails with EPERM. On Windows
4764         platforms, don't check the result of gethostname().
4765
4766 2011-12-04  Bruno Haible  <bruno@clisp.org>
4767             Jim Meyering  <meyering@redhat.com>
4768
4769         tests: Avoid spurious error message on platforms without mktemp program.
4770         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4771
4772 2011-12-04  Bruno Haible  <bruno@clisp.org>
4773
4774         sethostname: Fix documentation.
4775         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4776         "not fixed" section.
4777
4778 2011-12-03  Bruno Haible  <bruno@clisp.org>
4779
4780         gnulib-tool: Verify that the License field is present and non-empty.
4781         * gnulib-tool (func_get_license_raw): New function, extracted from
4782         func_get_license.
4783         (func_get_license): Use it. Warn if the module is not a test module and
4784         has no license.
4785         Suggested by Jim Meyering.
4786
4787 2011-12-03  Bruno Haible  <bruno@clisp.org>
4788
4789         sethostname tests: Fix link error on mingw.
4790         * tests/test-sethostname1.c: New file, extracted from
4791         tests/test-sethostname.c.
4792         * tests/test-sethostname2.c: New file, extracted from
4793         tests/test-sethostname.c.
4794         * tests/test-sethostname.c: Remove file.
4795         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4796         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4797         (Depends-on): Add gethostname.
4798         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4799         Link the latter with $(GETHOSTNAME_LIB).
4800
4801         sethostname tests: Fix compilation error on mingw.
4802         * tests/test-sethostname.c: Don't include <sys/types.h>.
4803         (geteuid): Use a dummy value without uid_t.
4804         * modules/sethostname-tests (Depends-on): Remove sys_types.
4805
4806         sethostname tests: Avoid a gcc warning.
4807         * tests/test-sethostname.c (main): Remove an unused variable.
4808
4809         Tweak last commit.
4810         * modules/sethostname-tests (Files): Sort by decreasing importance.
4811         (configure.ac): Check for geteuid.
4812         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4813         the test when there's nothing to test. Drop an unnecessary cast.
4814         Improve an error message. Verify that the final sethostname() call
4815         succeeds.
4816
4817 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4818
4819         Add a test suite for the sethostname module.
4820         * modules/sethostname-tests: New file.  A test program
4821         for the sethostname module.
4822         * tests/test-sethostname.c: Likewise.
4823
4824 2011-12-03  Bruno Haible  <bruno@clisp.org>
4825
4826         Tweak last commit.
4827         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4828         Fix preprocessor directives indentation. Fix typos.
4829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4830         * modules/unistd (Makefile): Likewise.
4831
4832 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4833
4834         Integrate the sethostname module into unistd.
4835         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4836         into the unistd.h header.
4837         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4838         preprocessor directives.
4839         * modules/unistd: Setup the Makefile substitutions of the
4840         SETHOSTNAME preprocessor directives.
4841
4842 2011-12-03  Bruno Haible  <bruno@clisp.org>
4843
4844         Tweak last commit.
4845         * lib/sethostname.c: Don't include <string.h>.
4846         (sethostname): No need to copy the argument string to the stack. Don't
4847         call clearerr. Preserve errno when fprintf failed.
4848         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4849         Don't invoke AC_REPLACE_FUNCS.
4850         * modules/sethostname (Link): Remove empty section.
4851         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4852         failure problem.
4853
4854 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4855
4856         New module 'sethostname'.
4857         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4858         for systems that lack it.
4859         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4860         sethostname declaration and function.
4861         * modules/sethostname: New file.  Define the sethostname module.
4862
4863 2011-12-03  Bruno Haible  <bruno@clisp.org>
4864
4865         Tweak last commit.
4866         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4867
4868 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4869
4870         Split the HOST_NAME_MAX detection into a separate m4 macro.
4871         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4872         macro so it can be used by the pending sethostname module.
4873
4874 2011-12-03  Bruno Haible  <bruno@clisp.org>
4875
4876         Fix module descriptions syntax.
4877         * modules/argv-iter (License): Fix syntax.
4878         * modules/di-set (License): Likewise.
4879         * modules/ino-map (License): Likewise.
4880         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4881
4882 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4883
4884         stdalign: port to Clang 3.0
4885         Problem reported by Simon Josefsson in
4886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4887         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4888         which has <stdalign.h> but which does not define alignof.
4889         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4890
4891 2011-12-01  Eric Blake  <eblake@redhat.com>
4892
4893         mktempd: silence dd usage
4894         * build-aux/mktempd (rand_bytes): Silence dd.
4895
4896 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4897
4898         manywarnings: Don't mention gcc version in docstring.
4899         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4900         Jim Meyering <meyering@redhat.com>.
4901
4902 2011-11-30  Jim Meyering  <meyering@redhat.com>
4903
4904         hash: mark a few floating point constants with "f" suffix
4905         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4906         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4907         floating point constants with "f", since they're destined to be
4908         saved/used as "float"s.
4909
4910 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4911
4912         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4913         * tests/test-float.c (test_long_double): Correct and re-enable the
4914         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4915
4916 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4917
4918         Avoid subtracting two pointers that don't point into the same block.
4919         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4920         only pointers into the same memory block are subtracted. We cannot
4921         assume that sizeof (ptrdiff_t) == sizeof (void *).
4922
4923 2011-11-29  Eric Blake  <eblake@redhat.com>
4924
4925         maint.mk: add syntax check for use of compare from init.sh
4926         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4927         moved here from coreutils.
4928
4929         manywarnings: drop -Wunsuffixed-float-constants
4930         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
4931         '1.0D', which is the only way to silence this warning for 'double'.
4932
4933 2011-11-29  Jim Meyering  <meyering@redhat.com>
4934
4935         hash: mark compute_bucket_size with the pure attribute
4936         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
4937
4938         quotearg, propername: correct pragma guard expression
4939         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
4940         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
4941
4942 2011-11-28  Jim Meyering  <meyering@redhat.com>
4943
4944         propername: do not mark proper_name with the const attribute
4945         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
4946         since it examines data pointed to by its parameter.
4947         * lib/propername.c (proper_name): Instead, add a pragma to suppress
4948         the suggestion from -Wsuggest-attribute=const.
4949
4950         propername: mark one more function as const
4951         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
4952
4953 2011-11-27  Jim Meyering  <meyering@redhat.com>
4954
4955         mark functions with const and pure attributes
4956
4957         Mark functions per suggestions from gcc-4.6 when using these options:
4958         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
4959         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
4960         Follow these guidelines: when possible, apply the attribute to
4961         an extern declaration, not to its definition.  Apply it to the
4962         definition only when the definition is static.
4963         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
4964         * lib/argv-iter.h (argv_iter_n_args): Likewise.
4965         * lib/base64.h (isbase64): Likewise.
4966         * lib/basename-lgpl.c (last_component, base_len): Likewise.
4967         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
4968         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
4969         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
4970         (c_tolower, c_toupper): Likewise.
4971         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
4972         * lib/chdir-long.c (find_non_slash): Likewise.
4973         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
4974         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
4975         * lib/file-type.h (file_type): Likewise.
4976         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
4977         * lib/filevercmp.c (verrevcmp): Likewise.
4978         * lib/freadahead.h (freadahead): Likewise.
4979         * lib/fts.c (fts_maxarglen): Likewise.
4980         * lib/hash-pjw.h (hash_pjw): Likewise.
4981         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
4982         * lib/hash.c (is_prime, next_prime): Likewise.
4983         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
4984         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
4985         (hash_table_ok, hash_get_first, hash_string): Likewise.
4986         (compute_bucket_size): Likewise.
4987         * lib/i-ring.h (i_ring_empty): Likewise.
4988         * lib/isnan.c (isnanl): Likewise.
4989         * lib/math.h (isnanl, rpl_isnanl): Likewise.
4990         * lib/memcasecmp.h (memcasecmp): Likewise.
4991         * lib/memchr2.h (memchr2): Likewise.
4992         * lib/memcmp2.h (memcmp2): Likewise.
4993         * lib/parse-datetime.y (lookup_zone): Likewise.
4994         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
4995         [!WINDOWS_SOCKETS]: Likewise.
4996         * lib/strnlen1.h (strnlen1): Likewise.
4997         * lib/uniwidth.in.h (uc_width): Likewise.
4998         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
4999         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5000         (quoting_options_from_style): Add a comment.
5001         * lib/propername.h (proper_name): Add a comment.
5002
5003 2011-11-27  Bruno Haible  <bruno@clisp.org>
5004
5005         Remove unused macros from !_LIBC code in glibc-borrowed files.
5006         * lib/fnmatch.c (STRCOLL): Remove macro.
5007         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5008         * lib/glob.c (__stat, __readdir64): Remove macros.
5009         * lib/tempname.c (__open64, __xstat64): Remove macros.
5010         Suggested by Paul Eggert.
5011
5012 2011-11-27  Bruno Haible  <bruno@clisp.org>
5013
5014         getcwd: Fix link error on MSVC 9.
5015         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5016
5017 2011-11-27  Bruno Haible  <bruno@clisp.org>
5018
5019         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5020         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5021         HAVE_OPENDIR is 0.
5022         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5023         HAVE_CLOSEDIR is 0.
5024         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5025         is 0.
5026         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5027
5028 2011-11-27  Bruno Haible  <bruno@clisp.org>
5029
5030         getcwd: Fix bug from 2011-08-17.
5031         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5032         platforms that need it.
5033         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5034         code of 4 to be a failure, not a success. This ensures that
5035         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5036
5037 2011-11-27  Bruno Haible  <bruno@clisp.org>
5038
5039         binary-io tests: Avoid test failure on mingw when libtool is used.
5040         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5041         Don't verify the size of t-bin-out1.tmp here.
5042         * tests/test-binary-io.sh: Verify it here.
5043         Reported by Simon Josefsson.
5044
5045 2011-11-26  Bruno Haible  <bruno@clisp.org>
5046
5047         Fix conflict between two instantiations of module 'unistd'.
5048         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5049         ${include_guard_prefix} also in the autoconf snippet.
5050         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5052         GNULIB_UNISTD_H_GETOPT.
5053         * modules/getopt-posix (configure.ac): Set the
5054         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5055         * modules/getopt-gnu (configure.ac): Likewise.
5056         * modules/unistd (Makefile.am): Change the substitution value of
5057         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5058         Reported by Simon Josefsson.
5059
5060 2011-11-25  Bruno Haible  <bruno@clisp.org>
5061
5062         pagealign_alloc: Doc and comments.
5063         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5064         module.
5065         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5066
5067 2011-11-25  Jim Meyering  <meyering@redhat.com>
5068
5069         test-update-copyright.sh: avoid false-positive failure
5070         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5071         around false positive failure on Cygwin/Windows.  The latter was
5072         matching erroneously-created files with names like
5073         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5074
5075 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5076
5077         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5078         * m4/valgrind-tests.m4: Check that the parameters that will be
5079         used works, not just a subset of them.  Reported by Bruno Haible
5080         <bruno@clisp.org>.
5081
5082 2011-11-24  Jim Meyering  <meyering@redhat.com>
5083
5084         test-stdalign.c: comment out long double tests
5085         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5086         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5087         error: '_Alignas' specifiers cannot reduce alignment of \
5088         'static_longdouble_alignas'.
5089
5090 2011-11-22  Jim Meyering  <meyering@redhat.com>
5091
5092         init.sh: make "compare /dev/null FILE" output more readable
5093         * tests/init.sh (compare_): Document the preferred order of arguments.
5094         (emit_diff_u_header_): New function.
5095         (compare_dev_null_): Emit a simulated diff, rather than just the
5096         contents of the unexpected file.  Suggestion from Bruno Haible.
5097
5098 2011-11-21  Jim Meyering  <meyering@redhat.com>
5099             Eric Blake  <eblake@redhat.com>
5100
5101         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5102         * tests/init.sh: Make our compare function slightly more portable.
5103         Reported by Bruno Haible in
5104         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5105
5106 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5107
5108         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5109         before using it, in code that ends up in config.h.
5110
5111 2011-11-20  Bruno Haible  <bruno@clisp.org>
5112
5113         getcwd: Work around getcwd bug on AIX 5..7.
5114         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5115         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5116         Use a different value for gl_cv_func_getcwd_path_max. Move the
5117         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5118         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5119         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5120         Define HAVE_MINIMALLY_WORKING_GETCWD.
5121         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5122         where it is not even minimally working, that is, on AIX.
5123         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5124         m4/getcwd-path-max.m4.
5125         (main): Update exit code computation.
5126         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5127         getcwd does not handle long file names.
5128
5129 2011-11-20  Bruno Haible  <bruno@clisp.org>
5130
5131         getcwd: Fix bug from 2009-09-10.
5132         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5133         like "no".
5134
5135 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5136
5137         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5138
5139 2011-11-20  Bruno Haible  <bruno@clisp.org>
5140
5141         fma tests: Avoid shadowing local variables.
5142         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5143         expected.
5144
5145 2011-11-20  Bruno Haible  <bruno@clisp.org>
5146
5147         copysignf tests: Fix.
5148         * tests/test-copysignf.c: Fix signature check.
5149
5150 2011-11-20  Bruno Haible  <bruno@clisp.org>
5151
5152         fma: Remove unused code.
5153         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5154         unused macros.
5155
5156 2011-11-20  Bruno Haible  <bruno@clisp.org>
5157
5158         sethostname: Fix doc about AIX.
5159         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5160         sethostname; it has it.
5161
5162         sethostname: Mention more portability problems.
5163         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5164         problem.
5165         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5166
5167 2011-11-19  Bruno Haible  <bruno@clisp.org>
5168
5169         Depend on module fcntl-h when AT_FDCWD is used.
5170         * modules/utimens (Depends-on): Add fcntl-h.
5171         * modules/areadlinkat (Depends-on): Likewise.
5172         * modules/areadlinkat-with-size (Depends-on): Likewise.
5173         * modules/faccessat (Depends-on): Likewise.
5174         * modules/fchmodat (Depends-on): Likewise.
5175         * modules/fchownat (Depends-on): Likewise.
5176         * modules/getcwd (Depends-on): Likewise.
5177         * modules/mkdirat (Depends-on): Likewise.
5178         * modules/mkfifoat (Depends-on): Likewise.
5179         * modules/readlinkat (Depends-on): Likewise.
5180         * modules/symlinkat (Depends-on): Likewise.
5181         * modules/dup2-tests (Depends-on): Likewise.
5182         * modules/fdutimensat-tests (Depends-on): Likewise.
5183         * modules/futimens-tests (Depends-on): Likewise.
5184
5185 2011-11-19  Bruno Haible  <bruno@clisp.org>
5186
5187         euidaccess: Update a comment.
5188         * lib/euidaccess.c: Update comment about platforms with faccessat.
5189
5190 2011-11-19  Bruno Haible  <bruno@clisp.org>
5191
5192         openat: Fix file list.
5193         * modules/openat (Files): Remove lib/at-func.c.
5194
5195 2011-11-19  Bruno Haible  <bruno@clisp.org>
5196
5197         fstatat: Simplify.
5198         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5199         gnulib should define rpl_fstatat, there is a
5200         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5201
5202 2011-11-19  Bruno Haible  <bruno@clisp.org>
5203
5204         Ensure 'inline' can be used in tests/test-utimens-common.h.
5205         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5206         * modules/futimens-tests (configure.ac): Likewise.
5207         * modules/utimens-tests (configure.ac): Likewise.
5208         * modules/utimensat-tests (configure.ac): Likewise.
5209
5210 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5211
5212         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5213         not hash_insert0.
5214         (hash_insert_if_absent): Doc fix.
5215
5216 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5217
5218         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5219
5220 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5221
5222         test-getcwd: disambiguate exit status
5223         * tests/test-getcwd.c (test_long_name): Return 0..7.
5224         (main): Exit with an unambiguous exit status.  The old
5225         code yielded a mysterious mixture of two failure codes.
5226
5227         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5228         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5229         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5230         rpl_fstatat or fstatat.  This should fix the other problem
5231         reported by Kai Habel in
5232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5233         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5235         and I reproduced it on a Solaris 8 host we still have in production.
5236
5237 2011-11-18  Jim Meyering  <meyering@redhat.com>
5238
5239         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5240         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5241         Add a sentence to the comment.
5242         (hash_insert0): New function that simply calls hash_insert_if_absent.
5243         * lib/hash.h (hash_insert_if_absent): Declare it.
5244         (hash_insert0): Add deprecation attribute.
5245         (_GL_ATTRIBUTE_DEPRECATED): Define.
5246         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5247         not hash_insert0.
5248         * NEWS: Mention it, even though it's not really an incompatible change.
5249
5250 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5251
5252         openat: avoid compilation failure due to lack of <errno.h> inclusion
5253         * lib/openat.c: Include <errno.h>.
5254
5255 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5256
5257         * modules/getcwd (Depends-on): Add fdopendir.
5258         This fixes one of the two problems reported by Kai Habel in
5259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5260
5261         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5262         stdalign problem reported by Ian Beckwith in
5263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5264         * modules/crypto/gc-arcfour (Depends-on):
5265         Depend conditionally on crypto/arcfour.
5266         * modules/crypto/gc-arctwo (Depends-on):
5267         Depend conditionally on crypto/arctwo.
5268         * modules/crypto/gc-des (Depends-on):
5269         Depend conditionally on crypto/des.
5270         * modules/crypto/gc-hmac-md5 (Depends-on):
5271         Depend conditionally on crypto/hmac-md5.
5272         * modules/crypto/gc-hmac-sha1 (Depends-on):
5273         Depend conditionally on crypto/hmac-sha1.
5274         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5275         * modules/crypto/gc-md4 (Depends-on):
5276         Depend conditionally on crypto/md4.
5277         * modules/crypto/gc-md5 (Depends-on):
5278         Depend conditionally on crypto/md5.
5279         * modules/crypto/gc-rijndael (Depends-on):
5280         Depend conditionally on crypto/rijndael.
5281         * modules/crypto/gc-sha1 (Depends-on):
5282         Depend conditionally on crypto/sha1.
5283         * modules/crypto/gc-arcfour:
5284         * modules/crypto/gc-arctwo:
5285         * modules/crypto/gc-des:
5286         * modules/crypto/gc-hmac-md5:
5287         * modules/crypto/gc-hmac-sha1:
5288         * modules/crypto/gc-md2:
5289         * modules/crypto/gc-md4:
5290         * modules/crypto/gc-md5:
5291         * modules/crypto/gc-rijndael:
5292         * modules/crypto/gc-sha1:
5293         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5294         now that the conditional dependencies do the work for us.
5295
5296 2011-11-17  Jim Meyering  <meyering@redhat.com>
5297
5298         tests: factor st_ctime-comparison out of two headers
5299         * tests/test-utimens-common.h (ctime_compare): Define.
5300         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5301         * tests/test-lutimens.h (test_lutimens): Likewise.
5302         * tests/test-utimens.h (test_utimens): Likewise.
5303
5304         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5305         Invoke the test program via an init.sh-using wrapper.
5306         * tests/test-getcwd.sh: New file.
5307         * modules/getcwd-tests (Files): Add it.
5308         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5309
5310 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5311
5312         gitlog-to-changelog: support multi-author commits.
5313         The FSF cares about keeping track of all authors of patches to its
5314         projects, but Git doesn't provide obvious support for multi-author
5315         changesets. Consensus seems to be forming around the use of extra
5316         Signed-off-by inspired lines in the log message formatted as
5317         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5318         multi-author commits between version control systems.
5319         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5320         log message and output in standard ChangeLog multi-author format.
5321         Reported by Peter Rosin <peda@lysator.liu.se>
5322
5323 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5324             Bruno Haible  <bruno@clisp.org>
5325
5326         Fix some modules' file list.
5327         * modules/fstatat (Files): Add m4/lstat.m4.
5328         * modules/openat (Files): Likewise.
5329         * modules/unlinkat (Files): Likewise.
5330
5331 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5332
5333         maint.mk: fix tight-scope.mk generation in VPATH builds.
5334         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5335         reference with $(srcdir) so that the file is found correctly even
5336         when running `make syntax-check' in a VPATH build.
5337
5338 2011-11-13  Bruno Haible  <bruno@clisp.org>
5339             Jim Meyering  <meyering@redhat.com>
5340
5341         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5342         * tests/init.sh (compare): Remove "No differences encountered" or
5343         synonymous output from the 'diff' program.
5344
5345 2011-11-13  Bruno Haible  <bruno@clisp.org>
5346
5347         Makefile: Tweak indentation.
5348         * Makefile: Use tab as first character in every line that contains rule
5349         commands.
5350
5351 2011-11-13  Bruno Haible  <bruno@clisp.org>
5352
5353         Syntax check for copyright statements.
5354         * check-copyright: New file.
5355         * Makefile (sc_check_copyright): New rule.
5356
5357 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5358
5359         * build-aux/git-version-gen: Add --prefix to configure the tag
5360         match string.
5361
5362 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5363
5364         * build-aux/git-version-gen: Add --help and --version.
5365
5366 2011-11-12  Jim Meyering  <meyering@redhat.com>
5367
5368         revamp the other test-exclude?.sh scripts to use init.sh, too
5369         * tests/test-exclude1.sh: Use init.sh.
5370         * tests/test-exclude2.sh: Likewise.
5371         * tests/test-exclude3.sh: Likewise.
5372         * tests/test-exclude4.sh: Likewise.
5373         * tests/test-exclude5.sh: Likewise.
5374         * tests/test-exclude6.sh: Likewise.
5375         * tests/test-exclude7.sh: Likewise.
5376         * tests/test-exclude8.sh: Likewise.
5377         * modules/exclude-tests (Files): List init.sh.
5378
5379         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5380         These shell scripts ignored failure of the binary test-exclude,
5381         so making the latter return 77 didn't cause them to be skipped.
5382         * tests/test-exclude5.sh: Exit with test-exclude's error status
5383         when that program fails.  Revamp to use init.sh.
5384         * tests/test-exclude2.sh: Likewise.
5385
5386         test-exclude: fix a typo
5387         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5388
5389 2011-11-11  Bruno Haible  <bruno@clisp.org>
5390
5391         obstack: Fix compilation error on MSVC 9.
5392         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5393
5394 2011-11-11  Jim Meyering  <meyering@redhat.com>
5395
5396         test-exclude: skip tests rather than failing on deficient systems
5397         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5398         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5399         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5400         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5401
5402 2011-11-10  Bruno Haible  <bruno@clisp.org>
5403
5404         ptsname_r test: Avoid gcc warning on glibc systems.
5405         * tests/test-ptsname_r.c (null_ptr): New function.
5406         (test_errors): Use it.
5407
5408 2011-11-10  Bruno Haible  <bruno@clisp.org>
5409
5410         ptsname_r: Avoid compilation error on OSF/1 5.1.
5411         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5413         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5414         function is not declared or incompatibly declared.
5415         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5416         * modules/ptsname_r (Depends-on, configure.ac): Update.
5417         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5418
5419 2011-11-10  Bruno Haible  <bruno@clisp.org>
5420
5421         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5422         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5423         When cross-compiling, guess yes on all platforms except AIX.
5424         Reported by Ludovic Courtès <ludo@gnu.org>.
5425
5426 2011-11-09  Bruno Haible  <bruno@clisp.org>
5427
5428         ptsname_r tests: Fix bugs.
5429         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5430         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5431
5432 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5433
5434         fstatat: work with cross-compilation
5435         Problem reported by Ludovic Courtès in
5436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5437         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5438         "cross-compiling" and assume the bug is present.  Replace
5439         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5440         an inverted sense, to be more conservative about our assumptions.
5441         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5442
5443 2011-11-09  Bruno Haible  <bruno@clisp.org>
5444
5445         Improve MODULES.html output.
5446         * modules/mkfifoat (Description): Use the word "function".
5447         * modules/readlinkat (Description): Likewise.
5448         * modules/symlinkat (Description): Likewise.
5449
5450 2011-11-09  Eric Blake  <eblake@redhat.com>
5451
5452         ptsname_r-tests: new test module
5453         * modules/ptsname_r-tests: New module.
5454         * tests/test-ptsname_r.c: New file.
5455
5456         ptsname_r: new module
5457         * modules/ptsname_r: New module.
5458         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5459         * lib/ptsname.c (__ptsname_r): Split...
5460         * lib/ptsname_r.c: ...into new file.
5461         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5462         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5463         * modules/stdlib (Makefile.am): Substitute witnesses.
5464         * lib/stdlib.in.h (ptsname_r): Declare it.
5465         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5466         * MODULES.html.sh (Misc): Likewise.
5467         * modules/ptsname (Depends-on): Alter dependency.
5468         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5469
5470 2011-11-09  Jim Meyering  <meyering@redhat.com>
5471
5472         announce-gen: be more concise when there's only one URL+tarball
5473         * build-aux/announce-gen (get_tool_versions): When you distribute
5474         only one type of tarball, combine the first two "Here are..."
5475         sections and make the key-checking grammar independent of
5476         how many tarballs there are.
5477
5478 2011-11-09  Eric Blake  <eblake@redhat.com>
5479
5480         openpty: provide a stub on mingw
5481         * lib/pty.in.h (includes): Provide forward declarations.
5482         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5483
5484         raise: fix mingw handling of SIGPIPE
5485         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5486
5487 2011-11-08  Bruno Haible  <bruno@clisp.org>
5488
5489         More conditional dependencies.
5490         * modules/faccessat (Depends-on): Add conditions.
5491         * modules/fchmodat (Depends-on): Likewise.
5492         * modules/fchownat (Depends-on): Likewise.
5493         * modules/fstatat (Depends-on): Likewise.
5494         * modules/mkfifoat (Depends-on): Likewise.
5495         * modules/readlinkat (Depends-on): Likewise.
5496         * modules/symlinkat (Depends-on): Likewise.
5497         * modules/unlinkat (Depends-on): Likewise.
5498         * modules/utimensat (Depends-on): Likewise.
5499         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5500         * modules/linkat (Depends-on): Refine the conditions.
5501         * modules/renameat (Depends-on): Likewise.
5502
5503 2011-11-08  Bruno Haible  <bruno@clisp.org>
5504
5505         faccessat: Move AC_LIBOBJ invocation to module description.
5506         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5507         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5508         invocation from here...
5509         * modules/faccessat (configure.ac): ... to here. Invoke
5510         gl_PREREQ_FACCESSAT.
5511
5512 2011-11-08  Bruno Haible  <bruno@clisp.org>
5513
5514         faccessat: Simplify autoconf macro.
5515         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5516         gl_FUNC_EUIDACCESS.
5517
5518 2011-11-08  Bruno Haible  <bruno@clisp.org>
5519
5520         renameat: Fix dependencies.
5521         * modules/renameat (Depends-on): Add stdbool.
5522
5523 2011-11-08  Bruno Haible  <bruno@clisp.org>
5524
5525         mkfifoat: Fix module description.
5526         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5527         not gl_UNISTD_MODULE_INDICATOR.
5528
5529 2011-11-08  Bruno Haible  <bruno@clisp.org>
5530
5531         fstatat: Remove unused dependency.
5532         * modules/fstatat (Depends-on): Remove fstat.
5533
5534 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5535
5536         GNUmakefile: behave when Makefile is missing.
5537         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5538
5539 2011-11-08  Bruno Haible  <bruno@clisp.org>
5540
5541         openat: Conditionalize dependencies.
5542         * lib/openat.c: Reduce the scope of some #includes.
5543         * modules/openat (Depends-on): Add conditions.
5544
5545 2011-11-07  Jim Meyering  <meyering@redhat.com>
5546
5547         maint.mk: extract GPG key ID without using a temporary file
5548         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5549         without using a temporary file.  Based on a suggestion from Werner Koch
5550         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5551
5552 2011-11-07  Eric Blake  <eblake@redhat.com>
5553
5554         grantpt: fix typo
5555         * lib/stdlib.in.h (grantpt): Check correct function.
5556
5557         maint.mk: silence new syntax check
5558         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5559
5560 2011-11-06  Bruno Haible  <bruno@clisp.org>
5561
5562         Doc about floating-point and math API.
5563         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5564         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5565
5566 2011-11-06  Bruno Haible  <bruno@clisp.org>
5567
5568         stdalign tests: Skip the test when compiled by Sun C.
5569         * tests/test-stdalign.c (main): Skip the test on Sun C.
5570
5571 2011-11-06  Bruno Haible  <bruno@clisp.org>
5572
5573         ansi-c++-opt: Complete the 2011-06-05 change.
5574         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5575         does not support namespaces, set the variable to "no", not to ":".
5576
5577 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5578
5579         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5580
5581 2011-11-06  Bruno Haible  <bruno@clisp.org>
5582
5583         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5584         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5585         (minus_zerol) [HP-UX]: New macro.
5586         (unary_minus) [HP-UX]: New function.
5587         (copysignl) [HP-UX]: Use unary_minus function.
5588
5589 2011-11-06  Bruno Haible  <bruno@clisp.org>
5590
5591         ldexp, ldexpf, ldexpl: Enhance tests.
5592         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5593         and tests/test-ldexpl.c.
5594         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5595         LDEXP, MIN_EXP, MAX_EXP): New macros.
5596         Include test-ldexp.h.
5597         (main): Just call test_function.
5598         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5599         infinity.h, nan.h.
5600         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5601         MAX_EXP): New macros.
5602         Include test-ldexp.h.
5603         (x, y): Remove variables.
5604         (main): Just call test_function.
5605         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5606         infinity.h, nan.h.
5607         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5608         MAX_EXP): New macros.
5609         Include test-ldexp.h.
5610         (x, y): Remove variables.
5611         (main): Just call test_function.
5612         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5613         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5614         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5615         (Depends-on): Add isnand-nolibm, signbit, float.
5616         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5617         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5618         (Depends-on): Add isnanf-nolibm, signbit, float.
5619
5620 2011-11-06  Bruno Haible  <bruno@clisp.org>
5621
5622         math tests: Cosmetics.
5623         * tests/test-math-c++.cc: Reorder declarations.
5624
5625 2011-11-05  Bruno Haible  <bruno@clisp.org>
5626
5627         fma*: Simplify test.
5628         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5629         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5630
5631         Tests for module 'fmal'.
5632         * modules/fmal-tests: New file.
5633         * tests/test-fmal1.c: New file.
5634         * tests/test-fmal2.c: New file.
5635
5636         New module 'fmal'.
5637         * lib/math.in.h (fmal): New declaration.
5638         * lib/fmal.c: New file.
5639         * m4/fmal.m4: New file.
5640         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5641         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5642         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5643         REPLACE_FMAL.
5644         * modules/fmal: New file.
5645         * doc/posix-functions/fmal.texi: Mention the new module and the various
5646         bugs.
5647
5648         Tests for module 'fmaf'.
5649         * modules/fmaf-tests: New file.
5650         * tests/test-fmaf1.c: New file.
5651         * tests/test-fmaf2.c: New file.
5652
5653         New module 'fmaf'.
5654         * lib/math.in.h (fmaf): New declaration.
5655         * lib/fmaf.c: New file.
5656         * m4/fmaf.m4: New file.
5657         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5658         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5659         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5660         REPLACE_FMAF.
5661         * modules/fmaf: New file.
5662         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5663         bugs.
5664
5665         Tests for module 'fma'.
5666         * modules/fma-tests: New file.
5667         * tests/test-fma1.c: New file.
5668         * tests/test-fma1.h: New file.
5669         * tests/test-fma2.c: New file.
5670         * tests/test-fma2.h: New file.
5671
5672         New module 'fma'.
5673         * lib/math.in.h (fma): New declaration.
5674         * lib/fma.c: New file.
5675         * m4/fma.m4: New file.
5676         * m4/fegetround.m4: New file.
5677         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5678         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5679         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5680         REPLACE_FMA.
5681         * modules/fma: New file.
5682         * doc/posix-functions/fma.texi: Mention the new module and the various
5683         bugs.
5684
5685         Extend gl_MATHFUNC.
5686         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5687         Support 'void' as argument type.
5688         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5689
5690 2011-11-05  Jim Meyering  <meyering@redhat.com>
5691
5692         maint.mk: also prohibit inclusion of dirent.h without use
5693         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5694
5695 2011-11-05  Bruno Haible  <bruno@clisp.org>
5696
5697         ldexpl tests: Avoid test failure on MSVC 9.
5698         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5699         value. Needed in order to enforce the conversion from a value greater
5700         than LDBL_MAX to Infinity.
5701
5702 2011-11-05  Bruno Haible  <bruno@clisp.org>
5703
5704         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5705         * modules/at-internal: New file, extracted from modules/openat.
5706         * modules/openat-h: New file.
5707         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5708         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5709         * modules/openat (Description): Add reference to POSIX function.
5710         (Files): Remove lib/openat.h, lib/openat-proc.c.
5711         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5712         intprops, unistd.
5713         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5714         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5715         gl_FCNTL_MODULE_INDICATOR.
5716         (Include): Remove unistd.h, openat.h.
5717         * modules/areadlinkat (Files): Add lib/at-func.c.
5718         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5719         openat-die, openat-h, save-cwd.
5720         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5721         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5722         openat-die, openat-h, save-cwd, unistd.
5723         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5724         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5725         openat-h, save-cwd. Remove fcntl-h, openat.
5726         * modules/fchmodat (Files): Remove lib/openat.h.
5727         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5728         openat, stdbool, unistd.
5729         * modules/fchownat (Files): Remove lib/openat.h.
5730         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5731         openat, stdbool, sys_stat.
5732         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5733         lib/openat-proc.c.
5734         (Depends-on): Add at-internal.
5735         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5736         * modules/fstatat (Files): Remove lib/openat.h.
5737         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5738         stdbool, unistd.
5739         * modules/fts (Depends-on): Add openat-h.
5740         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5741         openat.
5742         * modules/mkdirat (Files): Remove lib/openat.h.
5743         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5744         openat, stdbool, sys_stat.
5745         * modules/mkfifoat (Files): Add lib/at-func.c.
5746         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5747         openat-h, save-cwd. Remove fcntl-h, openat.
5748         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5749         * modules/readlinkat (Files): Add lib/at-func.c.
5750         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5751         openat-h, save-cwd. Remove fcntl-h, openat.
5752         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5753         openat.
5754         * modules/selinux-at (Files): Add lib/at-func.c.
5755         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5756         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5757         * modules/symlinkat (Files): Add lib/at-func.c.
5758         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5759         openat-h, save-cwd. Remove fcntl-h, openat.
5760         * modules/unlinkat (Files): Remove lib/openat.h.
5761         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5762         stdbool.
5763         * modules/utimensat (Files): Add lib/at-func.c.
5764         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5765         openat-die, openat-h, save-cwd.
5766         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5767         * modules/fdutimensat-tests (Depends-on): Add openat.
5768         * modules/fstatat-tests (Depends-on): Add openat-h.
5769         * modules/readlinkat-tests (Depends-on): Add openat.
5770         * modules/symlinkat-tests (Depends-on): Add openat.
5771
5772 2011-11-05  Bruno Haible  <bruno@clisp.org>
5773
5774         openat: Include <stdbool.h>.
5775         * lib/openat.c: Include <stdbool.h>.
5776
5777 2011-11-04  Bruno Haible  <bruno@clisp.org>
5778
5779         fchownat, renameat, unlinkat: Fix dependencies.
5780         * modules/fchownat (Depends-on): Add fstatat.
5781         * modules/renameat (Depends-on): Likewise.
5782         * modules/unlinkat (Depends-on): Likewise.
5783
5784 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5785
5786         openat: remove direct dependency on dirent
5787         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5788         and hasn't been needed ever since fdopendir was split into its own
5789         module on 2009-08-31.
5790         * modules/openat (Depends-on): Remove dirent.
5791
5792 2011-11-04  Bruno Haible  <bruno@clisp.org>
5793
5794         renameat: Optimize code size.
5795         * modules/renameat (configure.ac): Don't compile at-func2.c if
5796         REPLACE_RENAMEAT is 1.
5797
5798 2011-11-04  Bruno Haible  <bruno@clisp.org>
5799
5800         openat tests: Fix file list.
5801         * modules/openat-tests (Files): Add tests/test-open.h.
5802
5803 2011-11-04  Bruno Haible  <bruno@clisp.org>
5804
5805         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5806         * modules/fchmodat (Depends-on): Add openat-die.
5807         * modules/fchownat (Depends-on): Likewise.
5808         * modules/linkat (Depends-on): Likewise.
5809         * modules/renameat (Depends-on): Likewise.
5810         * modules/openat (Depends-on): Add dirent.
5811
5812 2011-11-04  Jim Meyering  <meyering@redhat.com>
5813
5814         at-func*.c: fix comments
5815         * lib/at-func2.c: Correct/improve first-line comment.
5816         * lib/at-func.c: Correct grammar in first-line comment.
5817
5818 2011-11-04  Bruno Haible  <bruno@clisp.org>
5819
5820         New module 'mkdirat', split off from module 'openat'.
5821         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5822         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5823         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5824         * modules/mkdirat: New file, extracted from modules/openat.
5825         * modules/openat (Files): Remove lib/mkdirat.c.
5826         (Depends-on): Remove mkdir.
5827         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5828         (Include): Remove <sys/stat.h>.
5829         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5830         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5831         tests/test-mkdir.h.
5832         (Depends-on): Remove ignore-value.
5833         (Makefile.am): Remove rules for test-mkdirat.
5834         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5835         of module 'openat'.
5836         * NEWS: Mention the change.
5837
5838 2011-11-04  Bruno Haible  <bruno@clisp.org>
5839
5840         closedir: Avoid warning on mingw.
5841         * lib/closedir.c: Include <unistd.h>.
5842
5843 2011-11-04  Bruno Haible  <bruno@clisp.org>
5844
5845         New module 'fstatat', split off from module 'openat'.
5846         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5847         defined.
5848         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5849         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5850         gl_FUNC_FSTATAT.
5851         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5852         * modules/fstatat: New file, extracted from modules/openat.
5853         * modules/openat (Files): Remove lib/fstatat.c.
5854         (Depends-on): Remove lstat.
5855         (configure.ac): Remove AC_LIBOBJ of fstatat.
5856         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5857         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5858         tests/test-lstat.h, tests/test-stat.h.
5859         (Depends-on): Remove getcwd-lgpl.
5860         (Makefile.am): Remove rules for test-fstatat.
5861         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5862         of module 'openat'.
5863         * NEWS: Mention the change.
5864         * modules/getcwd (Depends-on): Add fstatat.
5865         * modules/linkat (Depends-on): Likewise.
5866         * modules/mkfifoat-tests (Depends-on): Likewise.
5867         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5868
5869 2011-11-03  Bruno Haible  <bruno@clisp.org>
5870
5871         New module 'unlinkat', split off from module 'openat'.
5872         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5873         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5874         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5875         * modules/unlinkat: New file, extracted from modules/openat. Correct
5876         the dependency conditions.
5877         * modules/openat (Files): Remove lib/unlinkat.c.
5878         (Depends-on): Remove rmdir, unlink.
5879         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5880         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5881         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5882         tests/test-rmdir.h, tests/test-unlink.h.
5883         (Depends-on): Remove unlinkdir.
5884         (Makefile.am): Remove rules for test-unlinkat.
5885         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5886         of module 'openat'.
5887         * NEWS: Mention the change.
5888         * modules/linkat-tests (Depends-on): Add unlinkat.
5889         * modules/mkfifoat-tests (Depends-on): Likewise.
5890         * modules/readlinkat-tests (Depends-on): Likewise.
5891
5892 2011-11-02  Bruno Haible  <bruno@clisp.org>
5893
5894         New module 'fchmodat', split off from module 'openat'.
5895         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5896         defined.
5897         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5898         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5899         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5900         * modules/fchmodat: New file, extracted from modules/openat.
5901         * modules/openat (Files): Remove lib/fchmodat.c.
5902         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5903         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5904         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5905         (Makefile.am): Remove rules for test-fchmodat.
5906         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5907         of module 'openat'.
5908         * NEWS: Mention the change.
5909
5910 2011-11-02  Jim Meyering  <meyering@redhat.com>
5911
5912         putenv: indent #definition of "environ" to placate cppi
5913         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5914
5915         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5916         Git logs are often treated as immutable, because editing them
5917         changes the SHA1 checksums of all descendants.  Thus, errors in
5918         git logs tend to stay there forever.  However, when we generate
5919         a ChangeLog file -- typically for distribution -- from that git log,
5920         we can actually make corrections in the generated file.  The key
5921         lies in recording in machine-readable/applicable form the desired
5922         corrections.  See --help for description and an example.
5923         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5924         (usage): Describe it; alphabetize option descriptions.
5925         (main): Honor the new option, carefully.
5926
5927 2011-11-01  Jim Meyering  <meyering@redhat.com>
5928
5929         gitlog-to-changelog: avoid an infloop
5930         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
5931         that ends up being empty.
5932
5933 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5934
5935         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
5936         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
5937         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
5938         contains (possibly-quoted) backslashes.  This should avoid
5939         all-too-common shell bugs if COMPLICATED contains backslashes in
5940         the "wrong" places.  Reported by David Evans in
5941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
5942         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
5943         because we want ASCII ranges.  Is there some reason we don't use
5944         the C locale everywhere in this script?
5945         (func_module, top level): Avoid unwanted pathname expansion when
5946         $repo_url_prefix or $repo_url_suffix_repl contain shell
5947         metacharacters like '?' and '*'.
5948
5949 2011-11-01  Bruno Haible  <bruno@clisp.org>
5950
5951         fchownat: Improve description.
5952         * modules/fchownat (Description): Add link to function.
5953
5954 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5955
5956         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
5957         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
5958         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
5959         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
5960
5961 2011-11-01  Bruno Haible  <bruno@clisp.org>
5962
5963         alignof: Avoid collision with stdalign module.
5964         * lib/alignof.h (alignof): Remove macro.
5965         * NEWS: Mention the change.
5966         Reported by Paul Eggert.
5967
5968 2011-11-01  Bruno Haible  <bruno@clisp.org>
5969
5970         New module 'fchownat', split off from module 'openat'.
5971         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
5972         defined.
5973         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
5974         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
5975         invoke gl_FUNC_FCHOWNAT.
5976         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
5977         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
5978         * modules/fchownat: New file, extracted from modules/openat.
5979         * modules/openat (Files): Remove lib/fchownat.c.
5980         (Depends-on): Remove lchown.
5981         (configure.ac): Remove AC_LIBOBJ of fchownat.
5982         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
5983         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
5984         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
5985         (Depends-on): Remove mgetgroups, usleep, stat-time.
5986         (configure.ac): Remove test for getegid.
5987         (Makefile.am): Remove rules for test-fchownat.
5988         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
5989         of module 'openat'.
5990         * NEWS: Mention the change.
5991
5992 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
5993
5994         stdalign: port better to MSVC and to Sun C 5.11
5995         This fixes some of the problems reported by Bruno Haible in
5996         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
5997         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
5998         shortcomings of MSVC and of Sun C 5.11.
5999         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6000         around __declspec arg.
6001         * modules/stdalign-tests (Files): Add tests/macros.h.
6002         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6003         Include macros.h, for ASSERT.
6004         (DECLARE_ALIGNED): Remove.
6005         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6006         to catch bug), and to 1 if not (simplifies the rest of the code).
6007         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6008         (CHECK_AUTO): Remove.
6009         (CHECK_ALIGNED): Check only the alignment of the static vars,
6010         since auto var alignment isn't supported by Sun C 5.11.
6011         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6012         ASSERT failures are easier to diagnose.
6013
6014 2011-10-31  Bruno Haible  <bruno@clisp.org>
6015
6016         doc about some IRIX 5.3 problems.
6017         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6018         on IRIX 5.3.
6019         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6020         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6021         5.3.
6022         * doc/posix-functions/grantpt.texi: Likewise.
6023         * doc/posix-functions/unlockpt.texi: Likewise.
6024         * doc/posix-functions/lgamma.texi: Likewise.
6025         * doc/posix-functions/nextafter.texi: Likewise.
6026         * doc/posix-functions/remainder.texi: Likewise.
6027         * doc/posix-functions/select.texi: Mention misplaced declaration on
6028         IRIX 5.3.
6029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6030
6031 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6032
6033         gitlog-to-changelog: fix git-log invocation.
6034         git-log mishandles date strings before 1970-01-01 UTC, and there is
6035         no use to specify --since=1970-01-01 by default anyway.
6036         * build-aux/gitlog-to-changelog: By default, when no --since option
6037         was given, do not specify explicit --since option to git-log.
6038
6039 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6040
6041         gitlog-to-changelog: new option --append-dot.
6042         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6043         first non-blank line of each commit message terminated with a dot.
6044
6045 2011-10-30  Bruno Haible  <bruno@clisp.org>
6046
6047         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6048         * lib/ffsl.h: Include <config.h>.
6049         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6050
6051 2011-10-30  Jim Meyering  <meyering@redhat.com>
6052
6053         GNUmakefile: reenable "make syntax-check" for most projects
6054         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6055         build-aux variable", "syntax-check" would do nothing but succeed with
6056         the "No version control files detected..." diagnostic (unless you
6057         happened to override _build-aux via cfg.mk).
6058         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6059         to precede inclusion of maint.mk.  Otherwise, these variables would
6060         be used undefined in any project that does not override the default.
6061
6062 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6063
6064         gitlog-to-changelog: treat a message with only blank lines as empty.
6065         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6066         trailing blank lines before the code that issues a warning about an
6067         empty commit message.
6068
6069 2011-10-30  Jim Meyering  <meyering@redhat.com>
6070
6071         test-parse-datetime.c: avoid new DST-related false positive test failure
6072         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6073         based on the time/date we'll convert, not the current time.
6074         Otherwise, the moment we cross a DST boundary like today's in
6075         Europe, (CEST to CET), that offset ends up being one hour off.
6076
6077 2011-10-27  Bruno Haible  <bruno@clisp.org>
6078
6079         fstat: Tweak documentation.
6080         * modules/fstat (Description): More precise description.
6081
6082 2011-10-27  Bruno Haible  <bruno@clisp.org>
6083
6084         Update documentation regarding 'largefile' module.
6085         * doc/posix-functions/fstat.texi: Tweak wording.
6086         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6087         problems with huge directories and/or small ino_t types.
6088         * doc/posix-functions/readdir.texi: Likewise.
6089         * doc/posix-functions/rewinddir.texi: Likewise.
6090
6091 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6092
6093         maint.mk: don't maintain a second build-aux variable.
6094         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6095         depends on GNUmakefile, which already maintains a cfg.mk
6096         overridable $(_build-aux) for projects with a non-standard
6097         build-aux directory location, although without the $(srcdir)
6098         prefix.  Use that variable consistently instead of introducing a
6099         second one.  Adjust all call sites.
6100
6101 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6102
6103         Add stdalign module and use it in other modules.
6104         This is based on a previous proposal by Bruno Haible
6105         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6106
6107         stdalign: new module
6108         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6109         * modules/stdalign: New files.
6110         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6111         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6112
6113         stdalign-tests: new module
6114         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6115
6116         argp: use stdalign
6117         * lib/argp-parse.c: Include <stdalign.h>.
6118         (alignof): Remove.
6119         * modules/argp (Depends-on): Add stdalign.
6120
6121         crypto libraries: use stdalign
6122         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6123         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6124         Do not include <stdlib.h> twice, in md4.c.
6125         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6126         because we are accessing a pointer's bit-pattern, not a size.
6127         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6128         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6129         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6130         * modules/crypto/sha512: Likewise.
6131
6132         sys_socket: use stdalign, not alignof
6133         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6134         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6135
6136 2011-10-27  Bruno Haible  <bruno@clisp.org>
6137
6138         raise test: Avoid a test failure on Linux/MIPS.
6139         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6140         because 99 is a valid signal on Linux/MIPS.
6141
6142 2011-10-27  Bruno Haible  <bruno@clisp.org>
6143
6144         nonblocking tests: Fix test failure on Linux/MIPS.
6145         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6146         Set to 270000.
6147
6148 2011-10-27  Bruno Haible  <bruno@clisp.org>
6149
6150         utimensat: Work around problem on Linux/hppa.
6151         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6152         values.
6153         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6154
6155 2011-10-25  Jim Meyering  <meyering@redhat.com>
6156
6157         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6158         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6159         after symbols like NULL, size_t, etc.
6160         Reported by Alfred M. Szmidt.
6161
6162         maint.mk: exempt ENODATA from a syntax-check rule
6163         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6164         from the sc_prohibit_always-defined_macros syntax-check rule.
6165         Add a comment.  See this for more details:
6166         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6167
6168 2011-10-23  Jim Meyering  <meyering@redhat.com>
6169
6170         fts: close parent dir FD before returning from post-traversal fts_read
6171         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6172         unlink A, even though an FD open on A remained.  This is suboptimal
6173         (holding a file descriptor open longer than needed), but otherwise not
6174         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6175         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6176         that represents a real problem: it causes the removal of A to fail
6177         with e.g., "rm: cannot remove `A': Device or resource busy"
6178
6179         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6180         directory file descriptors.  After completing the final, FTS_DP,
6181         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6182         cache, but then proceeded to add a new FD to it via the subsequent
6183         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6184         final file descriptor would be closed only via fts_close's call to
6185         fd_ring_clear.  Now, it is usually closed earlier, via the final
6186         FTS_DP-returning fts_read call.
6187         * lib/fts.c (restore_initial_cwd): New function, converted from
6188         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6189         Update callers.
6190         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6191         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6192
6193 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6194             Bruno Haible  <bruno@clisp.org>
6195             Jim Meyering  <jim@meyering.net>
6196
6197         readme-release: improve safety of release prep instructions.
6198         * README-release: Don't git pull all branches when only master
6199         is needed for the release process.
6200         Run make maintainer-clean before changing trees and merging.
6201         Don't try to run ./configure right after git pull in case files
6202         that influence the bootstrap process have changed, move the
6203         ./configure step to after running ./bootstrap.
6204         Don't bootstrap "one last time"... it's the first time!
6205
6206 2011-10-22  Bruno Haible  <bruno@clisp.org>
6207
6208         errno, strerror-override: Support for MSVC 10.
6209         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6210         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6211         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6212         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6213         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6214         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6215         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6216         Assign values compatible with MSVC 10.
6217         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6218         New macros.
6219         (GNULIB_defined_EWINSOCK): New macro.
6220         * lib/strerror-override.c (strerror_override): Update accordingly.
6221         * lib/strerror-override.h: Likewise.
6222         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6223         longer equal to the corresponding errno value.
6224         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6225
6226 2011-10-22  Bruno Haible  <bruno@clisp.org>
6227
6228         perror: Recognize when test program crashes.
6229         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6230         strerror, set gl_cv_func_perror_works to no.
6231         Reported by Daniel Richard G. <skunk@iskunk.org>.
6232
6233         perror: Fix indentation.
6234         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6235
6236 2011-10-22  Bruno Haible  <bruno@clisp.org>
6237
6238         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6239         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6240         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6241         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6242         functions, not as a macro.
6243         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6244         macros.
6245         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6246         absence of macro.
6247         Suggested by Eric Blake.
6248         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6249
6250 2011-10-21  Bruno Haible  <bruno@clisp.org>
6251
6252         relocatable-prog-wrapper: Don't leave object files behind.
6253         * build-aux/install-reloc: Re-synchronize list of .o files to be
6254         removed with list of compilation units.
6255
6256 2011-10-20  Bruno Haible  <bruno@clisp.org>
6257
6258         openpty, posix_openpt: Remove code duplication.
6259         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6260         * lib/openpty.c: Include <stdlib.h>.
6261         (openpty): Use posix_openpt on all platforms except IRIX.
6262         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6263
6264 2011-10-20  Bruno Haible  <bruno@clisp.org>
6265
6266         unlockpt: Detect invalid argument.
6267         * lib/unlockpt.c: Include <fcntl.h>.
6268         (unlockpt): Check whether fd is valid, using fcntl().
6269         * modules/unlockpt (Depends-on): Add fcntl-h.
6270
6271 2011-10-20  Bruno Haible  <bruno@clisp.org>
6272
6273         openpty: Avoid compilation error on AIX 6.1.
6274         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6275
6276 2011-10-20  Bruno Haible  <bruno@clisp.org>
6277
6278         posix_openpt: Support for OpenBSD.
6279         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6280         (posix_openpt) [OpenBSD]: New code.
6281         * lib/grantpt.c: Include <fcntl.h>.
6282         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6283         * modules/grantpt (Depends-on): Add fcntl-h.
6284
6285 2011-10-20  Bruno Haible  <bruno@clisp.org>
6286
6287         posix_openpt test: Coding style.
6288         * tests/test-posix_openpt.c: Use GNU coding style.
6289
6290 2011-10-20  Bruno Haible  <bruno@clisp.org>
6291
6292         grantpt: Support --avoid=pt_chown.
6293         * modules/grantpt (Files): Add lib/pty-private.h.
6294
6295 2011-10-20  Bruno Haible  <bruno@clisp.org>
6296
6297         posix_openpt: Fix autoconf macro.
6298         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6299         unneeded check for _getpty.
6300
6301 2011-10-20  Bruno Haible  <bruno@clisp.org>
6302
6303         openpty: Update comments.
6304         * lib/openpty.c: Add comments about Minix.
6305
6306 2011-10-19  Eric Blake  <eblake@redhat.com>
6307
6308         openpty: relax license
6309         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6310
6311         pt_chown: use configmake to simplify build
6312         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6313
6314         ptsname and others: relax license
6315         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6316         * modules/unlockpt (License): Likewise.
6317         * modules/pt_chown (License): Likewise.
6318         * modules/ptsname (License): Likewise.
6319         * modules/ttyname_r (License): Likewise.
6320
6321 2011-10-19  Jim Meyering  <meyering@redhat.com>
6322
6323         posix_openpt: remove spurious #endif
6324         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6325
6326 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6327
6328         maint.mk: Respect $(build_aux) in web-manual rule.
6329         * top/maint.mk (web-manual): Find gen-announce script in user's
6330         $(build_aux) directory instead of hard-coding 'build-aux'.
6331
6332 2011-10-19  Bruno Haible  <bruno@clisp.org>
6333
6334         posix_openpt: Fix compilation error.
6335         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6336         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6337         Mention the openpty module as an alternative.
6338
6339 2011-10-19  Bruno Haible  <bruno@clisp.org>
6340
6341         Support for old NeXTstep 3.3 frexp().
6342         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6343         execution time of the test to 5 seconds.
6344         Reported by Daniel Richard G. <skunk@iskunk.org>.
6345
6346 2011-10-19  Bruno Haible  <bruno@clisp.org>
6347
6348         Support for old NeXTstep 3.3 sed.
6349         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6350         part, use /.../, not \|...|. Escape periods in the header file name.
6351         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6352         Reported by Daniel Richard G. <skunk@iskunk.org>.
6353
6354 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6355
6356         Support for old NeXTstep 3.3 gcc.
6357         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6358         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6359         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6360         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6361         * lib/regex.h (_Restrict_arr_): Likewise.
6362         * lib/regex_internal.h (re_token_t): Likewise.
6363         * lib/regexec.c (check_node_accept_bytes): Likewise.
6364         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6365
6366 2011-10-18  Eric Blake  <eblake@redhat.com>
6367
6368         posix_openpt: new module
6369         * modules/posix_openpt: New module.
6370         * m4/posix_openpt.m4: New file.
6371         * lib/posix_openpt.c: Likewise.
6372         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6373         (gl_STDLIB_H_DEFAULTS): Set defaults.
6374         * modules/stdlib (Makefile.am): Substitute macros.
6375         * lib/stdlib.in.h (posix_openpt): Declare.
6376         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6377         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6378         * modules/posix_openpt-tests: New test module.
6379         * tests/test-posix_openpt.c: New test.
6380
6381 2011-10-15  Bruno Haible  <bruno@clisp.org>
6382
6383         xstrtoll: Fix compilation failure.
6384         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6385         from lib/strtol.c.
6386         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6387         some platforms.
6388         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6389
6390 2011-10-15  Bruno Haible  <bruno@clisp.org>
6391
6392         vasnprintf: Optimize bit search operation.
6393         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6394         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6395         gl_DOUBLE_EXPONENT_LOCATION.
6396         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6397         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6398         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6399         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6400         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6401         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6402         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6403         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6404         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6405
6406 2011-10-15  Bruno Haible  <bruno@clisp.org>
6407
6408         vasnprintf: Fix comments.
6409         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6410
6411 2011-10-14  Bruno Haible  <bruno@clisp.org>
6412
6413         Tests for module 'integer_length_ll'.
6414         * modules/integer_length_ll-tests: New file.
6415         * tests/test-integer_length_ll.c: New file.
6416
6417         New module 'integer_length_ll'.
6418         * lib/integer_length_ll.c: New file.
6419         * modules/integer_length_ll: New file.
6420
6421 2011-10-14  Bruno Haible  <bruno@clisp.org>
6422
6423         Tests for module 'integer_length_l'.
6424         * modules/integer_length_l-tests: New file.
6425         * tests/test-integer_length_l.c: New file.
6426
6427         New module 'integer_length_l'.
6428         * lib/integer_length_l.c: New file.
6429         * modules/integer_length_l: New file.
6430
6431 2011-10-14  Bruno Haible  <bruno@clisp.org>
6432
6433         Tests for module 'integer_length'.
6434         * modules/integer_length-tests: New file.
6435         * tests/test-integer_length.c: New file.
6436
6437         New module 'integer_length'.
6438         * lib/integer_length.h: New file.
6439         * lib/integer_length.c: New file.
6440         * modules/integer_length: New file.
6441
6442 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6443
6444         popen: Fix dependency conditions.
6445         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6446
6447 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6448
6449         perror: Fix autoconf test.
6450         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6451         <stdlib.h> and <string.h>.
6452
6453 2011-10-14  Bruno Haible  <bruno@clisp.org>
6454
6455         ffsl: Optimize on 64-bit platforms.
6456         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6457         unrolling.
6458
6459 2011-10-13  Bruno Haible  <bruno@clisp.org>
6460
6461         ffsl: Optimize on 32-bit platforms.
6462         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6463         use ffs() without a loop.
6464
6465         ffsl, ffsll: Optimize for GCC.
6466         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6467         * lib/ffsl.c (GCC_BUILTIN): New macro.
6468         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6469
6470 2011-10-13  Bruno Haible  <bruno@clisp.org>
6471
6472         ffs, bcopy, memset: Support symbol renaming via config.h.
6473         * lib/ffs.c: Include <config.h>.
6474         * lib/bcopy.c: Likewise.
6475         * lib/memset.c: Likewise.
6476
6477 2011-10-10  Bruno Haible  <bruno@clisp.org>
6478
6479         atanl: Simplify for platforms where 'long double' == 'double'.
6480         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6481         alternative implementation.
6482         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6483         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6484         * modules/atanl (Depends-on): Add atan. Update conditions.
6485
6486 2011-10-10  Bruno Haible  <bruno@clisp.org>
6487
6488         acosl: Simplify for platforms where 'long double' == 'double'.
6489         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6490         alternative implementation.
6491         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6492         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6493         * modules/acosl (Depends-on): Add acos. Update conditions.
6494
6495 2011-10-10  Bruno Haible  <bruno@clisp.org>
6496
6497         asinl: Simplify for platforms where 'long double' == 'double'.
6498         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6499         alternative implementation.
6500         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6501         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6502         * modules/asinl (Depends-on): Add asin. Update conditions.
6503
6504 2011-10-10  Bruno Haible  <bruno@clisp.org>
6505
6506         tanl: Simplify for platforms where 'long double' == 'double'.
6507         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6508         implementation.
6509         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6510         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6511         * modules/tanl (Depends-on): Add tan. Update conditions.
6512         (configure.ac): Don't compile trigl.c if
6513         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6514
6515 2011-10-10  Bruno Haible  <bruno@clisp.org>
6516
6517         cosl: Simplify for platforms where 'long double' == 'double'.
6518         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6519         implementation.
6520         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6521         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6522         * modules/cosl (Depends-on): Add cos. Update conditions.
6523         (configure.ac): Don't compile sincosl.c and trigl.c if
6524         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6525
6526 2011-10-10  Bruno Haible  <bruno@clisp.org>
6527
6528         sinl: Simplify for platforms where 'long double' == 'double'.
6529         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6530         implementation.
6531         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6532         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6533         * modules/sinl (Depends-on): Add sin. Update conditions.
6534         (configure.ac): Don't compile sincosl.c and trigl.c if
6535         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6536
6537 2011-10-10  Bruno Haible  <bruno@clisp.org>
6538
6539         logl: Simplify for platforms where 'long double' == 'double'.
6540         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6541         implementation.
6542         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6543         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6544         * modules/logl (Depends-on): Add log. Update conditions.
6545
6546 2011-10-10  Bruno Haible  <bruno@clisp.org>
6547
6548         expl: Simplify for platforms where 'long double' == 'double'.
6549         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6550         implementation.
6551         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6552         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6553         * modules/expl (Depends-on): Add exp. Update conditions.
6554
6555 2011-10-10  Bruno Haible  <bruno@clisp.org>
6556
6557         sqrtl: Simplify for platforms where 'long double' == 'double'.
6558         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6559         alternative implementation.
6560         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6561         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6562         * modules/sqrtl (Depends-on): Update conditions.
6563
6564 2011-10-10  Bruno Haible  <bruno@clisp.org>
6565
6566         ldexpl: Simplify for platforms where 'long double' == 'double'.
6567         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6568         alternative implementation.
6569         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6570         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6571         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6572
6573 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6574
6575         ffsll: set correct witness
6576         * modules/ffsll (configure.ac): Fix typo.
6577
6578 2011-10-10  Bruno Haible  <bruno@clisp.org>
6579
6580         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6581         * lib/printf-frexpl.c: Include <config.h>.
6582         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6583         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6584         second time.
6585         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6586         gl_LONG_DOUBLE_VS_DOUBLE.
6587         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6588         conditions.
6589
6590 2011-10-10  Bruno Haible  <bruno@clisp.org>
6591
6592         frexpl: Simplify for platforms where 'long double' == 'double'.
6593         * lib/frexpl.c: Include <config.h>.
6594         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6595         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6596         time.
6597         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6598         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6599         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6600         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6601         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6602         conditions.
6603
6604 2011-10-10  Jim Meyering  <meyering@redhat.com>
6605
6606         test-renameat: don't leave behind a temporary file
6607         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6608           ERROR: files left in build directory after distclean:
6609           ./gltests/test-renameat.too
6610           make[1]: *** [distcleancheck] Error 1
6611         Reported by Tom G. Christensen.
6612
6613 2011-10-09  Bruno Haible  <bruno@clisp.org>
6614
6615         rint: Determine RINT_LIBM correctly on AIX 7.
6616         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6617         directly, not only through a function pointer. Also accept an optional
6618         4th argument with extra code.
6619         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6620         rintf() call by gcc when optimizing.
6621
6622         mathfunc.m4: Refactor.
6623         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6624         m4 variable.
6625
6626 2011-10-09  Bruno Haible  <bruno@clisp.org>
6627
6628         rintl: Simplify for platforms where 'long double' == 'double'.
6629         * lib/rintl.c: Include <config.h>.
6630         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6631         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6632         time.
6633         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6634         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6635         * modules/rintl (Depends-on): Add rint. Update conditions.
6636
6637 2011-10-09  Bruno Haible  <bruno@clisp.org>
6638
6639         roundl: Simplify for platforms where 'long double' == 'double'.
6640         * lib/roundl.c: Include <config.h>.
6641         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6642         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6643         time.
6644         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6645         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6646         * modules/roundl (Depends-on): Add round. Update conditions.
6647
6648 2011-10-09  Bruno Haible  <bruno@clisp.org>
6649
6650         truncl: Simplify for platforms where 'long double' == 'double'.
6651         * lib/truncl.c: Include <config.h>.
6652         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6653         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6654         time.
6655         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6656         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6657         * modules/truncl (Depends-on): Add trunc. Update conditions.
6658
6659 2011-10-09  Bruno Haible  <bruno@clisp.org>
6660
6661         ceill: Simplify for platforms where 'long double' == 'double'.
6662         * lib/ceill.c: Include <config.h>.
6663         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6664         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6665         time.
6666         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6667         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6668         * modules/ceill (Depends-on): Add ceil. Update conditions.
6669
6670 2011-10-09  Bruno Haible  <bruno@clisp.org>
6671
6672         floorl: Simplify for platforms where 'long double' == 'double'.
6673         * lib/floorl.c: Include <config.h>.
6674         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6675         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6676         time.
6677         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6678         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6679         * modules/floorl (Depends-on): Add floor. Update conditions.
6680
6681 2011-10-09  Bruno Haible  <bruno@clisp.org>
6682
6683         rint: Fix ordering constraints.
6684         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6685         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6686         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6687
6688 2011-10-09  Bruno Haible  <bruno@clisp.org>
6689
6690         copysignl: Simplify for platforms where 'long double' == 'double'.
6691         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6692         alternative.
6693         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6694         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6695         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6696
6697 2011-10-09  Bruno Haible  <bruno@clisp.org>
6698
6699         Tests for module 'rintl'.
6700         * modules/rintl-tests: New file.
6701         * tests/test-rintl.c: New file.
6702
6703         New module 'rintl'.
6704         * lib/math.in.h (rintl): New declaration.
6705         * lib/rintl.c: New file.
6706         * m4/rintl.m4: New file.
6707         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6709         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6710         * modules/rintl: New file.
6711         * tests/test-math-c++.cc: Check the declaration of rintl.
6712         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6713         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6714         * doc/posix-functions/rintl.texi: Mention the new module.
6715
6716 2011-10-09  Bruno Haible  <bruno@clisp.org>
6717
6718         Tests for module 'rintf'.
6719         * modules/rintf-tests: New file.
6720         * tests/test-rintf.c: New file.
6721
6722         New module 'rintf'.
6723         * lib/math.in.h (rintf): New declaration.
6724         * lib/rintf.c: New file.
6725         * m4/rintf.m4: New file.
6726         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6727         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6728         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6729         * modules/rintf: New file.
6730         * tests/test-math-c++.cc: Check the declaration of rintf.
6731         * doc/posix-functions/rintf.texi: Mention the new module.
6732
6733 2011-10-09  Bruno Haible  <bruno@clisp.org>
6734
6735         rint: Support for MSVC.
6736         * lib/math.in.h (rint): New declaration.
6737         * lib/rint.c: New file.
6738         * m4/rint.m4: New file.
6739         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6741         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6742         * modules/rint (Description): Fix.
6743         (Files): Add lib/rint.c, m4/rint.m4.
6744         (Depends-on): Add math.
6745         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6746         gl_MATH_MODULE_INDICATOR.
6747         * tests/test-math-c++.cc: Check the declaration of rint.
6748         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6749         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6750         * doc/posix-functions/rint.texi: Mention the replacement provided by
6751         the module.
6752
6753         rint tests: More tests.
6754         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6755         minus-zero.h, infinity.h, nan.h.
6756         (main): Skip the test if the current rounding mode is not standard. Add
6757         tests for negative numbers, minus zero, infinity, NaN.
6758         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6759         tests/nan.h.
6760         (Depends-on): Add isnand-nolibm.
6761
6762 2011-10-09  Bruno Haible  <bruno@clisp.org>
6763
6764         Tests for module 'copysignl'.
6765         * modules/copysignl-tests: New file.
6766         * tests/test-copysignl.c: New file.
6767
6768         New module 'copysignl'.
6769         * lib/math.in.h (copysignl): New declaration.
6770         * lib/copysignl.c: New file.
6771         * m4/copysignl.m4: New file.
6772         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6774         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6775         HAVE_COPYSIGNL.
6776         * modules/copysignl: New file.
6777         * tests/test-math-c++.cc: Check the declaration of copysignl.
6778         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6779         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6780         * doc/posix-functions/copysignl.texi: Mention the new module.
6781
6782 2011-10-09  Bruno Haible  <bruno@clisp.org>
6783
6784         Tests for module 'copysignf'.
6785         * modules/copysignf-tests: New file.
6786         * tests/test-copysignf.c: New file.
6787
6788         New module 'copysignf'.
6789         * lib/math.in.h (copysignf): New declaration.
6790         * lib/copysignf.c: New file.
6791         * m4/copysignf.m4: New file.
6792         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6794         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6795         HAVE_COPYSIGNF.
6796         * modules/copysignf: New file.
6797         * tests/test-math-c++.cc: Check the declaration of copysignf.
6798         * doc/posix-functions/copysignf.texi: Mention the new module.
6799
6800 2011-10-09  Bruno Haible  <bruno@clisp.org>
6801
6802         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6803         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6804         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6805         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6806         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6807         gl_SIGNAL_H_DEFAULTS.
6808
6809 2011-10-09  Bruno Haible  <bruno@clisp.org>
6810
6811         poll: Make macro safer.
6812         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6813         ac_cv_header_poll_h is not set.
6814
6815 2011-10-09  Bruno Haible  <bruno@clisp.org>
6816
6817         copysign: Provide replacement.
6818         * lib/math.in.h (copysign): New declaration.
6819         * lib/copysign.c: New file.
6820         * m4/copysign.m4: New file.
6821         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6823         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6824         HAVE_COPYSIGN.
6825         * modules/copysign (Description): Clarify.
6826         (Files): Add lib/copysign.c, m4/copysign.m4.
6827         (Depends-on): Add math, signbit.
6828         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6829         gl_MATH_MODULE_INDICATOR.
6830         * tests/test-math-c++.cc: Check the declaration of copysign.
6831         * doc/posix-functions/copysign.texi: Mention the effects of the module
6832         on Minix and MSVC.
6833
6834 2011-10-09  Bruno Haible  <bruno@clisp.org>
6835
6836         isinf: Ensure macro on AIX 5.1.
6837         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6838         macro.
6839         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6840
6841 2011-10-09  Bruno Haible  <bruno@clisp.org>
6842
6843         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6844         * modules/snprintf-posix-tests (configure.ac): Require
6845         gl_LONG_DOUBLE_VS_DOUBLE.
6846         * modules/sprintf-posix-tests (configure.ac): Likewise.
6847         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6848         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6849         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6850         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6851         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6852         tests on platforms where 'long double' is the same as 'double'.
6853         * tests/test-sprintf-posix.h (test_function): Likewise.
6854         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6855         * tests/test-vasprintf-posix.c (test_function): Likewise.
6856
6857         *printf: Fix for platforms where 'long double' == 'double'.
6858         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6859         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6860         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6861         * modules/fprintf-posix (Files): Likewise.
6862         * modules/obstack-printf-posix (Files): Likewise.
6863         * modules/snprintf-posix (Files): Likewise.
6864         * modules/sprintf-posix (Files): Likewise.
6865         * modules/vasnprintf (Files): Likewise.
6866         * modules/vasnprintf-posix (Files): Likewise.
6867         * modules/vasprintf-posix (Files): Likewise.
6868         * modules/vdprintf-posix (Files): Likewise.
6869         * modules/vfprintf-posix (Files): Likewise.
6870         * modules/vsnprintf-posix (Files): Likewise.
6871         * modules/vsprintf-posix (Files): Likewise.
6872         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6873         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6874         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6875         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6876         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6877         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6878         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6879
6880         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6881         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6882         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6883         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6884         'long double'.
6885         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6886
6887         isinf: Fix for platforms where 'long double' == 'double'.
6888         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6889         Don't blindly assume 80-bit 'long double'.
6890
6891         isfinite: Fix for platforms where 'long double' == 'double'.
6892         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6893         Don't blindly assume 80-bit 'long double'.
6894
6895         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6896         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6897         * modules/isfinite-tests (configure.ac): Require
6898         gl_LONG_DOUBLE_VS_DOUBLE.
6899         * modules/isinf-tests (configure.ac): Likewise.
6900         * modules/isnan-tests (configure.ac): Likewise.
6901         * modules/isnanl-tests (configure.ac): Likewise.
6902         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6903         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6904         tests on platforms where 'long double' is the same as 'double'.
6905         * tests/test-isinf.c (test_isinfl): Likewise.
6906         * tests/test-isnan.c (test_long_double): Likewise.
6907         * tests/test-isnanl.h (main): Likewise.
6908
6909 2011-10-08  Bruno Haible  <bruno@clisp.org>
6910
6911         Tests for module 'tanhf'.
6912         * modules/tanhf-tests: New file.
6913         * tests/test-tanhf.c: New file.
6914
6915         New module 'tanhf'.
6916         * lib/math.in.h (tanhf): New declaration.
6917         * lib/tanhf.c: New file.
6918         * m4/tanhf.m4: New file.
6919         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6921         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6922         * modules/tanhf: New file.
6923         * tests/test-math-c++.cc: Check the declaration of tanhf.
6924         * doc/posix-functions/tanhf.texi: Mention the new module.
6925
6926         tanh: Use a .m4 file.
6927         * m4/tanh.m4: New file.
6928         * modules/tanh (Files): Add it.
6929         (configure.ac): Just invoke gl_FUNC_TANH.
6930
6931 2011-10-08  Bruno Haible  <bruno@clisp.org>
6932
6933         Tests for module 'coshf'.
6934         * modules/coshf-tests: New file.
6935         * tests/test-coshf.c: New file.
6936
6937         New module 'coshf'.
6938         * lib/math.in.h (coshf): New declaration.
6939         * lib/coshf.c: New file.
6940         * m4/coshf.m4: New file.
6941         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
6942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
6943         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
6944         * modules/coshf: New file.
6945         * tests/test-math-c++.cc: Check the declaration of coshf.
6946         * doc/posix-functions/coshf.texi: Mention the new module.
6947
6948         cosh: Use a .m4 file.
6949         * m4/cosh.m4: New file.
6950         * modules/cosh (Files): Add it.
6951         (configure.ac): Just invoke gl_FUNC_COSH.
6952
6953 2011-10-08  Bruno Haible  <bruno@clisp.org>
6954
6955         Tests for module 'sinhf'.
6956         * modules/sinhf-tests: New file.
6957         * tests/test-sinhf.c: New file.
6958
6959         New module 'sinhf'.
6960         * lib/math.in.h (sinhf): New declaration.
6961         * lib/sinhf.c: New file.
6962         * m4/sinhf.m4: New file.
6963         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
6964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
6965         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
6966         * modules/sinhf: New file.
6967         * tests/test-math-c++.cc: Check the declaration of sinhf.
6968         * doc/posix-functions/sinhf.texi: Mention the new module.
6969
6970         sinh: Use a .m4 file.
6971         * m4/sinh.m4: New file.
6972         * modules/sinh (Files): Add it.
6973         (configure.ac): Just invoke gl_FUNC_SINH.
6974
6975 2011-10-08  Bruno Haible  <bruno@clisp.org>
6976
6977         Tests for module 'atan2f'.
6978         * modules/atan2f-tests: New file.
6979         * tests/test-atan2f.c: New file.
6980
6981         New module 'atan2f'.
6982         * lib/math.in.h (atan2f): New declaration.
6983         * lib/atan2f.c: New file.
6984         * m4/atan2f.m4: New file.
6985         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
6986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
6987         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
6988         * modules/atan2f: New file.
6989         * tests/test-math-c++.cc: Check the declaration of atan2f.
6990         * doc/posix-functions/atan2f.texi: Mention the new module.
6991
6992         atan2: Use a .m4 file.
6993         * m4/atan2.m4: New file.
6994         * modules/atan2 (Files): Add it.
6995         (configure.ac): Just invoke gl_FUNC_ATAN2.
6996
6997 2011-10-08  Bruno Haible  <bruno@clisp.org>
6998
6999         Tests for module 'atanf'.
7000         * modules/atanf-tests: New file.
7001         * tests/test-atanf.c: New file.
7002
7003         New module 'atanf'.
7004         * lib/math.in.h (atanf): New declaration.
7005         * lib/atanf.c: New file.
7006         * m4/atanf.m4: New file.
7007         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7009         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7010         * modules/atanf: New file.
7011         * tests/test-math-c++.cc: Check the declaration of atanf.
7012         * doc/posix-functions/atanf.texi: Mention the new module.
7013
7014         atan: Use a .m4 file.
7015         * m4/atan.m4: New file.
7016         * modules/atan (Files): Add it.
7017         (configure.ac): Just invoke gl_FUNC_ATAN.
7018
7019 2011-10-08  Bruno Haible  <bruno@clisp.org>
7020
7021         Tests for module 'acosf'.
7022         * modules/acosf-tests: New file.
7023         * tests/test-acosf.c: New file.
7024
7025         New module 'acosf'.
7026         * lib/math.in.h (acosf): New declaration.
7027         * lib/acosf.c: New file.
7028         * m4/acosf.m4: New file.
7029         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7031         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7032         * modules/acosf: New file.
7033         * tests/test-math-c++.cc: Check the declaration of acosf.
7034         * doc/posix-functions/acosf.texi: Mention the new module.
7035
7036         acos: Use a .m4 file.
7037         * m4/acos.m4: New file.
7038         * modules/acos (Files): Add it.
7039         (configure.ac): Just invoke gl_FUNC_ACOS.
7040
7041 2011-10-08  Bruno Haible  <bruno@clisp.org>
7042
7043         Tests for module 'asinf'.
7044         * modules/asinf-tests: New file.
7045         * tests/test-asinf.c: New file.
7046
7047         New module 'asinf'.
7048         * lib/math.in.h (asinf): New declaration.
7049         * lib/asinf.c: New file.
7050         * m4/asinf.m4: New file.
7051         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7053         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7054         * modules/asinf: New file.
7055         * tests/test-math-c++.cc: Check the declaration of asinf.
7056         * doc/posix-functions/asinf.texi: Mention the new module.
7057
7058         asin: Use a .m4 file.
7059         * m4/asin.m4: New file.
7060         * modules/asin (Files): Add it.
7061         (configure.ac): Just invoke gl_FUNC_ASIN.
7062
7063 2011-10-08  Bruno Haible  <bruno@clisp.org>
7064
7065         Tests for module 'tanf'.
7066         * modules/tanf-tests: New file.
7067         * tests/test-tanf.c: New file.
7068
7069         New module 'tanf'.
7070         * lib/math.in.h (tanf): New declaration.
7071         * lib/tanf.c: New file.
7072         * m4/tanf.m4: New file.
7073         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7075         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7076         * modules/tanf: New file.
7077         * tests/test-math-c++.cc: Check the declaration of tanf.
7078         * doc/posix-functions/tanf.texi: Mention the new module.
7079
7080         tan: Use a .m4 file.
7081         * m4/tan.m4: New file.
7082         * modules/tan (Files): Add it.
7083         (configure.ac): Just invoke gl_FUNC_TAN.
7084
7085 2011-10-08  Bruno Haible  <bruno@clisp.org>
7086
7087         Tests for module 'cosf'.
7088         * modules/cosf-tests: New file.
7089         * tests/test-cosf.c: New file.
7090
7091         New module 'cosf'.
7092         * lib/math.in.h (cosf): New declaration.
7093         * lib/cosf.c: New file.
7094         * m4/cosf.m4: New file.
7095         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7097         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7098         * modules/cosf: New file.
7099         * tests/test-math-c++.cc: Check the declaration of cosf.
7100         * doc/posix-functions/cosf.texi: Mention the new module.
7101
7102         cos: Use a .m4 file.
7103         * m4/cos.m4: New file.
7104         * modules/cos (Files): Add it.
7105         (configure.ac): Just invoke gl_FUNC_COS.
7106
7107 2011-10-08  Bruno Haible  <bruno@clisp.org>
7108
7109         Tests for module 'sinf'.
7110         * modules/sinf-tests: New file.
7111         * tests/test-sinf.c: New file.
7112
7113         New module 'sinf'.
7114         * lib/math.in.h (sinf): New declaration.
7115         * lib/sinf.c: New file.
7116         * m4/sinf.m4: New file.
7117         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7119         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7120         * modules/sinf: New file.
7121         * tests/test-math-c++.cc: Check the declaration of sinf.
7122         * doc/posix-functions/sinf.texi: Mention the new module.
7123
7124         sin: Use a .m4 file.
7125         * m4/sin.m4: New file.
7126         * modules/sin (Files): Add it.
7127         (configure.ac): Just invoke gl_FUNC_SIN.
7128
7129 2011-10-08  Bruno Haible  <bruno@clisp.org>
7130
7131         Tests for module 'powf'.
7132         * modules/powf-tests: New file.
7133         * tests/test-powf.c: New file.
7134
7135         New module 'powf'.
7136         * lib/math.in.h (powf): New declaration.
7137         * lib/powf.c: New file.
7138         * m4/powf.m4: New file.
7139         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7141         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7142         * modules/powf: New file.
7143         * tests/test-math-c++.cc: Check the declaration of powf.
7144         * doc/posix-functions/powf.texi: Mention the new module.
7145
7146         pow: Use a .m4 file.
7147         * m4/pow.m4: New file.
7148         * modules/pow (Files): Add it.
7149         (configure.ac): Just invoke gl_FUNC_POW.
7150
7151 2011-10-08  Bruno Haible  <bruno@clisp.org>
7152
7153         Tests for module 'log10f'.
7154         * modules/log10f-tests: New file.
7155         * tests/test-log10f.c: New file.
7156
7157         New module 'log10f'.
7158         * lib/math.in.h (log10f): New declaration.
7159         * lib/log10f.c: New file.
7160         * m4/log10f.m4: New file.
7161         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7163         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7164         * modules/log10f: New file.
7165         * tests/test-math-c++.cc: Check the declaration of log10f.
7166         * doc/posix-functions/log10f.texi: Mention the new module.
7167
7168         log10: Use a .m4 file.
7169         * m4/log10.m4: New file.
7170         * modules/log10 (Files): Add it.
7171         (configure.ac): Just invoke gl_FUNC_LOG10.
7172
7173 2011-10-08  Bruno Haible  <bruno@clisp.org>
7174
7175         Tests for module 'logf'.
7176         * modules/logf-tests: New file.
7177         * tests/test-logf.c: New file.
7178
7179         New module 'logf'.
7180         * lib/math.in.h (logf): New declaration.
7181         * lib/logf.c: New file.
7182         * m4/logf.m4: New file.
7183         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7185         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7186         * modules/logf: New file.
7187         * tests/test-math-c++.cc: Check the declaration of logf.
7188         * doc/posix-functions/logf.texi: Mention the new module.
7189
7190         log: Use a .m4 file.
7191         * m4/log.m4: New file.
7192         * modules/log (Files): Add it.
7193         (configure.ac): Just invoke gl_FUNC_LOG.
7194
7195 2011-10-08  Bruno Haible  <bruno@clisp.org>
7196
7197         Tests for module 'expf'.
7198         * modules/expf-tests: New file.
7199         * tests/test-expf.c: New file.
7200
7201         New module 'expf'.
7202         * lib/math.in.h (expf): New declaration.
7203         * lib/expf.c: New file.
7204         * m4/expf.m4: New file.
7205         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7207         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7208         * modules/expf: New file.
7209         * tests/test-math-c++.cc: Check the declaration of expf.
7210         * doc/posix-functions/expf.texi: Mention the new module.
7211
7212         exp: Use a .m4 file.
7213         * m4/exp.m4: New file.
7214         * modules/exp (Files): Add it.
7215         (configure.ac): Just invoke gl_FUNC_EXP.
7216
7217 2011-10-08  Bruno Haible  <bruno@clisp.org>
7218
7219         Tests for module 'sqrtf'.
7220         * modules/sqrtf-tests: New file.
7221         * tests/test-sqrtf.c: New file.
7222
7223         New module 'sqrtf'.
7224         * lib/math.in.h (sqrtf): New declaration.
7225         * lib/sqrtf.c: New file.
7226         * m4/sqrtf.m4: New file.
7227         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7229         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7230         * modules/sqrtf: New file.
7231         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7232         * doc/posix-functions/sqrtf.texi: Mention the new module.
7233
7234 2011-10-08  Bruno Haible  <bruno@clisp.org>
7235
7236         Tests: Avoid link failures w.r.t. libintl.
7237         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7238         $(LIBINTL).
7239         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7240         $(LIBINTL).
7241         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7242         against $(LIBINTL).
7243         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7244         $(LIBINTL).
7245         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7246         $(LIBINTL).
7247         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7248
7249 2011-10-08  Bruno Haible  <bruno@clisp.org>
7250
7251         pow tests: Defeat compiler optimizations.
7252         * tests/test-pow.c (main): Assign arguments to x and y before use.
7253
7254 2011-10-08  Bruno Haible  <bruno@clisp.org>
7255
7256         gnulib-tool: Improve last commit.
7257         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7258         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7259         ignore dependencies that are not among the modules list.
7260
7261 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7262
7263         gnulib-tool: don't follow dependencies to avoided modules
7264         This fixes a bug that is related to the previous one.
7265         * gnulib-tool (func_modules_transitive_closure)
7266         (func_emit_autoconf_snippets):
7267         Check whether a dependency is acceptable before using it.
7268         (--extract-dependencies): Report an error if --avoid is also used,
7269         since this combination of options is not yet supported.
7270
7271         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7272         Problem reported by Peter Dyballa in
7273         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7274         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7275         when echoing "$condition".
7276
7277 2011-10-07  Bruno Haible  <bruno@clisp.org>
7278
7279         Fix documentation about math functions on MacOS X.
7280         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7281         MacOS X 10.5.
7282         * doc/posix-functions/fdim.texi: Likewise.
7283         * doc/posix-functions/feclearexcept.texi: Likewise.
7284         * doc/posix-functions/fegetenv.texi: Likewise.
7285         * doc/posix-functions/fegetround.texi: Likewise.
7286         * doc/posix-functions/feholdexcept.texi: Likewise.
7287         * doc/posix-functions/feraiseexcept.texi: Likewise.
7288         * doc/posix-functions/fesetenv.texi: Likewise.
7289         * doc/posix-functions/fesetround.texi: Likewise.
7290         * doc/posix-functions/fetestexcept.texi: Likewise.
7291         * doc/posix-functions/feupdateenv.texi: Likewise.
7292         * doc/posix-functions/fmax.texi: Likewise.
7293         * doc/posix-functions/fmin.texi: Likewise.
7294         * doc/posix-functions/log2.texi: Likewise.
7295         * doc/posix-functions/modff.texi: Likewise.
7296         * doc/posix-functions/nan.texi: Likewise.
7297         * doc/posix-functions/nanf.texi: Likewise.
7298         * doc/posix-functions/nextafterf.texi: Likewise.
7299         * doc/posix-functions/remquo.texi: Likewise.
7300
7301 2011-10-07  Bruno Haible  <bruno@clisp.org>
7302
7303         modff: Drop assumption about library that defines modff.
7304         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7305         AC_CHECK_FUNCS.
7306         * modules/modff (Files): Add m4/mathfunc.m4.
7307
7308 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7309
7310         raise tests: Avoid a GCC warning.
7311         * tests/test-raise.c (handler): Use _Noreturn.
7312
7313 2011-10-07  Bruno Haible  <bruno@clisp.org>
7314
7315         Tests for module 'ldexpf'.
7316         * modules/ldexpf-tests: New file.
7317         * tests/test-ldexpf.c: New file.
7318
7319         New module 'ldexpf'.
7320         * lib/math.in.h (ldexpf): New declaration.
7321         * lib/ldexpf.c: New file.
7322         * m4/ldexpf.m4: New file.
7323         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7324         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7325         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7326         * modules/ldexpf: New file.
7327         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7328         * doc/posix-functions/ldexpf.texi: Mention the new module.
7329
7330 2011-10-06  Bruno Haible  <bruno@clisp.org>
7331
7332         frexpf: Work around problems on IRIX and mingw.
7333         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7335         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7336         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7337         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7338         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7339         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7340
7341 2011-10-06  Bruno Haible  <bruno@clisp.org>
7342
7343         fabsf: Drop assumption about library that defines fabsf.
7344         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7345         AC_CHECK_FUNCS.
7346         * modules/fabsf (Files): Add m4/mathfunc.m4.
7347
7348 2011-10-06  Bruno Haible  <bruno@clisp.org>
7349
7350         frexpf: Drop assumption about library that defines frexpf.
7351         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7352         'int *', 'float *', 'long double *', 'float', 'long double'.
7353         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7354         AC_CHECK_FUNCS.
7355         * modules/frexpf (Files): Add m4/mathfunc.m4.
7356
7357         Tests for module 'frexpf'.
7358         * modules/frexpf-tests: New file.
7359         * tests/test-frexpf.c: New file.
7360
7361         New module 'frexpf'.
7362         * lib/math.in.h (frexpf): New declaration.
7363         * lib/frexpf.c: New file.
7364         * m4/frexpf.m4: New file.
7365         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7367         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7368         * modules/frexpf: New file.
7369         * tests/test-math-c++.cc: Check the declaration of frexpf.
7370         * doc/posix-functions/frexpf.texi: Mention the new module.
7371
7372 2011-10-06  Bruno Haible  <bruno@clisp.org>
7373
7374         math: Sort function declarations of math.in.h.
7375         * lib/math.in.h (frexp, logb): Move declarations.
7376
7377 2011-10-05  Bruno Haible  <bruno@clisp.org>
7378
7379         Tests for module 'modff'.
7380         * modules/modff-tests: New file.
7381         * tests/test-modff.c: New file.
7382
7383         New module 'modff'.
7384         * lib/math.in.h (modff): New declaration.
7385         * lib/modff.c: New file.
7386         * m4/modff.m4: New file.
7387         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7389         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7390         * modules/modff: New file.
7391         * tests/test-math-c++.cc: Check the declaration of modff.
7392         * doc/posix-functions/modff.texi: Mention the new module.
7393
7394         modf tests: Make test sharper.
7395         * tests/test-modf.c (main): Strengthen upper bound.
7396
7397         modf: Use a .m4 file.
7398         * m4/modf.m4: New file.
7399         * modules/modf (Files): Add it.
7400         (configure.ac): Just invoke gl_FUNC_MODF.
7401
7402 2011-10-05  Bruno Haible  <bruno@clisp.org>
7403
7404         Tests for module 'fmodf'.
7405         * modules/fmodf-tests: New file.
7406         * tests/test-fmodf.c: New file.
7407
7408         New module 'fmodf'.
7409         * lib/math.in.h (fmodf): New declaration.
7410         * lib/fmodf.c: New file.
7411         * m4/fmodf.m4: New file.
7412         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7413         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7414         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7415         * modules/fmodf: New file.
7416         * tests/test-math-c++.cc: Check the declaration of fmodf.
7417         * doc/posix-functions/fmodf.texi: Mention the new module.
7418
7419         fmod: Use a .m4 file.
7420         * m4/fmod.m4: New file.
7421         * modules/fmod (Files): Add it.
7422         (configure.ac): Just invoke gl_FUNC_FMOD.
7423
7424 2011-10-05  Bruno Haible  <bruno@clisp.org>
7425
7426         Tests for module 'fabsf'.
7427         * modules/fabsf-tests: New file.
7428         * tests/test-fabsf.c: New file.
7429
7430         New module 'fabsf'.
7431         * lib/math.in.h (fabsf): New declaration.
7432         * lib/fabsf.c: New file.
7433         * m4/fabsf.m4: New file.
7434         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7435         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7436         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7437         * modules/fabsf: New file.
7438         * tests/test-math-c++.cc: Check the declaration of fabsf.
7439         * doc/posix-functions/fabsf.texi: Mention the new module.
7440
7441         fabs: Use a .m4 file.
7442         * m4/fabs.m4: New file.
7443         * modules/fabs (Files): Add it.
7444         (configure.ac): Just invoke gl_FUNC_FABS.
7445
7446 2011-10-05  Jim Meyering  <meyering@redhat.com>
7447
7448         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7449         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7450         ls -lL regression introduced in coreutils-8.12, it does so at the
7451         cost of an additional stat call in the common case.  Besides, now
7452         that the kernel change that prompted commit 95f7c57f has been reverted
7453         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7454         we have no use for commit 95f7c57f, "file-has-acl: use
7455         acl_extended_file_nofollow if available".
7456
7457 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7458
7459         file-has-acl: revert unintended change in behavior of ls -L
7460         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7461         derived from...
7462         (file_has_acl): ...code here.  Call it.
7463         This problem was introduced with 2011-07-22 commit 95f7c57f,
7464         "file-has-acl: use acl_extended_file_nofollow if available".
7465         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7466
7467 2011-10-03  Bruno Haible  <bruno@clisp.org>
7468
7469         poll: Avoid link errors on MSVC.
7470         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7471         * modules/poll (Depends-on): Add sockets.
7472         (Link): New section.
7473         * NEWS: Mention the change.
7474         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7475         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7476         $(LIB_POLL) instead of $(LIBSOCKET).
7477
7478 2011-10-03  Bruno Haible  <bruno@clisp.org>
7479
7480         sys_select tests: Fix link error on MSVC 9.
7481         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7482         with $(LIB_SELECT) instead of $(LIBSOCKET).
7483
7484 2011-10-03  Bruno Haible  <bruno@clisp.org>
7485
7486         sys_select: Fix compilation error on mingw.
7487         * lib/sys_select.in.h: On native Windows, include <io.h>.
7488
7489 2011-10-03  Bruno Haible  <bruno@clisp.org>
7490
7491         wmemset: Support for MSVC.
7492         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7493         whether wmemset() exists.
7494
7495 2011-10-03  Bruno Haible  <bruno@clisp.org>
7496
7497         wmemmove: Support for MSVC.
7498         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7499         whether wmemmove() exists.
7500
7501 2011-10-03  Bruno Haible  <bruno@clisp.org>
7502
7503         wmemcpy: Support for MSVC.
7504         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7505         whether wmemcpy() exists.
7506
7507 2011-10-03  Bruno Haible  <bruno@clisp.org>
7508
7509         wmemcmp: Support for MSVC.
7510         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7511         whether wmemcmp() exists.
7512
7513 2011-10-03  Bruno Haible  <bruno@clisp.org>
7514
7515         wmemchr: Support for MSVC.
7516         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7517         whether wmemchr() exists.
7518
7519 2011-10-03  Bruno Haible  <bruno@clisp.org>
7520
7521         glthread/*, strsignal: Support for MSVC.
7522         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7523         including <winsock.h> on MSVC 9.
7524         * lib/glthread/lock.h: Likewise.
7525         * lib/glthread/thread.h: Likewise.
7526         * lib/glthread/tls.h: Likewise.
7527         * lib/glthread/yield.h: Likewise.
7528         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7529         if HAVE_UNISTD_H is false.
7530         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7531
7532 2011-10-03  Bruno Haible  <bruno@clisp.org>
7533
7534         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7535         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7536         Set to 100000.
7537
7538 2011-10-03  Bruno Haible  <bruno@clisp.org>
7539
7540         acl: Fix specification.
7541         * lib/file-has-acl.c (file_has_acl): Fix specification.
7542
7543 2011-10-03  Bruno Haible  <bruno@clisp.org>
7544
7545         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7546         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7547         (compute_curr_prefix, shared_library_fullname,
7548         find_shared_library_fullname, get_shared_library_fullname, relocate):
7549         Use it together with PIC && INSTALLDIR.
7550         Reported by <jojelino@gmail.com>
7551         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7552
7553 2011-10-01  Jim Meyering  <meyering@redhat.com>
7554
7555         maint.mk: adjust a release-related rule not to require use of gzip
7556         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7557         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7558         projects that build only .tar.xz files.  Also fix an erroneous test.
7559
7560         test-linkat: don't leave behind a temporary file
7561         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7562         Otherwise, coreutils' "make distcheck" would fail with this:
7563           Only in /c/cu/tests/torture/coreutils/test/\
7564             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7565           make[2]: *** [my-distcheck] Error 1
7566
7567         float, math: add omitted file
7568         * lib/itold.c: Add file, required for yesterday's float change.
7569
7570 2011-10-01  Bruno Haible  <bruno@clisp.org>
7571
7572         isinf: Fix for OpenBSD/x86.
7573         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7574         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7575         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7576
7577 2011-10-01  Bruno Haible  <bruno@clisp.org>
7578
7579         isfinite: Fix syntax error in configure test.
7580         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7581
7582         isfinite: Fix typo.
7583         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7584         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7585
7586 2011-10-01  Bruno Haible  <bruno@clisp.org>
7587
7588         nonblocking tests: Fix test failure on Linux/IA-64.
7589         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7590         Set to 270000.
7591
7592 2011-10-01  Bruno Haible  <bruno@clisp.org>
7593
7594         mkfifoat tests: Fix a test failure on mingw.
7595         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7596         with error ENOSYS.
7597
7598 2011-09-30  Bruno Haible  <bruno@clisp.org>
7599
7600         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7601         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7602         'long double'. Set REPLACE_ITOLD.
7603         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7604         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7605         * lib/itold.c: New file.
7606         * modules/float (Files): Add lib/itold.c.
7607         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7608         (Makefile.am): Substitute REPLACE_ITOLD.
7609         * modules/math (Depends-on): Add float.
7610         (Makefile.am): Substitute REPLACE_ITOLD.
7611         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7612         * doc/posix-headers/math.texi: Likewise.
7613         * doc/posix-functions/logl.texi: Likewise.
7614
7615 2011-09-30  Bruno Haible  <bruno@clisp.org>
7616
7617         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7618         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7619         Set to 140000.
7620
7621 2011-09-30  Bruno Haible  <bruno@clisp.org>
7622
7623         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7624         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7625         invocation, say "right after AC_PROG_CC_STDC", not "right after
7626         AC_PROG_CC".
7627         Reported by Gary V. Vaughan <gary@gnu.org>.
7628
7629 2011-09-30  Bruno Haible  <bruno@clisp.org>
7630
7631         Centralize C99 requirement.
7632         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7633         * modules/stdarg (configure.ac-early): Invoke it instead of
7634         AC_PROG_CC_STDC.
7635         Reported by Gary V. Vaughan and Paul Eggert.
7636
7637 2011-09-29  Bruno Haible  <bruno@clisp.org>
7638
7639         float: Fix LDBL_MAX value on Linux/PowerPC.
7640         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7641         on Linux/PowerPC.
7642         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7643         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7644         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7645         platform.
7646         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7647
7648 2011-09-29  Bruno Haible  <bruno@clisp.org>
7649
7650         doc: Improve doc about gl_EARLY.
7651         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7652         AC_PROG_CC_STDC invocation.
7653         Reported by Gary V. Vaughan <gary@gnu.org>.
7654
7655 2011-09-28  Bruno Haible  <bruno@clisp.org>
7656
7657         fgetc, fputc, fread, fwrite tests: Fix link error.
7658         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7659         on non-MSVC platforms.
7660         * tests/test-fputc.c (main): Likewise.
7661         * tests/test-fread.c (main): Likewise.
7662         * tests/test-fwrite.c (main): Likewise.
7663         Reported by Jim Meyering.
7664
7665 2011-09-27  Bruno Haible  <bruno@clisp.org>
7666
7667         fputc, fwrite tests: Avoid test failure on MSVC.
7668         * tests/test-fgetc.c: Include msvc-inval.h.
7669         (main): Invoke gl_msvc_inval_ensure_handler.
7670         * tests/test-fputc.c: Include msvc-inval.h.
7671         (main): Invoke gl_msvc_inval_ensure_handler.
7672         * tests/test-fread.c: Include msvc-inval.h.
7673         (main): Invoke gl_msvc_inval_ensure_handler.
7674         * tests/test-fwrite.c: Include msvc-inval.h.
7675         (main): Invoke gl_msvc_inval_ensure_handler.
7676         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7677         * modules/fputc-tests (Depends-on): Likewise.
7678         * modules/fread-tests (Depends-on): Likewise.
7679         * modules/fwrite-tests (Depends-on): Likewise.
7680
7681 2011-09-27  Bruno Haible  <bruno@clisp.org>
7682
7683         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7684         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7685         (raise): Remove older, duplicated declaration.
7686         (_gl_raise_SIGPIPE): New declaration.
7687         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7688         (rpl_raise): Remove function.
7689         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7690         a gnulib-defined SIGPIPE here.
7691         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7692         'sigprocmask' has detected missing signal-blocking and the module
7693         'sigpipe' is enabled.
7694         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7695
7696 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7697
7698         base64-tests: avoid memory leak
7699         * tests/test-base64.c (main): Plug memory leak.
7700
7701         base32: new module
7702         * modules/base32: New module.
7703         * lib/base32.c: New file.
7704         * lib/base32.h: Likewise.
7705         * m4/base32.m4: Likewise.
7706         * modules/base32-tests: New test.
7707         * tests/test-base32.c: Likewise.
7708         * MODULES.html.sh (Misc): Mention it.
7709
7710 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7711
7712         gnulib: use more-standard license notice wording
7713         * gnulib-tool (func_emit_copyright_notice): When emitting a
7714         license notice into a file, use the standard wording as suggested
7715         by the current information for GNU maintainers, except say "file"
7716         rather than "program".  The new wording gives a license version
7717         number, which addresses an issue raised by Glenn Morris in
7718         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7719         * m4/onceonly.m4: Use that same wording here, too.
7720
7721         dup2: minor simplification
7722         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7723         as lib/dup2.c no longer uses 'inline'.
7724
7725 2011-09-25  Bruno Haible  <bruno@clisp.org>
7726
7727         strings: Fix compilation error on MSVC.
7728         * lib/strings.in.h: Include <stddef.h> for size_t.
7729
7730 2011-09-25  Bruno Haible  <bruno@clisp.org>
7731
7732         fflush et al.: Document limitation on MSVC.
7733         * doc/posix-functions/fflush.texi: Document possible crash in handling
7734         mode other than DEFAULT_HANDLING.
7735         * doc/posix-functions/fgetc.texi: Likewise.
7736         * doc/posix-functions/fputc.texi: Likewise.
7737         * doc/posix-functions/fread.texi: Likewise.
7738         * doc/posix-functions/fwrite.texi: Likewise.
7739
7740 2011-09-25  Bruno Haible  <bruno@clisp.org>
7741
7742         msvc-inval: Allow three invalid parameter handling modes.
7743         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7744         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7745         macros.
7746         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7747         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7748         SANE_LIBRARY_HANDLING as a no-op.
7749         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7750         <stdlib.h>.
7751         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7752
7753 2011-09-25  Bruno Haible  <bruno@clisp.org>
7754
7755         msvc-inval: Make handler multithread-safe.
7756         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7757         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7758         declarations.
7759         (gl_msvc_inval_current): New declaration.
7760         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7761         Operate on the structure returned by gl_msvc_inval_current().
7762         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7763         Remove varaiables.
7764         (tls_index, tls_initialized): New variables.
7765         (not_per_thread): New variable.
7766         (gl_msvc_inval_current): New function.
7767         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7768         returned by gl_msvc_inval_current().
7769
7770 2011-09-25  Bruno Haible  <bruno@clisp.org>
7771
7772         msvc-inval: Install handler globally.
7773         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7774         !_MSC_VER.
7775         (gl_msvc_invalid_parameter_handler): Remove declaration.
7776         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7777         declarations.
7778         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7779         Install the handler globally, don't uninstall it.
7780         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7781         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7782         currently valid, call RaiseException instead.
7783         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7784         for !_MSC_VER.
7785
7786 2011-09-25  Bruno Haible  <bruno@clisp.org>
7787
7788         strerror_r-posix: Fix for MSVC 9.
7789         * lib/strerror_r.c (local_snprintf): New function.
7790         (snprintf): Define to local_snprintf, not to _snprintf.
7791
7792 2011-09-25  Bruno Haible  <bruno@clisp.org>
7793
7794         ftruncate: Support for MSVC 9.
7795         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7796         (chsize_nothrow): New function.
7797         (chsize): Redefine as a macro.
7798         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7799         * modules/ftruncate (Depends-on): Add msvc-inval.
7800
7801 2011-09-25  Bruno Haible  <bruno@clisp.org>
7802
7803         New module 'fstat'.
7804         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7805         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7806         * lib/fchdir.c (rpl_fstat): Remove function.
7807         * m4/fstat.m4: New file.
7808         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7809         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7810         declared.
7811         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7812         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7813         * modules/fstat: New file.
7814         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7815         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7816         is set.
7817         * doc/posix-functions/fstat.texi: Mention the new module and the
7818         problem on MSVC.
7819         * NEWS: Mention the change.
7820         * modules/acl (Depends-on): Add fstat.
7821         * modules/chdir-safer (Depends-on): Likewise.
7822         * modules/chown (Depends-on): Likewise.
7823         * modules/copy-file (Depends-on): Likewise.
7824         * modules/fchdir (Depends-on): Likewise.
7825         * modules/fdopendir (Depends-on): Likewise.
7826         * modules/fopen (Depends-on): Likewise.
7827         * modules/fts (Depends-on): Likewise.
7828         * modules/getcwd (Depends-on): Likewise.
7829         * modules/isapipe (Depends-on): Likewise.
7830         * modules/linkat (Depends-on): Likewise.
7831         * modules/lseek (Depends-on): Likewise.
7832         * modules/mkdir-p (Depends-on): Likewise.
7833         * modules/open (Depends-on): Likewise.
7834         * modules/openat (Depends-on): Likewise.
7835         * modules/read-file (Depends-on): Likewise.
7836         * modules/renameat (Depends-on): Likewise.
7837         * modules/utimens (Depends-on): Likewise.
7838
7839 2011-09-25  Bruno Haible  <bruno@clisp.org>
7840
7841         linkat: Fix compilation on MSVC 9.
7842         * lib/linkat.c: Don't include <stdint.h>.
7843
7844 2011-09-25  Bruno Haible  <bruno@clisp.org>
7845
7846         fclose: Support for MSVC 9.
7847         * lib/fclose.c: Include msvc-inval.h.
7848         (fclose_nothrow): New function.
7849         (rpl_fclose): Use it.
7850         * modules/fclose (Depends-on): Add msvc-inval.
7851         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7852
7853 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7854
7855         dup2: minor simplifications
7856         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7857         that it's a performance win.
7858         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7859         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7860
7861 2011-09-24  Jim Meyering  <meyering@redhat.com>
7862
7863         test-futimens: avoid a warning from gcc -Wshadow
7864         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7865         to avoid a shadowing warning.
7866
7867 2011-09-24  Bruno Haible  <bruno@clisp.org>
7868
7869         fdopen: Support for MSVC 9.
7870         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7871         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7872         * lib/fdopen.c: Include msvc-inval.h.
7873         (fdopen_nothrow): New function.
7874         (rpl_fdopen): Use it.
7875         * modules/fdopen (Depends-on): Add msvc-inval.
7876         * modules/fclose-tests (Depends-on): Add fdopen.
7877         * modules/fflush-tests (Depends-on): Likewise.
7878         * modules/fgetc-tests (Depends-on): Likewise.
7879         * modules/fputc-tests (Depends-on): Likewise.
7880         * modules/fread-tests (Depends-on): Likewise.
7881         * modules/freopen-tests (Depends-on): Likewise.
7882         * modules/fseeko-tests (Depends-on): Likewise.
7883         * modules/ftello-tests (Depends-on): Likewise.
7884         * modules/fwrite-tests  (Depends-on): Likewise.
7885         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7886
7887 2011-09-24  Bruno Haible  <bruno@clisp.org>
7888
7889         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7890         * modules/fgetc-tests (Depends-on): Add unistd.
7891         * modules/fputc-tests (Depends-on): Likewise.
7892         * modules/fread-tests (Depends-on): Likewise.
7893         * modules/fwrite-tests (Depends-on): Likewise.
7894
7895 2011-09-24  Bruno Haible  <bruno@clisp.org>
7896
7897         dup: Simplify autoconf test.
7898         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7899         on gl_MSVC_INVAL's result.
7900
7901 2011-09-24  Bruno Haible  <bruno@clisp.org>
7902
7903         Tests for function fwrite().
7904         * modules/fwrite-tests: New file.
7905         * tests/test-fwrite.c: New file.
7906         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7907
7908         Tests for function fread().
7909         * modules/fread-tests: New file.
7910         * tests/test-fread.c: New file.
7911         * modules/stdio-tests (Depends-on): Add fread-tests.
7912
7913         Activate fputc tests.
7914         * modules/stdio-tests (Depends-on): Add fputc-tests.
7915
7916         Enhance fgetc, fputc tests.
7917         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7918         * tests/test-fputc.c (main): Likewise.
7919
7920 2011-09-24  Bruno Haible  <bruno@clisp.org>
7921
7922         write: Support for MSVC 9.
7923         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7924         is not 1.
7925         * lib/write.c (write_nothrow): New function.
7926         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7927         not 1. Use write_nothrow.
7928         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
7929         invalid parameter handler.
7930         (gl_PREREQ_WRITE): New macro.
7931         * modules/write (Depends-on): Add msvc-inval.
7932         (configure.ac): Invoke gl_PREREQ_WRITE.
7933         * doc/posix-functions/write.texi: Mention the problem on MSVC.
7934
7935 2011-09-24  Bruno Haible  <bruno@clisp.org>
7936
7937         read: Fix last commit.
7938         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
7939
7940 2011-09-24  Bruno Haible  <bruno@clisp.org>
7941
7942         dup2: Fix last commit.
7943         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
7944         (rpl_dup2): Disable fcntl workaround on native Windows.
7945
7946         sigprocmask: Make code safer.
7947         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
7948         section that changes macro definitions for this compilation unit.
7949
7950 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7951
7952         dup2: clarify by coalescing Windows-specific material
7953         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
7954         "msvc-nothrow.h"' to the Windows-specific section, so that the
7955         Emacs source need not contain these include files.
7956         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
7957         Windows-specific fixes into this function rather than just the
7958         nothrow fix, as this shortens and clarifies the code.  Always
7959         define as a function, as that's a bit cleaner than having it be
7960         sometimes a function and sometimes a macro.
7961         (rpl_dup2): Move the Windows-specific stuff out of here and into
7962         ms_windows_dup2.  Don't protect the Haiku-related fix with
7963         "#if !defined __linux__", as the same code also works around
7964         a Linux kernel bug, and it doesn't add any system calls on any
7965         platform.  Add comment about FreeBSD 6.1.
7966
7967         sigprocmask: move #include directive
7968         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
7969         Windows-specific section, so that the Emacs source need not
7970         contain msvc-inval.h.
7971
7972 2011-09-23  Bruno Haible  <bruno@clisp.org>
7973
7974         read: Support for MSVC 9.
7975         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7976         is not 1.
7977         * lib/read.c (read_nothrow): New function.
7978         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
7979         read_nothrow.
7980         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
7981         invalid parameter handler.
7982         (gl_PREREQ_READ): New macro.
7983         * modules/read (Depends-on): Add msvc-inval.
7984         (configure.ac): Invoke gl_PREREQ_READ.
7985         * doc/posix-functions/read.texi: Mention the problem on MSVC.
7986
7987 2011-09-23  Bruno Haible  <bruno@clisp.org>
7988
7989         close: Support for MSVC 9.
7990         * lib/close.c: Include <errno.h>, msvc-inval.h.
7991         (close_nothrow): New function.
7992         (rpl_close): Use it.
7993         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
7994         invalid parameter handler.
7995         * modules/close (Depends-on): Add msvc-inval.
7996         * modules/dup2-tests (Depends-on): Add close.
7997         * modules/dup3-tests (Depends-on): Likewise.
7998         * modules/fcntl-tests (Depends-on): Likewise.
7999         * modules/spawn-pipe-tests (Depends-on): Likewise.
8000         * modules/unistd-safer-tests (Depends-on): Likewise.
8001         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8002
8003 2011-09-23  Bruno Haible  <bruno@clisp.org>
8004
8005         New module 'dup'.
8006         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8007         Allow replacement.
8008         * lib/dup.c: New file.
8009         * lib/fchdir.c (rpl_dup): Remove function.
8010         * m4/dup.m4: New file.
8011         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8012         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8013         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8014         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8015         * modules/dup: New file.
8016         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8017         'dup' module is in use.
8018         * modules/fdopendir (Depends-on): Add dup.
8019         * modules/fdutimensat-tests (Depends-on): Likewise.
8020         * modules/fts (Depends-on): Likewise.
8021         * modules/futimens-tests (Depends-on): Likewise.
8022         * modules/posix_spawnp-tests (Depends-on): Likewise.
8023         * modules/unistd-safer-tests (Depends-on): Likewise.
8024         * modules/utimens-tests (Depends-on): Likewise.
8025         * doc/posix-functions/dup.texi: Mention the new module and the problem
8026         on MSVC.
8027
8028 2011-09-23  Bruno Haible  <bruno@clisp.org>
8029
8030         getdtablesize: Support for MSVC 9.
8031         * lib/getdtablesize.c: Include msvc-inval.h.
8032         (_setmaxstdio_nothrow): New function.
8033         (_setmaxstdio): Redefine it.
8034         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8035         * modules/getdtablesize (Depends-on): Add msvc-inval.
8036         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8037
8038 2011-09-23  Bruno Haible  <bruno@clisp.org>
8039
8040         signal-h: Rename from signal.
8041         * modules/signal-h: Renamed from modules/signal.
8042         * modules/pthread_sigmask (Depends-on): Update.
8043         * modules/raise (Depends-on): Likewise.
8044         * modules/sigaction (Depends-on): Likewise.
8045         * modules/sigpipe (Depends-on): Likewise.
8046         * modules/sigprocmask (Depends-on): Likewise.
8047         * modules/sys_select (Depends-on): Likewise.
8048         * modules/signal-h-tests: Renamed from modules/signal-tests.
8049         (Files, Depends-on, Makefile.am): Update.
8050         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8051         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8052         (Files, Makefile.am): Update.
8053         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8054         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8055         * modules/signal: New placeholder file.
8056         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8057         * doc/posix-headers/signal.texi: Update.
8058         * NEWS: Mention the change.
8059
8060 2011-09-23  Bruno Haible  <bruno@clisp.org>
8061
8062         sigprocmask: Avoid crashes through signal() on MSVC 9.
8063         * lib/sigprocmask.c: Include msvc-inval.h.
8064         (signal_nothrow): New function.
8065         (signal): Redefine it.
8066         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8067         * modules/sigprocmask (Depends-on): Add msvc-inval.
8068         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8069
8070 2011-09-23  Bruno Haible  <bruno@clisp.org>
8071
8072         Tests for module 'raise'.
8073         * modules/raise-tests: New file.
8074         * tests/test-raise.c: New file.
8075
8076         raise: Support for MSVC.
8077         * lib/signal.in.h (raise): New declaration.
8078         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8079         for native Windows platforms.
8080         * m4/raise.m4: New file.
8081         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8082         HAVE_RAISE, REPLACE_RAISE.
8083         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8084         REPLACE_RAISE.
8085         * modules/raise (Status, Notice): Remove fields.
8086         (Files): Add m4/raise.m4.
8087         (Depends-on): Add signal, msvc-inval.
8088         (configure.ac): Use the common idioms.
8089         (Maintainer): Add me.
8090         * tests/test-signal-c++.cc: Check the signature of raise.
8091         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8092
8093 2011-09-23  Bruno Haible  <bruno@clisp.org>
8094
8095         pipe2: Fix compilation on pre-C99 compilers.
8096         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8097
8098 2011-09-23  Bruno Haible  <bruno@clisp.org>
8099
8100         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8101         * lib/msvc-nothrow.h: New file.
8102         * lib/msvc-nothrow.c: New file.
8103         * m4/msvc-nothrow.m4: New file.
8104         * modules/msvc-nothrow: New file.
8105         * lib/dup2.c: Include msvc-nothrow.h.
8106         (rpl_dup2): No need to protect _get_osfhandle call here.
8107         * lib/accept4.c: Include msvc-nothrow.h.
8108         * lib/error.c: Likewise.
8109         * lib/fcntl.c: Likewise.
8110         * lib/lseek.c: Likewise.
8111         * lib/nonblocking.c: Likewise.
8112         * lib/poll.c: Likewise.
8113         * lib/read.c: Likewise.
8114         * lib/select.c: Likewise.
8115         * lib/sockets.h: Likewise.
8116         * lib/sockets.c: Likewise.
8117         * lib/stdio-read.c: Likewise.
8118         * lib/stdio-write.c: Likewise.
8119         * lib/write.c: Likewise.
8120         * lib/w32sock.h: Likewise.
8121         * lib/w32spawn.h: Likewise.
8122         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8123         * lib/fsync.c: Likewise.
8124         * lib/isapipe.c: Likewise.
8125         * modules/dup2 (Depends-on): Add msvc-nothrow.
8126         * modules/accept4 (Depends-on): Likewise.
8127         * modules/error (Depends-on): Likewise.
8128         * modules/fcntl (Depends-on): Likewise.
8129         * modules/lseek (Depends-on): Likewise.
8130         * modules/nonblocking (Depends-on): Likewise.
8131         * modules/poll (Depends-on): Likewise.
8132         * modules/read (Depends-on): Likewise.
8133         * modules/select (Depends-on): Likewise.
8134         * modules/sockets (Depends-on): Likewise.
8135         * modules/sigpipe (Depends-on): Likewise.
8136         * modules/write (Depends-on): Likewise.
8137         * modules/accept (Depends-on): Likewise.
8138         * modules/bind (Depends-on): Likewise.
8139         * modules/connect (Depends-on): Likewise.
8140         * modules/gethostname (Depends-on): Likewise.
8141         * modules/getpeername (Depends-on): Likewise.
8142         * modules/getsockname (Depends-on): Likewise.
8143         * modules/getsockopt (Depends-on): Likewise.
8144         * modules/ioctl (Depends-on): Likewise.
8145         * modules/listen (Depends-on): Likewise.
8146         * modules/recv (Depends-on): Likewise.
8147         * modules/recvfrom (Depends-on): Likewise.
8148         * modules/send (Depends-on): Likewise.
8149         * modules/sendto (Depends-on): Likewise.
8150         * modules/setsockopt (Depends-on): Likewise.
8151         * modules/shutdown (Depends-on): Likewise.
8152         * modules/socket (Depends-on): Likewise.
8153         * modules/execute (Depends-on): Likewise.
8154         * modules/spawn-pipe (Depends-on): Likewise.
8155         * modules/flock (Depends-on): Likewise.
8156         * modules/fsync (Depends-on): Likewise.
8157         * modules/isapipe (Depends-on): Likewise.
8158         * tests/test-cloexec.c: Include msvc-nothrow.h.
8159         * tests/test-dup-safer.c: Likewise.
8160         * tests/test-dup2.c: Likewise.
8161         * tests/test-dup3.c: Likewise.
8162         * tests/test-fcntl.c: Likewise.
8163         * tests/test-pipe.c: Likewise.
8164         * tests/test-pipe2.c: Likewise.
8165         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8166         * modules/unistd-safer-tests (Depends-on): Likewise.
8167         * modules/dup2-tests (Depends-on): Likewise.
8168         * modules/dup3-tests (Depends-on): Likewise.
8169         * modules/fcntl-tests (Depends-on): Likewise.
8170         * modules/pipe-posix-tests (Depends-on): Likewise.
8171         * modules/pipe2-tests (Depends-on): Likewise.
8172
8173 2011-09-23  Bruno Haible  <bruno@clisp.org>
8174
8175         dup2: Make code more maintainable.
8176         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8177         (rpl_dup2): Use it.
8178         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8179         * modules/dup2 (configure.ac): Invoke it.
8180         Reported by Paul Eggert.
8181
8182 2011-09-23  Bruno Haible  <bruno@clisp.org>
8183
8184         msvc-inval: Fix compilation error.
8185         * lib/msvc-inval.h: Include <excpt.h>.
8186
8187 2011-09-23  Bruno Haible  <bruno@clisp.org>
8188
8189         mkdir: Tweak for MSVC 9.
8190         * lib/sys_stat.in.h: Update comments.
8191         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8192
8193         Tests for module 'chdir'.
8194         * modules/chdir-tests: New file.
8195         * tests/test-chdir.c: New file.
8196
8197         New module 'chdir'.
8198         * modules/chdir: New file.
8199         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8200         (chdir): New declaration.
8201         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8202         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8203         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8204         * tests/test-unistd-c++.cc: Check signature of chdir.
8205         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8206         * modules/chdir-long (Depends-on): Add chdir.
8207         * modules/fchdir (Depends-on): Likewise.
8208         * modules/rename (Depends-on): Likewise.
8209         * modules/savewd (Depends-on): Likewise.
8210
8211         rmdir: Support for mingw, MSVC 9.
8212         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8213         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8214
8215         getcwd: Tweak for MSVC 9.
8216         * lib/unistd.in.h: Update comments.
8217         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8218
8219 2011-09-22  Bruno Haible  <bruno@clisp.org>
8220
8221         strerror_r-posix: Avoid a link error on MSVC.
8222         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8223         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8224
8225 2011-09-22  Bruno Haible  <bruno@clisp.org>
8226
8227         select: Avoid link errors on MSVC.
8228         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8229         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8230         * modules/pselect (Link): Likewise.
8231         * NEWS: Mention the change.
8232         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8233         test-select-stdin against $(LIB_SELECT).
8234         * modules/pselect-tests (Makefile.am): Link test-pselect against
8235         $(LIB_SELECT).
8236
8237 2011-09-22  Bruno Haible  <bruno@clisp.org>
8238
8239         select: Avoid compilation error on MSVC.
8240         * lib/select.c: Don't include <stdbool.h>.
8241
8242 2011-09-21  Bruno Haible  <bruno@clisp.org>
8243
8244         Consolidate all uses of PATH_MAX in *.m4 files.
8245         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8246         macros.
8247         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8248         and gl_PATHMAX_SNIPPET.
8249         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8250         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8251         * modules/chdir-long (Files): Add m4/pathmax.m4.
8252         * modules/getcwd (Files): Likewise.
8253
8254 2011-09-21  Bruno Haible  <bruno@clisp.org>
8255
8256         ftruncate: Un-deprecate, concentrate on Win32 support.
8257         * modules/ftruncate (Status, Notice): Remove sections.
8258         (Depends-on): Add largefile.
8259         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8260         non-mingw platforms.
8261         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8262         include <io.h>.
8263         * modules/perror-tests (Depends-on): Add ftruncate.
8264         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8265         'ftruncate' module.
8266
8267 2011-09-21  Bruno Haible  <bruno@clisp.org>
8268
8269         Add dependencies to new dirent related modules.
8270         * modules/opendir (Depends-on): Add closedir.
8271         * modules/getcwd (Depends-on): Add opendir, closedir.
8272         * modules/dirent-safer-tests (Depends-on): Likewise.
8273         * modules/fdopendir-tests (Depends-on): Likewise.
8274         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8275         * modules/renameat-tests (Depends-on): Likewise.
8276
8277 2011-09-21  Bruno Haible  <bruno@clisp.org>
8278
8279         opendir: Avoid compilation error on mingw.
8280         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8281         * modules/opendir (Depends-on): Add unistd.
8282
8283 2011-09-21  Bruno Haible  <bruno@clisp.org>
8284
8285         ftruncate tests: Avoid a test failure on mingw.
8286         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8287
8288 2011-09-21  Bruno Haible  <bruno@clisp.org>
8289
8290         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8291         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8292         native Windows.
8293
8294 2011-09-21  Bruno Haible  <bruno@clisp.org>
8295
8296         New module 'fdopen'.
8297         * lib/stdio.in.h (fdopen): New declaration.
8298         * lib/fdopen.c: New file.
8299         * m4/fdopen.m4: New file.
8300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8301         REPLACE_FDOPEN.
8302         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8303         REPLACE_FDOPEN.
8304         * modules/fdopen: New file.
8305         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8306         * tests/test-stdio-c++.cc: Check signature of fdopen.
8307         * doc/posix-functions/fdopen.texi: Mention the new module.
8308
8309 2011-09-21  Bruno Haible  <bruno@clisp.org>
8310
8311         unlockpt tests: Avoid test failure on NetBSD 5.1.
8312         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8313         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8314
8315 2011-09-21  Bruno Haible  <bruno@clisp.org>
8316
8317         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8318         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8319         * tests/test-getlogin_r.c (main): Likewise.
8320
8321 2011-09-20  Bruno Haible  <bruno@clisp.org>
8322
8323         time tests: Don't require pid_t.
8324         * doc/posix-headers/time.texi: Revert last change.
8325         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8326         * tests/test-time.c: Comment out the check for pid_t.
8327
8328 2011-09-20  Bruno Haible  <bruno@clisp.org>
8329
8330         fsync tests: Avoid a test failure on mingw.
8331         * tests/test-fsync.c (main): Allow a failure with EIO.
8332
8333 2011-09-20  Bruno Haible  <bruno@clisp.org>
8334
8335         euidaccess: Update comments.
8336         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8337
8338 2011-09-20  Bruno Haible  <bruno@clisp.org>
8339
8340         Ensure EBADF returns for socket functions on mingw.
8341         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8342         descriptor is invalid.
8343         * lib/bind.c (rpl_bind): Likewise.
8344         * lib/connect.c (rpl_connect): Likewise.
8345         * lib/getpeername.c (rpl_getpeername): Likewise.
8346         * lib/getsockname.c (rpl_getsockname): Likewise.
8347         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8348         * lib/listen.c (rpl_listen): Likewise.
8349         * lib/recv.c (rpl_recv): Likewise.
8350         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8351         * lib/send.c (rpl_send): Likewise.
8352         * lib/sendto.c (rpl_sendto): Likewise.
8353         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8354         * lib/shutdown.c (rpl_shutdown): Likewise.
8355
8356 2011-09-20  Bruno Haible  <bruno@clisp.org>
8357
8358         select tests: EBADF tests.
8359         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8360         test_bad_fd): New functions.
8361         (test_function): Invoke also test_bad_fd.
8362
8363 2011-09-20  Bruno Haible  <bruno@clisp.org>
8364
8365         Tests for module 'posix_spawn_file_actions_addopen.
8366         * modules/posix_spawn_file_actions_addopen-tests: New file.
8367         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8368
8369         Tests for module 'posix_spawn_file_actions_adddup2'.
8370         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8371         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8372
8373         Tests for module 'posix_spawn_file_actions_addclose'.
8374         * modules/posix_spawn_file_actions_addclose-tests: New file.
8375         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8376
8377 2011-09-20  Bruno Haible  <bruno@clisp.org>
8378
8379         Tests for module 'unlockpt'.
8380         * modules/unlockpt-tests: New file.
8381         * tests/test-unlockpt.c: New file.
8382         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8383
8384         Tests for module 'grantpt'.
8385         * modules/grantpt-tests: New file.
8386         * tests/test-grantpt.c: New file.
8387         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8388
8389 2011-09-20  Bruno Haible  <bruno@clisp.org>
8390
8391         freopen tests: EBADF tests.
8392         * tests/test-freopen.c: Include errno.h, unistd.h.
8393         (main): Add tests for EBADF, commented out for the moment.
8394
8395         fclose tests: EBADF tests.
8396         * tests/test-fclose.c (main): Add tests for EBADF.
8397
8398         fflush tests: EBADF tests.
8399         * tests/test-fflush.c: Include errno.h, macros.h.
8400         (main): Add tests for EBADF.
8401
8402         ftello tests: EBADF tests.
8403         * tests/test-ftello4.sh: New file.
8404         * tests/test-ftello4.c: New file.
8405         * modules/ftello-tests (Files): Add them.
8406         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8407
8408         fseeko tests: EBADF tests.
8409         * tests/test-fseeko4.sh: New file.
8410         * tests/test-fseeko4.c: New file.
8411         * modules/fseeko-tests (Files): Add them.
8412         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8413
8414         Tests for function fputc().
8415         * modules/fputc-tests: New file.
8416         * tests/test-fputc.c: New file.
8417         * modules/stdio-tests (Depends-on): Add fputc-tests.
8418
8419         Tests for function fgetc().
8420         * modules/fgetc-tests: New file.
8421         * tests/test-fgetc.c: New file.
8422         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8423
8424         Tests for function fdopen().
8425         * modules/fdopen-tests: New file.
8426         * tests/test-fdopen.c: New file.
8427         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8428
8429         Tests for module 'vdprintf'.
8430         * modules/vdprintf-tests: New file.
8431         * tests/test-vdprintf.c: New file.
8432
8433         Tests for module 'dprintf'.
8434         * modules/dprintf-tests: New file.
8435         * tests/test-dprintf.c: New file.
8436
8437 2011-09-20  Bruno Haible  <bruno@clisp.org>
8438
8439         Tests for module 'ioctl'.
8440         * modules/ioctl-tests: New file.
8441         * tests/test-ioctl.c: New file.
8442
8443 2011-09-20  Bruno Haible  <bruno@clisp.org>
8444
8445         fcntl tests: EBADF tests.
8446         * tests/test-fcntl.c (main): Add more tests for EBADF.
8447
8448 2011-09-20  Bruno Haible  <bruno@clisp.org>
8449
8450         utimensat tests: EBADF tests.
8451         * tests/test-utimensat.c (main): Add tests for EBADF.
8452
8453         renameat tests: EBADF tests.
8454         * tests/test-renameat.c (main): Add tests for EBADF.
8455
8456         mkfifoat tests: EBADF tests.
8457         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8458
8459         readlinkat tests: EBADF tests.
8460         * tests/test-readlinkat.c (main): Add tests for EBADF.
8461
8462         symlinkat tests: EBADF tests.
8463         * tests/test-symlinkat.c (main): Add tests for EBADF.
8464
8465         linkat tests: EBADF tests.
8466         * tests/test-linkat.c (main): Add tests for EBADF.
8467
8468         Tests for module 'faccessat'.
8469         * modules/faccessat-tests: New file.
8470         * tests/test-faccessat.c: New file.
8471
8472         fdopendir tests: EBADF tests.
8473         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8474
8475         openat tests: EBADF tests.
8476         * tests/test-fchownat.c (main): Add tests for EBADF.
8477         * tests/test-fstatat.c (main): Likewise.
8478         * tests/test-mkdirat.c (main): Likewise.
8479         * tests/test-openat.c (main): Likewise.
8480         * tests/test-unlinkat.c (main): Likewise.
8481         * tests/test-fchmodat.c: New file.
8482         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8483         (Makefile.am): Also run 'test-fchmodat'.
8484
8485 2011-09-20  Bruno Haible  <bruno@clisp.org>
8486
8487         utimens, futimens, fdutimensat tests: EBADF tests.
8488         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8489
8490         Tests for function fstat().
8491         * modules/fstat-tests: New file.
8492         * tests/test-fstat.c: New file.
8493         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8494
8495 2011-09-20  Bruno Haible  <bruno@clisp.org>
8496
8497         test-ttyname_r tests: EBADF tests.
8498         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8499
8500         Tests for module 'isatty'.
8501         * modules/isatty-tests: New file.
8502         * tests/test-isatty.c: New file.
8503
8504         Tests for module 'write'.
8505         * modules/write-tests: New file.
8506         * tests/test-write.c: New file.
8507
8508         Tests for module 'read'.
8509         * modules/read-tests: New file.
8510         * tests/test-read.c: New file.
8511
8512         pwrite tests: EBADF tests.
8513         * tests/test-pwrite.c (main): Add tests for EBADF.
8514
8515         pread tests: EBADF tests.
8516         * tests/test-pread.c (main): Add tests for EBADF.
8517
8518         lseek tests: EBADF tests.
8519         * tests/test-lseek.c (main): Add more tests for EBADF.
8520
8521         Tests for module 'ftruncate'.
8522         * modules/ftruncate-tests: New file.
8523         * tests/test-ftruncate.sh: New file.
8524         * tests/test-ftruncate.c: New file.
8525
8526         fsync tests: EBADF tests.
8527         * tests/test-fsync.c (main): Add more tests for EBADF.
8528
8529         fdatasync tests: EBADF tests.
8530         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8531
8532         Tests for module 'fchown'.
8533         * modules/fchown-tests: New file.
8534         * tests/test-fchown.c: New file.
8535
8536         Tests for module 'fchmod'.
8537         * modules/fchmod-tests: New file.
8538         * tests/test-fchmod.c: New file.
8539
8540         fchdir tests: EBADF tests.
8541         * tests/test-fchdir.c (main): Add more tests for EBADF.
8542
8543         dup2 tests: EBADF tests.
8544         * tests/test-dup2.c (main): Add more tests for EBADF.
8545
8546         Tests for module 'dup'.
8547         * modules/dup-tests: New file.
8548         * tests/test-dup.c: New file.
8549
8550         Tests for module 'close'.
8551         * modules/close-tests: New file.
8552         * tests/test-close.c: New file.
8553
8554 2011-09-20  Bruno Haible  <bruno@clisp.org>
8555
8556         Tests for module 'shutdown'.
8557         * modules/shutdown-tests: New file.
8558         * tests/test-shutdown.c: New file.
8559
8560         Tests for module 'setsockopt'.
8561         * modules/setsockopt-tests: New file.
8562         * tests/test-setsockopt.c: New file.
8563
8564         Tests for module 'sendto'.
8565         * modules/sendto-tests: New file.
8566         * tests/test-sendto.c: New file.
8567
8568         Tests for module 'send'.
8569         * modules/send-tests: New file.
8570         * tests/test-send.c: New file.
8571
8572         Tests for module 'recvfrom'.
8573         * modules/recvfrom-tests: New file.
8574         * tests/test-recvfrom.c: New file.
8575
8576         Tests for module 'recv'.
8577         * modules/recv-tests: New file.
8578         * tests/test-recv.c: New file.
8579
8580         Tests for module 'listen'.
8581         * modules/listen-tests: New file.
8582         * tests/test-listen.c: New file.
8583
8584         Tests for module 'getsockopt'.
8585         * modules/getsockopt-tests: New file.
8586         * tests/test-getsockopt.c: New file.
8587
8588         Tests for module 'getsockname'.
8589         * modules/getsockname-tests: New file.
8590         * tests/test-getsockname.c: New file.
8591
8592         Tests for module 'getpeername'.
8593         * modules/getpeername-tests: New file.
8594         * tests/test-getpeername.c: New file.
8595
8596         Tests for module 'connect'.
8597         * modules/connect-tests: New file.
8598         * tests/test-connect.c: New file.
8599
8600         Tests for module 'bind'.
8601         * modules/bind-tests: New file.
8602         * tests/test-bind.c: New file.
8603
8604         accept4 tests: Fix for native Windows.
8605         * tests/test-accept4.c: Include sockets.h.
8606         (main): Invoke gl_sockets_startup.
8607         * modules/accept4-tests (Depends-on): Add sockets.
8608
8609         accept tests: Fix for native Windows.
8610         * tests/test-accept.c: Include sockets.h.
8611         (main): Invoke gl_sockets_startup.
8612         * modules/accept-tests (Depends-on): Add sockets.
8613
8614 2011-09-19  Bruno Haible  <bruno@clisp.org>
8615
8616         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8617         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8618         do...while(0).
8619         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8620         Suggested by Paul Eggert.
8621
8622 2011-09-19  Bruno Haible  <bruno@clisp.org>
8623
8624         sched: Ensure pid_t is defined.
8625         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8626         not define pid_t.
8627         * lib/sched.in.h: Include <sys/types.h>.
8628         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8630
8631 2011-09-19  Bruno Haible  <bruno@clisp.org>
8632
8633         msvc-inval: Ensure the entire expansion is a single statement.
8634         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8635         of braces.
8636
8637 2011-09-19  Jim Meyering  <meyering@redhat.com>
8638
8639         tests: use printf, not echo in init.sh's warn_ function
8640         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8641         misbehave when given strings containing a backslash or starting
8642         with e.g., -n.  James Youngman suggested setting IFS.
8643
8644 2011-09-19  Eric Blake  <eblake@redhat.com>
8645
8646         futimens: enhance test
8647         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8648         closed non-negative fd.
8649
8650         date: accept 'hence' as opposite of 'ago'
8651         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8652         * tests/test-parse-datetime.c (main): Enhance test.
8653         Suggested by Jesse Wilson.
8654
8655 2011-09-19  Jim Meyering  <meyering@redhat.com>
8656
8657         getcwd: don't fail in a deep directory on a system without openat
8658         Before this change, getcwd would fail when called from a directory
8659         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8660         the non-openat implementation used "..", "../..", "../../..", etc.
8661         to access ancestor directories.  With too many, that string would
8662         be longer than PATH_MAX.
8663         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8664         using gnulib's openat replacement.
8665         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8666         we're using the replacement function.
8667
8668 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8669
8670         maint.mk: avoid warnings from perl about missing files
8671         * top/maint.mk (def_sym_regex): Ignore files listed in
8672         $(gl_other_headers_) that do not exist, say because a project
8673         does not use a corresponding module.
8674
8675 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8676
8677         stat: use pathmax.h only if needed
8678         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8679         This is better for Emacs, which does not have a mingw port and
8680         therefore can avoid the pathmax module.
8681
8682         utimens: remove dependency on dup2
8683         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8684         to work around the Linux kernel bug.
8685         * modules/utimens (Depends-on): Remove dup2.
8686
8687 2011-09-18  Bruno Haible  <bruno@clisp.org>
8688
8689         inet_ntop, inet_pton: Look for it also in libresolv.
8690         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8691         libnsl, search for it in libresolv.
8692         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8693         Needed on Solaris 7.
8694
8695 2011-09-18  Bruno Haible  <bruno@clisp.org>
8696
8697         accept, accept4 tests: Avoid link error on Solaris.
8698         * modules/accept-tests (Makefile.am): Link test-accept against
8699         $(LIBSOCKET).
8700         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8701         $(LIBSOCKET).
8702
8703         accept4: Avoid link error on Solaris.
8704         * modules/accept4 (Link): New section.
8705
8706         socket functions: Avoid link errors on Solaris.
8707         * modules/accept (Depends-on): Add socketlib.
8708         (Link): New section.
8709         * modules/bind (Depends-on): Add socketlib.
8710         (Link): New section.
8711         * modules/connect (Depends-on): Add socketlib.
8712         (Link): New section.
8713         * modules/getpeername (Depends-on): Add socketlib.
8714         (Link): New section.
8715         * modules/getsockname (Depends-on): Add socketlib.
8716         (Link): New section.
8717         * modules/getsockopt (Depends-on): Add socketlib.
8718         (Link): New section.
8719         * modules/listen (Depends-on): Add socketlib.
8720         (Link): New section.
8721         * modules/recv (Depends-on): Add socketlib.
8722         (Link): New section.
8723         * modules/recvfrom (Depends-on): Add socketlib.
8724         (Link): New section.
8725         * modules/send (Depends-on): Add socketlib.
8726         (Link): New section.
8727         * modules/sendto (Depends-on): Add socketlib.
8728         (Link): New section.
8729         * modules/setsockopt (Depends-on): Add socketlib.
8730         (Link): New section.
8731         * modules/shutdown (Depends-on): Add socketlib.
8732         (Link): New section.
8733         * modules/socket (Depends-on): Add socketlib.
8734         (Link): New section.
8735
8736 2011-09-18  Bruno Haible  <bruno@clisp.org>
8737
8738         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8739         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8740         than 5 seconds.
8741         * modules/ptsname-tests (configure.ac): Test for alarm.
8742
8743 2011-09-18  Bruno Haible  <bruno@clisp.org>
8744
8745         posix_spawn_file_actions_add*: Fix module dependencies.
8746         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8747         posix_spawn_file_actions_init.
8748         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8749         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8750
8751 2011-09-18  Bruno Haible  <bruno@clisp.org>
8752
8753         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8754         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8755         * tests/test-renameat.c (main): Likewise.
8756
8757 2011-09-18  Bruno Haible  <bruno@clisp.org>
8758
8759         Tests for module 'accept4'.
8760         * modules/accept4-tests: New file.
8761         * tests/test-accept4.c: New file.
8762
8763 2011-09-18  Bruno Haible  <bruno@clisp.org>
8764
8765         Tests for module 'accept'.
8766         * modules/accept-tests: New file.
8767         * tests/test-accept.c: New file.
8768
8769 2011-09-18  Bruno Haible  <bruno@clisp.org>
8770
8771         dup2: Support for MSVC.
8772         * lib/dup2.c: Include msvc-inval.h.
8773         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8774         _get_osfhandle calls.
8775         * modules/dup2 (Depends-on): Add msvc-inval.
8776         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8777
8778         New module 'msvc-inval'.
8779         * lib/msvc-inval.h: New file.
8780         * lib/msvc-inval.c: New file.
8781         * m4/msvc-inval.m4: New file.
8782         * modules/msvc-inval: New file.
8783
8784 2011-09-17  Bruno Haible  <bruno@clisp.org>
8785
8786         Tests for module 'pclose'.
8787         * modules/pclose-tests: New file.
8788
8789         New module 'pclose'.
8790         * lib/stdio.in.h (pclose): New declaration.
8791         * lib/pclose.c: New file.
8792         * m4/pclose.m4: New file.
8793         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8794         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8795         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8796         * modules/pclose: New file.
8797         * modules/popen-tests (Depends-on): Add pclose.
8798         * modules/popen-safer-tests (Depends-on): Likewise.
8799         * doc/posix-functions/pclose.texi: Mention the new module.
8800
8801 2011-09-17  Bruno Haible  <bruno@clisp.org>
8802
8803         popen: Support for MSVC.
8804         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8805         * lib/popen.c (popen): Provide alternate definition for native Windows.
8806         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8808         * modules/popen (Depends-on, configure.ac): Update condition.
8809         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8810         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8811         fixed.
8812
8813 2011-09-17  Bruno Haible  <bruno@clisp.org>
8814
8815         isnanl, isnand, isnanf: Work around MSVC bug.
8816         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8817
8818 2011-09-17  Bruno Haible  <bruno@clisp.org>
8819
8820         sys_socket tests: Fix recent mistake.
8821         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8822
8823 2011-09-17  Bruno Haible  <bruno@clisp.org>
8824
8825         putenv: Support for MSVC.
8826         * modules/putenv (Depends-on): Add environ.
8827         * lib/putenv.c (environ): Disable declaration.
8828         * lib/unistd.in.h: Update comment.
8829
8830 2011-09-17  Bruno Haible  <bruno@clisp.org>
8831
8832         math: Avoid macro redefinition warnings on MSVC.
8833         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8834         Undefine before redefining.
8835
8836 2011-09-17  Bruno Haible  <bruno@clisp.org>
8837
8838         doc: Mention functions which are declared as macros.
8839         * doc/posix-functions/*[fl].texi: Mention that some functions are
8840         defined as macros with arguments only.
8841
8842 2011-09-17  Bruno Haible  <bruno@clisp.org>
8843
8844         Add dependencies to new dirent related modules.
8845         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8846         * modules/fts (Depends-on): Likewise.
8847         * modules/glob (Depends-on): Likewise.
8848         * modules/savedir (Depends-on): Likewise.
8849         * modules/scandir (Depends-on): Likewise.
8850         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8851         * modules/fdopendir (Depends-on): Add opendir.
8852
8853 2011-09-17  Bruno Haible  <bruno@clisp.org>
8854
8855         inet_pton: Support for MSVC on Windows Vista or newer.
8856         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8857         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8858         HAVE_DECL_INET_PTON is defined.
8859         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8860         On platforms with <winsock2.h>, test whether inet_pton is declared in
8861         <ws2tcpip.h>. If so, arrange to replace it.
8862         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8863         REPLACE_INET_PTON.
8864         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8865         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8866         (Depends-on, configure.ac): Update condition.
8867         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8868
8869 2011-09-17  Bruno Haible  <bruno@clisp.org>
8870
8871         inet_ntop: Support for MSVC on Windows Vista or newer.
8872         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8873         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8874         HAVE_DECL_INET_NTOP is defined.
8875         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8876         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8877         <ws2tcpip.h>. If so, arrange to replace it.
8878         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8879         REPLACE_INET_NTOP.
8880         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8881         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8882         (Depends-on, configure.ac): Update condition.
8883         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8884
8885 2011-09-16  Eric Blake  <eblake@redhat.com>
8886
8887         test-fsync: yet another enhancement
8888         * tests/test-fsync.c (main): Also test behavior on read-only text
8889         file.
8890
8891 2011-09-16  Bruno Haible  <bruno@clisp.org>
8892
8893         Enhance fsync, fdatasync tests.
8894         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8895         * tests/test-fdatasync.c (main): Likewise.
8896
8897 2011-09-16  Bruno Haible  <bruno@clisp.org>
8898
8899         Support for MSVC compiler: Ensure mode_t gets defined.
8900         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8901         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8902         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8903         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8904         * tests/test-fcntl-h.c: Check that mode_t is defined.
8905         * tests/test-sys_stat.c: Likewise.
8906         * tests/test-sys_types.c: Likewise.
8907         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8908         * doc/posix-headers/sys_stat.texi: Likewise.
8909         * doc/posix-headers/sys_types.texi: Likewise.
8910
8911 2011-09-16  Bruno Haible  <bruno@clisp.org>
8912
8913         sys_stat: Support for MSVC.
8914         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8915         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8916         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8917         MSVC.
8918
8919 2011-09-16  Bruno Haible  <bruno@clisp.org>
8920
8921         Support for MSVC compiler: Ensure off_t gets defined.
8922         * lib/unistd.in.h: Include <sys/types.h>.
8923         * tests/test-fcntl-h.c: Check that off_t is defined.
8924         * tests/test-sys_stat.c: Likewise.
8925         * tests/test-sys_types.c: Likewise.
8926
8927 2011-09-16  Eric Blake  <eblake@redhat.com>
8928
8929         fdatasync: port to Solaris
8930         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
8931         * modules/fdatasync (Link): Document it.
8932         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
8933
8934         fdatasync: port to MacOS X 10.7
8935         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
8936         declared.
8937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
8938         * modules/unistd (Makefile.am): Substitute it.
8939         * lib/unistd.in.h (fdatasync): Declare on MacOS.
8940         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
8941
8942         fdatasync: minor improvements
8943         * modules/fdatasync (Depends-on): Add condition for fsync.
8944         * lib/fdatasync.c (fdatasync): Add comment.
8945         * tests/test-unistd-c++.cc: Test fdatasync.
8946
8947         unistd: update refs to newer POSIX
8948         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
8949         Suggested by Bruno Haible.
8950
8951         fdatasync: new module
8952         * modules/fsync (Description): Document difference to fdatasync.
8953         * modules/fdatasync: New module.
8954         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
8955         * lib/fdatasync.c (fdatasync): Likewise.
8956         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
8957         defaults.
8958         * modules/unistd (Makefile.am): Set witnesses.
8959         * lib/unistd.in.h (fdatasync): Declare.
8960         * MODULES.html.sh: Document it.
8961         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
8962         * modules/fdatasync-tests: New test.
8963         * tests/test-fdatasync.c: Likewise.
8964
8965 2011-09-16  Eric Blake  <eblake@redhat.com>
8966
8967         test-fsync: enhance tests
8968         * modules/fsync-tests (Depends-on): Add errno, for mingw.
8969         * tests/test-fsync.c (main): Enhance test.
8970
8971 2011-09-15  Bruno Haible  <bruno@clisp.org>
8972
8973         Support for MSVC compiler: Ensure ssize_t gets defined.
8974         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
8975         * doc/posix-headers/stdio.texi: Likewise.
8976         * modules/stdio (Depends-on): Add ssize_t.
8977         * modules/sys_socket (Depends-on): Likewise.
8978         * modules/sys_types (Depends-on): Likewise.
8979         * modules/sys_uio (Depends-on): Likewise.
8980         * modules/unistd (Depends-on): Likewise.
8981         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
8982         * tests/test-sys_types.c: Check that ssize_t is defined.
8983
8984 2011-09-14  Bruno Haible  <bruno@clisp.org>
8985
8986         Avoid using #, the m4 comment starter character, near brackets.
8987         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
8988         delimiter character in sed expressions.
8989         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8990         Suggested by Eric Blake.
8991
8992         Properly quote AC_CHECK_DECLS' 4th argument.
8993         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
8994         argument.
8995         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8996         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8997         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8998         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8999         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9000         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9001         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9002         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9003         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9004         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9005         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9006         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9007         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9008         * m4/isinf.m4 (gl_ISINF): Likewise.
9009         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9010         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9011         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9012         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9013         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9014         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9015         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9016         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9017         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9018         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9019         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9020         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9022         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9023         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9024         Reported by Eric Blake.
9025
9026         Properly quote AC_CHECK_DECL's 4th argument.
9027         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9028         argument.
9029         * m4/argp.m4 (gl_ARGP): Likewise.
9030         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9031         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9032         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9033         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9034         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9035         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9036         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9037         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9038         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9039         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9040         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9041         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9042         Reported by Eric Blake.
9043
9044 2011-09-14  Eric Blake  <eblake@redhat.com>
9045
9046         opendir: avoid compile warning
9047         * lib/opendir.c (includes): Always include errno.h.
9048         Reported by Tatsuro MATSUOKA.
9049
9050 2011-09-14  Jim Meyering  <meyering@redhat.com>
9051
9052         maint.mk: sc_tight_scope: propagate failure from sub-make
9053         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9054         Reported by Martin von Gagern.
9055
9056 2011-09-13  Bruno Haible  <bruno@clisp.org>
9057
9058         tempname: Support for MSVC.
9059         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9060         MSVC.
9061         * modules/tempname (Depends-on): Add fcntl-h.
9062
9063 2011-09-13  Bruno Haible  <bruno@clisp.org>
9064
9065         sys_time: Support for MSVC.
9066         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9067         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9068         include <winsock2.h>.
9069         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9070         function declarations that collide with POSIX.
9071         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9072         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9073
9074 2011-09-13  Bruno Haible  <bruno@clisp.org>
9075
9076         stat: Support for MSVC.
9077         * lib/stat.c: Include pathmax.h.
9078         * modules/stat (Depends-on): Add pathmax.
9079
9080         pathmax: Support for native Windows.
9081         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9082
9083 2011-09-12  Bruno Haible  <bruno@clisp.org>
9084
9085         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9086         * lib/dirent.in.h (struct dirent): New type.
9087         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9088         DT_WHT): New macros.
9089         (DIR): New type.
9090         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9091         (readdir, rewinddir): New declarations.
9092         * lib/dirent-private.h: New file.
9093         * lib/opendir.c: New file.
9094         * lib/readdir.c: New file.
9095         * lib/rewinddir.c: New file.
9096         * lib/closedir.c: New file.
9097         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9098         * m4/opendir.m4: New file.
9099         * m4/readdir.m4: New file.
9100         * m4/rewinddir.m4: New file.
9101         * m4/closedir.m4: New file.
9102         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9103         REPLACE_CLOSEDIR here.
9104         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9105         readdir, rewinddir are declared.
9106         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9107         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9108         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9109         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9110         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9111         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9112         * modules/opendir: New file.
9113         * modules/readdir: New file.
9114         * modules/rewinddir: New file.
9115         * modules/closedir: New file.
9116         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9117         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9118         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9119         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9120         * NEWS: Mention the 'fchdir' change.
9121
9122 2011-09-11  Bruno Haible  <bruno@clisp.org>
9123
9124         asm-underscore.m4: Support for MSVC.
9125         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9126         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9127
9128 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9129
9130         Doc about crypt functions.
9131         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9132         needing for _GNU_SOURCE to get crypt.
9133         * doc/posix-functions/encrypt.texi: Likewise.
9134         * doc/posix-functions/setkey.texi: Likewise.
9135
9136 2011-09-11  Bruno Haible  <bruno@clisp.org>
9137
9138         doc: Update regarding MSVC 9.
9139         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9140         tested".
9141         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9142         * doc/posix-headers/*.texi: Likewise.
9143         * doc/pastposix-functions/*.texi: Likewise.
9144         * doc/glibc-functions/*.texi: Likewise.
9145         * doc/glibc-headers/*.texi: Likewise.
9146
9147 2011-09-11  Bruno Haible  <bruno@clisp.org>
9148
9149         unistd et al.: Don't assume <unistd.h> exists.
9150         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9151         does not exist.
9152         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9153         exist. But include <stdlib.h>.
9154         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9155         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9156         symlink() does not exist.
9157         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9158         include <io.h> instead.
9159         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9160         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9161         include <direct.h> instead.
9162         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9163         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9164         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9165         <io.h> instead.
9166         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9167         correctly if the system does not have hard links.
9168         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9169         <direct.h> instead.
9170         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9171         it when looking for function declarations.
9172         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9173         <direct.h> and <io.h> instead.
9174         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9175
9176 2011-09-11  Bruno Haible  <bruno@clisp.org>
9177
9178         strcase: Support for MSVC.
9179         * modules/strcase (Status, Notice): Remove obsoletion mark.
9180         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9181         * doc/posix-functions/strncasecmp.texi: Likewise.
9182
9183         strings: Don't assume <strings.h> exists.
9184         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9185         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9186         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9187         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9188
9189 2011-09-11  Bruno Haible  <bruno@clisp.org>
9190
9191         dirent: Don't assume <dirent.h> exists.
9192         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9193         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9194         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9195         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9196
9197 2011-09-11  Bruno Haible  <bruno@clisp.org>
9198
9199         Fix wint_t on MSVC.
9200         * lib/wchar.in.h (wint_t): On MSVC, override it.
9201         * lib/wctype.in.h (wint_t): Likewise.
9202         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9203         MSVC.
9204         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9205         * doc/posix-headers/wctype.texi: Likewise.
9206
9207 2011-09-11  Bruno Haible  <bruno@clisp.org>
9208
9209         sys_types: Fix typo.
9210         * lib/sys_types.in.h: Fix typo in comment.
9211         Reported by Paul Eggert.
9212
9213         Support for MSVC compiler: Ensure size_t gets defined.
9214         * modules/strings (Depends-on): Add 'sys_types'.
9215         * modules/sys_uio (Depends-on): Likewise.
9216         * lib/sys_uio.in.h: Update comment.
9217
9218         C++ tests for module 'sys_types'.
9219         * modules/sys_types-c++-tests: New file.
9220         * tests/test-sys_types-c++.cc: New file.
9221
9222         Tests for module 'sys_types'.
9223         * modules/sys_types-tests: New file.
9224         * tests/test-sys_types.c: New file.
9225
9226         New module 'sys_types'.
9227         * lib/sys_types.in.h: New file.
9228         * m4/sys_types_h.m4: New file.
9229         * modules/sys_types: New file.
9230         * doc/posix-headers/sys_types.texi: Mention the new module and the
9231         size_t problem on MSVC 9.
9232
9233 2011-09-11  Bruno Haible  <bruno@clisp.org>
9234
9235         Support for MSVC compiler: Avoid division by a literal 0.
9236         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9237         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9238         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9239         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9240         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9241         * tests/infinity.h: New file.
9242         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9243         on MSVC.
9244         * tests/test-ceilf1.c: Include infinity.h.
9245         (main): Use Infinityf.
9246         * tests/test-ceil1.c: Include infinity.h.
9247         (main): Use Infinityd.
9248         * tests/test-ceill.c: Include infinity.h.
9249         (main): Use Infinityl.
9250         * tests/test-dprintf-posix.c: Include infinity.h.
9251         (test_function): Use Infinityd.
9252         * tests/test-floorf1.c: Include infinity.h.
9253         (main): Use Infinityf.
9254         * tests/test-floor1.c: Include infinity.h.
9255         (main): Use Infinityd.
9256         * tests/test-floorl.c: Include infinity.h.
9257         (main): Use Infinityl.
9258         * tests/test-fprintf-posix.c: Include infinity.h.
9259         (test_function): Use Infinityd.
9260         * tests/test-frexp.c: Include infinity.h.
9261         (main): Use Infinityd.
9262         * tests/test-frexpl.c: Include infinity.h.
9263         (main): Use Infinityl.
9264         * tests/test-isfinite.c: Include infinity.h.
9265         (test_isfinitef): Use Infinityf.
9266         (test_isfinited): Use Infinityd.
9267         (test_isfinitel): Use Infinityl.
9268         * tests/test-isinf.c: Include infinity.h.
9269         (test_isinff): Use Infinityf.
9270         (test_isinfd): Use Infinityd.
9271         (test_isinfl): Use Infinityl.
9272         * tests/test-isnan.c: Include infinity.h.
9273         (test_float): Use Infinityf.
9274         (test_double): Use Infinityd.
9275         (test_long_double): Use Infinityl.
9276         * tests/test-isnanf.h: Include infinity.h.
9277         (main): Use Infinityf.
9278         * tests/test-isnand.h: Include infinity.h.
9279         (main): Use Infinityd.
9280         * tests/test-isnanl.h: Include infinity.h.
9281         (main): Use Infinityl.
9282         * tests/test-ldexpl.c: Include infinity.h.
9283         (main): Use Infinityl.
9284         * tests/test-printf-posix.h: Include infinity.h.
9285         (test_function): Use Infinityd.
9286         * tests/test-roundf1.c: Include infinity.h.
9287         (main): Use Infinityf.
9288         * tests/test-round1.c: Include infinity.h.
9289         (main): Use Infinityd.
9290         * tests/test-roundl.c: Include infinity.h.
9291         (main): Use Infinityl.
9292         * tests/test-signbit.c: Include infinity.h.
9293         (test_signbitf): Use Infinityf.
9294         (test_signbitd): Use Infinityd.
9295         (test_signbitl): Use Infinityl.
9296         * tests/test-snprintf-posix.h: Include infinity.h.
9297         (test_function): Use Infinityd, Infinityl.
9298         * tests/test-sprintf-posix.h: Include infinity.h.
9299         (test_function): Use Infinityd, Infinityl.
9300         * tests/test-truncf1.c: Include infinity.h.
9301         (main): Use Infinityf.
9302         * tests/test-trunc1.c: Include infinity.h.
9303         (main): Use Infinityd.
9304         * tests/test-truncl.c: Include infinity.h.
9305         (main): Use Infinityl.
9306         * tests/test-vasnprintf-posix.c: Include infinity.h.
9307         (test_function): Use Infinityd, Infinityl.
9308         * tests/test-vasprintf-posix.c: Include infinity.h.
9309         (test_function): Use Infinityd, Infinityl.
9310         * modules/ceilf-tests (Files): Add tests/infinity.h.
9311         * modules/ceil-tests (Files): Likewise.
9312         * modules/ceill-tests (Files): Likewise.
9313         * modules/dprintf-posix-tests (Files): Likewise.
9314         * modules/floorf-tests (Files): Likewise.
9315         * modules/floor-tests (Files): Likewise.
9316         * modules/floorl-tests (Files): Likewise.
9317         * modules/fprintf-posix-tests (Files): Likewise.
9318         * modules/frexp-tests (Files): Likewise.
9319         * modules/frexp-nolibm-tests (Files): Likewise.
9320         * modules/frexpl-tests (Files): Likewise.
9321         * modules/frexpl-nolibm-tests (Files): Likewise.
9322         * modules/isfinite-tests (Files): Likewise.
9323         * modules/isinf-tests (Files): Likewise.
9324         * modules/isnan-tests (Files): Likewise.
9325         * modules/isnanf-tests (Files): Likewise.
9326         * modules/isnanf-nolibm-tests (Files): Likewise.
9327         * modules/isnand-tests (Files): Likewise.
9328         * modules/isnand-nolibm-tests (Files): Likewise.
9329         * modules/isnanl-tests (Files): Likewise.
9330         * modules/isnanl-nolibm-tests (Files): Likewise.
9331         * modules/ldexpl-tests (Files): Likewise.
9332         * modules/printf-posix-tests (Files): Likewise.
9333         * modules/roundf-tests (Files): Likewise.
9334         * modules/round-tests (Files): Likewise.
9335         * modules/roundl-tests (Files): Likewise.
9336         * modules/signbit-tests (Files): Likewise.
9337         * modules/snprintf-posix-tests (Files): Likewise.
9338         * modules/sprintf-posix-tests (Files): Likewise.
9339         * modules/truncf-tests (Files): Likewise.
9340         * modules/trunc-tests (Files): Likewise.
9341         * modules/truncl-tests (Files): Likewise.
9342         * modules/vasnprintf-posix-tests (Files): Likewise.
9343         * modules/vasprintf-posix-tests (Files): Likewise.
9344         * modules/vdprintf-posix-tests (Files): Likewise.
9345         * modules/vfprintf-posix-tests (Files): Likewise.
9346         * modules/vprintf-posix-tests (Files): Likewise.
9347         * modules/vsnprintf-posix-tests (Files): Likewise.
9348         * modules/vsprintf-posix-tests (Files): Likewise.
9349         * modules/xprintf-posix-tests (Files): Likewise.
9350
9351 2011-09-11  Bruno Haible  <bruno@clisp.org>
9352
9353         Ensure pid_t gets defined.
9354         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9355         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9356         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9357         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9358         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9359         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9360         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9361         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9362         * tests/test-fcntl-h.c: Check that pid_t is defined.
9363         * tests/test-sched.c: Likewise.
9364         * tests/test-termios.c: Likewise.
9365         * tests/test-time.c: Likewise.
9366         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9367         * doc/posix-headers/signal.texi: Likewise.
9368         * doc/posix-headers/sys_types.texi: Likewise.
9369         * doc/posix-headers/time.texi: Likewise.
9370
9371 2011-09-11  Bruno Haible  <bruno@clisp.org>
9372
9373         acl: Fix compilation on Solaris 10 (older version).
9374         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9375         of ACE_EVERYONE.
9376         * lib/set-mode-acl.c (qset_acl): Likewise.
9377         Reported by Christian Jullien <eligis@orange.fr>.
9378
9379 2011-09-10  Bruno Haible  <bruno@clisp.org>
9380
9381         iconv, unsetenv: Add support for MSVC compiler.
9382         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9383         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9384
9385 2011-09-10  Bruno Haible  <bruno@clisp.org>
9386
9387         *printf: Add support for MSVC compiler.
9388         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9389         handles the exception caused by the %n directive. When cross-compiling,
9390         guess no on native Windows.
9391         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9392         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9393         emulate it through vsnprintf.
9394         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9395         * doc/posix-functions/dprintf.texi: Update documentation regarding
9396         MSVC 9.
9397         * doc/posix-functions/fprintf.texi: Likewise.
9398         * doc/posix-functions/printf.texi: Likewise.
9399         * doc/posix-functions/snprintf.texi: Likewise.
9400         * doc/posix-functions/sprintf.texi: Likewise.
9401         * doc/posix-functions/swprintf.texi: Likewise.
9402         * doc/posix-functions/vdprintf.texi: Likewise.
9403         * doc/posix-functions/vfprintf.texi: Likewise.
9404         * doc/posix-functions/vprintf.texi: Likewise.
9405         * doc/posix-functions/vsnprintf.texi: Likewise.
9406         * doc/posix-functions/vsprintf.texi: Likewise.
9407         * doc/glibc-functions/asprintf.texi: Likewise.
9408         * doc/glibc-functions/obstack_printf.texi: Likewise.
9409         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9410         * doc/glibc-functions/vasprintf.texi: Likewise.
9411
9412 2011-09-10  Bruno Haible  <bruno@clisp.org>
9413
9414         nocrash: Add support for native Windows.
9415         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9416
9417 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9418             Bruno Haible  <bruno@clisp.org>
9419
9420         absolute-header, include-next: Add support for MSVC compiler.
9421         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9422         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9423         directory separator in #line directives.
9424         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9425         recognize also backslash as directory separator in #line directives.
9426
9427 2011-09-08  Jim Meyering  <meyering@redhat.com>
9428
9429         maint.mk: mark the post-release commit log with "maint: " prefix
9430         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9431         one-line commit-log summary.
9432
9433 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9434             Bruno Haible  <bruno@clisp.org>
9435
9436         Doc about crypt functions.
9437         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9438         systems.
9439         * doc/posix-functions/encrypt.texi: Likewise.
9440         * doc/posix-functions/setkey.texi: Likewise.
9441
9442 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9443
9444         * lib/gc.h: Fix copyright header.
9445
9446 2011-09-07  Bruno Haible  <bruno@clisp.org>
9447
9448         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9449         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9450         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9451
9452 2011-09-07  Bruno Haible  <bruno@clisp.org>
9453
9454         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9455         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9456         * lib/freopen.c: Likewise.
9457         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9458         * lib/lstat.c: Likewise.
9459         * lib/stat.c: Likewise.
9460         * lib/open.c: Use different syntax for include of <fcntl.h>.
9461         * lib/openat.c: Include fcntl.h again, explicitly.
9462
9463 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9464
9465         parse-datetime: document the newly accepted format
9466         * doc/parse-datetime.texi (Combined date and time of day items):
9467         New section.
9468
9469 2011-09-06  Bruno Haible  <bruno@clisp.org>
9470
9471         acl: Fix a test failure on newer Solaris 10 with ZFS.
9472         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9473         ENOSYS as no ACL.
9474         Reported by Jim Meyering.
9475
9476 2011-09-06  Bruno Haible  <bruno@clisp.org>
9477
9478         acl: Update for AIX >= 5.3 with NFS.
9479         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9480         ENOSYS as no ACL.
9481
9482         acl: Fix a test failure on AIX >= 5.3 with NFS.
9483         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9484         as no ACL.
9485
9486 2011-09-06  Bruno Haible  <bruno@clisp.org>
9487
9488         acl: Fix a test failure on IRIX 6.5 with NFS.
9489         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9490         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9491         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9492         * lib/copy-acl.c (qcopy_acl): Likewise.
9493
9494 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9495
9496         openat: port to AIX 7.1 with large files
9497         AIX 7.1 does a "#define openat open64at" if large files are in use,
9498         so we can't simply #undef openat.  Use the orig_openat trick (similar
9499         to orig_open in lib/open.c) to work around the problem.  Problem
9500         reported by Kevin Brott for GNU tar, in the thread containing
9501         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9502         * lib/openat.c (__need_system_fcntl_h): Define first.
9503         Include <fcntl.h> and <sys/types.h> before undefining.
9504         (orig_openat) [HAVE_OPENAT]: New inline function.
9505         (openat) [HAVE_OPENAT]: Do not undef.
9506         (rpl_openat): Use orig_openat, not openat.
9507
9508 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9509             Bruno Haible  <bruno@clisp.org>
9510
9511         acl: Avoid errors on NonStop Kernel.
9512         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9513         ENOTSUP errors.
9514
9515 2011-09-05  Bruno Haible  <bruno@clisp.org>
9516
9517         acl: Clean up Solaris code.
9518         * lib/acl-internal.h: Remove no-op #if.
9519         * lib/file-has-acl.c: Likewise.
9520         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9521         * lib/copy-acl.c (qcopy_acl): Likewise.
9522
9523 2011-09-05  Bruno Haible  <bruno@clisp.org>
9524
9525         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9526         binaries built on the original Solaris 10.
9527         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9528         trivial.
9529
9530 2011-09-05  Bruno Haible  <bruno@clisp.org>
9531
9532         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9533         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9534         10.
9535         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9536         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9537         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9538         instead of acl_get, facl_get, acl_set, facl_set.
9539
9540 2011-09-05  Bruno Haible  <bruno@clisp.org>
9541
9542         copy-file: Try unit tests on more file systems.
9543         * tests/test-copy-file-1.sh: New file.
9544         * tests/test-copy-file-2.sh: New file.
9545         * modules/copy-file-tests (Files): Add them.
9546         (Makefile.am): Add them to TESTS.
9547
9548         acl: Try unit tests on more file systems.
9549         * tests/test-file-has-acl-1.sh: New file.
9550         * tests/test-file-has-acl-2.sh: New file.
9551         * tests/test-set-mode-acl-1.sh: New file.
9552         * tests/test-set-mode-acl-2.sh: New file.
9553         * tests/test-copy-acl-1.sh: New file.
9554         * tests/test-copy-acl-2.sh: New file.
9555         * modules/acl-tests (Files): Add them.
9556         (Makefile.am): Add them to TESTS.
9557
9558 2011-09-04  Bruno Haible  <bruno@clisp.org>
9559
9560         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9561         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9562         10.
9563         (OLD_ALLOW, OLD_DENY): New macros.
9564         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9565         ACE_ACCESS_ALLOWED_ACE_TYPE.
9566         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9567         ACE_ACCESS_DENIED_ACE_TYPE.
9568         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9569         (NEW_ACE_EXECUTE): Fix value.
9570         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9571         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9572         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9573         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9574         NEW_ACE_SYNCHRONIZE): New macros.
9575         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9576         instead of acl_fromtext, acl_set, facl_set.
9577         Fixes a coreutils/tests/cp/perm failure.
9578
9579 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9580
9581         openat: test for fstatat (..., 0) bug
9582         Further testing with tar suggests that fstatat (..., 0)
9583         does not work in general, on AIX 7.1; see
9584         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9585         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9586         replacement fstatat (which is what older AIX releases were using
9587         anyway).
9588         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9589         use is now changed to orig_fstatat.  This was probably the right
9590         thing to do anyway.
9591         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9592         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9593         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9594         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9595         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9596         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9597         if the bug is found.
9598
9599         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9600         This tests for another fstatat bug on AIX 7.1:
9601         fstatat (AT_FDCWD, ..., 0) does not work.  See
9602         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9603         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9604         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9605         (rpl_fstatat): Adjust so that it works around either (or both)
9606         bugs if present.
9607         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9608
9609 2011-09-03  Karl Berry  <karl@gnu.org>
9610
9611         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9612         in index entries.
9613
9614 2011-09-02  Bruno Haible  <bruno@clisp.org>
9615
9616         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9617         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9618         values of AR, ARFLAGS, RANLIB.
9619         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9620
9621 2011-09-02  Bruno Haible  <bruno@clisp.org>
9622
9623         Find 'ar' program that fits with --host argument.
9624         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9625
9626 2011-09-02  Bruno Haible  <bruno@clisp.org>
9627
9628         tests: init.sh: Support any non-GNU diff.
9629         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9630         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9631         Solaris 8.
9632
9633 2011-09-02  Bruno Haible  <bruno@clisp.org>
9634
9635         tests: init.sh: work also with any non-GNU diff that supports -u
9636         * tests/init.sh: Relax check for diff -u support.
9637         Rather than checking for GNU diff via --version, simply check
9638         for support for -u itself.  Useful at least on OpenBSD 4.9,
9639         AIX 7.1, IRIX 6.5, and Solaris 10.
9640
9641 2011-09-01  Bruno Haible  <bruno@clisp.org>
9642
9643         strtoimax, strtoumax: Document problem on HP-UX 11.
9644         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9645         * doc/posix-functions/strtoumax.texi: Likewise.
9646
9647 2011-09-01  Bruno Haible  <bruno@clisp.org>
9648
9649         strtoumax: Avoid link error on OSF/1 with DTK cc.
9650         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9651         defined as a function.
9652         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9653         strtoumax is defined, not whether it is declared.
9654
9655 2011-09-01  Bruno Haible  <bruno@clisp.org>
9656
9657         strtoimax: Avoid link error on OSF/1 with DTK cc.
9658         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9659         defined as a function.
9660         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9661         strtoimax is defined, not whether it is declared.
9662
9663 2011-09-01  Bruno Haible  <bruno@clisp.org>
9664
9665         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9666         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9667         as a function.
9668         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9669         whether it is declared.
9670
9671 2011-09-01  Bruno Haible  <bruno@clisp.org>
9672
9673         imaxabs: Avoid link error on OSF/1 with DTK cc.
9674         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9675         as a function.
9676         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9677         whether it is declared.
9678
9679 2011-09-01  Bruno Haible  <bruno@clisp.org>
9680
9681         Tests for module 'strtoumax'.
9682         * modules/strtoumax-tests: New file.
9683         * tests/test-strtoumax.c: New file.
9684
9685         Tests for module 'strtoimax'.
9686         * modules/strtoimax-tests: New file.
9687         * tests/test-strtoimax.c: New file.
9688
9689         Tests for module 'imaxdiv'.
9690         * modules/imaxdiv-tests: New file.
9691         * tests/test-imaxdiv.c: New file.
9692
9693         Tests for module 'imaxabs'.
9694         * modules/imaxabs-tests: New file.
9695         * tests/test-imaxabs.c: New file.
9696
9697 2011-09-01  Bruno Haible  <bruno@clisp.org>
9698
9699         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9700         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9701         pthread_create.
9702
9703 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9704
9705         openat: work around AIX 7.1 fstatat issue
9706         This should fix the problem that was not properly fixed
9707         in the previous change, dated 2011-08-30.
9708         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9709         __need_system_stat_h defined.
9710         (orig_fstatat) [HAVE_FSTATAT]: New function.
9711         (rpl_fstatat): Go back to the old way of doing things,
9712         except call orig_fstatat instead of fstatat.
9713         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9714         Remove unnecessary check whether fstatat fills in st_size etc.
9715
9716 2011-09-01  Bruno Haible  <bruno@clisp.org>
9717
9718         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9719         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9720         just include the system's header.
9721
9722 2011-08-31  Jim Meyering  <meyering@redhat.com>
9723
9724         tests: avoid spurious assertion failure in test-float.c on ppc64
9725         * tests/test-float.c (test_long_double): Comment out an assertion,
9726         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9727         with gcc-4.4.4.
9728
9729         maint: indent with spaces, not TABs
9730         I need to get in the habit of running gnulib's "make check".
9731         Both of these would have been caught.
9732         * m4/largefile.m4: Indent with spaces, not TABs.
9733         * lib/parse-datetime.y (iso_8601_time): Likewise.
9734         Spotted by Pádraig Brady.
9735
9736         test-parse-datetime.c: accommodate a relatively strict gcc warning
9737         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9738         to avoid a warning from gcc's -Werror=missing-declarations.
9739         Insert a few spaces-before-funcall-parenthesis.
9740
9741 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9742
9743         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9744         The parser now accepts ISO 8601 date-time strings with "T" as the
9745         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9746         with a space between the date and time strings.  Now it also parses
9747         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9748         variants like "2004-02-29T16:21:42.333-07:00"
9749         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9750         of day representation using the 'T' separator character.
9751         * doc/parse-datetime.texi (General date syntax): replace use of
9752         deprecated --iso-8601 option with --rfc-3339 in example of date
9753         command output formats that can be parsed.
9754         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9755         lib/parse-datetime.y.
9756         (gmt_offset): New function.
9757         (main): Add additional test cases to validate ISO8601 extended
9758         date and time of day parsing.
9759
9760 2011-08-31  Bruno Haible  <bruno@clisp.org>
9761
9762         freopen: Documentation.
9763         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9764         name.
9765         Reported by Claudio Bley <claudio.bley@gmail.com>.
9766
9767 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9768
9769         freopen: Don't crash if the filename argument is NULL.
9770         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9771         NULL.
9772
9773 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9774
9775         openat: work around AIX 7.1 fstatat bug
9776         Problem reported by Kevin Brott for GNU tar, in the thread containing
9777         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9778         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9779         FSTATAT_ST_SIZE_ETC_BROKEN.
9780         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9781         rpl_fstatat.
9782         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9783         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9784         AC_CHECK_FUNCS_ONCE for fstatat.
9785         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9786         fchmodat, mkdirat, openat and unlinkat.
9787
9788 2011-08-30  Bruno Haible  <bruno@clisp.org>
9789
9790         Avoid endless recursions if config.h includes some header files.
9791         * lib/fopen.c (__need_FILE): Define already before including config.h.
9792         * lib/freopen.c (__need_FILE): Likewise.
9793         * lib/open.c (__need_system_fcntl_h): Likewise.
9794         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9795         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9796         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9797
9798 2011-08-25  Karl Berry  <karl@gnu.org>
9799
9800         * config/srclist.txt (ylwrap): new try.
9801         * build-aux/ylwrap: new file.
9802
9803 2011-08-23  Bruno Haible  <bruno@clisp.org>
9804
9805         tmpdir: Use a good default directory on native Windows.
9806         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9807         (P_tmpdir): Default to _P_tmpdir on native Windows.
9808         (path_search): On native Windows, try the value returned by GetTempPath
9809         before trying P_tmpdir.
9810         * modules/tmpdir (Depends-on): Add pathmax.
9811         Suggested by John Darrington <john@darrington.wattle.id.au>.
9812
9813 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9814
9815         doc: fix typo in README-release
9816         * top/README-release: Capitalize first word of a sentence.
9817
9818 2011-08-19  Jim Meyering  <meyering@redhat.com>
9819
9820         fts: do not exhaust memory when processing million-entry directories
9821         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9822         directory would require about 256*N bytes of memory.  Thus, it was
9823         easy to construct a directory too large to be processed by any of
9824         those tools.  With this change, fts' maximum memory utilization is
9825         now limited to around 30MB.
9826         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9827         (fts_read): When we've processed the final entry (i.e., when
9828         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9829         using the parent entry to read any remaining entries.  Dispatch
9830         depending on what fts_build returns:
9831         - NULL+stop, aka failure: stop
9832         - NULL otherwise: move up in the dir hierarchy
9833         - non-NULL: handle this new entry
9834         (fts_build): Declare and use new local, continue_readdir.
9835         Prepare to be called from fts_read, when the entries
9836         from a partially-read directory have just been exhausted.
9837         In that case, we'll skip the opendir and instead use the parent's
9838         fts_dirp and derive dir_fd from that.
9839         Finally, in the readdir loop, if we read max_entries entries,
9840         exit the loop ensuring *not* to call closedir.  This is required
9841         so that fts_dirp can be reused on a subsequent call.
9842         Prompted by Ben England's report of memory exhaustion in find
9843         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9844
9845         maint: fts: move decl of `dp' down into while loop; split a long line
9846         * lib/fts.c (fts_build): No semantic change.
9847
9848         fts: add/use new struct member, fts_dirp
9849         We are about to use this to manage any directory with
9850         too many entries to read all of them into memory at once.
9851         To do that, we'll need to save the DIR* pointer in each
9852         affected FTSENT struct.
9853         * lib/fts_.h: Include <dirent.h>.
9854         (struct FTSENT) [fts_dirp]: New member.
9855         * lib/fts.c (closedir_and_clear): Define.
9856         Use it in place of closedir so that we are sure to
9857         clear the new fts_dirp member when done with it.
9858         (fts_alloc): Initialize the new member.
9859         (fts_lfree): Free, if needed.
9860
9861         maint: fts: give __opendir2 a new parameter and rename
9862         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9863         than surreptitiously using sole caller's "dir_fd".
9864         (fts_opendir): Rename from __opendir2.
9865
9866         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9867         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9868
9869         maint: fts.c: correct off-by-one indentation
9870         * lib/fts.c (fts_build): Correct indentation, change style
9871         of a couple of block comments, and bracing style.
9872
9873         maint: fts.c: move __opendir2 #define "up" out of function body
9874         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9875
9876         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9877         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9878         out for a long time and besides was useful only on BSD systems.
9879
9880 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9881
9882         regex: port to Stratus OpenVOS
9883         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9884         define to empty, rather than attempting nonportable optimizations.
9885         Problem reported by Paul Green in:
9886         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9887         and fix suggested by Eric Blake in:
9888         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9889
9890 2011-08-17  Eric Blake  <eblake@redhat.com>
9891
9892         getcwd: fix test failures on mingw
9893         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9894         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9895         test if long directory cannot be created, and allow mingw errno.
9896
9897         getcwd-lgpl: fix m4 to match relaxed test for BSD
9898         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9899         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9900         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9901         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9902         signature problem.
9903
9904         getcwd: fix compilation on mingw64
9905         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9906         getcwd.
9907         Reported by Marc-André Lureau.
9908
9909         pipe2: silence compiler warning
9910         * lib/pipe2.c (pipe2): Hide label if it is not used.
9911
9912 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9913
9914         relocatable-prog: fix link error
9915         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9916         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9917         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9918         into modules/relocatable-lib without noticing that
9919         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9920         also needs to build relocatable.c.
9921
9922 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9923
9924         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9925         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9926         shell code: it contained a 'break' that was not in a loop.
9927         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
9928         via a shell-language loop; this may have been true in old Autoconf
9929         versions, but it's not true in Autoconf 2.68.  I found this bug
9930         when testing coreutils git on Solaris 8, whose shell complains
9931         about the syntax error.
9932
9933 2011-08-12  Simon Josefsson  <simon@josefsson.org>
9934
9935         * lib/base64.c: Fix comment to reference RFC 4648.
9936         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
9937         <gvtulder@gmail.com>.
9938
9939 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9940
9941         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
9942
9943         po/Makefile.in.in: fix make -q problem
9944         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
9945         rule, since there's no file named 'check-macro-version' and its
9946         use as a file breaks make -q.
9947         (all): Don't depend on check-macro-version.
9948         (CHECK_MACRO_VERSION): New macro.
9949         (stamp-po): Use it.
9950
9951         configmake: fix make -q problem
9952         * modules/configmake (configmake.h): Update configmake.h's time stamp
9953         even if the file does not change.  Otherwise, 'make -q' fails.
9954         Problem reported by Simon Josefsson in
9955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
9956
9957 2011-08-11  Jim Meyering  <meyering@redhat.com>
9958
9959         git-version-gen: correct the advice in a comment
9960         * build-aux/git-version-gen: Correct comment.
9961         Don't recommend to list .tarball-version in .gitignore.
9962
9963 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9964
9965         base64: fix off-by-one buffer size bug
9966         Problem and (trivial) fix reported by Gijs van Tulder in
9967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
9968         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
9969         * tests/test-base64.c (main): Catch the bug.
9970
9971 2011-08-10  Eric Blake  <eblake@redhat.com>
9972
9973         closein: correct comments
9974         * lib/closein.c (close_stdin): Improve comments.
9975
9976 2011-08-09  Bruno Haible  <bruno@clisp.org>
9977
9978         More tests for 'fseeko'.
9979         * tests/test-fseeko3.c: New file, from Eric Blake.
9980         * tests/test-fseeko3.sh: New file.
9981         * modules/fseeko-tests (Files): Add them.
9982         (TESTS): Add test-fseeko3.sh.
9983         (check_PROGRAMS): Add test-fseeko3.
9984
9985 2011-08-09  Eric Blake  <eblake@redhat.com>
9986
9987         fseeko: remove unneeded hack
9988         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
9989
9990         fseeko: fix bug on glibc
9991         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
9992         Reported by John W. Eaton.
9993
9994 2011-08-08  Bruno Haible  <bruno@clisp.org>
9995
9996         unictype/base: Fix interoperability with preinstalled libunistring.
9997         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
9998         Reported by Simon Josefsson.
9999
10000 2011-08-08  Bruno Haible  <bruno@clisp.org>
10001
10002         iswblank: Detect declaration correctly.
10003         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10004         AC_CHECK_DECLS invocation.
10005
10006 2011-08-08  Bruno Haible  <bruno@clisp.org>
10007
10008         tcgetsid: Detect declaration correctly.
10009         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10010         AC_CHECK_DECLS invocation.
10011         Reported by Simon Josefsson.
10012
10013 2011-08-08  Eric Blake  <eblake@redhat.com>
10014
10015         largefile: fix typo that regressed large file support
10016         * modules/largefile (configure.ac-early): Fix section name.
10017
10018 2011-08-06  Karl Berry  <karl@gnu.org>
10019
10020         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10021         a separate module.
10022
10023 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10024
10025         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10026         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10027         get prototype for free.
10028
10029 2011-08-04  Bruno Haible  <bruno@clisp.org>
10030
10031         Tests for module 'pathmax'.
10032         * modules/pathmax-tests: New file.
10033         * tests/test-pathmax.c: New file.
10034
10035         canonicalize-lgpl: Support larger filenames on the Hurd.
10036         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10037         Reported by Paul Eggert.
10038
10039         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10040         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10041         * lib/chdir-long.h: Include pathmax.h.
10042         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10043         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10044         (PATH_MAX): Remove code that is done by pathmax.h.
10045         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10046         * lib/tmpfile.c: Add a comment.
10047         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10048         * modules/chdir-long (Depends-on): Add pathmax.
10049         * modules/getcwd (Depends-on): Add pathmax.
10050         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10051         is not defined.
10052         * doc/posix-headers/limits.texi: Mention the pathmax module.
10053         * NEWS: Mention the change.
10054
10055 2011-08-02  Bruno Haible  <bruno@clisp.org>
10056
10057         pthread_sigmask: Actually use results of gl_THREADLIB.
10058         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10059         gl_THREADLIB, not gl_[]THREADLIB.
10060         Reported by Eric Blake.
10061
10062 2011-08-02  Jim Meyering  <meyering@redhat.com>
10063
10064         maint.mk: relax the default _gl_TS_function_match regexp
10065         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10066         space between function name and "(" in an "extern" declaration.
10067         That would fail to match a decl with no space there: extern void foo();
10068
10069 2011-07-31  Iain Nicol  <iain@thenicols.net>
10070
10071         git-version-gen: document that EXTRA_DIST must include .version
10072         * build-aux/git-version-gen: In the how-to-use comment, document
10073         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10074         will fail when run from an unpacked distribution tarball.
10075
10076 2011-08-01  Bruno Haible  <bruno@clisp.org>
10077
10078         wctype-h: Fix last change.
10079         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10080         REPLACE_TOWLOWER to 0.
10081         Reported by Sam Steingold <sds@gnu.org>.
10082
10083 2011-07-31  Bruno Haible  <bruno@clisp.org>
10084
10085         frexpl: Update autoconf test.
10086         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10087         according to changes of 2011-06-20.
10088
10089 2011-07-31  Bruno Haible  <bruno@clisp.org>
10090
10091         sys_utsname: Add support for Minix.
10092         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10093         <sys/utsname.h>.
10094         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10095         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10096
10097 2011-07-31  Bruno Haible  <bruno@clisp.org>
10098
10099         strings: Add support for Minix.
10100         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10101         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10102         * doc/posix-headers/strings.texi: Document the Minix problem.
10103
10104 2011-07-31  Bruno Haible  <bruno@clisp.org>
10105
10106         wctype-h: Add support for Minix.
10107         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10108         REPLACE_TOWLOWER.
10109         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10110         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10111         REPLACE_ISWCNTRL.
10112
10113 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10114
10115         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10116         This is a performance improvement for 64-bit hosts: it causes the
10117         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10118
10119 2011-07-31  Bruno Haible  <bruno@clisp.org>
10120
10121         stdioext: Add support for Minix.
10122         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10123         * lib/fpurge.c (fpurge): Likewise.
10124         * lib/freadahead.c (freadahead): Likewise.
10125         * lib/freadable.c (freadable): Likewise.
10126         * lib/freading.c (freading): Likewise.
10127         * lib/freadptr.c (freadptr): Likewise.
10128         * lib/freadseek.c (freadptrinc): Likewise.
10129         * lib/fseeko.c (rpl_fseeko): Likewise.
10130         * lib/fseterr.c (fseterr): Likewise.
10131         * lib/fwritable.c (fwritable): Likewise.
10132         * lib/fwriting.c (fwriting): Likewise.
10133         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10134         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10135
10136 2011-07-31  Bruno Haible  <bruno@clisp.org>
10137
10138         errno: Port to Minix.
10139         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10140         ECONNABORTED are defined.
10141         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10142         GNULIB_defined_ECONNABORTED): New macros.
10143         * lib/strerror-override.h (strerror_override): Test also
10144         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10145         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10146         ECONNABORTED.
10147         * doc/posix-headers/errno.texi: Mention the Minix problem.
10148
10149 2011-07-31  Bruno Haible  <bruno@clisp.org>
10150
10151         Work around declaration collisions on Minix.
10152         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10153         defined, set REPLACE_MBSINIT.
10154         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10155         defined, set REPLACE_MBRTOWC.
10156         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10157         set REPLACE_MBRLEN.
10158         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10159         defined, set REPLACE_MBSRTOWCS.
10160         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10161         defined, set REPLACE_WCRTOMB.
10162         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10163         defined, set REPLACE_WCSRTOMBS.
10164
10165 2011-07-31  Bruno Haible  <bruno@clisp.org>
10166
10167         Add support for Minix with ACK compiler.
10168         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10169         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10170         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10171
10172 2011-07-31  Bruno Haible  <bruno@clisp.org>
10173
10174         Documentation about Minix.
10175         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10176         * doc/glibc-headers/*.texi: Likewise.
10177         * doc/posix-functions/*.texi: Likewise.
10178         * doc/glibc-functions/*.texi: Likewise.
10179
10180 2011-07-31  Bruno Haible  <bruno@clisp.org>
10181
10182         snippet/warn-on-use: Fix indentation.
10183         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10184
10185 2011-07-25  Jim Meyering  <meyering@redhat.com>
10186
10187         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10188         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10189         commands.
10190
10191 2011-07-27  Jim Meyering  <meyering@redhat.com>
10192
10193         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10194         * top/maint.mk (gl_extract_significant_defines_): Now that
10195         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10196         gnulib/lib/signal.in.h, and now that we recommend to
10197         define-if-undefined those two symbols in application code,
10198         we must filter them out of the "significant" list.
10199         This avoids a "make syntax-check" failure in coreutils.
10200
10201 2011-07-26  Eric Blake  <eblake@redhat.com>
10202
10203         warnings: add comments about previous patch
10204         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10205         * m4/include_next.m4: Likewise.
10206         * m4/warn-on-use.m4: Likewise.
10207         * m4/warnings.m4: Likewise, and simplify use.
10208         Suggested by Stefano Lattarini.
10209
10210         include-next, warnings: support older autoconf
10211         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10212         AS_VAR_PUSHDEF in a way that works with older autoconf.
10213         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10214         Reported by Daniel P. Berrange.
10215
10216 2011-07-25  Bruno Haible  <bruno@clisp.org>
10217
10218         fseek, ftell: Fix doc.
10219         * doc/posix-functions/fseek.texi: Reword statement about
10220         AC_SYS_LARGEFILE.
10221         * doc/posix-functions/ftell.texi: Likewise.
10222
10223 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10224             Bruno Haible  <bruno@clisp.org>
10225
10226         Add dependencies to the 'largefile' module.
10227         * modules/fopen (Depends-on): Add 'largefile'.
10228         * modules/freopen (Depends-on): Likewise.
10229         * modules/fseeko (Depends-on): Likewise.
10230         * modules/ftello (Depends-on): Likewise.
10231         * modules/glob (Depends-on): Likewise.
10232         * modules/lseek (Depends-on): Likewise.
10233         * modules/lstat (Depends-on): Likewise.
10234         * modules/mkostemp (Depends-on): Likewise.
10235         * modules/mkostemps (Depends-on): Likewise.
10236         * modules/mkstemp (Depends-on): Likewise.
10237         * modules/mkstemps (Depends-on): Likewise.
10238         * modules/open (Depends-on): Likewise.
10239         * modules/openat (Depends-on): Likewise.
10240         * modules/pread (Depends-on): Likewise.
10241         * modules/pwrite (Depends-on): Likewise.
10242         * modules/scandir (Depends-on): Likewise.
10243         * modules/stat (Depends-on): Likewise.
10244         * modules/tmpfile (Depends-on): Likewise.
10245         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10246         since the containing module now depends on the largefile module.
10247         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10248         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10249         off_t is fixed by gnulib.
10250         * doc/posix-functions/freopen.texi: Likewise.
10251         * doc/posix-functions/fseeko.texi: Likewise.
10252         * doc/posix-functions/fstatat.texi: Likewise.
10253         * doc/posix-functions/ftello.texi: Likewise.
10254         * doc/posix-functions/glob.texi: Likewise.
10255         * doc/posix-functions/lseek.texi: Likewise.
10256         * doc/posix-functions/lstat.texi: Likewise.
10257         * doc/posix-functions/mkstemp.texi: Likewise.
10258         * doc/posix-functions/open.texi: Likewise.
10259         * doc/posix-functions/openat.texi: Likewise.
10260         * doc/posix-functions/pread.texi: Likewise.
10261         * doc/posix-functions/pwrite.texi: Likewise.
10262         * doc/posix-functions/scandir.texi: Likewise.
10263         * doc/posix-functions/stat.texi: Likewise.
10264         * doc/posix-functions/tmpfile.texi: Likewise.
10265         * doc/glibc-functions/mkostemp.texi: Likewise.
10266         * doc/glibc-functions/mkostemps.texi: Likewise.
10267         * doc/glibc-functions/mkstemps.texi: Likewise.
10268
10269 2011-07-25  Bruno Haible  <bruno@clisp.org>
10270
10271         fcntl: Move AC_LIBOBJ invocation to module description.
10272         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10273         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10274
10275         fcntl: Remove call-in from fchdir.m4.
10276         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10277         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10278
10279         dup3: Remove potential call-in from fchdir.m4.
10280         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10281         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10282
10283         dup2: Move AC_LIBOBJ invocation to module description.
10284         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10285         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10286         Don't invoke AC_LIBOBJ.
10287         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10288
10289         dup2: Remove call-in from fchdir.m4.
10290         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10291         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10292
10293         fclose: Move AC_LIBOBJ invocation to module description.
10294         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10295         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10296         to 1.
10297         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10298
10299         fclose: Remove call-in from close.m4.
10300         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10301         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10302
10303         close: Move AC_LIBOBJ invocation to module description.
10304         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10305         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10306         1.
10307         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10308
10309         close: Remove call-in from fchdir.m4.
10310         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10311         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10312
10313         open: Move AC_LIBOBJ invocation to module description.
10314         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10315         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10316         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10317
10318         open: Remove call-in from fchdir.m4.
10319         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10320         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10321
10322         fchdir: Start to remove gl_REPLACE_* idiom.
10323         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10324         (gl_FUNC_FCHDIR): Invoke it.
10325
10326 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10327
10328         * lib/ftell.c (ftell): Comment out cast.
10329
10330         close: use gl_REPLACE_FCLOSE only if defined
10331         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10332         is defined.  The close module doesn't depend on the fclose module
10333         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10335         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10336
10337 2011-07-24  Jim Meyering  <meyering@redhat.com>
10338
10339         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10340         * tests/test-select.h (test_function): Declare as "static".
10341
10342 2011-07-24  Bruno Haible  <bruno@clisp.org>
10343
10344         doc: Mention the effects of AC_SYS_LARGEFILE.
10345         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10346         on this function.
10347         * doc/posix-functions/aio_error.texi: Likewise.
10348         * doc/posix-functions/aio_fsync.texi: Likewise.
10349         * doc/posix-functions/aio_read.texi: Likewise.
10350         * doc/posix-functions/aio_return.texi: Likewise.
10351         * doc/posix-functions/aio_suspend.texi: Likewise.
10352         * doc/posix-functions/aio_write.texi: Likewise.
10353         * doc/posix-functions/fgetpos.texi: Likewise.
10354         * doc/posix-functions/fopen.texi: Likewise.
10355         * doc/posix-functions/freopen.texi: Likewise.
10356         * doc/posix-functions/fsetpos.texi: Likewise.
10357         * doc/posix-functions/fstatvfs.texi: Likewise.
10358         * doc/posix-functions/ftruncate.texi: Likewise.
10359         * doc/posix-functions/ftw.texi: Likewise.
10360         * doc/posix-functions/getrlimit.texi: Likewise.
10361         * doc/posix-functions/glob.texi: Likewise.
10362         * doc/posix-functions/lio_listio.texi: Likewise.
10363         * doc/posix-functions/lockf.texi: Likewise.
10364         * doc/posix-functions/mkstemp.texi: Likewise.
10365         * doc/posix-functions/mmap.texi: Likewise.
10366         * doc/posix-functions/nftw.texi: Likewise.
10367         * doc/posix-functions/openat.texi: Likewise.
10368         * doc/posix-functions/opendir.texi: Likewise.
10369         * doc/posix-functions/posix_fadvise.texi: Likewise.
10370         * doc/posix-functions/posix_fallocate.texi: Likewise.
10371         * doc/posix-functions/pread.texi: Likewise.
10372         * doc/posix-functions/pwrite.texi: Likewise.
10373         * doc/posix-functions/readdir.texi: Likewise.
10374         * doc/posix-functions/readdir_r.texi: Likewise.
10375         * doc/posix-functions/rewinddir.texi: Likewise.
10376         * doc/posix-functions/scandir.texi: Likewise.
10377         * doc/posix-functions/seekdir.texi: Likewise.
10378         * doc/posix-functions/setrlimit.texi: Likewise.
10379         * doc/posix-functions/statvfs.texi: Likewise.
10380         * doc/posix-functions/telldir.texi: Likewise.
10381         * doc/posix-functions/tmpfile.texi: Likewise.
10382         * doc/posix-functions/truncate.texi: Likewise.
10383         * doc/glibc-functions/fallocate.texi: Likewise.
10384         * doc/glibc-functions/fstatfs.texi: Likewise.
10385         * doc/glibc-functions/fts_children.texi: Likewise.
10386         * doc/glibc-functions/fts_read.texi: Likewise.
10387         * doc/glibc-functions/getdirentries.texi: Likewise.
10388         * doc/glibc-functions/mkostemp.texi: Likewise.
10389         * doc/glibc-functions/mkostemps.texi: Likewise.
10390         * doc/glibc-functions/mkstemps.texi: Likewise.
10391         * doc/glibc-functions/preadv.texi: Likewise.
10392         * doc/glibc-functions/pwritev.texi: Likewise.
10393         * doc/glibc-functions/sendfile.texi: Likewise.
10394         * doc/glibc-functions/statfs.texi: Likewise.
10395
10396 2011-07-24  Bruno Haible  <bruno@clisp.org>
10397
10398         doc: Fix typo.
10399         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10400
10401 2011-07-24  Bruno Haible  <bruno@clisp.org>
10402
10403         doc: Mention fsusage.
10404         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10405
10406 2011-07-24  Bruno Haible  <bruno@clisp.org>
10407
10408         doc: Mention new glibc headers and functions.
10409         * doc/glibc-headers/gshadow.texi: New file.
10410         * doc/glibc-functions/endsgent.texi: New file.
10411         * doc/glibc-functions/fgetsgent.texi: New file.
10412         * doc/glibc-functions/fgetsgent_r.texi: New file.
10413         * doc/glibc-functions/getsgent.texi: New file.
10414         * doc/glibc-functions/getsgent_r.texi: New file.
10415         * doc/glibc-functions/getsgnam.texi: New file.
10416         * doc/glibc-functions/getsgnam_r.texi: New file.
10417         * doc/glibc-functions/putsgent.texi: New file.
10418         * doc/glibc-functions/setsgent.texi: New file.
10419         * doc/glibc-functions/sgetsgent.texi: New file.
10420         * doc/glibc-functions/sgetsgent_r.texi: New file.
10421         * doc/glibc-functions/malloc_info.texi: New file.
10422         * doc/glibc-functions/preadv.texi: New file.
10423         * doc/glibc-functions/pwritev.texi: New file.
10424         * doc/glibc-functions/register_printf_modifier.texi: New file.
10425         * doc/glibc-functions/register_printf_specifier.texi: New file.
10426         * doc/glibc-functions/register_printf_type.texi: New file.
10427         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10428         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10429         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10430         * doc/glibc-functions/pthread_getname_np.texi: New file.
10431         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10432         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10433         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10434         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10435         * doc/glibc-functions/pthread_setname_np.texi: New file.
10436         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10437         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10438         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10439         * doc/glibc-functions/qsort_r.texi: New file.
10440         * doc/glibc-functions/quick_exit.texi: New file.
10441         * doc/glibc-functions/syncfs.texi: New file.
10442         * doc/gnulib.texi: Include them.
10443         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10444         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10445         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10446         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10447         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10448         * doc/glibc-functions/execvpe.texi: Likewise.
10449
10450 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10451
10452         ftell: don't include <unistd.h>
10453         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10454         guaranteed to define off_t, and the ftell module depends on the
10455         stdio module.
10456
10457         ftell: do not assume wraparound signed arithmetic
10458         * lib/ftell.c: Include <limits.h>.
10459         (ftell): Don't assume wraparound signed arithmetic.
10460
10461 2011-07-24  Bruno Haible  <bruno@clisp.org>
10462
10463         close: No longer depend on module 'fclose'.
10464         * modules/close (Depends-on): Remove fclose.
10465         * NEWS: Mention the change.
10466         Suggested by Sam Steingold <sds@gnu.org>.
10467
10468 2011-07-24  Bruno Haible  <bruno@clisp.org>
10469
10470         fsusage: Enable large volume support on AIX >= 5.2.
10471         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10472         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10473         instead of STAT_STATVFS.
10474         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10475
10476         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10477         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10478         f_blocks field only on MacOS X.
10479
10480         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10481         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10482         * modules/fsusage (Depends-on): Add largefile.
10483
10484 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10485
10486         * README: Modernize discussion of signed integers.
10487         Assuming overflow wraparound is no longer safe.
10488         Mention ones' complement and signed magnitude.
10489
10490 2011-07-22  Bruno Haible  <bruno@clisp.org>
10491
10492         select tests, pselect tests: Refactor.
10493         * tests/test-select.h: New file, extracted from tests/test-select.c.
10494         (select_fn): New type.
10495         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10496         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10497         test_pipe): Add my_select argument.
10498         (test_function): Renamed from main. Add my_select argument.
10499         * tests/test-select.c: Move most code to tests/test-select.h. Include
10500         test-select.h.
10501         * modules/select-tests (Files): Add tests/test-select.h.
10502         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10503         (my_select, main): New functions.
10504         * modules/pselect-tests (Files): Add tests/test-select.h,
10505         tests/macros.h, tests/signature.h.
10506         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10507         (configure.ac): Check for <sys/wait.h>.
10508
10509 2011-07-22  Bruno Haible  <bruno@clisp.org>
10510
10511         sys_select tests: Check the signature of FD_*.
10512         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10513         signature tests from here...
10514         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10515         here.
10516         * modules/sys_select-tests (Files): Add tests/signature.h.
10517
10518 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10519
10520         largefile: new module, replacing large-inode
10521         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10522         * MODULES.html.sh: Add largefile, remove large-inode.
10523         * modules/largefile, m4/largefile.m4: New files.
10524         * modules/large-inode, m4/large-inode.m4: Remove.
10525
10526         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10527         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10528         implementations that use only 32 bits to count blocks.
10529         On typical hosts with 1024-byte blocks, this fails with file
10530         systems as small as 4 TiB.  Problem reported by Herb Wartens
10531         <http://debbugs.gnu.org/9140> and this should also fix a similar
10532         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10533
10534         large-inode: New module
10535         * MODULES.html.sh: Add it.
10536         * modules/large-inode, m4/large-inode.m4: New files.
10537
10538         extensions: Enable extensions on MacOS X 10.5 and later.
10539         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10540
10541 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10542
10543         file-has-acl: use acl_extended_file_nofollow if available
10544         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10545         (acl_extended_file): New macro.
10546         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10547         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10548
10549 2011-07-21  Bruno Haible  <bruno@clisp.org>
10550
10551         Declare system functions in a way that works with C++.
10552         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10553         declare fdopendir as extern "C".
10554         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10555         declare frexpl as extern "C".
10556         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10557         declare gai_strerror as extern "C".
10558         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10559         programs, declare gai_strerror as extern "C".
10560         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10561         declare getlogin_r as extern "C".
10562         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10563         as extern "C".
10564         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10565         declare ldexpl as extern "C".
10566         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10567         as extern "C".
10568         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10569         program, declare getmntinfo as extern "C".
10570         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10571         stpncpy as extern "C".
10572         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10573         program, declare __xpg_strerror_r as extern "C".
10574         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10575         strndup as extern "C".
10576         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10577         declare memset and bzero as extern "C".
10578         Reported by Sam Steingold <sds@gnu.org>.
10579
10580 2011-07-12  Jim Meyering  <meyering@redhat.com>
10581
10582         maint.mk: prohibit inclusion of "verify.h" without use
10583         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10584
10585 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10586
10587         timer-time: A new module to check for timer_settime()
10588         * m4/timer_time.m4: Check for the posix function.
10589         * modules/timer-time: Add the new module.
10590         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10591         Mention it.
10592
10593 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10594             Bruno Haible  <bruno@clisp.org>
10595
10596         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10597         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10598         not defined, assume POSIX threads and look for pthread_sigmask in
10599         $LIBS, without changing $CPPFLAGS.
10600
10601 2011-07-19  Bruno Haible  <bruno@clisp.org>
10602
10603         strstr: Update cross-compilation guess.
10604         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10605         CPUs, guess no, in view of glibc
10606         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10607         Suggested by Eric Blake. Reported by Reuben Thomas.
10608
10609 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10610
10611         getopt-gnu: suppress core dumps from detection code
10612         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10613         to suppress core dumps that may well occur on glibc systems.
10614         * modules/getopt-gnu: Depend on nocrash.
10615
10616 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10617
10618         pthread_sigmask: ensure usleep is declared
10619         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10620         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10621
10622 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10623
10624         doc: Document NonStop portability issues.
10625         * doc/posix-functions/sigaction.texi (sigaction):
10626         * doc/posix-headers/signal.texi (signal.h):
10627         Document NonStop.  See Joachim Schmitz in
10628         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10629
10630 2011-07-15  Bruno Haible  <bruno@clisp.org>
10631
10632         ffsl, ffsll: Avoid unportable behaviour.
10633         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10634
10635 2011-07-15  Bruno Haible  <bruno@clisp.org>
10636
10637         ffs: More tests.
10638         * tests/test-ffs.c (NBITS): New macro.
10639         (main): Add more tests.
10640         * tests/test-ffsl.c (NBITS): New macro.
10641         (main): Add more tests.
10642         * tests/test-ffsll.c (NBITS): New macro.
10643         (main): Add more tests.
10644
10645 2011-07-15  Eric Blake  <eblake@redhat.com>
10646
10647         ffsl, ffsll: new modules
10648         * modules/ffsl: New file.
10649         * modules/ffsll: Likewise.
10650         * m4/ffsl.m4: Likewise.
10651         * m4/ffsll.m4: Likewise.
10652         * lib/ffsl.c: Likewise.
10653         * lib/ffsl.h: Likewise.
10654         * lib/ffsll.c: Likewise.
10655         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10656         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10657         * modules/string (Makefile.am): Substitute witnesses.
10658         * lib/strings.in.h (ffsl, ffsll): Declare.
10659         * modules/ffsl-tests: New test file.
10660         * modules/ffsll-tests: Likewise.
10661         * tests/test-ffsl.c: Likewise.
10662         * tests/test-ffsll.c: Likewise.
10663         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10664         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10665         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10666
10667         ffs: fix m4 prerequisite
10668         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10669
10670         ffs: avoid undefined behavior
10671         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10672         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10673         Reported by Bruno Haible.
10674
10675 2011-07-12  Bruno Haible  <bruno@clisp.org>
10676
10677         pthread_sigmask: Rely on module 'threadlib'.
10678         * modules/pthread_sigmask (Depends-on): Add threadlib.
10679         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10680         is defined.
10681
10682 2011-07-12  Bruno Haible  <bruno@clisp.org>
10683
10684         regex: Depend on module 'strcase'.
10685         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10686
10687 2011-07-12  Jim Meyering  <meyering@redhat.com>
10688
10689         warn-on-use: fix typo in file name
10690         * modules/snippet/warn-on-use (Files): Correct file name:
10691         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10692
10693 2011-07-12  Bruno Haible  <bruno@clisp.org>
10694
10695         strings: Document module.
10696         * doc/posix-headers/strings.texi: Mention module 'strings'.
10697
10698 2011-07-12  Bruno Haible  <bruno@clisp.org>
10699
10700         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10701         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10702         (Files, Makefile.am): Update.
10703         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10704         * modules/stdlib (Depends-on): Update.
10705
10706 2011-07-12  Bruno Haible  <bruno@clisp.org>
10707
10708         * NEWS: Mention the changes.
10709
10710         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10711         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10712         (Files, Makefile.am): Update.
10713         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10714         * modules/arpa_inet (Depends-on): Update.
10715         * modules/ctype (Depends-on): Update.
10716         * modules/dirent (Depends-on): Update.
10717         * modules/fcntl-h (Depends-on): Update.
10718         * modules/glob (Depends-on): Update.
10719         * modules/iconv-h (Depends-on): Update.
10720         * modules/inttypes-incomplete (Depends-on): Update.
10721         * modules/langinfo (Depends-on): Update.
10722         * modules/locale (Depends-on): Update.
10723         * modules/math (Depends-on): Update.
10724         * modules/netdb (Depends-on): Update.
10725         * modules/poll-h (Depends-on): Update.
10726         * modules/pty (Depends-on): Update.
10727         * modules/search (Depends-on): Update.
10728         * modules/signal (Depends-on): Update.
10729         * modules/spawn (Depends-on): Update.
10730         * modules/stdio (Depends-on): Update.
10731         * modules/stdlib (Depends-on): Update.
10732         * modules/string (Depends-on): Update.
10733         * modules/strings (Depends-on): Update.
10734         * modules/sys_file (Depends-on): Update.
10735         * modules/sys_ioctl (Depends-on): Update.
10736         * modules/sys_select (Depends-on): Update.
10737         * modules/sys_socket (Depends-on): Update.
10738         * modules/sys_stat (Depends-on): Update.
10739         * modules/sys_time (Depends-on): Update.
10740         * modules/sys_times (Depends-on): Update.
10741         * modules/sys_utsname (Depends-on): Update.
10742         * modules/sys_wait (Depends-on): Update.
10743         * modules/termios (Depends-on): Update.
10744         * modules/time (Depends-on): Update.
10745         * modules/unistd (Depends-on): Update.
10746         * modules/wchar (Depends-on): Update.
10747         * modules/wctype-h (Depends-on): Update.
10748         * MODULES.html.sh (Support for building libraries and executables):
10749         Update.
10750
10751         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10752         * modules/snippet/unused-parameter: Renamed from
10753         modules/unused-parameter.
10754         (Files, Makefile.am): Update.
10755         * build-aux/snippet/unused-parameter.h: Renamed from
10756         build-aux/unused-parameter.h.
10757         * modules/selinux-h (Depends-on): Update.
10758         * modules/unistr/base (Depends-on): Update.
10759         * MODULES.html.sh (Core language properties): Update.
10760
10761         Rename module 'link-warning' to 'snippet/link-warning'.
10762         * modules/snippet/link-warning: Renamed from modules/link-warning.
10763         (Files, Makefile.am): Update.
10764         * build-aux/snippet/link-warning.h: Renamed from
10765         build-aux/link-warning.h.
10766         * MODULES.html.sh (Support for building libraries and executables):
10767         Update.
10768
10769         Rename module 'c++defs' to 'snippet/c++defs'.
10770         * modules/snippet/c++defs: Renamed from modules/c++defs.
10771         (Files, Makefile.am): Update.
10772         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10773         * modules/arpa_inet (Depends-on): Update.
10774         * modules/ctype (Depends-on): Update.
10775         * modules/dirent (Depends-on): Update.
10776         * modules/fcntl-h (Depends-on): Update.
10777         * modules/glob (Depends-on): Update.
10778         * modules/iconv-h (Depends-on): Update.
10779         * modules/langinfo (Depends-on): Update.
10780         * modules/locale (Depends-on): Update.
10781         * modules/math (Depends-on): Update.
10782         * modules/netdb (Depends-on): Update.
10783         * modules/poll-h (Depends-on): Update.
10784         * modules/pty (Depends-on): Update.
10785         * modules/search (Depends-on): Update.
10786         * modules/signal (Depends-on): Update.
10787         * modules/spawn (Depends-on): Update.
10788         * modules/stdio (Depends-on): Update.
10789         * modules/stdlib (Depends-on): Update.
10790         * modules/string (Depends-on): Update.
10791         * modules/strings (Depends-on): Update.
10792         * modules/sys_ioctl (Depends-on): Update.
10793         * modules/sys_select (Depends-on): Update.
10794         * modules/sys_socket (Depends-on): Update.
10795         * modules/sys_stat (Depends-on): Update.
10796         * modules/sys_time (Depends-on): Update.
10797         * modules/sys_wait (Depends-on): Update.
10798         * modules/termios (Depends-on): Update.
10799         * modules/time (Depends-on): Update.
10800         * modules/unistd (Depends-on): Update.
10801         * modules/wchar (Depends-on): Update.
10802         * modules/wctype-h (Depends-on): Update.
10803
10804         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10805         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10806         (Files, Makefile.am): Update.
10807         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10808         * modules/argv-iter (Depends-on): Update.
10809         * modules/arpa_inet (Depends-on): Update.
10810         * modules/dirent (Depends-on): Update.
10811         * modules/fcntl-h (Depends-on): Update.
10812         * modules/fnmatch (Depends-on): Update.
10813         * modules/getopt-posix (Depends-on): Update.
10814         * modules/glob (Depends-on): Update.
10815         * modules/iconv-h (Depends-on): Update.
10816         * modules/inttypes-incomplete (Depends-on): Update.
10817         * modules/locale (Depends-on): Update.
10818         * modules/math (Depends-on): Update.
10819         * modules/netdb (Depends-on): Update.
10820         * modules/search (Depends-on): Update.
10821         * modules/signal (Depends-on): Update.
10822         * modules/spawn (Depends-on): Update.
10823         * modules/stdio (Depends-on): Update.
10824         * modules/stdlib (Depends-on): Update.
10825         * modules/string (Depends-on): Update.
10826         * modules/strings (Depends-on): Update.
10827         * modules/sys_socket (Depends-on): Update.
10828         * modules/sys_stat (Depends-on): Update.
10829         * modules/sys_time (Depends-on): Update.
10830         * modules/sys_times (Depends-on): Update.
10831         * modules/sys_utsname (Depends-on): Update.
10832         * modules/time (Depends-on): Update.
10833         * modules/unistd (Depends-on): Update.
10834         * modules/wchar (Depends-on): Update.
10835         * MODULES.html.sh (Support for building libraries and executables):
10836         Update.
10837
10838 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10839
10840         Improvements on _Noreturn and related modules.
10841
10842         modules/_Exit-tests: test _Noreturn too
10843         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10844         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10845         (main): Use them.
10846
10847         stdnoreturn, stdnoreturn-tests: remove modules
10848         They're not needed here and a bit premature for use elsewhere.  See
10849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10850         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10851         * tests/test-stdnoreturn.c: Remove files.
10852         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10853         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10854         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10855         and using noreturn.
10856         * modules/openat, modules/sigpipe-die, modules/xalloc:
10857         * modules/xmemdup0, modules/xstrtol:
10858         Remove dependency on stdnoreturn.
10859
10860         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10861         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10862         Reparenthesize to avoid GCC warning.
10863         Support Microsoft's syntax.
10864         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10865
10866         _Noreturn-tests: remove module
10867         * modules/_Noreturn-tests: Remove.
10868         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10869         * tests/test-_Noreturn.c: Remove.
10870         * tests/test-stdnoreturn.c: Merge from the old
10871         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10872
10873 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10874
10875         _Noreturn, stdnoreturn, and related modules.
10876
10877         * top/maint.mk: Adjust to new noreturn support.
10878         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10879         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10880
10881         xalloc: use stdnoreturn.h
10882         * lib/xalloc.h: Include <stdnoreturn.h>.
10883         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10884         * modules/xalloc (Depends-on): Add stdnoreturn.
10885
10886         xstrtol: use stdnoreturn.h
10887         * lib/xstrtol.h: Include <stdnoreturn.h>.
10888         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10889         * modules/xstrtol (Depends-on): Add stdnoreturn.
10890
10891         xmemdup0: use stdnoreturn.h
10892         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10893         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10894         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10895
10896         sigpipe-die: use stdnoreturn.h
10897         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10898         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10899         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10900
10901         openat: use stdnoreturn.h
10902         * lib/openat.h: Include <stdnoreturn.h>.
10903         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10904         * modules/openat (Depends-on): Add stdnoreturn.
10905
10906         * lib/openat-die.c (openat_save_fail): Modernize comment.
10907
10908         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10909
10910         * lib/glthread/thread.h: Modernize comment.
10911
10912         obstack: use _Noreturn
10913         * lib/obstack.c (__attribute__): Remove macro.
10914         (print_and_abort): Use _Noreturn.
10915
10916         c-stack: use _Noreturn
10917         * lib/c-stack.c (die, overflow_handler, segv_handler):
10918         Use _Noreturn rather than __attribute__((noreturn)).
10919
10920         argmatch-tests, exclude_tests: use _Noreturn
10921         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10922         Remove.
10923         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10924
10925         stdlib: use _Noreturn
10926         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10927         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
10928         * modules/stdlib (Depends-on): Add _Noreturn.
10929         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
10930
10931         stdnoreturn-tests: new module
10932         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
10933
10934         stdnoreturn: new module
10935         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
10936         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
10937
10938         _Noreturn-tests: new module
10939         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
10940
10941         _Noreturn: new module
10942         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
10943         New section, mentioning it.
10944         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
10945
10946         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
10947
10948 2011-07-11  Eric Blake  <eblake@redhat.com>
10949
10950         ffs: new module
10951         * modules/ffs: New file.
10952         * m4/ffs.m4: Likewise.
10953         * lib/ffs.c: Likewise.
10954         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
10955         * modules/strings (Makefile.am): Substitute witness.
10956         (Depends-on): Add c++defs.
10957         * lib/strings.in.h (ffs): Declare.
10958         * modules/ffs-tests: New test file.
10959         * tests/test-ffs.c: Test new module.
10960         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10961         * doc/posix-functions/ffs.texi (ffs): Likewise.
10962
10963         regex: avoid compiler warning
10964         * lib/regex.c (includes): Include <strings.h>, for use of
10965         strcasecmp in regcomp.c.
10966         Reported by Joachim Schmitz.
10967
10968 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10969
10970         stdint: respect system's intmax_t if INTMAX_MAX
10971         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
10972         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
10973         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
10974         long but int64_t is long long, and where we will clash with the
10975         system intmax_t if we override it.  See
10976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
10977         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
10978         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
10979         similarly for UINTMAX_C.
10980
10981 2011-07-08  Bruno Haible  <bruno@clisp.org>
10982
10983         pthread_sigmask tests: Avoid a compiler warning.
10984         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
10985         non-zero.
10986
10987         sigprocmask tests: A better way to avoid a compiler warning.
10988         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
10989         (main): Complain if system() returns non-zero.
10990         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
10991
10992 2011-07-08  Bruno Haible  <bruno@clisp.org>
10993
10994         pthread_sigmask: Work around IRIX bug.
10995         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
10996         bug.
10997         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
10998         there may be unblocked pending signals.
10999         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11000
11001 2011-07-08  Bruno Haible  <bruno@clisp.org>
11002
11003         pthread_sigmask: Work around Cygwin bug.
11004         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11005         bug.
11006         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11007         the system's pthread_sigmask function.
11008         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11009
11010 2011-07-08  Bruno Haible  <bruno@clisp.org>
11011
11012         pthread_sigmask: Work around bug in single-threaded implementation.
11013         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11014         FreeBSD, HP-UX, Solaris bug.
11015         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11016         * lib/pthread_sigmask.c: Include <stddef.h>.
11017         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11018         the system's pthread_sigmask function.
11019         * modules/pthread_sigmask (configure.ac): Invoke
11020         gl_PREREQ_PTHREAD_SIGMASK.
11021         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11022         HP-UX, Solaris.
11023
11024 2011-07-08  Eric Blake  <eblake@redhat.com>
11025
11026         test-sigprocmask: avoid compiler warning
11027         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11028         * tests/test-sigprocmask.c (main): Use it to silence warning.
11029         Reported by Jim Meyering.
11030
11031         test-snprintf: avoid compiler warning
11032         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11033         * tests/test-vsnprintf.c (main): Likewise.
11034         Reported by Jim Meyering.
11035
11036 2011-07-08  Bruno Haible  <bruno@clisp.org>
11037
11038         Tests for module 'pthread_sigmask'.
11039         * modules/pthread_sigmask-tests: New file.
11040         * tests/test-pthread_sigmask1.c: New file, based on
11041         tests/test-sigprocmask.c.
11042         * tests/test-pthread_sigmask2.c: New file.
11043
11044 2011-07-08  Jim Meyering  <meyering@redhat.com>
11045
11046         test-getopt.h: avoid warning about an unused variable
11047         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11048
11049 2011-07-07  Jim Meyering  <meyering@redhat.com>
11050
11051         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11052         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11053         now that it no longer contains leading TABs.
11054         Remove unused "url=FIXME" statement.
11055
11056 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11057
11058         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11059         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11060         When gl_THREADLIB is not in use, assume that the POSIX sematics
11061         are desired.  This is better for Emacs, which uses POSIX semantics
11062         on GNUish and/or POSIXish platforms, and does not use threads at
11063         all otherwise.
11064
11065         pthread_sigmask: fix typo when testing for libraries
11066         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11067         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11068
11069 2011-07-08  Eric Blake  <eblake@redhat.com>
11070
11071         fts: introduce FTS_NOATIME
11072         * lib/fts_.h (FTS_NOATIME): New bit flag.
11073         (FTS_OPTIONMASK): Adjust.
11074         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11075         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11076
11077 2011-07-08  Bruno Haible  <bruno@clisp.org>
11078
11079         Tests for module 'thread'.
11080         * modules/thread-tests: New file.
11081         * tests/test-thread_self.c: New file.
11082         * tests/test-thread_create.cc: New file.
11083
11084 2011-07-08  Bruno Haible  <bruno@clisp.org>
11085
11086         thread: Avoid gcc warnings when using gl_thread_self().
11087         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11088         'void *'.
11089         (gl_thread_self_pointer): Update.
11090
11091 2011-07-07  Bruno Haible  <bruno@clisp.org>
11092
11093         signal-c++-tests: Check declaration of pthread_sigmask.
11094         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11095         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11096         $(LIB_PTHREAD_SIGMASK).
11097
11098 2011-07-07  Bruno Haible  <bruno@clisp.org>
11099
11100         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11101         * lib/signal.in.h (pthread_sigmask): Override if
11102         REPLACE_PTHREAD_SIGMASK is 1.
11103         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11104         REPLACE_PTHREAD_SIGMASK.
11105         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11106         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11107         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11108         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11109         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11110
11111 2011-07-07  Bruno Haible  <bruno@clisp.org>
11112
11113         pthread_sigmask: Ensure declaration in <signal.h>.
11114         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11115         include <pthread.h>.
11116         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11117         problem.
11118
11119 2011-07-07  Bruno Haible  <bruno@clisp.org>
11120
11121         pthread_sigmask: Document the module.
11122         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11123
11124 2011-07-07  Bruno Haible  <bruno@clisp.org>
11125
11126         pthread_sigmask: Follow gnulib conventions.
11127         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11128         gl_PTHREAD_SIGMASK.
11129         * modules/pthread_sigmask (configure.ac): Update.
11130
11131 2011-07-07  Bruno Haible  <bruno@clisp.org>
11132
11133         pthread_sigmask: Make declaration C++ safe.
11134         * lib/signal.in.h: In two special conditions, just do an #include_next.
11135         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11136         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11137         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11138         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11139         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11140         not REPLACE_PTHREAD_MASK.
11141         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11142         not REPLACE_PTHREAD_MASK.
11143         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11144
11145 2011-07-07  Bruno Haible  <bruno@clisp.org>
11146
11147         pthread_sigmask: Fix return value.
11148         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11149         * lib/pthread_sigmask.c: New file.
11150         * modules/pthread_sigmask (Files): Add it.
11151         (configure.ac): Invoke AC_LIBOBJ.
11152
11153 2011-07-07  Eric Blake  <eblake@redhat.com>
11154
11155         getopt: more portable argv creation
11156         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11157         const, use char arrays rather than strings.
11158         Suggested by Paul Eggert.
11159
11160 2011-07-07  Bruno Haible  <bruno@clisp.org>
11161
11162         Tests for module 'sigprocmask'.
11163         * modules/sigprocmask-tests: New file.
11164         * tests/test-sigprocmask.c: New file.
11165
11166 2011-07-07  Bruno Haible  <bruno@clisp.org>
11167
11168         float tests: Tweak.
11169         * tests/test-float.c (main): Tweak skip message.
11170
11171 2011-07-07  Eric Blake  <eblake@redhat.com>
11172
11173         getopt: avoid compiler warning during configure
11174         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11175         assigning string literals to non-const pointer.
11176
11177         getopt-gnu: avoid crash in glibc getopt
11178         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11179         * tests/test-getopt.h (test_getopt): Enhance test.
11180         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11181         * doc/posix-functions/getopt.texi (getopt): Document it.
11182         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11183         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11184         Likewise.
11185
11186 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11187
11188         getopt: handle W; without long options in getopt [BZ #12922]
11189         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11190         but no long options are defined, just return 'W'.
11191
11192 2011-07-07  Bruno Haible  <bruno@clisp.org>
11193
11194         Avoid literal tabs.
11195         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11196         variable containing a tab instead of a literal tab.
11197         Reported by Jim Meyering.
11198
11199 2011-07-07  Bruno Haible  <bruno@clisp.org>
11200
11201         Comments.
11202         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11203
11204 2011-07-06  Bruno Haible  <bruno@clisp.org>
11205
11206         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11207         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11208         <winsock2.h>.
11209         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11210         lib/sys_socket.in.h.
11211         (close, gethostname): Hide declarations from <winsock2.h>.
11212         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11213         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11214         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11215         (select): Don't override if gnulib's <sys/select.h> was already
11216         included.
11217         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11218         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11219         setsockopt, shutdown, select): Tweak indentation.
11220
11221 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11222
11223         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11224         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11225         in an application that does not use the sys_select module.
11226
11227 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11228
11229         poll: do not return 0 on timeout=-1
11230         * lib/poll.c: Loop with yield if no events occured
11231
11232 2011-07-06  Eric Blake  <eblake@redhat.com>
11233
11234         pthread_sigmask: always replace when not using pthread
11235         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11236         replacement when using some threading other than pthread.  Fix
11237         logic bug.
11238
11239 2011-07-06  Bruno Haible  <bruno@clisp.org>
11240
11241         Comments.
11242         * m4/printf.m4: Update comments about mingw.
11243
11244 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11245
11246         sys_select: define sigset_t more portably
11247         * lib/sys_select.in.h: Always include <sys/types.h>, since
11248         we now need sigset_t and mingw defines it there.
11249         Include <signal.h> before split inclusion guard, to avoid
11250         mishaps on Solaris, whose <signal.h> eventually includes us.
11251         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11252         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11253         which come from ...
11254         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11255         gl_CHECK_TYPE_SIGSET_T.
11256         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11257         does the real work.
11258         * modules/sys_select (Depends-on): Add 'signal'.
11259
11260         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11261         Suggested by Bruno Haible.
11262
11263         pselect: Use pthread_sigmask, not sigprocmask.
11264         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11265         multithreaded apps better than sigprocmask does.
11266         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11267         sigprocmask directly.
11268
11269 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11270
11271         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11272         Don't #undef,  since we don't need any underlying pselect.
11273         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11274         (Depends-on): Add select.
11275         (Link): Add $(LIBSOCKET).
11276         These changes suggested by Bruno Haible.
11277
11278         pselect: document better
11279         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11280         * doc/posix-functions/pselect.texi (pselect): Document new module.
11281
11282         pthread_sigmask: new module
11283         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11284         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11285         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11286         This is done only as a macro; I don't know how well that'll
11287         work for C++.  Move <sys/types.h> include before the include_next,
11288         to avoid mishap on Solaris.
11289         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11290         * modules/signal (Makefile.am): Substitute the check's results.
11291         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11292
11293         test-pselect: new module
11294         * modules/pselect-tests, tests/test-pselect.c: New files.
11295         * tests/test-select.c, tests/test-sys_select-c++.cc:
11296         If TEST_PSELECT is defined, test pselect instead of testing select.
11297
11298         * tests/test-sys_select.c (sigset_t): Test for it, too.
11299         Suggested by Bruno Haible.
11300
11301 2011-07-05  Eric Blake  <eblake@redhat.com>
11302
11303         snprintf: guarantee %1$d, for libintl
11304         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11305         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11306         * doc/posix-functions/snprintf.texi (snprintf): Update.
11307         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11308         * tests/test-snprintf.c (main): Enhance test.
11309         * tests/test-vsnprintf.c (main): Likewise.
11310
11311 2011-07-05  Jim Meyering  <meyering@redhat.com>
11312
11313         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11314         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11315         per Bruno's request, to accommodate this idiom (no space after "#")
11316         even when the function is inside an #if block:
11317         char *
11318         gets (char *s)
11319         #undef gets
11320         {
11321           ...
11322         }
11323
11324 2011-07-04  Jim Meyering  <meyering@redhat.com>
11325
11326         maint: indent with spaces, not TABs, and add a rule to check this
11327         * tests/test-userspec.c: Indent with spaces, not TABs.
11328         * tests/test-argp.c: Likewise.
11329         * tests/test-c-stack2.sh: Likewise.
11330         * tests/test-parse-duration.sh: Likewise
11331         * m4/strtod.m4: Likewise.
11332         * m4/alloca.m4: Likewise.
11333         * m4/pselect.m4: Likewise.
11334         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11335
11336 2011-07-03  Jim Meyering  <meyering@redhat.com>
11337
11338         maint.mk: correct omissions in prohibit_argmatch_without_use check
11339         This rule would mistakenly report that argmatch.h is included without
11340         use even when both the argmatch and invalid_arg macro were used.
11341         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11342         of argmatch and invalid_arg.
11343
11344 2011-07-03  Bruno Haible  <bruno@clisp.org>
11345
11346         Comments about EINTR.
11347         * lib/safe-read.h: Explain the purpose of this module.
11348         * lib/safe-write.h: Likewise.
11349         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11350         module.
11351         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11352         module.
11353         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11354
11355 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11356
11357         xnanosleep: Rewrite to use new dtotimespec module.
11358         It has the conversion code that used to be in xnanosleep.
11359         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11360         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11361         (TIME_T_MAX): Remove.
11362         (xnanosleep): Rewrite in terms of dtotimespec.
11363         * modules/xnanosleep (Depends-on): Add dtotimespec.
11364         Remove intprops, stdbool.
11365
11366         timespec-add, timespec-sub: new modules
11367         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11368         * lib/timespec-add.c, lib/timespec-sub.c:
11369         * modules/timespec-add, modules/timespec-sub: New files.
11370
11371         dtotimespec: new module
11372         * lib/timespec.h (dtotimespec): New decl.
11373         * lib/dtotimespec.c, modules/dtotimespec: New files.
11374
11375         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11376
11377         pselect: new module
11378         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11379         (pselect): New decls.
11380         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11381         since the standard pselect decl uses 'restrict'.
11382         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11383         HAVE_PSELECT, REPLACE_PSELECT.
11384         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11385         HAVE_PSELECT, REPLACE_PSELECT.
11386         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11387
11388         sys_select: don't depend on sys_socket
11389         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11391         This fix works on GNU and GNU-like platforms, but has not been tested
11392         on native Windows.
11393         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11394         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11395         gl_HEADER_SYS_SOCKET.
11396         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11397         gl_PREREQ_SYS_H_WINSOCK2.
11398
11399 2011-06-29  Eric Blake  <eblake@redhat.com>
11400
11401         pipe2: fix C89 compile problem
11402         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11403         Reported by Bruno Haible.
11404
11405         pipe, pipe2: don't corrupt fd on error
11406         * lib/pipe.c (pipe): Leave fd unchanged on error.
11407         * lib/pipe2.c (pipe2): Likewise.
11408         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11409         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11410
11411 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11412
11413         mmap-anon: do not use regular expressions inadvertently
11414         * m4/mmap-anon.m4: Remove trailing period from strings sought
11415         in the output.
11416
11417 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11418
11419         nanosleep: fix integer overflow problem
11420         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11421         arithmetic wraps around on overflow.
11422
11423         nanosleep: simplify carrying
11424         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11425         first call to the underyling nanosleep, not for the last one.
11426         This doesn't fix any bugs, but it simplifies the computation of
11427         the remaining delay.  Found while auditing integer overflow issues.
11428
11429         dup2: remove test for existence of fcntl
11430         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11431         "#if HAVE_FCNTL", in the configure-time test program.
11432         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11433         and therefore speeds up "configure" a bit.  Found while
11434         adding the dup2 module to Emacs.
11435
11436 2011-06-24  Eric Blake  <eblake@redhat.com>
11437
11438         maint.mk: enhance useless header checks
11439         * top/maint.mk (_sc_header_without_use): Check both include
11440         styles.
11441         (sc_prohibit_assert_without_use)
11442         (sc_prohibit_close_stream_without_use)
11443         (sc_prohibit_getopt_without_use)
11444         (sc_prohibit_quotearg_without_use)
11445         (sc_prohibit_quote_without_use)
11446         (sc_prohibit_long_options_without_use)
11447         (sc_prohibit_inttostr_without_use)
11448         (sc_prohibit_ignore_value_without_use)
11449         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11450         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11451         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11452         (sc_prohibit_hash_pjw_without_use)
11453         (sc_prohibit_safe_read_without_use)
11454         (sc_prohibit_argmatch_without_use)
11455         (sc_prohibit_canonicalize_without_use)
11456         (sc_prohibit_root_dev_ino_without_use)
11457         (sc_prohibit_openat_without_use)
11458         (sc_prohibit_c_ctype_without_use)
11459         (sc_prohibit_signal_without_use)
11460         (sc_prohibit_stdio--_without_use)
11461         (sc_prohibit_stdio-safer_without_use)
11462         (sc_prohibit_strings_without_use)
11463         (sc_prohibit_intprops_without_use)
11464         (sc_prohibit_stddef_without_use)
11465         (sc_prohibit_xfreopen_without_use): Update clients.
11466
11467 2011-06-24  Jim Meyering  <meyering@redhat.com>
11468
11469         syntax-check: keep one maint.mk rule in sync with its header
11470         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11471         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11472         I prefer to avoid temporary files here, so use <(...), but that
11473         is not supported by /bin/sh, so...
11474         (SHELL): Define to /bin/bash.
11475
11476 2011-06-24  Eric Blake  <eblake@redhat.com>
11477
11478         maint.mk: update sc_prohibit_intprops_without_use
11479         * top/maint.mk (_intprops_names): Match recent changes.
11480
11481 2011-06-24  Bruno Haible  <bruno@clisp.org>
11482
11483         strerror-override: No-op tweak.
11484         * lib/strerror-override.h (strerror_override): Reorder conditions,
11485         for consistency with lib/strerror-override.c.
11486
11487 2011-06-23  Eric Blake  <eblake@redhat.com>
11488
11489         maint.mk: test further PATH_MAX issues
11490         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11491         (sc_prohibit_path_max_allocation): ...and also test alloca.
11492         Suggested by Jim Meyering.
11493
11494 2011-06-22  Eric Blake  <eblake@redhat.com>
11495
11496         maint.mk: add syntax-check to avoid char[PATH_MAX]
11497         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11498
11499         stat: be robust to PATH_MAX definition
11500         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11501         * modules/stat (Depends-on): Add verify.
11502
11503         link: work around IRIX bug
11504         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11505         * lib/link.c (rpl_link): Work around it.
11506         * tests/test-link.h (test_link): Enhance test.
11507         * doc/posix-functions/link.texi (link): Document the bug.
11508
11509         getopt: silence clang warning
11510         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11511         dereference.
11512         Reported by Gustavo Martin Domato.
11513
11514 2011-06-22  Jim Meyering  <meyering@redhat.com>
11515
11516         bootstrap: do not insert a blank line into each .gitignore file
11517         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11518
11519 2011-06-21  Eric Blake  <eblake@redhat.com>
11520
11521         perror: test for output mismatch
11522         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11523         perror on IRIX.
11524
11525         strerror_r: fix OpenBSD behavior on out-of-range
11526         * lib/strerror_r.c (strerror_r): Always use maximal string.
11527         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11528
11529         strerror_r: fix OpenBSD behavior on 0
11530         * lib/strerror-override.c (strerror_override): Also override 0
11531         when needed.
11532         * lib/strerror-override.h (strerror_override): Likewise.
11533         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11534         earlier.
11535         * lib/strerror_r.c (strerror_r): Likewise.
11536         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11537         behavior...
11538         (gl_FUNC_STRERROR_0): ...into new macro.
11539         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11540         is overridden.
11541         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11542         * modules/strerror-override (Files): Add strerror.m4.
11543         (configure.ac): Also provide override for 0 when needed.
11544         * doc/posix-functions/strerror.texi (strerror): Document this.
11545         * doc/posix-functions/perror.texi (perror): Likewise.
11546
11547         perror: adjust array size
11548         * modules/perror (Depends-on): Add strerror-override.
11549         * lib/perror.c (perror): Use it to avoid magic number.
11550
11551         strerror-override: reduce size
11552         * lib/strerror-override.c (strerror_override): Use fewer lines.
11553
11554 2011-06-20  Bruno Haible  <bruno@clisp.org>
11555
11556         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11557         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11558
11559 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11560
11561         alloca: port to compilers that can optimize like GCC 4.6.0
11562         * lib/alloca.c (find_stack_direction): New signature, taken from
11563         Autoconf git.  This works with GCC 4.6.0.  This code should never
11564         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11565         be used with other compilers that optimize as well as GCC 4.6.0 does.
11566         (alloca): Adjust to new signature.
11567         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11568         New macro, which patches Autoconf in a similar way.
11569
11570         c-stack: stop worrying about stack direction
11571         * lib/c-stack.c (find_stack_direction): Remove.
11572         (segv_handler): Don't worry about stack direction growth, as it's
11573         too much of a pain to configure this correctly, given how compilers
11574         are optimizing-away our stack-growth detection code.  Instead, assume
11575         that any access to just before or just after the stack is OK.
11576         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11577         Don't require AC_FUNC_ALLOCA; no longer needed.
11578
11579 2011-06-20  Eric Blake  <eblake@redhat.com>
11580
11581         test-stat: don't allocate PATH_MAX bytes
11582         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11583         PATH_MAX-sized buffer.
11584         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11585         * modules/stat-tests (Depends-on): Likewise.
11586         * tests/test-fstatat.c (includes): Drop pathmax.h.
11587         * tests/test-stat.c (includes): Likewise.
11588         Reported by Bruno Haible.
11589
11590 2011-06-20  Bruno Haible  <bruno@clisp.org>
11591
11592         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11593         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11594         * lib/float.c: New file.
11595         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11596         REPLACE_FLOAT_LDBL.
11597         * modules/float (Files): Add lib/float.c.
11598         (configure.ac): Invoke AC_LIBOBJ.
11599         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11600
11601 2011-06-20  Bruno Haible  <bruno@clisp.org>
11602
11603         Tests for module 'float'.
11604         * modules/float-tests: New file.
11605         * tests/test-float.c: New file.
11606
11607 2011-06-19  Bruno Haible  <bruno@clisp.org>
11608
11609         isinf: Coding style.
11610         * lib/isinf.c: Use GNU coding style.
11611
11612 2011-06-19  Bruno Haible  <bruno@clisp.org>
11613
11614         linkat test: Avoid test failure on AIX 7.1.
11615         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11616         * tests/test-link.h (test_link): Likewise.
11617
11618 2011-06-19  Bruno Haible  <bruno@clisp.org>
11619
11620         pread test: Avoid test failure on OpenBSD 4.9.
11621         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11622
11623 2011-06-19  Bruno Haible  <bruno@clisp.org>
11624
11625         sprintf-posix: Fix test failure on AIX 7.1.
11626         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11627         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11628         on AIX.
11629         * doc/posix-functions/fprintf.texi: Likewise.
11630         * doc/posix-functions/printf.texi: Likewise.
11631         * doc/posix-functions/snprintf.texi: Likewise.
11632         * doc/posix-functions/sprintf.texi: Likewise.
11633         * doc/posix-functions/vdprintf.texi: Likewise.
11634         * doc/posix-functions/vfprintf.texi: Likewise.
11635         * doc/posix-functions/vprintf.texi: Likewise.
11636         * doc/posix-functions/vsnprintf.texi: Likewise.
11637         * doc/posix-functions/vsprintf.texi: Likewise.
11638
11639 2011-06-19  Bruno Haible  <bruno@clisp.org>
11640
11641         roundl-ieee: Fix test failure on AIX 7.1.
11642         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11643         * doc/posix-functions/roundl.texi: Mention problem with negative
11644         arguments.
11645
11646 2011-06-19  Bruno Haible  <bruno@clisp.org>
11647
11648         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11649         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11650         * doc/posix-functions/round.texi: Mention problem with negative
11651         arguments.
11652         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11653
11654 2011-06-19  Bruno Haible  <bruno@clisp.org>
11655
11656         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11657         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11658         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11659         * doc/posix-functions/roundf.texi: Mention problem with negative
11660         arguments.
11661         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11662
11663 2011-06-19  Bruno Haible  <bruno@clisp.org>
11664
11665         ceilf-ieee: Work around bug on MacOS X 10.5.
11666         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11667
11668         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11669         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11670         IEEE compliant, avoid compiler optimizations.
11671         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11672         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11673         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11674         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11675         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11676         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11677         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11678         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11679         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11680         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11681
11682 2011-06-19  Bruno Haible  <bruno@clisp.org>
11683
11684         ceilf-ieee: Work around bug on AIX 7.1.
11685         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11686         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11687
11688 2011-06-19  Bruno Haible  <bruno@clisp.org>
11689
11690         ceil-ieee: Work around bug on AIX 7.1.
11691         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11692         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11693
11694 2011-06-18  Bruno Haible  <bruno@clisp.org>
11695
11696         fsync test: Avoid test failure on MacOS X and AIX.
11697         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11698         EINVAL.
11699
11700 2011-06-18  Bruno Haible  <bruno@clisp.org>
11701
11702         openat, fdopendir tests: Fix link errors.
11703         * modules/openat-tests (Depends-on): Add progname.
11704         * modules/fdopendir-tests (Depends-on): Likewise.
11705         * tests/test-fchownat.c: Include progname.h.
11706         (main): Call set_program_name.
11707         * tests/test-fstatat.c: Include progname.h.
11708         (main): Call set_program_name.
11709         * tests/test-mkdirat.c: Include progname.h.
11710         (main): Call set_program_name.
11711         * tests/test-openat.c: Include progname.h.
11712         (main): Call set_program_name.
11713         * tests/test-unlinkat.c: Include progname.h.
11714         (main): Call set_program_name.
11715         * tests/test-fdopendir.c: Include progname.h.
11716         (main): Call set_program_name.
11717
11718 2011-06-18  Bruno Haible  <bruno@clisp.org>
11719
11720         Doc update.
11721         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11722         HP-UX.
11723         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11724
11725 2011-06-18  Bruno Haible  <bruno@clisp.org>
11726
11727         getcwd tests: Avoid compilation error on HP-UX 11.31.
11728         * modules/getcwd-tests (Depends-on): Add pathmax.
11729         * tests/test-getcwd.c: Include pathmax.h.
11730
11731 2011-06-18  Bruno Haible  <bruno@clisp.org>
11732
11733         isfinite, isinf: Fix link error on AIX 6 and 7.
11734         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11735         needed, also test the macro with a 'float' argument.
11736         * m4/isinf.m4 (gl_ISINF): Likewise.
11737
11738 2011-06-18  Bruno Haible  <bruno@clisp.org>
11739
11740         getloadavg: Don't clobber LIBS. Regression from previous commit.
11741         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11742         AC_CHECK_LIB from here...
11743         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11744         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11745         gl_func_getloadavg_done.
11746         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11747
11748 2011-06-18  Bruno Haible  <bruno@clisp.org>
11749
11750         clean-temp: Improve documentation.
11751         * lib/clean-temp.h: Explain better how to use this module.
11752         Reported by John Darrington <john@darrington.wattle.id.au>.
11753
11754 2011-06-17  Bruno Haible  <bruno@clisp.org>
11755
11756         pread, pwrite: Avoid cc warning on AIX.
11757         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11758         (pwrite): Likewise.
11759
11760 2011-06-17  Bruno Haible  <bruno@clisp.org>
11761
11762         spawn-pipe tests: Fix link error.
11763         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11764         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11765
11766 2011-06-17  Bruno Haible  <bruno@clisp.org>
11767
11768         Tests: Remove unnecessary dependency.
11769         * modules/canonicalize-tests (Depends-on): Remove progname.
11770         * modules/chown-tests (Depends-on): Likewise.
11771         * modules/dirname-tests (Depends-on): Likewise.
11772         * modules/fdopendir-tests (Depends-on): Likewise.
11773         * modules/fdutimensat-tests (Depends-on): Likewise.
11774         * modules/hash-tests (Depends-on): Likewise.
11775         * modules/lchown-tests (Depends-on): Likewise.
11776         * modules/linkat-tests (Depends-on): Likewise.
11777         * modules/renameat-tests (Depends-on): Likewise.
11778         * modules/spawn-pipe-tests (Depends-on): Likewise.
11779         * modules/utimensat-tests (Depends-on): Likewise.
11780
11781 2011-06-17  Bruno Haible  <bruno@clisp.org>
11782
11783         spawn-pipe tests: Fix link error.
11784         * tests/test-spawn-pipe-child.c: Undefine fflush.
11785
11786 2011-06-17  Bruno Haible  <bruno@clisp.org>
11787
11788         Fix tests link errors.
11789         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11790         * modules/chown-tests (Makefile.am): Don't link test-chown with
11791         LIBINTL.
11792         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11793         LIBINTL.
11794         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11795         LIBINTL.
11796         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11797         LIBINTL.
11798
11799 2011-06-16  Bruno Haible  <bruno@clisp.org>
11800
11801         crypto/gc-sha1: Fix recent regression.
11802         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11803         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11804
11805         crypto/gc-md5: Fix recent regression.
11806         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11807
11808         crypto/gc-md4: Fix recent regression.
11809         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11810         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11811
11812         crypto/gc-arctwo: Fix recent regression.
11813         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11814         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11815
11816         crypto/gc-rijndael: Fix recent regression.
11817         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11818         (configure.ac): Invoke AC_LIBOBJ here.
11819         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11820         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11821
11822         crypto/gc-hmac-sha1: Fix recent regression.
11823         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11824         (configure.ac): Invoke AC_LIBOBJ here.
11825         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11826         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11827
11828         crypto/gc-hmac-md5: Fix recent regression.
11829         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11830         (configure.ac): Invoke AC_LIBOBJ here.
11831         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11832         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11833
11834         crypto/gc-des: Fix recent regression.
11835         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11836         (configure.ac): Invoke AC_LIBOBJ here.
11837         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11838         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11839
11840         crypto/gc-arcfour: Fix recent regression.
11841         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11842         (configure.ac): Invoke AC_LIBOBJ here.
11843         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11844         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11845
11846 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11847
11848         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11849         After the 2011-05-21 change, this macro requires
11850         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11851         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11852
11853 2011-06-16  Bruno Haible  <bruno@clisp.org>
11854
11855         fprintftime: Move AC_LIBOBJ invocations to module description.
11856         * m4/fprintftime.m4: Remove file.
11857         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11858         (configure.ac): Remove gl_FPRINTFTIME call.
11859         (Makefile.am): Augment lib_SOURCES.
11860         Reported by Jim Meyering.
11861
11862 2011-06-16  Bruno Haible  <bruno@clisp.org>
11863
11864         tmpfile-safer: Finish 2011-05-23 commit.
11865         * m4/stdio-safer.m4: Really remove file.
11866         Reported by Jim Meyering.
11867
11868 2011-06-16  Bruno Haible  <bruno@clisp.org>
11869
11870         syntax-check: Fix typo.
11871         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11872         printf-posix.m4.
11873         Reported by Jim Meyering.
11874
11875 2011-06-13  Jim Meyering  <meyering@redhat.com>
11876
11877         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11878         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11879
11880 2011-05-23  Bruno Haible  <bruno@clisp.org>
11881
11882         yesno: Move AC_LIBOBJ invocations to module description.
11883         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11884         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11885
11886 2011-05-23  Bruno Haible  <bruno@clisp.org>
11887
11888         xstrtol: Move AC_LIBOBJ invocations to module description.
11889         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11890         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11891
11892 2011-05-23  Bruno Haible  <bruno@clisp.org>
11893
11894         xstrtold: Move AC_LIBOBJ invocations to module description.
11895         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11896         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11897
11898 2011-05-23  Bruno Haible  <bruno@clisp.org>
11899
11900         xstrtod: Move AC_LIBOBJ invocations to module description.
11901         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11902         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11903
11904 2011-05-23  Bruno Haible  <bruno@clisp.org>
11905
11906         xnanosleep: Move AC_LIBOBJ invocations to module description.
11907         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11908         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11909
11910 2011-05-23  Bruno Haible  <bruno@clisp.org>
11911
11912         xgetcwd: Move AC_LIBOBJ invocations to module description.
11913         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11914         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11915
11916 2011-05-23  Bruno Haible  <bruno@clisp.org>
11917
11918         xalloc: Move AC_LIBOBJ invocations to module description.
11919         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11920         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11921
11922 2011-05-23  Bruno Haible  <bruno@clisp.org>
11923
11924         write-any-file: Move AC_LIBOBJ invocations to module description.
11925         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11926         invocation.
11927         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
11928
11929 2011-05-23  Bruno Haible  <bruno@clisp.org>
11930
11931         utimens: Move AC_LIBOBJ invocations to module description.
11932         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
11933         * modules/utimens (Makefile.am): Augment lib_SOURCES.
11934
11935 2011-05-23  Bruno Haible  <bruno@clisp.org>
11936
11937         utimecmp: Move AC_LIBOBJ invocations to module description.
11938         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
11939         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
11940
11941 2011-05-23  Bruno Haible  <bruno@clisp.org>
11942
11943         userspec: Move AC_LIBOBJ invocations to module description.
11944         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
11945         * modules/userspec (Makefile.am): Augment lib_SOURCES.
11946
11947 2011-05-23  Bruno Haible  <bruno@clisp.org>
11948
11949         unlinkdir: Move AC_LIBOBJ invocations to module description.
11950         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
11951         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
11952
11953 2011-05-23  Bruno Haible  <bruno@clisp.org>
11954
11955         unistd-safer: Move AC_LIBOBJ invocations to module description.
11956         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
11957         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
11958
11959 2011-05-23  Bruno Haible  <bruno@clisp.org>
11960
11961         tempname: Move AC_LIBOBJ invocations to module description.
11962         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
11963         * modules/tempname (Makefile.am): Augment lib_SOURCES.
11964
11965 2011-05-23  Bruno Haible  <bruno@clisp.org>
11966
11967         strftime: Move AC_LIBOBJ invocations to module description.
11968         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
11969         * modules/strftime (Makefile.am): Augment lib_SOURCES.
11970
11971 2011-05-23  Bruno Haible  <bruno@clisp.org>
11972
11973         stdlib-safer: Move AC_LIBOBJ invocations to module description.
11974         * m4/stdlib-safer.m4: Remove file.
11975         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
11976         (configure.ac): Remove gl_STDLIB_SAFER call.
11977         (Makefile.am): Augment lib_SOURCES.
11978
11979 2011-05-23  Bruno Haible  <bruno@clisp.org>
11980
11981         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
11982         * m4/stdio-safer.m4: Remove file.
11983         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
11984         (configure.ac): Remove gl_TMPFILE_SAFER call.
11985         (Makefile.am): Augment lib_SOURCES.
11986
11987 2011-05-23  Bruno Haible  <bruno@clisp.org>
11988
11989         popen-safer: Move AC_LIBOBJ invocations to module description.
11990         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
11991         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
11992         (configure.ac): Remove gl_POPEN_SAFER call.
11993         (Makefile.am): Augment lib_SOURCES.
11994
11995 2011-05-23  Bruno Haible  <bruno@clisp.org>
11996
11997         freopen-safer: Move AC_LIBOBJ invocations to module description.
11998         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
11999         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12000         (configure.ac): Remove gl_FREOPEN_SAFER call.
12001         (Makefile.am): Augment lib_SOURCES.
12002
12003 2011-05-23  Bruno Haible  <bruno@clisp.org>
12004
12005         fopen-safer: Move AC_LIBOBJ invocations to module description.
12006         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12007         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12008         (configure.ac): Remove gl_FOPEN_SAFER call.
12009         (Makefile.am): Augment lib_SOURCES.
12010
12011 2011-05-23  Bruno Haible  <bruno@clisp.org>
12012
12013         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12014         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12015         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12016
12017 2011-05-23  Bruno Haible  <bruno@clisp.org>
12018
12019         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12020         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12021         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12022
12023 2011-05-23  Bruno Haible  <bruno@clisp.org>
12024
12025         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12026         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12027         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12028
12029 2011-05-23  Bruno Haible  <bruno@clisp.org>
12030
12031         settime: Move AC_LIBOBJ invocations to module description.
12032         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12033         * modules/settime (Makefile.am): Augment lib_SOURCES.
12034
12035 2011-05-23  Bruno Haible  <bruno@clisp.org>
12036
12037         savedir: Move AC_LIBOBJ invocations to module description.
12038         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12039         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12040
12041 2011-05-23  Bruno Haible  <bruno@clisp.org>
12042
12043         save-cwd: Move AC_LIBOBJ invocations to module description.
12044         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12045         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12046
12047 2011-05-23  Bruno Haible  <bruno@clisp.org>
12048
12049         same: Move AC_LIBOBJ invocations to module description.
12050         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12051         * modules/same (Makefile.am): Augment lib_SOURCES.
12052
12053 2011-05-23  Bruno Haible  <bruno@clisp.org>
12054
12055         safe-write: Move AC_LIBOBJ invocations to module description.
12056         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12057         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12058         instead of gl_SAFE_WRITE.
12059         (Makefile.am): Augment lib_SOURCES.
12060
12061 2011-05-23  Bruno Haible  <bruno@clisp.org>
12062
12063         safe-read: Move AC_LIBOBJ invocations to module description.
12064         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12065         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12066         of gl_SAFE_READ.
12067         (Makefile.am): Augment lib_SOURCES.
12068
12069 2011-05-23  Bruno Haible  <bruno@clisp.org>
12070
12071         safe-alloc: Move AC_LIBOBJ invocations to module description.
12072         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12073         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12074
12075 2011-05-23  Bruno Haible  <bruno@clisp.org>
12076
12077         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12078         * m4/rijndael.m4: Remove file.
12079         * modules/crypto/rijndael (Files): Remove it.
12080         (configure.ac): Remove gl_RIJNDAEL call.
12081         (Makefile.am): Augment lib_SOURCES.
12082
12083 2011-05-23  Bruno Haible  <bruno@clisp.org>
12084
12085         readtokens: Move AC_LIBOBJ invocations to module description.
12086         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12087         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12088
12089 2011-05-23  Bruno Haible  <bruno@clisp.org>
12090
12091         read-file: Move AC_LIBOBJ invocations to module description.
12092         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12093         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12094         of gl_FUNC_READ_FILE.
12095         (Makefile.am): Augment lib_SOURCES.
12096
12097 2011-05-23  Bruno Haible  <bruno@clisp.org>
12098
12099         quotearg: Move AC_LIBOBJ invocations to module description.
12100         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12101         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12102
12103 2011-05-23  Bruno Haible  <bruno@clisp.org>
12104
12105         quote: Move AC_LIBOBJ invocations to module description.
12106         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12107         * modules/quote (Makefile.am): Augment lib_SOURCES.
12108
12109 2011-05-23  Bruno Haible  <bruno@clisp.org>
12110
12111         posixver: Move AC_LIBOBJ invocations to module description.
12112         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12113         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12114
12115 2011-05-23  Bruno Haible  <bruno@clisp.org>
12116
12117         posixtm: Move AC_LIBOBJ invocations to module description.
12118         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12119         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12120
12121 2011-05-23  Bruno Haible  <bruno@clisp.org>
12122
12123         physmem: Move AC_LIBOBJ invocations to module description.
12124         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12125         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12126
12127 2011-05-23  Bruno Haible  <bruno@clisp.org>
12128
12129         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12130         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12131         invocation.
12132         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12133
12134 2011-05-23  Bruno Haible  <bruno@clisp.org>
12135
12136         mpsort: Move AC_LIBOBJ invocations to module description.
12137         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12138         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12139
12140 2011-05-23  Bruno Haible  <bruno@clisp.org>
12141
12142         modechange: Move AC_LIBOBJ invocations to module description.
12143         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12144         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12145
12146 2011-05-23  Bruno Haible  <bruno@clisp.org>
12147
12148         mkdir-p: Move AC_LIBOBJ invocations to module description.
12149         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12150         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12151
12152 2011-05-23  Bruno Haible  <bruno@clisp.org>
12153
12154         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12155         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12156         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12157
12158 2011-05-23  Bruno Haible  <bruno@clisp.org>
12159
12160         mgetgroups: Move AC_LIBOBJ invocations to module description.
12161         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12162         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12163
12164 2011-05-23  Bruno Haible  <bruno@clisp.org>
12165
12166         memxor: Move AC_LIBOBJ invocations to module description.
12167         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12168         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12169
12170 2011-05-23  Bruno Haible  <bruno@clisp.org>
12171
12172         memcoll: Move AC_LIBOBJ invocations to module description.
12173         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12174         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12175
12176 2011-05-23  Bruno Haible  <bruno@clisp.org>
12177
12178         memcasecmp: Move AC_LIBOBJ invocations to module description.
12179         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12180         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12181
12182 2011-05-23  Bruno Haible  <bruno@clisp.org>
12183
12184         crypto/md5: Move AC_LIBOBJ invocations to module description.
12185         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12186         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12187
12188 2011-05-23  Bruno Haible  <bruno@clisp.org>
12189
12190         crypto/md4: Move AC_LIBOBJ invocations to module description.
12191         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12192         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12193
12194 2011-05-23  Bruno Haible  <bruno@clisp.org>
12195
12196         crypto/md2: Move AC_LIBOBJ invocations to module description.
12197         * m4/md2.m4: Remove file.
12198         * modules/crypto/md2 (Files): Remove it.
12199         (configure.ac): Remove gl_MD2 call.
12200         (Makefile.am): Augment lib_SOURCES.
12201
12202 2011-05-23  Bruno Haible  <bruno@clisp.org>
12203
12204         long-options: Move AC_LIBOBJ invocations to module description.
12205         * m4/long-options.m4: Remove file.
12206         * modules/long-options (Files): Remove it.
12207         (configure.ac): Remove gl_LONG_OPTIONS call.
12208         (Makefile.am): Augment lib_SOURCES.
12209
12210 2011-05-23  Bruno Haible  <bruno@clisp.org>
12211
12212         i-ring: Move AC_LIBOBJ invocations to module description.
12213         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12214         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12215
12216 2011-05-23  Bruno Haible  <bruno@clisp.org>
12217
12218         idcache: Move AC_LIBOBJ invocations to module description.
12219         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12220         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12221
12222 2011-05-23  Bruno Haible  <bruno@clisp.org>
12223
12224         human: Move AC_LIBOBJ invocations to module description.
12225         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12226         * modules/human (Makefile.am): Augment lib_SOURCES.
12227
12228 2011-05-23  Bruno Haible  <bruno@clisp.org>
12229
12230         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12231         * m4/hmac-sha1.m4: Remove file.
12232         * modules/crypto/hmac-sha1 (Files): Remove it.
12233         (configure.ac): Remove gl_HMAC_SHA1 call.
12234         (Makefile.am): Augment lib_SOURCES.
12235
12236 2011-05-23  Bruno Haible  <bruno@clisp.org>
12237
12238         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12239         * m4/hmac-md5.m4: Remove file.
12240         * modules/crypto/hmac-md5 (Files): Remove it.
12241         (configure.ac): Remove gl_HMAC_MD5 call.
12242         (Makefile.am): Augment lib_SOURCES.
12243
12244 2011-05-23  Bruno Haible  <bruno@clisp.org>
12245
12246         hash: Move AC_LIBOBJ invocations to module description.
12247         * m4/hash.m4: Remove file.
12248         * modules/hash (Files): Remove it.
12249         (configure.ac): Remove gl_HASH call.
12250         (Makefile.am): Augment lib_SOURCES.
12251
12252 2011-05-23  Bruno Haible  <bruno@clisp.org>
12253
12254         hard-locale: Move AC_LIBOBJ invocations to module description.
12255         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12256         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12257
12258 2011-05-23  Bruno Haible  <bruno@clisp.org>
12259
12260         getugroups: Move AC_LIBOBJ invocations to module description.
12261         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12262         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12263
12264 2011-05-23  Bruno Haible  <bruno@clisp.org>
12265
12266         gettime: Move AC_LIBOBJ invocations to module description.
12267         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12268         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12269
12270 2011-05-23  Bruno Haible  <bruno@clisp.org>
12271
12272         getndelim2: Move AC_LIBOBJ invocations to module description.
12273         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12274         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12275
12276 2011-05-23  Bruno Haible  <bruno@clisp.org>
12277
12278         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12279         * m4/gc-pbkdf2-sha1.m4: Remove file.
12280         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12281         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12282         (Makefile.am): Augment lib_SOURCES.
12283
12284 2011-05-23  Bruno Haible  <bruno@clisp.org>
12285
12286         fts: Move AC_LIBOBJ invocations to module description.
12287         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12288         * modules/fts (configure.ac): ... to here.
12289
12290 2011-05-23  Bruno Haible  <bruno@clisp.org>
12291
12292         file-type: Move AC_LIBOBJ invocations to module description.
12293         * m4/file-type.m4: Remove file.
12294         * modules/file-type (Files): Remove it.
12295         (configure.ac): Remove gl_FILE_TYPE call.
12296         (Makefile.am): Augment lib_SOURCES.
12297
12298 2011-05-23  Bruno Haible  <bruno@clisp.org>
12299
12300         filenamecat*: Respect rules for use of AC_LIBOBJ.
12301         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12302         Remove AC_LIBOBJ invocation.
12303         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12304         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12305
12306 2011-05-23  Bruno Haible  <bruno@clisp.org>
12307
12308         filemode: Move AC_LIBOBJ invocations to module description.
12309         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12310         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12311
12312 2011-05-23  Bruno Haible  <bruno@clisp.org>
12313
12314         openat-safer: Move AC_LIBOBJ invocations to module description.
12315         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12316         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12317
12318 2011-05-23  Bruno Haible  <bruno@clisp.org>
12319
12320         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12321         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12322         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12323
12324 2011-05-23  Bruno Haible  <bruno@clisp.org>
12325
12326         exclude: Move AC_LIBOBJ invocations to module description.
12327         * m4/exclude.m4: Remove file.
12328         * modules/exclude (Files): Remove it.
12329         (configure.ac): Remove gl_EXCLUDE call.
12330         (Makefile.am): Augment lib_SOURCES.
12331
12332 2011-05-23  Bruno Haible  <bruno@clisp.org>
12333
12334         dirname*: Respect rules for use of AC_LIBOBJ.
12335         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12336         invocations.
12337         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12338         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12339
12340 2011-05-23  Bruno Haible  <bruno@clisp.org>
12341
12342         dirent-safer: Move AC_LIBOBJ invocations to module description.
12343         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12344         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12345
12346 2011-05-23  Bruno Haible  <bruno@clisp.org>
12347
12348         crypto/des: Move AC_LIBOBJ invocations to module description.
12349         * m4/des.m4: Remove file.
12350         * modules/crypto/des (Files): Remove it.
12351         (configure.ac): Remove gl_DES call.
12352         (Makefile.am): Augment lib_SOURCES.
12353
12354 2011-05-23  Bruno Haible  <bruno@clisp.org>
12355
12356         cycle-check: Move AC_LIBOBJ invocations to module description.
12357         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12358         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12359
12360 2011-05-23  Bruno Haible  <bruno@clisp.org>
12361
12362         c-strtold: Move AC_LIBOBJ invocations to module description.
12363         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12364         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12365
12366 2011-05-23  Bruno Haible  <bruno@clisp.org>
12367
12368         c-strtod: Move AC_LIBOBJ invocations to module description.
12369         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12370         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12371
12372 2011-05-23  Bruno Haible  <bruno@clisp.org>
12373
12374         crc: Move AC_LIBOBJ invocations to module description.
12375         * m4/crc.m4: Remove file.
12376         * modules/crc (Files): Remove it.
12377         (configure.ac): Remove gl_CRC call.
12378         (Makefile.am): Augment lib_SOURCES.
12379
12380 2011-05-23  Bruno Haible  <bruno@clisp.org>
12381
12382         close-stream: Move AC_LIBOBJ invocations to module description.
12383         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12384         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12385
12386 2011-05-23  Bruno Haible  <bruno@clisp.org>
12387
12388         closeout: Move AC_LIBOBJ invocations to module description.
12389         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12390         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12391
12392 2011-05-23  Bruno Haible  <bruno@clisp.org>
12393
12394         closein: Move AC_LIBOBJ invocations to module description.
12395         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12396         * modules/closein (Makefile.am): Augment lib_SOURCES.
12397
12398 2011-05-23  Bruno Haible  <bruno@clisp.org>
12399
12400         cloexec: Move AC_LIBOBJ invocations to module description.
12401         * m4/cloexec.m4: Remove file.
12402         * modules/cloexec (Files): Remove it.
12403         (configure.ac): Remove gl_CLOEXEC call.
12404         (Makefile.am): Augment lib_SOURCES.
12405
12406 2011-05-23  Bruno Haible  <bruno@clisp.org>
12407
12408         check-version: Move AC_LIBOBJ invocations to module description.
12409         * m4/check-version.m4: Remove file.
12410         * modules/check-version (Files): Remove it.
12411         (configure.ac): Remove gl_CHECK_VERSION call.
12412         (Makefile.am): Augment lib_SOURCES.
12413
12414 2011-05-23  Bruno Haible  <bruno@clisp.org>
12415
12416         chdir-safer: Move AC_LIBOBJ invocations to module description.
12417         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12418         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12419
12420 2011-05-23  Bruno Haible  <bruno@clisp.org>
12421
12422         canonicalize: Move AC_LIBOBJ invocations to module description.
12423         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12424         AC_LIBOBJ invocation.
12425         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12426
12427 2011-05-23  Bruno Haible  <bruno@clisp.org>
12428
12429         canon-host: Move AC_LIBOBJ invocations to module description.
12430         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12431         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12432         instead of gl_CANON_HOST.
12433         (Makefile.am): Augment lib_SOURCES.
12434
12435 2011-05-23  Bruno Haible  <bruno@clisp.org>
12436
12437         backupfile: Move AC_LIBOBJ invocations to module description.
12438         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12439         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12440
12441 2011-05-23  Bruno Haible  <bruno@clisp.org>
12442
12443         argmatch: Move AC_LIBOBJ invocations to module description.
12444         * m4/argmatch.m4: Remove file.
12445         * modules/argmatch (Files): Remove it.
12446         (configure.ac): Remove gl_ARGMATCH call.
12447         (Makefile.am): Augment lib_SOURCES.
12448
12449 2011-05-23  Bruno Haible  <bruno@clisp.org>
12450
12451         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12452         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12453         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12454
12455 2011-05-23  Bruno Haible  <bruno@clisp.org>
12456
12457         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12458         * m4/arcfour.m4: Remove file.
12459         * modules/crypto/arcfour (Files): Remove it.
12460         (configure.ac): Remove gl_ARCFOUR call.
12461         (Makefile.am): Augment lib_SOURCES.
12462
12463 2011-05-22  Bruno Haible  <bruno@clisp.org>
12464
12465         write: Move AC_LIBOBJ invocations to module description.
12466         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12467         * modules/write (configure.ac): ... to here.
12468
12469 2011-05-22  Bruno Haible  <bruno@clisp.org>
12470
12471         wmemset: Move AC_LIBOBJ invocations to module description.
12472         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12473         here...
12474         * modules/wmemset (configure.ac): ... to here.
12475
12476 2011-05-22  Bruno Haible  <bruno@clisp.org>
12477
12478         wmemmove: Move AC_LIBOBJ invocations to module description.
12479         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12480         here...
12481         * modules/wmemmove (configure.ac): ... to here.
12482
12483 2011-05-22  Bruno Haible  <bruno@clisp.org>
12484
12485         wmemcpy: Move AC_LIBOBJ invocations to module description.
12486         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12487         here...
12488         * modules/wmemcpy (configure.ac): ... to here.
12489
12490 2011-05-22  Bruno Haible  <bruno@clisp.org>
12491
12492         wmemcmp: Move AC_LIBOBJ invocations to module description.
12493         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12494         here...
12495         * modules/wmemcmp (configure.ac): ... to here.
12496
12497 2011-05-22  Bruno Haible  <bruno@clisp.org>
12498
12499         wmemchr: Move AC_LIBOBJ invocations to module description.
12500         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12501         here...
12502         * modules/wmemchr (configure.ac): ... to here.
12503
12504 2011-05-22  Bruno Haible  <bruno@clisp.org>
12505
12506         wcswidth: Move AC_LIBOBJ invocations to module description.
12507         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12508         here...
12509         * modules/wcswidth (configure.ac): ... to here.
12510
12511 2011-05-22  Bruno Haible  <bruno@clisp.org>
12512
12513         wcwidth: Respect rules for use of AC_LIBOBJ.
12514         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12515         invocation from here...
12516         * modules/wcwidth (configure.ac): ... to here.
12517         (Depends-on): Update conditions.
12518
12519 2011-05-22  Bruno Haible  <bruno@clisp.org>
12520
12521         wctype: Move AC_LIBOBJ invocations to module description.
12522         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12523         invocation from here...
12524         * modules/wctype (configure.ac): ... to here.
12525         (Depends-on): Update conditions.
12526
12527 2011-05-22  Bruno Haible  <bruno@clisp.org>
12528
12529         wctrans: Move AC_LIBOBJ invocations to module description.
12530         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12531         invocation from here...
12532         * modules/wctrans (configure.ac): ... to here.
12533
12534 2011-05-22  Bruno Haible  <bruno@clisp.org>
12535
12536         wctomb: Move AC_LIBOBJ invocations to module description.
12537         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12538         invocations from here...
12539         * modules/wctomb (configure.ac): ... to here.
12540
12541 2011-05-22  Bruno Haible  <bruno@clisp.org>
12542
12543         wctob: Move AC_LIBOBJ invocations to module description.
12544         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12545         gl_PREREQ_WCTOB invocations from here...
12546         * modules/wctob (configure.ac): ... to here.
12547         (Depends-on): Update conditions.
12548
12549 2011-05-22  Bruno Haible  <bruno@clisp.org>
12550
12551         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12552         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12553         here...
12554         * modules/wcsxfrm (configure.ac): ... to here.
12555
12556 2011-05-22  Bruno Haible  <bruno@clisp.org>
12557
12558         wcstok: Move AC_LIBOBJ invocations to module description.
12559         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12560         * modules/wcstok (configure.ac): ... to here.
12561
12562 2011-05-22  Bruno Haible  <bruno@clisp.org>
12563
12564         wcsstr: Move AC_LIBOBJ invocations to module description.
12565         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12566         * modules/wcsstr (configure.ac): ... to here.
12567
12568 2011-05-22  Bruno Haible  <bruno@clisp.org>
12569
12570         wcsspn: Move AC_LIBOBJ invocations to module description.
12571         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12572         * modules/wcsspn (configure.ac): ... to here.
12573
12574 2011-05-22  Bruno Haible  <bruno@clisp.org>
12575
12576         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12577         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12578         gl_PREREQ_WCSRTOMBS invocations from here...
12579         * modules/wcsrtombs (configure.ac): ... to here.
12580
12581 2011-05-22  Bruno Haible  <bruno@clisp.org>
12582
12583         wcsrchr: Move AC_LIBOBJ invocations to module description.
12584         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12585         here...
12586         * modules/wcsrchr (configure.ac): ... to here.
12587
12588 2011-05-22  Bruno Haible  <bruno@clisp.org>
12589
12590         wcspbrk: Move AC_LIBOBJ invocations to module description.
12591         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12592         here...
12593         * modules/wcspbrk (configure.ac): ... to here.
12594
12595 2011-05-22  Bruno Haible  <bruno@clisp.org>
12596
12597         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12598         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12599         gl_PREREQ_WCSNRTOMBS invocations from here...
12600         * modules/wcsnrtombs (configure.ac): ... to here.
12601
12602 2011-05-22  Bruno Haible  <bruno@clisp.org>
12603
12604         wcsnlen: Move AC_LIBOBJ invocations to module description.
12605         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12606         here...
12607         * modules/wcsnlen (configure.ac): ... to here.
12608
12609 2011-05-22  Bruno Haible  <bruno@clisp.org>
12610
12611         wcsncpy: Move AC_LIBOBJ invocations to module description.
12612         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12613         here...
12614         * modules/wcsncpy (configure.ac): ... to here.
12615
12616 2011-05-22  Bruno Haible  <bruno@clisp.org>
12617
12618         wcsncmp: Move AC_LIBOBJ invocations to module description.
12619         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12620         here...
12621         * modules/wcsncmp (configure.ac): ... to here.
12622
12623 2011-05-22  Bruno Haible  <bruno@clisp.org>
12624
12625         wcsncat: Move AC_LIBOBJ invocations to module description.
12626         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12627         here...
12628         * modules/wcsncat (configure.ac): ... to here.
12629
12630 2011-05-22  Bruno Haible  <bruno@clisp.org>
12631
12632         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12633         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12634         from here...
12635         * modules/wcsncasecmp (configure.ac): ... to here.
12636
12637 2011-05-22  Bruno Haible  <bruno@clisp.org>
12638
12639         wcslen: Move AC_LIBOBJ invocations to module description.
12640         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12641         * modules/wcslen (configure.ac): ... to here.
12642
12643 2011-05-22  Bruno Haible  <bruno@clisp.org>
12644
12645         wcsdup: Move AC_LIBOBJ invocations to module description.
12646         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12647         * modules/wcsdup (configure.ac): ... to here.
12648
12649 2011-05-22  Bruno Haible  <bruno@clisp.org>
12650
12651         wcscspn: Move AC_LIBOBJ invocations to module description.
12652         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12653         here...
12654         * modules/wcscspn (configure.ac): ... to here.
12655
12656 2011-05-22  Bruno Haible  <bruno@clisp.org>
12657
12658         wcscpy: Move AC_LIBOBJ invocations to module description.
12659         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12660         * modules/wcscpy (configure.ac): ... to here.
12661
12662 2011-05-22  Bruno Haible  <bruno@clisp.org>
12663
12664         wcscoll: Move AC_LIBOBJ invocations to module description.
12665         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12666         here...
12667         * modules/wcscoll (configure.ac): ... to here.
12668
12669 2011-05-22  Bruno Haible  <bruno@clisp.org>
12670
12671         wcscmp: Move AC_LIBOBJ invocations to module description.
12672         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12673         * modules/wcscmp (configure.ac): ... to here.
12674
12675 2011-05-22  Bruno Haible  <bruno@clisp.org>
12676
12677         wcschr: Move AC_LIBOBJ invocations to module description.
12678         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12679         * modules/wcschr (configure.ac): ... to here.
12680
12681 2011-05-22  Bruno Haible  <bruno@clisp.org>
12682
12683         wcscat: Move AC_LIBOBJ invocations to module description.
12684         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12685         * modules/wcscat (configure.ac): ... to here.
12686
12687 2011-05-22  Bruno Haible  <bruno@clisp.org>
12688
12689         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12690         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12691         here...
12692         * modules/wcscasecmp (configure.ac): ... to here.
12693
12694 2011-05-22  Bruno Haible  <bruno@clisp.org>
12695
12696         wcrtomb: Move AC_LIBOBJ invocations to module description.
12697         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12698         invocations from here...
12699         * modules/wcrtomb (configure.ac): ... to here.
12700
12701 2011-05-22  Bruno Haible  <bruno@clisp.org>
12702
12703         wcpncpy: Move AC_LIBOBJ invocations to module description.
12704         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12705         here...
12706         * modules/wcpncpy (configure.ac): ... to here.
12707
12708 2011-05-22  Bruno Haible  <bruno@clisp.org>
12709
12710         wcpcpy: Move AC_LIBOBJ invocations to module description.
12711         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12712         * modules/wcpcpy (configure.ac): ... to here.
12713
12714 2011-05-22  Bruno Haible  <bruno@clisp.org>
12715
12716         waitpid: Move AC_LIBOBJ invocations to module description.
12717         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12718         invocation from here...
12719         * modules/waitpid (configure.ac): ... to here.
12720
12721 2011-05-22  Bruno Haible  <bruno@clisp.org>
12722
12723         utimensat: Move AC_LIBOBJ invocations to module description.
12724         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12725         here...
12726         * modules/utimensat (configure.ac): ... to here.
12727
12728 2011-05-22  Bruno Haible  <bruno@clisp.org>
12729
12730         usleep: Move AC_LIBOBJ invocations to module description.
12731         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12732         here...
12733         * modules/usleep (configure.ac): ... to here.
12734
12735 2011-05-22  Bruno Haible  <bruno@clisp.org>
12736
12737         unlockpt: Move AC_LIBOBJ invocations to module description.
12738         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12739         gl_PREREQ_UNLOCKPT invocations from here...
12740         * modules/unlockpt (configure.ac): ... to here.
12741
12742 2011-05-22  Bruno Haible  <bruno@clisp.org>
12743
12744         unlink: Respect rules for use of AC_LIBOBJ.
12745         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12746         * modules/unlink (configure.ac): ... to here.
12747
12748 2011-05-22  Bruno Haible  <bruno@clisp.org>
12749
12750         uname: Move AC_LIBOBJ invocations to module description.
12751         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12752         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12753         here...
12754         * modules/uname (configure.ac): ... to here.
12755
12756 2011-05-22  Bruno Haible  <bruno@clisp.org>
12757
12758         ttyname_r: Move AC_LIBOBJ invocations to module description.
12759         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12760         gl_PREREQ_TTYNAME_R invocations from here...
12761         * modules/ttyname_r (configure.ac): ... to here.
12762
12763 2011-05-22  Bruno Haible  <bruno@clisp.org>
12764
12765         tsearch: Move AC_LIBOBJ invocations to module description.
12766         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12767         invocations from here...
12768         * modules/tsearch (configure.ac): ... to here.
12769
12770 2011-05-22  Bruno Haible  <bruno@clisp.org>
12771
12772         towctrans: Move AC_LIBOBJ invocations to module description.
12773         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12774         AC_LIBOBJ invocation from here...
12775         * modules/towctrans (configure.ac): ... to here.
12776
12777 2011-05-22  Bruno Haible  <bruno@clisp.org>
12778
12779         tmpfile: Move AC_LIBOBJ invocations to module description.
12780         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12781         invocations from here...
12782         * modules/tmpfile (configure.ac): ... to here.
12783
12784 2011-05-22  Bruno Haible  <bruno@clisp.org>
12785
12786         times: Move AC_LIBOBJ invocations to module description.
12787         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12788         * modules/times (configure.ac): ... to here.
12789
12790 2011-05-22  Bruno Haible  <bruno@clisp.org>
12791
12792         time_r: Move AC_LIBOBJ invocations to module description.
12793         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12794         invocations from here...
12795         * modules/time_r (configure.ac): ... to here.
12796
12797 2011-05-22  Bruno Haible  <bruno@clisp.org>
12798
12799         timegm: Move AC_LIBOBJ invocations to module description.
12800         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12801         invocations from here...
12802         * modules/timegm (configure.ac): ... to here.
12803
12804 2011-05-22  Bruno Haible  <bruno@clisp.org>
12805
12806         tcgetsid: Move AC_LIBOBJ invocations to module description.
12807         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12808         and gl_PREREQ_TCGETSID invocations from here...
12809         * modules/tcgetsid (configure.ac): ... to here.
12810         (Depends-on): Update conditions.
12811
12812 2011-05-22  Bruno Haible  <bruno@clisp.org>
12813
12814         symlinkat: Move AC_LIBOBJ invocations to module description.
12815         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12816         here...
12817         * modules/symlinkat (configure.ac): ... to here.
12818
12819 2011-05-22  Bruno Haible  <bruno@clisp.org>
12820
12821         symlink: Move AC_LIBOBJ invocations to module description.
12822         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12823         here...
12824         * modules/symlink (configure.ac): ... to here.
12825
12826 2011-05-22  Bruno Haible  <bruno@clisp.org>
12827
12828         strverscmp: Move AC_LIBOBJ invocations to module description.
12829         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12830         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12831         from here...
12832         * modules/strverscmp (configure.ac): ... to here.
12833
12834 2011-05-22  Bruno Haible  <bruno@clisp.org>
12835
12836         strtok_r: Move AC_LIBOBJ invocations to module description.
12837         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12838         and gl_PREREQ_STRTOK_R invocations from here...
12839         * modules/strtok_r (configure.ac): ... to here.
12840         (Depends-on): Update conditions.
12841
12842 2011-05-22  Bruno Haible  <bruno@clisp.org>
12843
12844         strtoumax: Move AC_LIBOBJ invocations to module description.
12845         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12846         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12847         from here...
12848         * modules/strtoumax (configure.ac): ... to here.
12849
12850 2011-05-22  Bruno Haible  <bruno@clisp.org>
12851
12852         strtoimax: Move AC_LIBOBJ invocations to module description.
12853         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12854         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12855         from here...
12856         * modules/strtoimax (configure.ac): ... to here.
12857
12858 2011-05-22  Bruno Haible  <bruno@clisp.org>
12859
12860         strtoull: Move AC_LIBOBJ invocations to module description.
12861         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12862         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12863         from here...
12864         * modules/strtoull (configure.ac): ... to here.
12865
12866 2011-05-22  Bruno Haible  <bruno@clisp.org>
12867
12868         strtoll: Move AC_LIBOBJ invocations to module description.
12869         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12870         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12871         here...
12872         * modules/strtoll (configure.ac): ... to here.
12873
12874 2011-05-22  Bruno Haible  <bruno@clisp.org>
12875
12876         strtoul: Move AC_LIBOBJ invocations to module description.
12877         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12878         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12879         * modules/strtoul (configure.ac): ... to here.
12880
12881 2011-05-22  Bruno Haible  <bruno@clisp.org>
12882
12883         strtol: Move AC_LIBOBJ invocations to module description.
12884         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12885         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12886         * modules/strtol (configure.ac): ... to here.
12887
12888 2011-05-22  Bruno Haible  <bruno@clisp.org>
12889
12890         strtod: Move AC_LIBOBJ invocations to module description.
12891         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12892         invocations from here...
12893         * modules/strtod (configure.ac): ... to here.
12894
12895 2011-05-22  Bruno Haible  <bruno@clisp.org>
12896
12897         strstr*: Move AC_LIBOBJ invocations to module description.
12898         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12899         invocations from here...
12900         * modules/strstr-simple (configure.ac): ... to here.
12901         * modules/strstr (configure.ac): ... and here.
12902
12903 2011-05-22  Bruno Haible  <bruno@clisp.org>
12904
12905         strsignal: Move AC_LIBOBJ invocations to module description.
12906         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12907         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12908         * modules/strsignal (configure.ac): ... to here.
12909         (Depends-on): Update conditions.
12910
12911 2011-05-22  Bruno Haible  <bruno@clisp.org>
12912
12913         strsep: Move AC_LIBOBJ invocations to module description.
12914         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12915         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12916         here...
12917         * modules/strsep (configure.ac): ... to here.
12918
12919 2011-05-22  Bruno Haible  <bruno@clisp.org>
12920
12921         strptime: Move AC_LIBOBJ invocations to module description.
12922         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12923         gl_PREREQ_STRPTIME invocations from here...
12924         * modules/strptime (configure.ac): ... to here.
12925
12926 2011-05-22  Bruno Haible  <bruno@clisp.org>
12927
12928         strpbrk: Move AC_LIBOBJ invocations to module description.
12929         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
12930         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
12931         here...
12932         * modules/strpbrk (configure.ac): ... to here.
12933
12934 2011-05-22  Bruno Haible  <bruno@clisp.org>
12935
12936         strnlen: Move AC_LIBOBJ invocations to module description.
12937         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
12938         invocations from here...
12939         * modules/strnlen (configure.ac): ... to here.
12940
12941 2011-05-22  Bruno Haible  <bruno@clisp.org>
12942
12943         strndup: Move AC_LIBOBJ invocations to module description.
12944         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
12945         invocations from here...
12946         * modules/strndup (configure.ac): ... to here.
12947         (Depends-on): Update conditions.
12948
12949 2011-05-22  Bruno Haible  <bruno@clisp.org>
12950
12951         strncat: Move AC_LIBOBJ invocations to module description.
12952         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
12953         invocations from here...
12954         * modules/strncat (configure.ac): ... to here.
12955
12956 2011-05-22  Bruno Haible  <bruno@clisp.org>
12957
12958         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
12959         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12960         invocations from here...
12961         * modules/strdup (configure.ac): ... to here.
12962         * modules/strdup-posix (configure.ac): ... and here.
12963
12964 2011-05-22  Bruno Haible  <bruno@clisp.org>
12965
12966         strcspn: Move AC_LIBOBJ invocations to module description.
12967         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
12968         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
12969         here...
12970         * modules/strcspn (configure.ac): ... to here.
12971
12972 2011-05-22  Bruno Haible  <bruno@clisp.org>
12973
12974         strchrnul: Move AC_LIBOBJ invocations to module description.
12975         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
12976         gl_PREREQ_STRCHRNUL invocations from here...
12977         * modules/strchrnul (configure.ac): ... to here.
12978
12979 2011-05-22  Bruno Haible  <bruno@clisp.org>
12980
12981         strcasestr*: Move AC_LIBOBJ invocations to module description.
12982         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12983         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
12984         * modules/strcasestr-simple (configure.ac): ... to here.
12985         * modules/strcasestr (configure.ac): ... and here.
12986
12987 2011-05-22  Bruno Haible  <bruno@clisp.org>
12988
12989         strcase: Move AC_LIBOBJ invocations to module description.
12990         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
12991         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
12992         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
12993         gl_PREREQ_STRNCASECMP invocations from here...
12994         * modules/strcase (configure.ac): ... to here.
12995
12996 2011-05-22  Bruno Haible  <bruno@clisp.org>
12997
12998         stpncpy: Move AC_LIBOBJ invocations to module description.
12999         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13000         here...
13001         * modules/stpncpy (configure.ac): ... to here.
13002
13003 2011-05-22  Bruno Haible  <bruno@clisp.org>
13004
13005         stpcpy: Move AC_LIBOBJ invocations to module description.
13006         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13007         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13008         here...
13009         * modules/stpcpy (configure.ac): ... to here.
13010
13011 2011-05-21  Bruno Haible  <bruno@clisp.org>
13012
13013         stat: Move AC_LIBOBJ invocations to module description.
13014         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13015         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13016         here...
13017         * modules/stat (configure.ac): ... to here.
13018
13019 2011-05-21  Bruno Haible  <bruno@clisp.org>
13020
13021         sleep: Move AC_LIBOBJ invocations to module description.
13022         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13023         * modules/sleep (configure.ac): ... to here.
13024
13025 2011-05-21  Bruno Haible  <bruno@clisp.org>
13026
13027         signbit: Move AC_LIBOBJ invocations to module description.
13028         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13029         * modules/signbit (configure.ac): ... to here.
13030
13031 2011-05-21  Bruno Haible  <bruno@clisp.org>
13032
13033         sigprocmask: Move AC_LIBOBJ invocations to module description.
13034         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13035         gl_PREREQ_SIGPROMASK invocations from here...
13036         * modules/sigprocmask (configure.ac): ... to here.
13037
13038 2011-05-21  Bruno Haible  <bruno@clisp.org>
13039
13040         sigaction: Move AC_LIBOBJ invocations to module description.
13041         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13042         gl_PREREQ_SIGACTION invocations from here...
13043         * modules/sigaction (configure.ac): ... to here.
13044
13045 2011-05-21  Bruno Haible  <bruno@clisp.org>
13046
13047         sig2str: Move AC_LIBOBJ invocations to module description.
13048         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13049         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13050         here...
13051         * modules/sig2str (configure.ac): ... to here.
13052
13053 2011-05-21  Bruno Haible  <bruno@clisp.org>
13054
13055         setlocale: Move AC_LIBOBJ invocations to module description.
13056         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13057         gl_PREREQ_SETLOCALE invocations from here...
13058         * modules/setlocale (configure.ac): ... to here.
13059
13060 2011-05-21  Bruno Haible  <bruno@clisp.org>
13061
13062         unsetenv: Move AC_LIBOBJ invocations to module description.
13063         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13064         and gl_PREREQ_UNSETENV invocations from here...
13065         * modules/unsetenv (configure.ac): ... to here.
13066         (Depends-on): Update.
13067
13068 2011-05-21  Bruno Haible  <bruno@clisp.org>
13069
13070         setenv: Move AC_LIBOBJ invocations to module description.
13071         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13072         here...
13073         * modules/setenv (configure.ac): ... to here.
13074
13075 2011-05-21  Bruno Haible  <bruno@clisp.org>
13076
13077         selinux-h: Move AC_LIBOBJ invocations to module description.
13078         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13079         AC_LIBOBJ invocation from here...
13080         * modules/selinux-h (configure.ac): ... to here.
13081
13082 2011-05-21  Bruno Haible  <bruno@clisp.org>
13083
13084         select: Respect rules for use of AC_LIBOBJ.
13085         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13086         here...
13087         * modules/select (configure.ac): ... to here.
13088
13089 2011-05-21  Bruno Haible  <bruno@clisp.org>
13090
13091         scandir: Move AC_LIBOBJ invocations to module description.
13092         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13093         invocations from here...
13094         * modules/scandir (configure.ac): ... to here.
13095
13096 2011-05-21  Bruno Haible  <bruno@clisp.org>
13097
13098         rpmatch: Move AC_LIBOBJ invocations to module description.
13099         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13100         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13101         here...
13102         * modules/rpmatch (configure.ac): ... to here.
13103
13104 2011-05-21  Bruno Haible  <bruno@clisp.org>
13105
13106         rmdir: Respect rules for use of AC_LIBOBJ.
13107         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13108         * modules/rmdir (configure.ac): ... to here.
13109
13110 2011-05-21  Bruno Haible  <bruno@clisp.org>
13111
13112         renameat: Move AC_LIBOBJ invocations to module description.
13113         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13114         here...
13115         * modules/renameat (configure.ac): ... to here.
13116
13117 2011-05-21  Bruno Haible  <bruno@clisp.org>
13118
13119         rename: Respect rules for use of AC_LIBOBJ.
13120         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13121         here...
13122         * modules/rename (configure.ac): ... to here.
13123
13124 2011-05-21  Bruno Haible  <bruno@clisp.org>
13125
13126         remove: Move AC_LIBOBJ invocations to module description.
13127         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13128         here...
13129         * modules/remove (configure.ac): ... to here.
13130
13131 2011-05-21  Bruno Haible  <bruno@clisp.org>
13132
13133         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13134         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13135         macro.
13136         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13137         * modules/relocatable-lib (configure.ac): ... to here.
13138         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13139         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13140
13141 2011-05-21  Bruno Haible  <bruno@clisp.org>
13142
13143         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13144         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13145         here...
13146         * modules/relocatable-prog (configure.ac): ... to here.
13147
13148 2011-05-21  Bruno Haible  <bruno@clisp.org>
13149
13150         regex: Move AC_LIBOBJ invocations to module description.
13151         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13152         invocations from here...
13153         * modules/regex (configure.ac): ... to here.
13154
13155 2011-05-21  Bruno Haible  <bruno@clisp.org>
13156
13157         realloc-*: Move AC_LIBOBJ invocations to module description.
13158         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13159         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13160         AC_LIBOBJ invocations from here...
13161         * modules/realloc-gnu (configure.ac): ... to here.
13162         * modules/realloc-posix (configure.ac): ... and here.
13163
13164 2011-05-21  Bruno Haible  <bruno@clisp.org>
13165
13166         readutmp: Move AC_LIBOBJ invocations to module description.
13167         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13168         * modules/readutmp (configure.ac): ... to here.
13169
13170 2011-05-21  Bruno Haible  <bruno@clisp.org>
13171
13172         readlinkat: Move AC_LIBOBJ invocations to module description.
13173         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13174         here...
13175         * modules/readlinkat (configure.ac): ... to here.
13176
13177 2011-05-21  Bruno Haible  <bruno@clisp.org>
13178
13179         readlink: Move AC_LIBOBJ invocations to module description.
13180         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13181         gl_PREREQ_READLINK invocations from here...
13182         * modules/readlink (configure.ac): ... to here.
13183
13184 2011-05-21  Bruno Haible  <bruno@clisp.org>
13185
13186         readline: Move AC_LIBOBJ invocations to module description.
13187         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13188         gl_PREREQ_READLINE invocations from here...
13189         * modules/readline (configure.ac): ... to here.
13190
13191 2011-05-21  Bruno Haible  <bruno@clisp.org>
13192
13193         read: Move AC_LIBOBJ invocations to module description.
13194         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13195         * modules/read (configure.ac): ... to here.
13196
13197 2011-05-21  Bruno Haible  <bruno@clisp.org>
13198
13199         rawmemchr: Move AC_LIBOBJ invocations to module description.
13200         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13201         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13202         from here...
13203         * modules/rawmemchr (configure.ac): ... to here.
13204
13205 2011-05-21  Bruno Haible  <bruno@clisp.org>
13206
13207         random_r: Move AC_LIBOBJ invocations to module description.
13208         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13209         gl_PREREQ_RANDOM_R invocations from here...
13210         * modules/random_r (configure.ac): ... to here.
13211
13212 2011-05-21  Bruno Haible  <bruno@clisp.org>
13213
13214         pwrite: Move AC_LIBOBJ invocations to module description.
13215         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13216         * modules/pwrite (configure.ac): ... to here.
13217
13218 2011-05-21  Bruno Haible  <bruno@clisp.org>
13219
13220         putenv: Move AC_LIBOBJ invocations to module description.
13221         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13222         * modules/putenv (configure.ac): ... to here.
13223
13224 2011-05-21  Bruno Haible  <bruno@clisp.org>
13225
13226         login_tty: Move AC_LIBOBJ invocations to module description.
13227         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13228         * modules/login_tty (configure.ac): ... to here.
13229
13230 2011-05-21  Bruno Haible  <bruno@clisp.org>
13231
13232         openpty: Move AC_LIBOBJ invocations to module description.
13233         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13234         * modules/openpty (configure.ac): ... to here.
13235
13236 2011-05-21  Bruno Haible  <bruno@clisp.org>
13237
13238         forkpty: Move AC_LIBOBJ invocations to module description.
13239         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13240         * modules/forkpty (configure.ac): ... to here.
13241
13242 2011-05-21  Bruno Haible  <bruno@clisp.org>
13243
13244         ptsname: Move AC_LIBOBJ invocations to module description.
13245         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13246         invocations from here...
13247         * modules/ptsname (configure.ac): ... to here.
13248
13249 2011-05-21  Bruno Haible  <bruno@clisp.org>
13250
13251         pread: Move AC_LIBOBJ invocations to module description.
13252         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13253         * modules/pread (configure.ac): ... to here.
13254
13255 2011-05-21  Bruno Haible  <bruno@clisp.org>
13256
13257         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13258         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13259         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13260         * modules/posix_spawn (configure.ac): ... to here.
13261         * modules/posix_spawnp (configure.ac): ... and here.
13262
13263 2011-05-21  Bruno Haible  <bruno@clisp.org>
13264
13265         popen: Move AC_LIBOBJ invocations to module description.
13266         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13267         invocations from here...
13268         * modules/popen (configure.ac): ... to here.
13269
13270 2011-05-21  Bruno Haible  <bruno@clisp.org>
13271
13272         poll: Move AC_LIBOBJ invocations to module description.
13273         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13274         invocations from here...
13275         * modules/poll (configure.ac): ... to here.
13276
13277 2011-05-21  Bruno Haible  <bruno@clisp.org>
13278
13279         pipe-posix: Move AC_LIBOBJ invocations to module description.
13280         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13281         * modules/pipe-posix (configure.ac): ... to here.
13282
13283 2011-05-21  Bruno Haible  <bruno@clisp.org>
13284
13285         openat: Respect rules for use of AC_LIBOBJ.
13286         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13287         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13288         * modules/openat (configure.ac): ... to here.
13289
13290 2011-05-21  Bruno Haible  <bruno@clisp.org>
13291
13292         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13293         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13294         invocation from here...
13295         * modules/obstack-printf (configure.ac): ... to here.
13296         * modules/obstack-printf-posix (configure.ac): ... and here.
13297
13298 2011-05-21  Bruno Haible  <bruno@clisp.org>
13299
13300         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13301         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13302         from here...
13303         * modules/nl_langinfo (configure.ac): ... to here.
13304
13305 2011-05-21  Bruno Haible  <bruno@clisp.org>
13306
13307         nanosleep: Move AC_LIBOBJ invocations to module description.
13308         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13309         gl_PREREQ_NANOSLEEP invocations from here...
13310         * modules/nanosleep (configure.ac): ... to here.
13311
13312 2011-05-21  Bruno Haible  <bruno@clisp.org>
13313
13314         mountlist: Move AC_LIBOBJ invocations to module description.
13315         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13316         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13317         * modules/mountlist (configure.ac): ... to here.
13318
13319 2011-05-21  Bruno Haible  <bruno@clisp.org>
13320
13321         mktime: Respect rules for use of AC_LIBOBJ.
13322         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13323         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13324         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13325         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13326         * modules/mktime (configure.ac): ... to here.
13327         * modules/mktime-internal (configure.ac): ... and here.
13328         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13329
13330 2011-05-21  Bruno Haible  <bruno@clisp.org>
13331
13332         mkstemps: Move AC_LIBOBJ invocations to module description.
13333         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13334         here...
13335         * modules/mkstemps (configure.ac): ... to here.
13336
13337 2011-05-21  Bruno Haible  <bruno@clisp.org>
13338
13339         mkstemp: Move AC_LIBOBJ invocations to module description.
13340         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13341         gl_PREREQ_MKSTEMP invocations from here...
13342         * modules/mkstemp (configure.ac): ... to here.
13343
13344 2011-05-21  Bruno Haible  <bruno@clisp.org>
13345
13346         mkostemps: Move AC_LIBOBJ invocations to module description.
13347         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13348         here...
13349         * modules/mkostemps (configure.ac): ... to here.
13350
13351 2011-05-21  Bruno Haible  <bruno@clisp.org>
13352
13353         mkostemp: Move AC_LIBOBJ invocations to module description.
13354         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13355         gl_PREREQ_MKOSTEMP invocations from here...
13356         * modules/mkostemp (configure.ac): ... to here.
13357
13358 2011-05-21  Bruno Haible  <bruno@clisp.org>
13359
13360         mknod: Move AC_LIBOBJ invocations to module description.
13361         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13362         * modules/mknod (configure.ac): ... to here.
13363
13364 2011-05-21  Bruno Haible  <bruno@clisp.org>
13365
13366         mkfifoat: Move AC_LIBOBJ invocations to module description.
13367         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13368         here...
13369         * modules/mkfifoat (configure.ac): ... to here.
13370
13371 2011-05-21  Bruno Haible  <bruno@clisp.org>
13372
13373         mkfifo: Respect rules for use of AC_LIBOBJ.
13374         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13375         here...
13376         * modules/mkfifo (configure.ac): ... to here.
13377
13378 2011-05-21  Bruno Haible  <bruno@clisp.org>
13379
13380         mkdtemp: Move AC_LIBOBJ invocations to module description.
13381         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13382         invocations from here...
13383         * modules/mkdtemp (configure.ac): ... to here.
13384
13385 2011-05-21  Bruno Haible  <bruno@clisp.org>
13386
13387         mkdir: Move AC_LIBOBJ invocations to module description.
13388         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13389         * modules/mkdir (configure.ac): ... to here.
13390
13391 2011-05-21  Bruno Haible  <bruno@clisp.org>
13392
13393         memset: Move AC_LIBOBJ invocations to module description.
13394         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13395         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13396         here...
13397         * modules/memset (configure.ac): ... to here.
13398
13399 2011-05-21  Bruno Haible  <bruno@clisp.org>
13400
13401         memrchr: Move AC_LIBOBJ invocations to module description.
13402         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13403         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13404         here...
13405         * modules/memrchr (configure.ac): ... to here.
13406
13407 2011-05-21  Bruno Haible  <bruno@clisp.org>
13408
13409         mempcpy: Move AC_LIBOBJ invocations to module description.
13410         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13411         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13412         here...
13413         * modules/mempcpy (configure.ac): ... to here.
13414
13415 2011-05-21  Bruno Haible  <bruno@clisp.org>
13416
13417         memmove: Move AC_LIBOBJ invocations to module description.
13418         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13419         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13420         here...
13421         * modules/memmove (configure.ac): ... to here.
13422
13423 2011-05-21  Bruno Haible  <bruno@clisp.org>
13424
13425         memmem*: Move AC_LIBOBJ invocations to module description.
13426         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13427         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13428         here...
13429         (gl_FUNC_MEMMEM): ... and here...
13430         * modules/memmem-simple (configure.ac): ... to here.
13431         * modules/memmem (configure.ac): ... and here.
13432
13433 2011-05-21  Bruno Haible  <bruno@clisp.org>
13434
13435         memcpy: Move AC_LIBOBJ invocations to module description.
13436         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13437         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13438         here...
13439         * modules/memcpy (configure.ac): ... to here.
13440
13441 2011-05-21  Bruno Haible  <bruno@clisp.org>
13442
13443         memcmp: Simplify autoconf macro.
13444         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13445         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13446         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13447
13448 2011-05-21  Bruno Haible  <bruno@clisp.org>
13449
13450         memcmp: Move AC_LIBOBJ invocations to module description.
13451         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13452         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13453         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13454         * modules/memcmp (configure.ac): ... to here.
13455         (Depends-on): Update conditions.
13456
13457 2011-05-21  Bruno Haible  <bruno@clisp.org>
13458
13459         memchr: Respect rules for use of AC_LIBOBJ.
13460         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13461         invocations from here...
13462         * modules/memchr (configure.ac): ... to here.
13463
13464 2011-05-21  Bruno Haible  <bruno@clisp.org>
13465
13466         mbtowc: Move AC_LIBOBJ invocations to module description.
13467         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13468         invocations from here...
13469         * modules/mbtowc (configure.ac): ... to here.
13470
13471 2011-05-21  Bruno Haible  <bruno@clisp.org>
13472
13473         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13474         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13475         gl_PREREQ_MBSRTOWCS invocations from here...
13476         * modules/mbsrtowcs (configure.ac): ... to here.
13477
13478 2011-05-21  Bruno Haible  <bruno@clisp.org>
13479
13480         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13481         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13482         gl_PREREQ_MBSNRTOWCS invocations from here...
13483         * modules/mbsnrtowcs (configure.ac): ... to here.
13484
13485 2011-05-21  Bruno Haible  <bruno@clisp.org>
13486
13487         mbsinit: Move AC_LIBOBJ invocations to module description.
13488         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13489         invocations from here...
13490         * modules/mbsinit (configure.ac): ... to here.
13491
13492 2011-05-21  Bruno Haible  <bruno@clisp.org>
13493
13494         mbrlen: Move AC_LIBOBJ invocations to module description.
13495         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13496         invocations from here...
13497         * modules/mbrlen (configure.ac): ... to here.
13498
13499 2011-05-21  Bruno Haible  <bruno@clisp.org>
13500
13501         mbrtowc: Respect rules for use of AC_LIBOBJ.
13502         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13503         invocations from here...
13504         * modules/mbrtowc (configure.ac): ... to here.
13505
13506 2011-05-21  Bruno Haible  <bruno@clisp.org>
13507
13508         malloc-*: Move AC_LIBOBJ invocations to module description.
13509         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13510         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13511         AC_LIBOBJ invocations from here...
13512         * modules/malloc-gnu (configure.ac): ... to here.
13513         * modules/malloc-posix (configure.ac): ... and here.
13514
13515 2011-05-21  Bruno Haible  <bruno@clisp.org>
13516
13517         lstat, openat: Respect rules for use of AC_LIBOBJ.
13518         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13519         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13520         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13521         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13522         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13523         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13524         here.
13525         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13526
13527 2011-05-21  Bruno Haible  <bruno@clisp.org>
13528
13529         lseek: Move AC_LIBOBJ invocations to module description.
13530         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13531         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13532         * modules/lseek (configure.ac): ... to here.
13533
13534 2011-05-21  Bruno Haible  <bruno@clisp.org>
13535
13536         linkat: Move AC_LIBOBJ invocations to module description.
13537         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13538         here...
13539         * modules/linkat (configure.ac): ... to here.
13540
13541 2011-05-21  Bruno Haible  <bruno@clisp.org>
13542
13543         link: Respect rules for use of AC_LIBOBJ.
13544         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13545         * modules/link (configure.ac): ... to here.
13546
13547 2011-05-21  Bruno Haible  <bruno@clisp.org>
13548
13549         lchown: Move AC_LIBOBJ invocations to module description.
13550         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13551         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13552         * modules/lchown (configure.ac): ... to here.
13553
13554 2011-05-21  Bruno Haible  <bruno@clisp.org>
13555
13556         iswctype: Move AC_LIBOBJ invocations to module description.
13557         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13558         here...
13559         * modules/iswctype (configure.ac): ... to here.
13560
13561 2011-05-21  Bruno Haible  <bruno@clisp.org>
13562
13563         iswblank: Move AC_LIBOBJ invocations to module description.
13564         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13565         here...
13566         * modules/iswblank (configure.ac): ... to here.
13567
13568 2011-05-21  Bruno Haible  <bruno@clisp.org>
13569
13570         atanl: Move AC_LIBOBJ invocations to module description.
13571         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13572         * modules/atanl (configure.ac): ... to here.
13573
13574 2011-05-21  Bruno Haible  <bruno@clisp.org>
13575
13576         acosl: Move AC_LIBOBJ invocations to module description.
13577         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13578         * modules/acosl (configure.ac): ... to here.
13579
13580 2011-05-21  Bruno Haible  <bruno@clisp.org>
13581
13582         asinl: Respect rules for use of AC_LIBOBJ.
13583         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13584         * modules/asinl (configure.ac): ... to here.
13585
13586 2011-05-21  Bruno Haible  <bruno@clisp.org>
13587
13588         tanl: Move AC_LIBOBJ invocations to module description.
13589         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13590         * modules/tanl (configure.ac): ... to here.
13591
13592 2011-05-21  Bruno Haible  <bruno@clisp.org>
13593
13594         cosl: Move AC_LIBOBJ invocations to module description.
13595         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13596         * modules/cosl (configure.ac): ... to here.
13597
13598 2011-05-21  Bruno Haible  <bruno@clisp.org>
13599
13600         sinl: Move AC_LIBOBJ invocations to module description.
13601         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13602         * modules/sinl (configure.ac): ... to here.
13603
13604 2011-05-21  Bruno Haible  <bruno@clisp.org>
13605
13606         logl: Move AC_LIBOBJ invocations to module description.
13607         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13608         * modules/logl (configure.ac): ... to here.
13609
13610 2011-05-21  Bruno Haible  <bruno@clisp.org>
13611
13612         expl: Move AC_LIBOBJ invocations to module description.
13613         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13614         * modules/expl (configure.ac): ... to here.
13615
13616 2011-05-21  Bruno Haible  <bruno@clisp.org>
13617
13618         roundl: Move AC_LIBOBJ invocations to module description.
13619         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13620         * modules/roundl (configure.ac): ... to here.
13621
13622 2011-05-21  Bruno Haible  <bruno@clisp.org>
13623
13624         round: Move AC_LIBOBJ invocations to module description.
13625         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13626         * modules/round (configure.ac): ... to here.
13627
13628 2011-05-21  Bruno Haible  <bruno@clisp.org>
13629
13630         roundf: Move AC_LIBOBJ invocations to module description.
13631         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13632         * modules/roundf (configure.ac): ... to here.
13633
13634 2011-05-21  Bruno Haible  <bruno@clisp.org>
13635
13636         truncl: Move AC_LIBOBJ invocations to module description.
13637         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13638         * modules/truncl (configure.ac): ... to here.
13639
13640 2011-05-21  Bruno Haible  <bruno@clisp.org>
13641
13642         trunc: Move AC_LIBOBJ invocations to module description.
13643         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13644         * modules/trunc (configure.ac): ... to here.
13645
13646 2011-05-21  Bruno Haible  <bruno@clisp.org>
13647
13648         truncf: Move AC_LIBOBJ invocations to module description.
13649         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13650         * modules/truncf (configure.ac): ... to here.
13651
13652 2011-05-21  Bruno Haible  <bruno@clisp.org>
13653
13654         ceill: Move AC_LIBOBJ invocations to module description.
13655         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13656         * modules/ceill (configure.ac): ... to here.
13657
13658 2011-05-21  Bruno Haible  <bruno@clisp.org>
13659
13660         ceil: Move AC_LIBOBJ invocations to module description.
13661         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13662         * modules/ceil (configure.ac): ... to here.
13663
13664 2011-05-21  Bruno Haible  <bruno@clisp.org>
13665
13666         ceilf: Move AC_LIBOBJ invocations to module description.
13667         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13668         * modules/ceilf (configure.ac): ... to here.
13669
13670 2011-05-21  Bruno Haible  <bruno@clisp.org>
13671
13672         floorl: Respect rules for use of AC_LIBOBJ.
13673         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13674         * modules/floorl (configure.ac): ... to here.
13675
13676 2011-05-21  Bruno Haible  <bruno@clisp.org>
13677
13678         floor: Respect rules for use of AC_LIBOBJ.
13679         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13680         * modules/floor (configure.ac): ... to here.
13681
13682 2011-05-21  Bruno Haible  <bruno@clisp.org>
13683
13684         floorf: Move AC_LIBOBJ invocations to module description.
13685         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13686         * modules/floorf (configure.ac): ... to here.
13687
13688 2011-05-20  Bruno Haible  <bruno@clisp.org>
13689
13690         sqrtl: Respect rules for use of AC_LIBOBJ.
13691         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13692         * modules/sqrtl (configure.ac): ... to here.
13693
13694 2011-05-20  Bruno Haible  <bruno@clisp.org>
13695
13696         ldexpl: Respect rules for use of AC_LIBOBJ.
13697         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13698         * modules/ldexpl (configure.ac): ... to here.
13699
13700 2011-05-20  Bruno Haible  <bruno@clisp.org>
13701
13702         frexpl*: Respect rules for use of AC_LIBOBJ.
13703         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13704         invocation from here...
13705         * modules/frexpl (configure.ac): ... to here.
13706         * modules/frexpl-nolibm (configure.ac): ... and here.
13707
13708 2011-05-20  Bruno Haible  <bruno@clisp.org>
13709
13710         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13711         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13712         invocation from here...
13713         * modules/frexp (configure.ac): ... to here.
13714         * modules/frexp-nolibm (configure.ac): ... and here.
13715
13716 2011-05-20  Bruno Haible  <bruno@clisp.org>
13717
13718         isnan: Respect rules for use of AC_LIBOBJ.
13719         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13720         invocations here.
13721         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13722         REPLACE_ISNAN.
13723         * modules/isnand (configure.ac): Likewise.
13724         * modules/isnanl (configure.ac): Likewise.
13725
13726 2011-05-20  Bruno Haible  <bruno@clisp.org>
13727
13728         isnanl*: Respect rules for use of AC_LIBOBJ.
13729         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13730         invocation from here...
13731         * modules/isnanl (configure.ac): ... to here.
13732         * modules/isnanl-nolibm (configure.ac): ... and here.
13733
13734 2011-05-20  Bruno Haible  <bruno@clisp.org>
13735
13736         isnand*: Move AC_LIBOBJ invocations to module description.
13737         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13738         invocation from here...
13739         * modules/isnand (configure.ac): ... to here.
13740         * modules/isnand-nolibm (configure.ac): ... and here.
13741
13742 2011-05-20  Bruno Haible  <bruno@clisp.org>
13743
13744         isnanf*: Move AC_LIBOBJ invocations to module description.
13745         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13746         invocation from here...
13747         * modules/isnanf (configure.ac): ... to here.
13748         * modules/isnanf-nolibm (configure.ac): ... and here.
13749
13750 2011-05-20  Bruno Haible  <bruno@clisp.org>
13751
13752         isnan*: Separate the AC_LIBOBJ invocations.
13753         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13754         AC_LIBOBJ invocation.
13755         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13756         here.
13757         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13758         AC_LIBOBJ invocation.
13759         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13760         here.
13761         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13762         AC_LIBOBJ invocation.
13763         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13764         here.
13765         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13766
13767 2011-05-08  Bruno Haible  <bruno@clisp.org>
13768
13769         isinf: Move AC_LIBOBJ invocations to module description.
13770         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13771         * modules/isinf (configure.ac): ... to here.
13772
13773 2011-05-08  Bruno Haible  <bruno@clisp.org>
13774
13775         isfinite: Move AC_LIBOBJ invocations to module description.
13776         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13777         * modules/isfinite (configure.ac): ... to here.
13778
13779 2011-05-08  Bruno Haible  <bruno@clisp.org>
13780
13781         isblank: Move AC_LIBOBJ invocations to module description.
13782         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13783         here...
13784         * modules/isblank (configure.ac): ... to here.
13785
13786 2011-05-08  Bruno Haible  <bruno@clisp.org>
13787
13788         isapipe: Move AC_LIBOBJ invocations to module description.
13789         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13790         gl_PREREQ_ISAPIPE invocations from here...
13791         * modules/isapipe (configure.ac): ... to here.
13792         (Depends-on): Update condition.
13793
13794 2011-05-08  Bruno Haible  <bruno@clisp.org>
13795
13796         ioctl: Move AC_LIBOBJ invocations to module description.
13797         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13798         invocations from here...
13799         * modules/ioctl (configure.ac): ... to here.
13800         (Depends-on): Update condition.
13801
13802 2011-05-08  Bruno Haible  <bruno@clisp.org>
13803
13804         imaxdiv: Move AC_LIBOBJ invocations to module description.
13805         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13806         invocations from here...
13807         * modules/imaxdiv (configure.ac): ... to here.
13808
13809 2011-05-08  Bruno Haible  <bruno@clisp.org>
13810
13811         imaxabs: Move AC_LIBOBJ invocations to module description.
13812         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13813         invocations from here...
13814         * modules/imaxabs (configure.ac): ... to here.
13815
13816 2011-05-08  Bruno Haible  <bruno@clisp.org>
13817
13818         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13819         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13820         AC_LIBOBJ invocations from here...
13821         * modules/getaddrinfo (configure.ac): ... to here.
13822         (Depends-on): Add conditions.
13823
13824 2011-05-08  Bruno Haible  <bruno@clisp.org>
13825
13826         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13827         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13828         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13829         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13830         (gl_PREREQ_INET_PTON): ... from here.
13831         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13832         gl_PREREQ_INET_PTON here.
13833         (Depends-on): Update condition.
13834
13835 2011-05-08  Bruno Haible  <bruno@clisp.org>
13836
13837         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13838         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13839         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13840         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13841         (gl_PREREQ_INET_NTOP): ... from here.
13842         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13843         gl_PREREQ_INET_NTOP here.
13844         (Depends-on): Update condition.
13845
13846 2011-05-08  Bruno Haible  <bruno@clisp.org>
13847
13848         iconv_open: Move AC_LIBOBJ invocations to module description.
13849         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13850         AC_LIBOBJ invocations from here...
13851         * modules/iconv_open (configure.ac): ... to here.
13852
13853 2011-05-08  Bruno Haible  <bruno@clisp.org>
13854
13855         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13856         If module 'iconv_open' is among the main modules and module
13857         'iconv_open-utf' is among the tests dependencies, then
13858         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13859         return the special iconv_t values. Therefore iconv() and iconv_close()
13860         must support these special iconv_t values, already in lib, not only in
13861         tests.
13862         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13863         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13864         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13865         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13866         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13867         (Depends-on): Add the dependencies of iconv_open-utf.
13868         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13869         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13870         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13871
13872 2011-05-08  Bruno Haible  <bruno@clisp.org>
13873
13874         group-member: Move AC_LIBOBJ invocations to module description.
13875         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13876         gl_PREREQ_GROUP_MEMBER invocations from here...
13877         * modules/group-member (configure.ac): ... to here.
13878
13879 2011-05-08  Bruno Haible  <bruno@clisp.org>
13880
13881         grantpt: Move AC_LIBOBJ invocations to module description.
13882         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13883         invocations from here...
13884         * modules/grantpt (configure.ac): ... to here.
13885
13886 2011-05-08  Bruno Haible  <bruno@clisp.org>
13887
13888         glob: Move AC_LIBOBJ invocations to module description.
13889         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13890         from here...
13891         * modules/glob (configure.ac): ... to here.
13892
13893 2011-05-08  Bruno Haible  <bruno@clisp.org>
13894
13895         getusershell: Move AC_LIBOBJ invocations to module description.
13896         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13897         Move AC_LIBOBJ invocation from here...
13898         * modules/getusershell (configure.ac): ... to here.
13899         (Depends-on): Update condition.
13900
13901 2011-05-08  Bruno Haible  <bruno@clisp.org>
13902
13903         gettimeofday: Move AC_LIBOBJ invocations to module description.
13904         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13905         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13906         gl_PREREQ_GETTIMEOFDAY invocations from here...
13907         * modules/gettimeofday (configure.ac): ... to here.
13908
13909 2011-05-08  Bruno Haible  <bruno@clisp.org>
13910
13911         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13912         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13913         just gl_FUNC_TZSET.
13914         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13915         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13916         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13917         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13918
13919 2011-05-08  Bruno Haible  <bruno@clisp.org>
13920
13921         getsubopt: Move AC_LIBOBJ invocations to module description.
13922         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13923         gl_PREREQ_GETSUBOPT invocations from here...
13924         * modules/getsubopt (configure.ac): ... to here.
13925
13926 2011-05-08  Bruno Haible  <bruno@clisp.org>
13927
13928         getpass-gnu: Move AC_LIBOBJ invocations to module description.
13929         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
13930         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
13931         * modules/getpass-gnu (configure.ac): ... to here.
13932
13933 2011-05-08  Bruno Haible  <bruno@clisp.org>
13934
13935         getpass: Move AC_LIBOBJ invocations to module description.
13936         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
13937         gl_PREREQ_GETPASS invocations from here...
13938         * modules/getpass (configure.ac): ... to here.
13939
13940 2011-05-08  Bruno Haible  <bruno@clisp.org>
13941
13942         getpagesize: Move AC_LIBOBJ invocations to module description.
13943         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
13944         from here...
13945         * modules/getpagesize (configure.ac): ... to here.
13946
13947 2011-05-08  Bruno Haible  <bruno@clisp.org>
13948
13949         getopt: Move AC_LIBOBJ invocations to module description.
13950         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
13951         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
13952         invocations from here...
13953         * modules/getopt-gnu (configure.ac): ... to here.
13954         * modules/getopt-posix (configure.ac): ... and here.
13955         (Depends-on): Update condition.
13956
13957 2011-05-08  Bruno Haible  <bruno@clisp.org>
13958
13959         getopt, argp: Respect rules for use of AC_LIBOBJ.
13960         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
13961         (gl_REPLACE_GETOPT_ALWAYS): New macro.
13962         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
13963         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
13964
13965 2011-05-08  Bruno Haible  <bruno@clisp.org>
13966
13967         getlogin_r: Move AC_LIBOBJ invocations to module description.
13968         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
13969         gl_PREREQ_GETLOGIN_R invocations from here...
13970         * modules/getlogin_r (configure.ac): ... to here.
13971
13972 2011-05-08  Bruno Haible  <bruno@clisp.org>
13973
13974         getlogin: Move AC_LIBOBJ invocations to module description.
13975         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
13976         here...
13977         * modules/getlogin (configure.ac): ... to here.
13978
13979 2011-05-08  Bruno Haible  <bruno@clisp.org>
13980
13981         getloadavg: Move AC_LIBOBJ invocations to module description.
13982         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
13983         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
13984         * modules/getloadavg (configure.ac): ... to here.
13985
13986 2011-05-08  Bruno Haible  <bruno@clisp.org>
13987
13988         gethrxtime: Move AC_LIBOBJ invocations to module description.
13989         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
13990         LIB_GETHRXTIME from here...
13991         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
13992         invocations from here...
13993         * modules/gethrxtime (configure.ac): ... to here.
13994
13995 2011-05-08  Bruno Haible  <bruno@clisp.org>
13996
13997         gethostname: Move AC_LIBOBJ invocations to module description.
13998         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
13999         gl_PREREQ_GETHOSTNAME invocations from here...
14000         * modules/gethostname (configure.ac): ... to here.
14001
14002 2011-05-08  Bruno Haible  <bruno@clisp.org>
14003
14004         getgroups: Move AC_LIBOBJ invocations to module description.
14005         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14006         here...
14007         * modules/getgroups (configure.ac): ... to here.
14008
14009 2011-05-08  Bruno Haible  <bruno@clisp.org>
14010
14011         getdtablesize: Move AC_LIBOBJ invocations to module description.
14012         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14013         invocation from here...
14014         * modules/getdtablesize (configure.ac): ... to here.
14015
14016 2011-05-08  Bruno Haible  <bruno@clisp.org>
14017
14018         getdomainname: Move AC_LIBOBJ invocations to module description.
14019         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14020         gl_PREREQ_GETDOMAINNAME invocations from here...
14021         * modules/getdomainname (configure.ac): ... to here.
14022
14023 2011-05-08  Bruno Haible  <bruno@clisp.org>
14024
14025         getline: Move AC_LIBOBJ invocations to module description.
14026         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14027         invocations from here...
14028         * modules/getline (configure.ac): ... to here.
14029
14030 2011-05-08  Bruno Haible  <bruno@clisp.org>
14031
14032         getline: Simplify.
14033         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14034         It's already handled through the module dependency.
14035
14036 2011-05-08  Bruno Haible  <bruno@clisp.org>
14037
14038         getdelim: Move AC_LIBOBJ invocations to module description.
14039         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14040         and gl_PREREQ_GETDELIM invocations from here...
14041         * modules/getdelim (configure.ac): ... to here.
14042         (Depends-on): Fix condition.
14043
14044 2011-05-08  Bruno Haible  <bruno@clisp.org>
14045
14046         getcwd: Move AC_LIBOBJ invocations to module description.
14047         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14048         invocations from here...
14049         * modules/getcwd (configure.ac): ... to here.
14050
14051 2011-05-08  Bruno Haible  <bruno@clisp.org>
14052
14053         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14054         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14055         here...
14056         * modules/getcwd-lgpl (configure.ac): ... to here.
14057
14058 2011-05-07  Bruno Haible  <bruno@clisp.org>
14059
14060         crypto/gc: Move AC_LIBOBJ invocations to module description.
14061         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14062         * modules/crypto/gc (configure.ac): ... to here.
14063
14064 2011-05-07  Bruno Haible  <bruno@clisp.org>
14065
14066         fwriting: Move AC_LIBOBJ invocations to module description.
14067         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14068         here...
14069         * modules/fwriting (configure.ac): ... to here.
14070
14071 2011-05-07  Bruno Haible  <bruno@clisp.org>
14072
14073         fwritable: Move AC_LIBOBJ invocations to module description.
14074         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14075         here...
14076         * modules/fwritable (configure.ac): ... to here.
14077
14078 2011-05-07  Bruno Haible  <bruno@clisp.org>
14079
14080         futimens: Move AC_LIBOBJ invocations to module description.
14081         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14082         here...
14083         * modules/futimens (configure.ac): ... to here.
14084
14085 2011-05-07  Bruno Haible  <bruno@clisp.org>
14086
14087         ftruncate: Move AC_LIBOBJ invocations to module description.
14088         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14089         gl_PREREQ_FTRUNCATE invocations from here...
14090         * modules/ftruncate (configure.ac): ... to here.
14091
14092 2011-05-07  Bruno Haible  <bruno@clisp.org>
14093
14094         fsync: Move AC_LIBOBJ invocations to module description.
14095         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14096         invocations from here...
14097         * modules/fsync (configure.ac): ... to here.
14098
14099 2011-05-07  Bruno Haible  <bruno@clisp.org>
14100
14101         fsusage: Move AC_LIBOBJ invocations to module description.
14102         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14103         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14104         * modules/fsusage (configure.ac): ... to here.
14105
14106 2011-05-07  Bruno Haible  <bruno@clisp.org>
14107
14108         freopen: Move AC_LIBOBJ invocations to module description.
14109         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14110         invocations from here...
14111         * modules/freopen (configure.ac): ... to here.
14112
14113 2011-05-07  Bruno Haible  <bruno@clisp.org>
14114
14115         free: Move AC_LIBOBJ invocations to module description.
14116         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14117         invocations from here...
14118         * modules/free (configure.ac): ... to here.
14119
14120 2011-05-07  Bruno Haible  <bruno@clisp.org>
14121
14122         freadable: Move AC_LIBOBJ invocations to module description.
14123         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14124         here...
14125         * modules/freadable (configure.ac): ... to here.
14126
14127 2011-05-07  Bruno Haible  <bruno@clisp.org>
14128
14129         fpurge: Move AC_LIBOBJ invocations to module description.
14130         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14131         invocations from here...
14132         * modules/fpurge (configure.ac): ... to here.
14133
14134 2011-05-07  Bruno Haible  <bruno@clisp.org>
14135
14136         fpending: Move AC_LIBOBJ invocations to module description.
14137         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14138         gl_FUNC_FPENDING.
14139         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14140         invocations from here...
14141         * modules/fpending (configure.ac): ... to here.
14142
14143 2011-05-07  Bruno Haible  <bruno@clisp.org>
14144
14145         fopen: Move AC_LIBOBJ invocations to module description.
14146         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14147         invocations from here...
14148         * modules/fopen (configure.ac): ... to here.
14149
14150 2011-05-07  Bruno Haible  <bruno@clisp.org>
14151
14152         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14153         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14154         gl_FUNC_FNMATCH_POSIX.
14155         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14156         invocations from here...
14157         * modules/fnmatch (configure.ac): ... to here.
14158         * modules/fnmatch-gnu (configure.ac): ... and here.
14159
14160 2011-05-07  Bruno Haible  <bruno@clisp.org>
14161
14162         flock: Move AC_LIBOBJ invocations to module description.
14163         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14164         invocations from here...
14165         * modules/flock (configure.ac): ... to here.
14166
14167 2011-05-07  Bruno Haible  <bruno@clisp.org>
14168
14169         fileblocks: Move AC_LIBOBJ invocations to module description.
14170         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14171         gl_PREREQ_FILEBLOCKS invocations from here...
14172         * modules/fileblocks (configure.ac): ... to here.
14173
14174 2011-05-06  Bruno Haible  <bruno@clisp.org>
14175
14176         fflush: Move AC_LIBOBJ invocations to module description.
14177         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14178         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14179         invocations from here...
14180         * modules/fflush (configure.ac): ... to here.
14181
14182 2011-05-06  Bruno Haible  <bruno@clisp.org>
14183
14184         fdopendir: Move AC_LIBOBJ invocations to module description.
14185         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14186         here...
14187         * modules/fdopendir (configure.ac): ... to here.
14188         (Depends-on): Improve conditions.
14189
14190 2011-05-06  Bruno Haible  <bruno@clisp.org>
14191
14192         _Exit: Move AC_LIBOBJ invocations to module description.
14193         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14194         invocations from here...
14195         * modules/_Exit (configure.ac): ... to here.
14196
14197 2011-05-21  Bruno Haible  <bruno@clisp.org>
14198
14199         euidaccess: Respect rules for use of AC_LIBOBJ.
14200         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14201         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14202         from here...
14203         * modules/euidaccess (configure.ac): ... to here.
14204
14205 2011-05-06  Bruno Haible  <bruno@clisp.org>
14206
14207         error: Move AC_LIBOBJ invocations to module description.
14208         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14209         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14210         invocations from here...
14211         * modules/error (configure.ac): ... to here.
14212
14213 2011-05-06  Bruno Haible  <bruno@clisp.org>
14214
14215         duplocale: Move AC_LIBOBJ invocations to module description.
14216         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14217         gl_PREREQ_DUPLOCALE invocations from here...
14218         * modules/duplocale (configure.ac): ... to here.
14219
14220 2011-05-05  Bruno Haible  <bruno@clisp.org>
14221
14222         dirfd: Move AC_LIBOBJ invocations to module description.
14223         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14224         gl_FUNC_DIRFD.
14225         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14226         here...
14227         * modules/dirfd (configure.ac): ... to here.
14228         (Depends-on): Fix condition.
14229
14230 2011-05-05  Bruno Haible  <bruno@clisp.org>
14231
14232         chown: Respect rules for use of AC_LIBOBJ.
14233         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14234         * modules/chown (configure.ac): ... to here.
14235
14236 2011-05-05  Bruno Haible  <bruno@clisp.org>
14237
14238         chdir-long: Move AC_LIBOBJ invocations to module description.
14239         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14240         gl_PREREQ_CHDIR_LONG invocations from here...
14241         * modules/chdir-long (configure.ac): ... to here.
14242
14243 2011-05-05  Bruno Haible  <bruno@clisp.org>
14244
14245         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14246         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14247         from here...
14248         * modules/canonicalize-lgpl (configure.ac): ... to here.
14249
14250 2011-05-05  Bruno Haible  <bruno@clisp.org>
14251
14252         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14253         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14254         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14255         REPLACE_CALLOC.
14256         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14257         * modules/calloc-gnu (configure.ac): Likewise.
14258
14259 2011-05-05  Bruno Haible  <bruno@clisp.org>
14260
14261         btowc: Move AC_LIBOBJ invocations to module description.
14262         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14263         invocations from here...
14264         * modules/btowc (configure.ac): ... to here.
14265
14266 2011-05-21  Bruno Haible  <bruno@clisp.org>
14267
14268         atexit: Move AC_LIBOBJ invocations to module description.
14269         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14270         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14271         here...
14272         * modules/atexit (configure.ac): ... to here.
14273
14274 2011-05-05  Bruno Haible  <bruno@clisp.org>
14275
14276         atoll: Move AC_LIBOBJ invocations to module description.
14277         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14278         invocations from here...
14279         * modules/atoll (configure.ac): ... to here.
14280
14281 2011-05-05  Bruno Haible  <bruno@clisp.org>
14282
14283         argz: Move AC_LIBOBJ invocations to module description.
14284         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14285         * modules/argz (configure.ac): ... to here.
14286
14287 2011-05-05  Bruno Haible  <bruno@clisp.org>
14288
14289         alphasort: Move AC_LIBOBJ invocations to module description.
14290         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14291         gl_PREREQ_ALPHASORT invocations from here...
14292         * modules/alphasort (configure.ac): ... to here.
14293
14294 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14295
14296         verify: new macro verify_expr; verify_true deprecated
14297         * NEWS: Mention this.
14298         * doc/verify.texi (Compile-time Assertions): Document this.
14299         * lib/verify.h (verify_true): Deprecate.
14300         (verify_expr): New macro.
14301         * tests/test-verify.c (function): Test verify_expr.
14302
14303 2011-06-14  Jim Meyering  <meyering@redhat.com>
14304
14305         init.sh: give more portable redirection-related advice in a comment
14306         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14307         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14308         for lots of discussion.  Stefano Lattarini suggested the solution
14309         of putting "9>&2" after the command.  Reported by Bruno Haible.
14310
14311 2011-06-13  Bruno Haible  <bruno@clisp.org>
14312
14313         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14314         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14315         'none'.
14316
14317 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14318
14319         ftoastr: use strtof only if HAVE_STRTOF
14320         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14322         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14323         * modules/ftoastr (configure.ac): Check for strtof.
14324
14325 2011-06-13  Bruno Haible  <bruno@clisp.org>
14326
14327         gnulib-tool: Addendum to 2011-06-08 commit.
14328         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14329         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14330
14331 2011-06-13  Bruno Haible  <bruno@clisp.org>
14332
14333         fseeko: Provide a non-inline replacement of fseek().
14334         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14335         * modules/fseeko (Depends-on): Add fseek.
14336         * modules/fseek (License): Change to LGPLv2+.
14337
14338 2011-06-13  Bruno Haible  <bruno@clisp.org>
14339
14340         ftello: Provide a non-inline replacement of ftell().
14341         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14342         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14343         not have ftello() (such as on mingw).
14344         * modules/ftello (Depends-on): Add ftell.
14345         * modules/ftell (License): Change to LGPLv2+.
14346
14347 2011-05-07  Bruno Haible  <bruno@clisp.org>
14348
14349         ftell: Move AC_LIBOBJ invocations to module description.
14350         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14351         * modules/ftell (configure.ac): ... to here.
14352
14353 2011-05-07  Bruno Haible  <bruno@clisp.org>
14354
14355         ftello: Respect rules for use of AC_LIBOBJ.
14356         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14357         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14358         here...
14359         * modules/ftello (configure.ac): ... to here.
14360
14361 2011-05-07  Bruno Haible  <bruno@clisp.org>
14362
14363         fseeko: Simplify.
14364         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14365         (gl_FUNC_FSEEKO): Inline it here.
14366
14367 2011-05-07  Bruno Haible  <bruno@clisp.org>
14368
14369         fseek: Move AC_LIBOBJ invocations to module description.
14370         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14371         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14372         * modules/fseek (configure.ac): ... to here.
14373
14374 2011-05-07  Bruno Haible  <bruno@clisp.org>
14375
14376         fseek: Respect rules for use of AC_LIBOBJ.
14377         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14378         here...
14379         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14380
14381 2011-05-07  Bruno Haible  <bruno@clisp.org>
14382
14383         fseeko: Respect rules for use of AC_LIBOBJ.
14384         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14385         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14386         here...
14387         * modules/fseeko (configure.ac): ... to here.
14388
14389 2011-06-13  Bruno Haible  <bruno@clisp.org>
14390
14391         gnulib-tool: Allow comments in the 'Depends-on' section.
14392         * doc/gnulib.texi (Module description): Mention comment syntax in the
14393         Depends-on section.
14394         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14395
14396 2011-06-13  Bruno Haible  <bruno@clisp.org>
14397
14398         file-set.h: guard __attibute__ use, now that it's not always defined
14399         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14400         versions that support it.  This fixes a coreutils build failure with
14401         the vendor cc on HP-UX 11.31.
14402
14403 2011-06-12  Bruno Haible  <bruno@clisp.org>
14404
14405         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14406         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14407         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14408         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14409         (acl, aclsort): New declarations.
14410         (aclv_nontrivial): New declaration.
14411         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14412         (file_has_acl): Read also the second kind of HP-UX ACLs.
14413         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14414         kind of HP-UX ACLs if the first kind fails.
14415         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14416         second kind of HP-UX ACLs.
14417         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14418         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14419         agree.
14420         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14421         hpuxjfs.
14422         Handle hpuxjfs.
14423         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14424         hpuxjfs.
14425         Handle hpuxjfs.
14426         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14427         (func_test_same_acls): Use both lsacl and getacl.
14428         Handle hpuxjfs.
14429         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14430         (func_test_same_acls): Use both lsacl and getacl.
14431         Handle hpuxjfs.
14432
14433 2011-06-12  Bruno Haible  <bruno@clisp.org>
14434
14435         acl: Complete the 2010-08-10 fix.
14436         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14437         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14438         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14439         explicitly.
14440         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14441         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14442
14443 2011-06-12  Bruno Haible  <bruno@clisp.org>
14444
14445         spawn-pipe tests: Comments.
14446         * tests/test-spawn-pipe-child.c (main): Update comment.
14447         Reported by James Youngman <jay@gnu.org>.
14448
14449 2011-06-11  James Youngman  <jay@gnu.org>
14450
14451         New module 'stat-size'.
14452         * modules/stat-size: New module.  Provides macros for accessing
14453         file size information in instances of struct stat.  Depends on the
14454         fileblocks module because it calls st_blocks.
14455         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14456         * doc/gnulib.texi: Include stat-size.texi.
14457         * doc/stat-size.texi: Documentation for this module.
14458         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14459         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14460         AC_STRUCT_ST_BLOCKS.
14461
14462 2011-06-09  Bruno Haible  <bruno@clisp.org>
14463
14464         thread: Support pthreads-win32.
14465         * lib/glthread/thread.h (gl_thread_self): Define differently on
14466         pthreads-win32.
14467         (gl_null_thread): New declaration.
14468         (gl_thread_self_pointer): New macro.
14469         * lib/glthread/thread.c (gl_null_thread): New constant.
14470         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14471         gl_thread_self.
14472         * tests/test-tls.c: Likewise.
14473         Suggested by Paul Eggert. Reported by Eric Blake.
14474
14475 2011-06-09  Bruno Haible  <bruno@clisp.org>
14476
14477         thread: Fix confusion between NULL and 0.
14478         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14479         Reported by Paul Eggert.
14480
14481 2011-06-09  Bruno Haible  <bruno@clisp.org>
14482
14483         spawn-pipe tests: Avoid test failure on HP-UX 11.
14484         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14485         is closed.
14486
14487 2011-06-09  Bruno Haible  <bruno@clisp.org>
14488
14489         acl tests: Fix compilation error on HP-UX 11.
14490         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14491
14492 2011-06-09  Bruno Haible  <bruno@clisp.org>
14493
14494         rmdir: Avoid test failure on HP-UX 10.20.
14495         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14496         EEXIST.
14497
14498 2011-06-08  Eric Blake  <eblake@redhat.com>
14499
14500         perror: fix test on mingw
14501         * modules/perror-tests (Depends-on): Add dup2.
14502
14503         strerror_r-posix: fix on MacOS
14504         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14505         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14506         logic bug.
14507         * lib/strerror_r.c (strerror_r): Fix the bug.
14508         * lib/strerror.c (strerror): Likewise.
14509         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14510         problem.
14511         * doc/posix-functions/strerror.texi (strerror): Likewise.
14512         * doc/posix-functions/perror.texi (perror): Likewise.
14513         * tests/test-strerror.c (main): Enhance test.
14514         * tests/test-strerror_r.c (main): Likewise.
14515
14516 2011-06-08  Bruno Haible  <bruno@clisp.org>
14517
14518         gnulib-tool: Better isolation between different gnulib-tool invocations.
14519         * gnulib-tool: New option --witness-c-macro.
14520         (witness_c_macro): New variable.
14521         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14522         AM_CPPFLAGS define it as a C macro.
14523         (func_emit_tests_Makefile_am): Likewise.
14524         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14525         read it from there.
14526         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14527         m4_define, not AC_DEFUN.
14528         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14529         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14530         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14531         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14532         s|...|...|, to substitute the values of the GNULIB_* module indicator
14533         variables.
14534         * modules/dirent (Makefile.am): Likewise.
14535         * modules/fcntl-h (Makefile.am): Likewise.
14536         * modules/iconv-h (Makefile.am): Likewise.
14537         * modules/langinfo (Makefile.am): Likewise.
14538         * modules/locale (Makefile.am): Likewise.
14539         * modules/math (Makefile.am): Likewise.
14540         * modules/netdb (Makefile.am): Likewise.
14541         * modules/poll-h (Makefile.am): Likewise.
14542         * modules/pty (Makefile.am): Likewise.
14543         * modules/search (Makefile.am): Likewise.
14544         * modules/signal (Makefile.am): Likewise.
14545         * modules/spawn (Makefile.am): Likewise.
14546         * modules/stdio (Makefile.am): Likewise.
14547         * modules/stdlib (Makefile.am): Likewise.
14548         * modules/string (Makefile.am): Likewise.
14549         * modules/sys_ioctl (Makefile.am): Likewise.
14550         * modules/sys_select (Makefile.am): Likewise.
14551         * modules/sys_socket (Makefile.am): Likewise.
14552         * modules/sys_stat (Makefile.am): Likewise.
14553         * modules/sys_times (Makefile.am): Likewise.
14554         * modules/sys_utsname (Makefile.am): Likewise.
14555         * modules/sys_wait (Makefile.am): Likewise.
14556         * modules/termios (Makefile.am): Likewise.
14557         * modules/time (Makefile.am): Likewise.
14558         * modules/unistd (Makefile.am): Likewise.
14559         * modules/wchar (Makefile.am): Likewise.
14560
14561 2011-06-08  Eric Blake  <eblake@redhat.com>
14562
14563         strerror: simplify replacement
14564         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14565         * modules/strerror (configure.ac): No prereqs needed here...
14566         * modules/strerror-override (configure.ac): ...but this needs it.
14567         (Files): Add file for needed prereq macro.
14568
14569 2011-06-08  Bruno Haible  <bruno@clisp.org>
14570
14571         strerror_r-posix: Tweaks.
14572         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14573         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14574         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14575         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14576         (gl_FUNC_STRERROR_R): ... to here.
14577         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14578
14579 2011-06-07  Eric Blake  <eblake@redhat.com>
14580
14581         perror: document fixed bugs
14582         * doc/posix-functions/perror.texi (perror): Document recent
14583         patches.
14584
14585 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14586
14587         stat-time: get_stat_birthtime failure is better-defined
14588         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14589         return a timestamp whose tv_sec and tv_nsec values are both -1.
14590         Previously, the spec said only that the tv_nsec value was negative.
14591         This upward-compatible change simplifies GNU tar a bit.
14592
14593 2011-06-07  Eric Blake  <eblake@redhat.com>
14594
14595         strerror_r-posix: work around cygwin 1.7.9
14596         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14597         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14598         bug without replacing strerror_r.
14599         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14600         strerror_r is buggy, but without requiring strerror_r compilation.
14601         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14602
14603         test-perror: relax test to ignore cygwin bug
14604         * tests/test-perror2.c (main): Relax test on requiring detection
14605         of stream errors, and use unbuffered stream.
14606         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14607         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14608         * doc/posix-functions/fputc.texi (fputc): Likewise.
14609         * doc/posix-functions/fputs.texi (fputs): Likewise.
14610         * doc/posix-functions/fputws.texi (fputws): Likewise.
14611         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14612         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14613         * doc/posix-functions/getopt.texi (getopt): Likewise.
14614         * doc/posix-functions/perror.texi (perror): Likewise.
14615         * doc/posix-functions/printf.texi (printf): Likewise.
14616         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14617         * doc/posix-functions/psignal.texi (psignal): Likewise.
14618         * doc/posix-functions/putc.texi (putc): Likewise.
14619         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14620         Likewise.
14621         * doc/posix-functions/putchar.texi (putchar): Likewise.
14622         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14623         Likewise.
14624         * doc/posix-functions/puts.texi (puts): Likewise.
14625         * doc/posix-functions/putwc.texi (putwc): Likewise.
14626         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14627         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14628         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14629         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14630         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14631         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14632         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14633         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14634
14635 2011-05-22  Bruno Haible  <bruno@clisp.org>
14636
14637         strerror: Move AC_LIBOBJ invocations to module description.
14638         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14639         gl_PREREQ_STRERROR invocations from here...
14640         * modules/strerror (configure.ac): ... to here.
14641
14642 2011-05-21  Bruno Haible  <bruno@clisp.org>
14643
14644         perror: Use common idiom.
14645         * modules/perror (configure.ac): Reorder statements.
14646
14647 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14648
14649         tests: fix usage message in 'mktempd_'
14650         * tests/init.sh (mktempd_): In the usage message, use literal
14651         'mktempd_', not '$ME' (which is even undefined), as the name of
14652         the subroutine.
14653
14654 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14655
14656         tests init: new function 'fatal_', for hard errors
14657         Before this patch, the only way offered by tests/init.sh to
14658         properly signal a hard error was the `framework_failure_'
14659         function.  But the error message issued by that function,
14660         as its name would suggest, refers to a set-up failure in the
14661         testsuite, while hard errors can obviously also be due to
14662         other reasons.  The best way to fix this inconsistency is to
14663         introduce a new function with a more general error message.
14664         * tests/init.sh (fatal_): New function.
14665
14666 2011-06-06  Eric Blake  <eblake@redhat.com>
14667
14668         canonicalize-lgpl: use common idiom
14669         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14670         over newer POSIX -Rf.
14671         Reported by Bruno Haible.
14672
14673         canonicalize-lgpl: work around AIX realpath bug
14674         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14675         * doc/posix-functions/realpath.texi (realpath): Document it.
14676         Reported by Bruno Haible.
14677
14678         strerror: work around FreeBSD bug
14679         * lib/strerror.c (strerror): Special case 0.
14680         Reported by Bruno Haible.
14681
14682         strerror-override: avoid bloating errno module
14683         * modules/errno (Files, configure.ac): Move replacement strings...
14684         * modules/strerror-override: ...to new module.
14685         * modules/strerror (Depends-on): Add strerror-override.
14686         * modules/strerror_r-posix (Depends-on): Likewise.
14687         * MODULES.html.sh: Document new module.
14688         Reported by Bruno Haible.
14689
14690 2011-06-06  Bruno Haible  <bruno@clisp.org>
14691
14692         spawn-pipe tests: Rename program.
14693         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14694         * tests/test-spawn-pipe-child.c: Update comment.
14695         * tests/test-spawn-pipe.sh: Update.
14696         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14697
14698         spawn-pipe tests: Link the child program only against libc.
14699         * tests/test-spawn-pipe-child.c: New file, extracted from
14700         tests/test-spawn-pipe.c.
14701         (main): Expect only one argument.
14702         (is_open): New function, copied from tests/test-pipe.c.
14703         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14704         (child_main): Remove function.
14705         (test_pipe): Pass only one argument to the child program.
14706         (main): Remove child process code. Expect the child program's name as
14707         first argument.
14708         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14709         argument.
14710         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14711         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14712         test-spawn-pipe-child against no libraries.
14713
14714 2011-06-06  Bruno Haible  <bruno@clisp.org>
14715
14716         careadlinkat: Avoid mismatch between ssize_t and int.
14717         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14718         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14719
14720 2011-06-06  Jim Meyering  <meyering@redhat.com>
14721
14722         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14723         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14724         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14725
14726 2011-06-05  Bruno Haible  <bruno@clisp.org>
14727
14728         ansi-c++-opt: Interoperability with libtool.
14729         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14730         set the variable to "no", not to ":".
14731         * NEWS: Mention the change.
14732
14733 2011-06-05  Bruno Haible  <bruno@clisp.org>
14734
14735         acl: Fix test failure on AIX 7.
14736         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14737         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14738
14739 2011-06-05  Bruno Haible  <bruno@clisp.org>
14740
14741         pipe-filter-ii: Fix test failure on AIX and IRIX.
14742         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14743         with EAGAIN, retry with a smaller buffer size.
14744
14745 2011-06-05  Bruno Haible  <bruno@clisp.org>
14746
14747         localename: Fix link dependencies.
14748         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14749         * modules/localename-tests (Makefile.am): Link test-localename with
14750         $(LIBTHREAD).
14751
14752 2011-06-05  Bruno Haible  <bruno@clisp.org>
14753
14754         error: Avoid gcc warning.
14755         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14756
14757 2011-06-05  Bruno Haible  <bruno@clisp.org>
14758
14759         unsetenv: Avoid gcc warning.
14760         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14761
14762 2011-06-05  Bruno Haible  <bruno@clisp.org>
14763
14764         setenv: Avoid gcc warning.
14765         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14766
14767 2011-06-05  Bruno Haible  <bruno@clisp.org>
14768
14769         sys_select: Ensure memset is declared also on AIX 7.
14770         * lib/sys_select.in.h: Include <string.h> also on AIX.
14771         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14772         self-contained also on AIX 7.1.
14773
14774 2011-06-04  Jim Meyering  <meyering@redhat.com>
14775
14776         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14777         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14778         function name, "error".
14779         (_gl_translatable_diag_func_re): New configurable variable.
14780
14781 2011-06-04  Bruno Haible  <bruno@clisp.org>
14782
14783         getopt: Avoid gcc warning.
14784         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14785
14786 2011-06-04  Bruno Haible  <bruno@clisp.org>
14787
14788         strerror_r: Fix comments.
14789         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14790         commit.
14791
14792 2011-06-04  Bruno Haible  <bruno@clisp.org>
14793
14794         perror: Fix compilation error.
14795         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14796         Undefine fprintf, not sprintf.
14797         * modules/perror (Depends-on): Remove intprops, verify.
14798
14799 2011-06-04  Bruno Haible  <bruno@clisp.org>
14800
14801         setlocale: Enable replacement on Cygwin 1.5.
14802         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14803         Cygwin 1.5.x.
14804         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14805         LC_CTYPE category also exists on Cygwin 1.5.x.
14806
14807 2011-06-04  Bruno Haible  <bruno@clisp.org>
14808
14809         strerror-override: Don't disable symbol renamings.
14810         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14811         * lib/strerror-override.c: Include config.h.
14812         (strerror_override): Don't undefine.
14813
14814 2011-06-03  Bruno Haible  <bruno@clisp.org>
14815
14816         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14817         * lib/localename.h: Update copyright header.
14818         * lib/localename.c: Likewise.
14819         * lib/relocatable.h: Likewise.
14820         * lib/relocatable.c: Likewise.
14821
14822 2011-06-02  Bruno Haible  <bruno@clisp.org>
14823
14824         doc: Fix a module name.
14825         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14826
14827 2011-06-02  Bruno Haible  <bruno@clisp.org>
14828
14829         pipe2: Remove dependency on 'nonblocking' module.
14830         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14831         O_NONBLOCK is defined by gnulib.
14832         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14833         is zero.
14834         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14835         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14836         defined by gnulib.
14837         (get_nonblocking_flag): New function.
14838         (main): Test O_NONBLOCK flag only if it is nonzero.
14839         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14840
14841 2011-06-03  Jim Meyering  <meyering@redhat.com>
14842
14843         maint: three new prohibit-header-without-use rules
14844         Prohibit use of cloexec.h, posixver.h, same.h without use.
14845         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14846         (sc_prohibit_posixver_without_use): Likewise.
14847         (sc_prohibit_same_without_use): Likewise.
14848
14849 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14850
14851         allocator: 'die' routine is now given requested size
14852         * lib/allocator.h (struct allocator.die): New size arg.
14853         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14854         If the actual problem is an ssize_t limitation, not a size_t or
14855         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14856
14857 2011-06-01  Eric Blake  <eblake@redhat.com>
14858
14859         strerror: drop strerror_r dependency
14860         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14861         * lib/strerror-override.c (strerror_override): ...to new file.
14862         * lib/strerror-override.h: Add prototype.
14863         * lib/strerror-impl.h: Delete.
14864         * lib/strerror.c (strerror): New implementation.
14865         * modules/errno (Files): Add new files.
14866         (configure.ac): Compile new file as appropriate.
14867         * modules/strerror (Files): Drop unused file.
14868         (Depends-on): Drop strerror_r-posix.
14869         * MODULES.html.sh: Document strerror_r-posix.
14870         Requested by Sam Steingold.
14871
14872         perror: call strerror_r directly
14873         * modules/perror (Files): Drop strerror-impl.h.
14874         * lib/perror.c (perror): Use our own stack buffer, rather than
14875         calling a wrapper that uses static storage.
14876         * doc/posix-functions/perror.texi (perror): Document a limitation
14877         of our replacement.
14878
14879         strerror_r: fix includes for FreeBSD
14880         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14881         since we use abort on some platforms.
14882         Reported by Matthias Bolte.
14883
14884 2011-05-31  Bruno Haible  <bruno@clisp.org>
14885
14886         Fix link errors in tests: openat-die uses gettext-h.
14887         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14888         against $(LIBINTL).
14889         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14890         against $(LIBINTL).
14891         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14892         $(LIBINTL).
14893         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14894         against $(LIBINTL).
14895         * modules/linkat-tests (Makefile.am): Link test-linkat against
14896         $(LIBINTL).
14897         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14898         $(LIBINTL).
14899         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14900         against $(LIBINTL).
14901         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14902         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14903         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14904         $(LIBINTL).
14905         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14906         $(LIBINTL).
14907         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14908         $(LIBINTL).
14909         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14910
14911 2011-05-31  Bruno Haible  <bruno@clisp.org>
14912
14913         Fix link errors in tests: wait-process uses gettext-h.
14914         * modules/nonblocking-pipe-tests (Makefile.am): Set
14915         test_nonblocking_pipe_main_LDADD.
14916         * modules/nonblocking-socket-tests (Makefile.am): Link
14917         test-nonblocking-socket-main against $(LIBINTL).
14918         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14919
14920 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14921
14922         assert-h: work around 'verify' incompatibility
14923         * lib/verify.h: Use @...@ directives, not ifdef.
14924         * modules/assert-h (assert.h): Implement the directives.
14925         (assert.h): Substitute the symbol-prefix more consistently.
14926
14927 2011-05-29  Jim Meyering  <meyering@redhat.com>
14928
14929         trim: remove three superfluous assignments
14930         * lib/trim.c (trim2): Remove three superfluous assignments
14931         and correct brace positioning.
14932
14933 2011-05-29  Bruno Haible  <bruno@clisp.org>
14934
14935         wctype-h: Avoid namespace pollution on Solaris 2.6.
14936         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
14937         identifiers.
14938         * doc/posix-headers/wctype.texi: Mention the problem.
14939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14940
14941 2011-05-28  Jim Meyering  <meyering@redhat.com>
14942
14943         parse-datetime.y: accommodate -Wstrict-overflow
14944         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
14945         placate -Wstrict-overflow.
14946
14947         trim: avoid a warning from -O2 -Wstrict-overflow
14948         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
14949
14950 2011-05-29  Bruno Haible  <bruno@clisp.org>
14951
14952         gnulib-tool: Fix bug in yesterday's commit.
14953         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
14954         twice.
14955
14956 2011-05-29  Bruno Haible  <bruno@clisp.org>
14957
14958         Allow multiple gnulib generated include files to be combined.
14959         * gnulib-tool (func_compute_include_guard_prefix): New function.
14960         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
14961         ${gl_include_guard_prefix} references.
14962         (func_import, func_create_testdir): Invoke
14963         func_compute_include_guard_prefix.
14964         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
14965         * lib/ctype.in.h: Likewise.
14966         * lib/dirent.in.h: Likewise.
14967         * lib/errno.in.h: Likewise.
14968         * lib/fcntl.in.h: Likewise.
14969         * lib/float.in.h: Likewise.
14970         * lib/getopt.in.h: Likewise.
14971         * lib/iconv.in.h: Likewise.
14972         * lib/langinfo.in.h: Likewise.
14973         * lib/locale.in.h: Likewise.
14974         * lib/math.in.h: Likewise.
14975         * lib/netdb.in.h: Likewise.
14976         * lib/netinet_in.in.h: Likewise.
14977         * lib/poll.in.h: Likewise.
14978         * lib/pthread.in.h: Likewise.
14979         * lib/pty.in.h: Likewise.
14980         * lib/sched.in.h: Likewise.
14981         * lib/se-selinux.in.h: Likewise.
14982         * lib/search.in.h: Likewise.
14983         * lib/signal.in.h: Likewise.
14984         * lib/spawn.in.h: Likewise.
14985         * lib/stdarg.in.h: Likewise.
14986         * lib/stddef.in.h: Likewise.
14987         * lib/stdint.in.h: Likewise.
14988         * lib/stdio.in.h: Likewise.
14989         * lib/stdlib.in.h: Likewise.
14990         * lib/string.in.h: Likewise.
14991         * lib/strings.in.h: Likewise.
14992         * lib/sys_file.in.h: Likewise.
14993         * lib/sys_ioctl.in.h: Likewise.
14994         * lib/sys_select.in.h: Likewise.
14995         * lib/sys_socket.in.h: Likewise.
14996         * lib/sys_stat.in.h: Likewise.
14997         * lib/sys_time.in.h: Likewise.
14998         * lib/sys_times.in.h: Likewise.
14999         * lib/sys_uio.in.h: Likewise.
15000         * lib/sys_utsname.in.h: Likewise.
15001         * lib/sys_wait.in.h: Likewise.
15002         * lib/sysexits.in.h: Likewise.
15003         * lib/termios.in.h: Likewise.
15004         * lib/time.in.h: Likewise.
15005         * lib/unistd.in.h: Likewise.
15006         * lib/wchar.in.h: Likewise.
15007         * lib/wctype.in.h: Likewise.
15008         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15009         * modules/ctype (Makefile.am): Likewise.
15010         * modules/dirent (Makefile.am): Likewise.
15011         * modules/errno (Makefile.am): Likewise.
15012         * modules/fcntl-h (Makefile.am): Likewise.
15013         * modules/float (Makefile.am): Likewise.
15014         * modules/getopt-posix (Makefile.am): Likewise.
15015         * modules/iconv-h (Makefile.am): Likewise.
15016         * modules/langinfo (Makefile.am): Likewise.
15017         * modules/locale (Makefile.am): Likewise.
15018         * modules/math (Makefile.am): Likewise.
15019         * modules/netdb (Makefile.am): Likewise.
15020         * modules/netinet_in (Makefile.am): Likewise.
15021         * modules/poll-h (Makefile.am): Likewise.
15022         * modules/pthread (Makefile.am): Likewise.
15023         * modules/pty (Makefile.am): Likewise.
15024         * modules/sched (Makefile.am): Likewise.
15025         * modules/search (Makefile.am): Likewise.
15026         * modules/selinux-h (Makefile.am): Likewise.
15027         * modules/signal (Makefile.am): Likewise.
15028         * modules/spawn (Makefile.am): Likewise.
15029         * modules/stdarg (Makefile.am): Likewise.
15030         * modules/stddef (Makefile.am): Likewise.
15031         * modules/stdint (Makefile.am): Likewise.
15032         * modules/stdio (Makefile.am): Likewise.
15033         * modules/stdlib (Makefile.am): Likewise.
15034         * modules/string (Makefile.am): Likewise.
15035         * modules/strings (Makefile.am): Likewise.
15036         * modules/sys_file (Makefile.am): Likewise.
15037         * modules/sys_ioctl (Makefile.am): Likewise.
15038         * modules/sys_select (Makefile.am): Likewise.
15039         * modules/sys_socket (Makefile.am): Likewise.
15040         * modules/sys_stat (Makefile.am): Likewise.
15041         * modules/sys_time (Makefile.am): Likewise.
15042         * modules/sys_times (Makefile.am): Likewise.
15043         * modules/sys_uio (Makefile.am): Likewise.
15044         * modules/sys_utsname (Makefile.am): Likewise.
15045         * modules/sys_wait (Makefile.am): Likewise.
15046         * modules/sysexits (Makefile.am): Likewise.
15047         * modules/termios (Makefile.am): Likewise.
15048         * modules/time (Makefile.am): Likewise.
15049         * modules/unistd (Makefile.am): Likewise.
15050         * modules/wchar (Makefile.am): Likewise.
15051         * modules/wctype-h (Makefile.am): Likewise.
15052         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15053
15054 2011-05-29  Bruno Haible  <bruno@clisp.org>
15055
15056         assert-h: Allow multiple gnulib generated replacements to coexist.
15057         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15058
15059 2011-05-29  Bruno Haible  <bruno@clisp.org>
15060
15061         argp: Allow coexistence with strerror_r-posix module.
15062         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15063         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15064         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15065         not the glibc signature.
15066
15067 2011-05-28  Bruno Haible  <bruno@clisp.org>
15068
15069         gnulib-tool: Alternative structure of testdirs, similar to --import.
15070         * gnulib-tool: New option --single-configure.
15071         (func_usage): Document it.
15072         (single_configure): New variable.
15073         (func_modules_transitive_closure_separately,
15074         func_modules_transitive_closure_separately,
15075         func_determine_use_libtests, func_modules_add_dummy_separately,
15076         func_modules_to_filelist_separately): New functions, extracted from
15077         func_import.
15078         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15079         (func_import): Use the new functions.
15080         (func_create_testdir): Set final_modules. Handle $single_configure =
15081         true case.
15082
15083 2011-05-28  Bruno Haible  <bruno@clisp.org>
15084
15085         getloadavg: Remove an unreliable safety check.
15086         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15087         getloadavg.c is in place.
15088         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15089         Reported by Sam Steingold <sds@gnu.org>.
15090
15091 2011-05-28  Bruno Haible  <bruno@clisp.org>
15092
15093         doc: Cleanup yet another file produced by texinfo.tex.
15094         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15095
15096 2011-05-28  Bruno Haible  <bruno@clisp.org>
15097
15098         Finish the conditional dependencies mechanism.
15099         * gnulib-tool: New option --no-conditional-dependencies.
15100         (func_usage): Document it. Don't mark --conditional-dependencies as
15101         experimental.
15102         (cond_dependencies): The possible values can now be true, false, empty.
15103         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15104         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15105         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15106
15107 2011-05-28  Bruno Haible  <bruno@clisp.org>
15108
15109         doc: Use a recent texinfo.tex.
15110         * doc/Makefile (tex_opts): New variable.
15111         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15112
15113 2011-05-28  Jim Meyering  <meyering@redhat.com>
15114
15115         intprops.h: adjust comment to match code change
15116         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15117         only once, it *may* have side effects.  Also fix an unrelated typo.
15118         (_GL_INT_SIGNED): Likewise.
15119
15120 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15121
15122         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15123
15124 2011-05-26  Bruno Haible  <bruno@clisp.org>
15125
15126         mbsrchr: Avoid collision with system function on Interix.
15127         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15128         Reported by Markus Duft <mduft@gentoo.org>.
15129
15130 2011-05-15  James Youngman  <jay@gnu.org>
15131
15132         getopt: for ambiguous options, enumerate the possibilities.
15133         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15134         the ambiguous options when an ambiguous prefix is given. This was
15135         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15136         glibc change was
15137         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15138
15139 2011-05-25  Eric Blake  <eblake@redhat.com>
15140
15141         getcwd: work around mingw bug
15142         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15143         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15144         Reported by Matthias Bolte.
15145
15146 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15147
15148         test-intprops: disable -Wtype-limits diagnostics
15149         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15150         diagnostics.  Otherwise, the integer overflow macros generate many
15151         diagnostics.  Reported by Jim Meyering in
15152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15153
15154         intprops: shorten, to pacify gcc -Woverlength-strings
15155         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15156         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15157         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15158         likely to run afoul of C compiler limits for string constant lengths.
15159         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15160
15161 2011-05-24  Eric Blake  <eblake@redhat.com>
15162
15163         docs: document recently fixed glibc printf bug
15164         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15165         * doc/posix-functions/printf.texi (printf): Likewise.
15166         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15167         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15168
15169         closein-tests: convert to init.sh
15170         * modules/closein-tests (Files): Add init.sh
15171         * tests/test-closein.sh Use it.
15172
15173         yesno-tests: convert to init.sh
15174         * modules/yesno-tests (Files): Add init.sh.
15175         * tests/test-yesno.sh: Use it.
15176
15177         atexit-tests: ensure reliable exit status
15178         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15179         Reported by Bruno Haible.
15180
15181 2011-05-24  Bruno Haible  <bruno@clisp.org>
15182
15183         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15184         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15185         gl_PREREQ_STRERROR_R invocations from here...
15186         * modules/strerror_r-posix (configure.ac): ... to here.
15187
15188 2011-05-24  Eric Blake  <eblake@redhat.com>
15189
15190         strerror_r: fix missing header
15191         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15192
15193         strerror_r: fix AIX test failures
15194         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15195         ERANGE failure.
15196
15197         strerror_r: fix Solaris test failures
15198         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15199         failures.
15200         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15201
15202         strerror_r: enforce POSIX recommendations
15203         * lib/strerror_r.c (safe_copy): New helper method.
15204         (strerror_r): Guarantee a non-empty string.
15205         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15206         recent POSIX rulings and to match our strerror guarantees.
15207         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15208
15209 2011-05-24  Jim Meyering  <meyering@redhat.com>
15210
15211         test-perror2.c: avoid warning about unused variable
15212         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15213
15214 2011-05-24  Eric Blake  <eblake@redhat.com>
15215
15216         perror: avoid spurious test failure on HP-UX
15217         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15218
15219         tests: fix logic bug in init.sh
15220         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15221         shell.
15222
15223 2011-05-24  Jim Meyering  <meyering@redhat.com>
15224
15225         utimensat: do not reference an out-of-scope buffer
15226         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15227         declared in an inner scope, yet "times" would be dereferenced outside
15228         the scope in which "ts" was valid.
15229         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15230         of ts[2] "out/up", so that the use of aliased "times" (via
15231         "times = ts;") does not end up referencing an out-of-scope "ts"
15232
15233         opendir-safer.c: don't clobber errno; don't close negative FD
15234         * lib/opendir-safer.c (opendir_safer):
15235         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15236         file descriptor, and more importantly, don't clobber the
15237         offending errno value with EINVAL.  Before, upon failure
15238         of dup_safer, we would pass the negative file descriptor to
15239         fdopendir, which would clobber errno.
15240
15241 2011-05-23  Bruno Haible  <bruno@clisp.org>
15242
15243         idcache: Fix module description.
15244         * modules/idcache (Include): Set to "idcache.h".
15245
15246 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15247
15248         gnulib-tool: fix portability problem with MacOS sed
15249         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15250         before the "}".  Problem reported by Leo in
15251         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15252         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15253         sed_extract_condition1, sed_extract_condition2.
15254
15255 2011-05-23  Bruno Haible  <bruno@clisp.org>
15256
15257         hash: Simplify autoconf macro.
15258         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15259
15260 2011-05-23  Bruno Haible  <bruno@clisp.org>
15261
15262         getugroups: Fix module description.
15263         * modules/getugroups (Include): Set to "getugroups.h".
15264
15265 2011-05-23  Bruno Haible  <bruno@clisp.org>
15266
15267         linkat: Simplify autoconf macro.
15268         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15269
15270 2011-05-23  Bruno Haible  <bruno@clisp.org>
15271             Eric Blake  <eblake@redhat.com>
15272
15273         linkat, renameat: Update dependencies.
15274         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15275         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15276         symlinkat.
15277
15278 2011-05-23  Jim Meyering  <meyering@redhat.com>
15279
15280         maint.mk: more tight_scope improvements
15281         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15282         (_gl_TS_headers): Define only in if-0'd block.
15283         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15284         sometimes we must *not* use it.  Adjust uses accordingly.
15285         (sc_tight_scope): Use much simpler grep-based test to determine
15286         whether we skip this rule.
15287
15288         maint.mk: generalize/improve the tight-scope rule
15289         * top/maint.mk: Emit a warning when the test is skipped.
15290         (_gl_TS_dir): Add $(srcdir)/ prefix.
15291         (_gl_TS_function_match): Simplify, rather than trying
15292         to enumerate common types.  Otherwise, it would fail to match an
15293         "extern unsigned char const *" declaration in idutils.
15294         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15295         a way to support use of that type of macro.
15296         (_gl_TS_var_match): Simplify regexp.
15297         (_gl_TS_obj_files): New configurable variable.
15298         (_gl_TS_headers): Likewise.
15299
15300 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15301
15302         verify: fix bug when gnulib <assert.h> is also included
15303         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15304         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15305         Perhaps there's a better way, but this fixes the immediate problem.
15306         Problem reported by Bruno Haible in
15307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15308
15309 2011-05-22  Bruno Haible  <bruno@clisp.org>
15310
15311         xgetcwd: Simplify autoconf macro.
15312         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15313
15314 2011-05-22  Bruno Haible  <bruno@clisp.org>
15315
15316         New module 'mktime-internal'.
15317         * modules/mktime-internal: New file.
15318         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15319         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15320         mktime_internal as a C macro if libc has __mktime_internal.
15321         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15322         conditions.
15323         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15324
15325 2011-05-22  Bruno Haible  <bruno@clisp.org>
15326
15327         timegm: Correct mktime replacement statements.
15328         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15329         defining mktime as a C macro. This completes a 2009-07-28 commit.
15330
15331 2011-05-22  Bruno Haible  <bruno@clisp.org>
15332
15333         timegm: Simplify autoconf macro.
15334         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15335
15336 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15337
15338         clock-time: change to LGPLv2+.
15339         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15340         BSD-like but we have no mark for that; this is good enough for now.
15341
15342 2011-05-21  Bruno Haible  <bruno@clisp.org>
15343
15344         strerror_r: Fix comments.
15345         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15346
15347 2011-05-21  Bruno Haible  <bruno@clisp.org>
15348
15349         relocatable-prog-wrapper: Fix possible link error.
15350         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15351         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15352         (gl_FUNC_SETENV): ... to here.
15353         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15354         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15355
15356 2011-05-21  Bruno Haible  <bruno@clisp.org>
15357
15358         relocatable-prog-wrapper: Assume strerror() exists.
15359         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15360         m4/strerror.m4.
15361         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15362         * lib/relocwrapper.c: Remove mention of strerror module.
15363         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15364         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15365         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15366         C macro.
15367
15368 2011-05-21  Bruno Haible  <bruno@clisp.org>
15369
15370         select: Simplify replacement idiom.
15371         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15372         Win32 platforms.
15373         * lib/sys_select.in.h (select): Simplify accordingly.
15374         * modules/select (Depends-on): Likewise.
15375
15376 2011-05-21  Bruno Haible  <bruno@clisp.org>
15377
15378         mkdir-p: Simplify autoconf macro.
15379         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15380         gl_FUNC_LCHOWN.
15381
15382 2011-05-21  Eric Blake  <eblake@redhat.com>
15383
15384         strerror_r: avoid clobbering strerror on cygwin
15385         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15386         fall back instead to sys_errlist.
15387         * modules/strerror (configure.ac): Add witness.
15388         * tests/test-strerror_r.c (main): Enhance test.
15389         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15390         * tests/test-perror2.c (main): Free memory before exit.
15391
15392 2011-05-21  Bruno Haible  <bruno@clisp.org>
15393
15394         mkdtemp: Use gnulib naming conventions.
15395         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15396         * modules/mkdtemp (configure.ac): Update.
15397
15398 2011-05-20  Eric Blake  <eblake@redhat.com>
15399
15400         strerror_r: avoid corrupting errno on Solaris
15401         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15402         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15403
15404         strerror_r: avoid compiler warning
15405         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15406
15407         strerror_r: simplify AIX code
15408         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15409
15410         test-perror: avoid spurious failure on FreeBSD
15411         * modules/perror-tests (Depends-on): Add strerror, now that
15412         strerror_r no longer pulls it in.
15413
15414 2011-05-20  Bruno Haible  <bruno@clisp.org>
15415
15416         strerror_r-posix: Remove unused dependencies.
15417         * modules/strerror_r-posix (Depends-on): Remove strerror.
15418         Reported by Eric Blake.
15419
15420 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15421
15422         intprops: remove assumption about A|B representation
15423         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15424         is a valid integer if both A and B are.  Although this is true for
15425         all known practical hosts, the C standard doesn't guarantee it,
15426         and the code need not assume it.  Also, this change may work around
15427         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15429
15430 2011-05-20  Eric Blake  <eblake@redhat.com>
15431
15432         perror: work around FreeBSD bug
15433         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15434         is broken.  Move AC_LIBOBJ...
15435         * modules/perror (configure.ac): Here.
15436         * doc/posix-functions/perror.texi (perror): Document this.
15437         * tests/test-perror2.c (main): Enhance test.
15438
15439         test-perror: check for strerror interactions
15440         * tests/macros.h (STREQ): Add macro.
15441         * modules/perror-tests (Files): Add second test.
15442         * tests/test-perror2.c (main): New file.
15443         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15444
15445         test-perror: rewrite to use init script
15446         * modules/perror-tests (Files): Add init.sh.
15447         * tests/test-perror.sh: Use temporary directory.
15448
15449 2011-05-20  Jim Meyering  <meyering@redhat.com>
15450
15451         maint: replace misused "a" with "an"
15452         * doc/intprops.texi: "a integer"
15453         * doc/regex.texi: "a explanation"
15454         * lib/alignof.h: "a object"
15455         * lib/argmatch.h: "a explanation"
15456         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15457         * lib/stdint.in.h: "a integer"
15458         * lib/userspec.c: "a owner"
15459         * doc/gnulib.texi: Fix "a idea", and reword.
15460
15461 2011-05-19  Jim Meyering  <meyering@redhat.com>
15462
15463         maint: correct misuse of "a" and "an"
15464         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15465         * lib/argp-help.c: "an docum...": s/an/a/
15466         * lib/argp-parse.c: "An vector": s/An/A/
15467         * lib/execute.c: "an native": s/an/a/
15468         * lib/spawn-pipe.c: Likewise.
15469         * lib/gc.h: "an Gc_rc": s/an/a/
15470         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15471         * lib/fts.c: "an stat.st_dev": s/an/a/
15472
15473 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15474
15475         intprops-tests: work around HP-UX 11.23 cc bug with constants
15476         * tests/test-intprops.c (VERIFY): New macro.
15477         (main): Use it, instead of verify, to work around the compiler bug; see
15478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15479
15480         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15481         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15482         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15483         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15484         (_GL_REMAINDER_OVERFLOW): Use it.
15485
15486         intprops-tests: revert unsigned part of previous change
15487         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15488         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15489         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15491
15492 2011-05-19  Bruno Haible  <bruno@clisp.org>
15493
15494         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15495         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15496         strerror_r() returned without filling the buffer.
15497         Reported by Eric Blake.
15498
15499 2011-05-19  Eric Blake  <eblake@redhat.com>
15500
15501         strerror_r: guarantee unchanged errno
15502         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15503         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15504         failure.
15505         * tests/test-strerror_r.c (main): Enhance test.
15506
15507 2011-05-19  Bruno Haible  <bruno@clisp.org>
15508
15509         strerror_r: Reorder #if blocks.
15510         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15511         for consistency with the previous commit.
15512
15513 2011-05-19  Bruno Haible  <bruno@clisp.org>
15514
15515         perror: Avoid clobbering the strerror buffer when possible.
15516         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15517         * lib/strerror.c: Include it.
15518         * modules/strerror (Files): Add lib/strerror-impl.h.
15519         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15520         (my_strerror): New function, defined through lib/strerror-impl.h.
15521         (perror): Use it instead of strerror.
15522         * modules/perror (Files): Add lib/strerror-impl.h.
15523         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15524
15525 2011-05-19  Eric Blake  <eblake@redhat.com>
15526
15527         strerror_r: fix on newer cygwin
15528         * lib/strerror_r.c (strerror_r): Cygwin now has
15529         __xpg_strerror_r, use it.
15530
15531 2011-05-19  Bruno Haible  <bruno@clisp.org>
15532
15533         strerror_r: Avoid clobbering the strerror buffer when possible.
15534         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15535         (sys_nerr, sys_errlist): New declarations.
15536         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15537         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15538         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15539
15540 2011-05-19  Bruno Haible  <bruno@clisp.org>
15541
15542         strerror_r: Fix test failure on mingw.
15543         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15544         EXTEND_STRERROR_R.
15545         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15546         macros from errno.in.h instead.
15547
15548 2011-05-19  Eric Blake  <eblake@redhat.com>
15549
15550         strerror: relax test for Solaris
15551         * tests/test-strerror.c (main): Permit Solaris behavior.
15552         * tests/test-strerror_r.c (main): Likewise.
15553
15554         strerror: enforce POSIX ruling on strerror(0)
15555         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15556         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15557         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15558         * doc/posix-functions/strerror.texi (strerror): Document it.
15559         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15560         * tests/test-strerror.c (main): Strengthen test.
15561         * tests/test-strerror_r.c (main): Likewise.
15562
15563 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15564
15565         intprop-tests: port to older and more-pedantic compilers
15566         * modules/intprops-tests (Files): Add tests/macros.h.
15567         * tests/test-intprops.c: Include macros.h.
15568         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15569         it's no longer documented to expand to an integer constant expression.
15570         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15571         argument is floating point, as it's no longer documented to expand
15572         to an integer constant expression in that case.
15573         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15574         compiler bugs reported by Bruno Haible.  See
15575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15576         (U0, U1): New constants, to work around the same bugs.  Also,
15577         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15578
15579         intprops: work around C compiler bugs
15580         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15581         bug in Sun C 5.11 2010/08/13 and other compilers; see
15582         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15583
15584         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15585         * doc/intprops.texi (Integer Type Determination): Fix
15586         documentation for TYPE_IS_INTEGER: it returns an constant
15587         expression, not an integer constant expression.  Fix doc for
15588         TYPE_SIGNED: it returns an integer constant expression only if its
15589         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15590         hardly worth documented that way....)
15591
15592 2011-05-18  Bruno Haible  <bruno@clisp.org>
15593
15594         strerror_r: Avoid clobbering the strerror buffer when possible.
15595         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15596         Handle gnulib defined errno values here. When strerror() returns NULL
15597         or an empty string, return EINVAL.
15598         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15599         gnulib defined errno values here.
15600         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15601
15602 2011-05-18  Eric Blake  <eblake@redhat.com>
15603
15604         fnmatch: avoid compiler warning
15605         * lib/fnmatch_loop.c (FCT): Use correct type.
15606         Reported by Matthias Bolte.
15607
15608 2011-05-13  Jim Meyering  <meyering@redhat.com>
15609
15610         maint.mk: three new prohibit_<HDR>_without_use rules
15611         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15612         (sc_prohibit_stdio-safer_without_use): Likewise.
15613         (sc_prohibit_xfreopen_without_use): Likewise.
15614
15615 2011-05-17  Jim Meyering  <meyering@redhat.com>
15616
15617         announce-gen: fail if the NEWS delta is empty
15618         If there's nothing noteworthy in NEWS, then either you forgot
15619         or you shouldn't be releasing.
15620         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15621
15622 2011-05-17  Pádraig Brady <P@draigBrady.com>
15623
15624         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15625         reserved symbols starting with double underscore from the check.
15626
15627 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15628
15629         intprops: add doc
15630         * doc/intprops.texi: New file, documenting intprops.
15631         * doc/gnulib.texi (Particular Modules): Include it.
15632
15633         verify: add doc to gnulib manual and fix example
15634         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15635         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15636         (Compile-time Assertions): Fix example so it can't overflow.
15637
15638 2011-05-17  Jim Meyering  <meyering@redhat.com>
15639
15640         warnings.m4: don't usurp save_CPPFLAGS variable name
15641         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15642
15643         doc: fix typo
15644         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15645
15646 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15647             Bruno Haible  <bruno@clisp.org>
15648
15649         doc: Tweak recent change.
15650         * README (Portability guidelines): Tweak new text.
15651         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15652         Interix 6.1.
15653
15654 2011-05-16  Eric Blake  <eblake@redhat.com>
15655
15656         inttypes: avoid autoconf warning
15657         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15658         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15659
15660 2011-05-16  Sam Steingold <sds@gnu.org>
15661         and Eric Blake  <eblake@redhat.com>
15662
15663         vc-list-files: accept multiple directory operands
15664         * build-aux/vc-list-files: Iterate over all remaining operands.
15665
15666 2011-05-16  Bruno Haible  <bruno@clisp.org>
15667
15668         Fix confusion regarding deprecated modules.
15669         * modules/calloc (Status, Notice): Mark module as deprecated, not
15670         obsolete.
15671         * modules/fnmatch-posix (Status, Notice): Likewise.
15672         * modules/getdate (Status, Notice): Likewise.
15673         * modules/getopt (Status, Notice): Likewise.
15674         * modules/malloc (Status, Notice): Likewise.
15675         * modules/pipe (Status, Notice): Likewise.
15676         * modules/realloc (Status, Notice): Likewise.
15677         * modules/rename-dest-slash (Status, Notice): Likewise.
15678         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15679         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15680         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15681         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15682         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15683
15684 2011-05-16  Bruno Haible  <bruno@clisp.org>
15685
15686         doc: List the target platforms.
15687         * doc/gnulib-intro.texi (Target Platforms): New section.
15688         * doc/gnulib.texi (Introduction): Update menu.
15689         * README (Portability guidelines): Refer to the new section. Update
15690         statement about oldest supported environment. Remove rationale why
15691         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15692         unportable C89 function.
15693         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15694         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15695
15696 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15697
15698         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15699
15700 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15701
15702         intprops-tests: new module
15703         * modules/intprops-tests, tests/test-intprops.c: New files.
15704
15705         intprops: add safe, portable integer overflow checking
15706         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15707         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15708         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15709         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15710         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15711         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15712         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15713         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15714         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15715         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15716         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15717
15718 2011-05-12  James Youngman  <jay@gnu.org>
15719
15720         Add a test for glibc's Bugzilla bug #12378.
15721         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15722         doesn't allow the literal matching of a lone "[" (which is
15723         required by POSIX).
15724         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15725
15726 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15727
15728         Sync glibc change fixing Bugzilla bug #12378.
15729         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15730         beginning and fall back to matching as normal character if the
15731         string ends before the matching ']' is found.  This is what POSIX
15732         requires.
15733
15734 2011-05-13  Eric Blake  <eblake@redhat.com>
15735
15736         getcwd-lgpl: relax test for FreeBSD
15737         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15738         issue.
15739         * tests/test-getcwd-lgpl.c (main): Relax test.
15740         Reported by Matthias Bolte.
15741
15742 2011-05-11  Eric Blake  <eblake@redhat.com>
15743
15744         test-fflush: silence compiler warning
15745         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15746
15747 2011-05-11  Bruno Haible  <bruno@clisp.org>
15748
15749         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15750         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15751         * modules/canonicalize (Depends-on): Add 'nocrash'.
15752         * modules/canonicalize-lgpl (Depends-on): Likewise.
15753         * doc/posix-functions/realpath.texi: Update platforms list.
15754         Reported by Ryan Schmidt <ryandesign@macports.org>.
15755
15756 2011-05-11  Bruno Haible  <bruno@clisp.org>
15757
15758         group-member: Declare function in <unistd.h>.
15759         * lib/unistd.in.h (group_member): New declaration.
15760         * lib/group-member.h: Remove file.
15761         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15762         * tests/test-unistd-c++.cc: Check signature of group_member.
15763         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15764         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15765         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15766         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15767         HAVE_GROUP_MEMBER.
15768         * modules/group-member (Files): Remove lib/group-member.h.
15769         (Depends-on): Add unistd. Specify conditions.
15770         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15771         (Include): Change to <unistd.h>.
15772         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15773         HAVE_GROUP_MEMBER.
15774         * NEWS: Mention the change.
15775         * lib/euidaccess.c: Don't include group-member.h.
15776
15777 2011-05-11  Bruno Haible  <bruno@clisp.org>
15778
15779         group-member: Document module.
15780         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15781         module.
15782
15783 2011-05-11  Bruno Haible  <bruno@clisp.org>
15784
15785         fclose: Fix mistake earlier today.
15786         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15787
15788 2011-05-11  Eric Blake  <eblake@redhat.com>
15789
15790         fclose: preserve fflush errors
15791         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15792         Reported by Jim Meyering.
15793
15794         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15795         * build-aux/bootstrap (check_versions): When no specific version
15796         is required, merely check that the app produces an exit status
15797         that indicates its existence.
15798
15799         maint.mk: drop redundant check
15800         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15801         the same but better.
15802
15803 2011-05-11  Bruno Haible  <bruno@clisp.org>
15804
15805         fclose: Fix possible link error.
15806         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15807         unregister_shadow_fd. Improve comments.
15808         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15809         Eric Blake.
15810
15811 2011-05-11  Jim Meyering  <meyering@redhat.com>
15812
15813         maint.mk: improve "can not" detection and generalize rule name
15814         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15815         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15816         Use the same technique as in sc_prohibit_doubled_word, so that
15817         we recognize "can not" also when the words are separated by a newline.
15818         Suggested by Eric Blake.
15819         (perl_filename_lineno_text_): Define.  Factored out of...
15820         (prohibit_doubled_word_): ...here.  Use the new definition.
15821         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15822         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15823         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15824
15825 2011-05-10  Eric Blake  <eblake@redhat.com>
15826
15827         fclose: avoid double close race when possible
15828         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15829         all but WINDOWS_SOCKETS.
15830
15831 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15832
15833         openat: correct new comment
15834         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15835
15836 2011-05-10  Jim Meyering  <meyering@redhat.com>
15837
15838         openat: add comments
15839         * lib/openat-proc.c (openat_proc_name): Add comments,
15840         mostly from Eric Blake.
15841
15842 2011-05-09  Eric Blake  <eblake@redhat.com>
15843
15844         openat: reduce syscalls in first probe of /proc
15845         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15846         be a directory.  Simplify the probe for .. bugs.
15847         * modules/openat (Depends-on): Drop same-inode.
15848         Reported by Bastien ROUCARIES.
15849
15850 2011-05-09  Jim Meyering  <meyering@redhat.com>
15851
15852         maint.mk: change semantics/name of tight_scope variables
15853         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15854         Rename variables to align with semantics that make them more useful.
15855
15856         maint.mk: tweak new rule's name not to impinge
15857         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15858         (sc_tight_scope): Use new rule name rather than $@-0.
15859
15860         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15861         * top/maint.mk (sc_tight_scope): New rule.
15862         (sc_tight_scope-0): New rule, ifdef'd out.
15863         (_gl_TS_dir): Default.
15864         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15865         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15866
15867 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15868
15869         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15870         Haible <bruno@clisp.org>.
15871
15872 2011-05-08  Bruno Haible  <bruno@clisp.org>
15873
15874         Comments.
15875         * m4/isnanf.m4: Add comment.
15876         * m4/isnanl.m4: Likewise.
15877
15878 2011-05-08  Bruno Haible  <bruno@clisp.org>
15879
15880         glob: Remove obsolete macro.
15881         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15882
15883 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15884
15885         intprops: Sun C 5.11 supports __typeof__
15886         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15887         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15888         which is new.
15889         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15890
15891         intprops: switch to usual gnulib indenting and naming
15892         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15893         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15894
15895         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15896
15897 2011-05-08  Jim Meyering  <meyering@redhat.com>
15898
15899         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15900         * top/maint.mk (release-prep): Use make's --no-print-directory
15901         option when generating the announcement.  This eliminates the
15902         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15903         generated announcement template.
15904
15905 2011-05-08  Bruno Haible  <bruno@clisp.org>
15906
15907         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15908         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15909         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15910
15911 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15912
15913         ignore-value, verify: Omit include files from lib_SOURCES.
15914         * modules/ignore-value, modules/verify (Makefile.am):
15915         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15916         that leads Automake to duplicate use of am__objects_... variables
15917         in Makefile.in.  See
15918         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15919
15920 2011-05-07  Bruno Haible  <bruno@clisp.org>
15921
15922         fclose: Simplify autoconf macro.
15923         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15924         defined.
15925
15926 2011-05-07  Bruno Haible  <bruno@clisp.org>
15927
15928         canonicalize-lgpl: Fix autoconf macro ordering bug.
15929         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
15930         gl_STDLIB_H_DEFAULTS.
15931
15932 2011-05-06  Eric Blake  <eblake@redhat.com>
15933
15934         maintainer-makefile: make sc_po_check easier to tune
15935         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
15936         to probe for strings, such as an alternate location for gnulib.
15937
15938         fclose: guarantee behavior on seekable stdin
15939         * modules/fclose (Depends-on): Add fflush.
15940         * doc/posix-functions/fclose.texi (fclose): Document this.
15941         * tests/test-fclose.c (main): Make test for this unconditional.
15942
15943 2011-05-06  Bruno Haible  <bruno@clisp.org>
15944
15945         fflush, fpurge: Relicense under LGPLv2+.
15946         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
15947         * modules/fpurge (License): Likewise.
15948         With permission from Eric Blake and Jim Meyering.
15949         Suggested by Eric Blake.
15950
15951 2011-05-06  Karl Berry  <karl@gnu.org>
15952
15953         * MODULES.html.sh (func_all_modules): remove exit.
15954
15955 2011-05-06  Jim Meyering  <meyering@redhat.com>
15956
15957         maint.mk: use info-gnu@ as the default only for a stable release
15958         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
15959         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
15960         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
15961         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
15962
15963 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15964
15965         assert-h: new module, which supports C1X-style static_assert
15966         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
15967         * lib/verify.h: Revamp so that this can be copied into assert.h,
15968         while retaining the ability to use it standalone as before.
15969         Rename private identifiers so as not to encroach on the
15970         standard C namespace, since this is now used by assert.h.
15971         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
15972         the old verify_true.
15973         (_GL_VERIFY_TRUE): New macro, with much of the contents of
15974         the old verify_true.  Use _GL_VERIFY_TYPE.
15975         (_GL_VERIFY): New macro, with much of the contents of the old verify.
15976         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15977         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
15978         defined when this file is copied into the replacement assert.h.
15979         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
15980         and _Static_assert is not built in.
15981         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
15982         defined, and use the new macros mentioned above.
15983         * doc/posix-headers/assert.texi: Document this.
15984
15985 2011-05-05  Bruno Haible  <bruno@clisp.org>
15986
15987         fclose, fflush: Respect rules for use of AC_LIBOBJ.
15988         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
15989         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
15990         gl_REPLACE_FCLOSE here.
15991         * modules/fflush (Depends-on): Remove fclose.
15992         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
15993         combination with module 'fclose'.
15994
15995 2011-05-05  Bruno Haible  <bruno@clisp.org>
15996
15997         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
15998         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
15999         gl_FUNC_FFLUSH.
16000         (gl_FUNC_FFLUSH): Use it.
16001         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16002         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16003         gl_REPLACE_FSEEKO here.
16004
16005 2011-05-05  Bruno Haible  <bruno@clisp.org>
16006
16007         tzset: Relicense under LGPL.
16008         * modules/tzset (License): Change to LGPL.
16009         No agreement needed; it's a no-op.
16010
16011         strtoimax, strtoumax: Relicense under LGPL.
16012         * modules/strtoimax (License): Change to LGPL.
16013         * modules/strtoumax (License): Likewise.
16014         With permission from Jim Meyering, Paul Eggert:
16015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16017
16018         getgroups: Relicense under LGPL.
16019         * modules/getgroups (License): Change to LGPL.
16020         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16022         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16024
16025         nanosleep: Relicense under LGPL.
16026         * modules/nanosleep (License): Change to LGPL.
16027         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16028         Haible:
16029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16033
16034         futimens: Relicense under LGPL.
16035         * modules/futimens (License): Change to LGPL.
16036         With permission from Eric Blake:
16037         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16038
16039         fflush: Relicense under LGPL.
16040         * modules/fflush (License): Change to LGPL.
16041         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16044         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16045
16046         tmpfile: Relicense under LGPL.
16047         * modules/tmpfile (License): Change to LGPL.
16048         With permission from Ben Pfaff:
16049         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16050
16051         isfinite: Relicense under LGPL.
16052         * modules/isfinite (License): Change to LGPL.
16053         With permission from Ben Pfaff, Bruno Haible:
16054         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16055         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16056
16057         acosl..tanl: Relicense under LGPL.
16058         * modules/acosl (License): Change to LGPL.
16059         * modules/asinl (License): Likewise.
16060         * modules/atanl (License): Likewise.
16061         * modules/cosl (License): Likewise.
16062         * modules/expl (License): Likewise.
16063         * modules/logl (License): Likewise.
16064         * modules/sinl (License): Likewise.
16065         * modules/sqrtl (License): Likewise.
16066         * modules/tanl (License): Likewise.
16067         Source code originally from glibc and Paolo Bonzini. Agreements:
16068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16069         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16070
16071 2011-05-05  Bruno Haible  <bruno@clisp.org>
16072
16073         signal: Define sighandler_t.
16074         * lib/signal.in.h (sighandler_t): New type.
16075         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16076         whether sighandler_t is defined.
16077         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16078         * modules/signal (Depends-on): Add extensions.
16079         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16080         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16081         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16082
16083 2011-05-05  Eric Blake  <eblake@redhat.com>
16084
16085         maint: remove useless REPLACE_*_H macros
16086         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16087         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16088         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16089         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16090         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16091         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16092         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16093         * m4/btowc.m4: Update callers.
16094         * m4/dirfd.m4: Likewise.
16095         * m4/duplocale.m4: Likewise.
16096         * m4/fchdir.m4: Likewise.
16097         * m4/fdopendir.m4: Likewise.
16098         * m4/inet_ntop.m4: Likewise.
16099         * m4/inet_pton.m4: Likewise.
16100         * m4/ioctl.m4: Likewise.
16101         * m4/mbrlen.m4: Likewise.
16102         * m4/mbrtowc.m4: Likewise.
16103         * m4/mbsinit.m4: Likewise.
16104         * m4/mbsnrtowcs.m4: Likewise.
16105         * m4/mbsrtowcs.m4: Likewise.
16106         * m4/poll.m4: Likewise.
16107         * m4/setlocale.m4: Likewise.
16108         * m4/wcrtomb.m4: Likewise.
16109         * m4/wcsnrtombs.m4: Likewise.
16110         * m4/wcsrtombs.m4: Likewise.
16111         * m4/wctob.m4: Likewise.
16112         * m4/wcwidth.m4: Likewise.
16113         * modules/posix_spawn: Likewise.
16114         * modules/posix_spawn_file_actions_addclose: Likewise.
16115         * modules/posix_spawn_file_actions_adddup2: Likewise.
16116         * modules/posix_spawn_file_actions_addopen: Likewise.
16117         * modules/posix_spawn_file_actions_destroy: Likewise.
16118         * modules/posix_spawn_file_actions_init: Likewise.
16119         * modules/posix_spawnattr_destroy: Likewise.
16120         * modules/posix_spawnattr_getflags: Likewise.
16121         * modules/posix_spawnattr_getpgroup: Likewise.
16122         * modules/posix_spawnattr_getschedparam: Likewise.
16123         * modules/posix_spawnattr_getschedpolicy: Likewise.
16124         * modules/posix_spawnattr_getsigdefault: Likewise.
16125         * modules/posix_spawnattr_getsigmask: Likewise.
16126         * modules/posix_spawnattr_init: Likewise.
16127         * modules/posix_spawnattr_setflags: Likewise.
16128         * modules/posix_spawnattr_setpgroup: Likewise.
16129         * modules/posix_spawnattr_setschedparam: Likewise.
16130         * modules/posix_spawnattr_setschedpolicy: Likewise.
16131         * modules/posix_spawnattr_setsigdefault: Likewise.
16132         * modules/posix_spawnattr_setsigmask: Likewise.
16133         * modules/posix_spawnp: Likewise.
16134
16135 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16136
16137         Add option to do-release-commit-and-tag to specify branch.
16138         * build-aux/do-release-commit-and-tag: Add --branch.
16139
16140 2011-05-03  Bruno Haible  <bruno@clisp.org>
16141
16142         Avoid unnecessary compilation units, through conditional dependencies.
16143         * modules/accept (Depends-on): Add conditions to the dependencies.
16144         * modules/acosl (Depends-on): Likewise.
16145         * modules/argz (Depends-on): Likewise.
16146         * modules/asinl (Depends-on): Likewise.
16147         * modules/atanl (Depends-on): Likewise.
16148         * modules/atoll (Depends-on): Likewise.
16149         * modules/bind (Depends-on): Likewise.
16150         * modules/btowc (Depends-on): Likewise.
16151         * modules/canonicalize-lgpl (Depends-on): Likewise.
16152         * modules/ceil (Depends-on): Likewise.
16153         * modules/ceilf (Depends-on): Likewise.
16154         * modules/ceill (Depends-on): Likewise.
16155         * modules/chdir-long (Depends-on): Likewise.
16156         * modules/chown (Depends-on): Likewise.
16157         * modules/close (Depends-on): Likewise.
16158         * modules/connect (Depends-on): Likewise.
16159         * modules/cosl (Depends-on): Likewise.
16160         * modules/dirfd (Depends-on): Likewise.
16161         * modules/dprintf (Depends-on): Likewise.
16162         * modules/dprintf-posix (Depends-on): Likewise.
16163         * modules/error (Depends-on): Likewise.
16164         * modules/euidaccess (Depends-on): Likewise.
16165         * modules/expl (Depends-on): Likewise.
16166         * modules/faccessat (Depends-on): Likewise.
16167         * modules/fchdir (Depends-on): Likewise.
16168         * modules/fclose (Depends-on): Likewise.
16169         * modules/fcntl (Depends-on): Likewise.
16170         * modules/fdopendir (Depends-on): Likewise.
16171         * modules/fflush (Depends-on): Likewise.
16172         * modules/floor (Depends-on): Likewise.
16173         * modules/floorf (Depends-on): Likewise.
16174         * modules/floorl (Depends-on): Likewise.
16175         * modules/fnmatch (Depends-on): Likewise.
16176         * modules/fopen (Depends-on): Likewise.
16177         * modules/fprintf-posix (Depends-on): Likewise.
16178         * modules/frexp (Depends-on): Likewise.
16179         * modules/frexp-nolibm (Depends-on): Likewise.
16180         * modules/frexpl (Depends-on): Likewise.
16181         * modules/frexpl-nolibm (Depends-on): Likewise.
16182         * modules/fseek (Depends-on): Likewise.
16183         * modules/fsusage (Depends-on): Likewise.
16184         * modules/ftell (Depends-on): Likewise.
16185         * modules/ftello (Depends-on): Likewise.
16186         * modules/futimens (Depends-on): Likewise.
16187         * modules/getcwd (Depends-on): Likewise.
16188         * modules/getcwd-lgpl (Depends-on): Likewise.
16189         * modules/getdelim (Depends-on): Likewise.
16190         * modules/getdomainname (Depends-on): Likewise.
16191         * modules/getgroups (Depends-on): Likewise.
16192         * modules/gethostname (Depends-on): Likewise.
16193         * modules/getline (Depends-on): Likewise.
16194         * modules/getlogin_r (Depends-on): Likewise.
16195         * modules/getopt-posix (Depends-on): Likewise.
16196         * modules/getpeername (Depends-on): Likewise.
16197         * modules/getsockname (Depends-on): Likewise.
16198         * modules/getsockopt (Depends-on): Likewise.
16199         * modules/getsubopt (Depends-on): Likewise.
16200         * modules/getusershell (Depends-on): Likewise.
16201         * modules/glob (Depends-on): Likewise.
16202         * modules/grantpt (Depends-on): Likewise.
16203         * modules/iconv_open (Depends-on): Likewise.
16204         * modules/iconv_open-utf (Depends-on): Likewise.
16205         * modules/inet_ntop (Depends-on): Likewise.
16206         * modules/inet_pton (Depends-on): Likewise.
16207         * modules/ioctl (Depends-on): Likewise.
16208         * modules/isapipe (Depends-on): Likewise.
16209         * modules/isfinite (Depends-on): Likewise.
16210         * modules/isinf (Depends-on): Likewise.
16211         * modules/lchown (Depends-on): Likewise.
16212         * modules/ldexpl (Depends-on): Likewise.
16213         * modules/link (Depends-on): Likewise.
16214         * modules/linkat (Depends-on): Likewise.
16215         * modules/listen (Depends-on): Likewise.
16216         * modules/logl (Depends-on): Likewise.
16217         * modules/lstat (Depends-on): Likewise.
16218         * modules/mbrlen (Depends-on): Likewise.
16219         * modules/mbrtowc (Depends-on): Likewise.
16220         * modules/mbsinit (Depends-on): Likewise.
16221         * modules/mbsnrtowcs (Depends-on): Likewise.
16222         * modules/mbsrtowcs (Depends-on): Likewise.
16223         * modules/mbtowc (Depends-on): Likewise.
16224         * modules/memcmp (Depends-on): Likewise.
16225         * modules/mkdir (Depends-on): Likewise.
16226         * modules/mkdtemp (Depends-on): Likewise.
16227         * modules/mkfifo (Depends-on): Likewise.
16228         * modules/mkfifoat (Depends-on): Likewise.
16229         * modules/mknod (Depends-on): Likewise.
16230         * modules/mkostemp (Depends-on): Likewise.
16231         * modules/mkostemps (Depends-on): Likewise.
16232         * modules/mkstemp (Depends-on): Likewise.
16233         * modules/mkstemps (Depends-on): Likewise.
16234         * modules/mktime (Depends-on): Likewise.
16235         * modules/nanosleep (Depends-on): Likewise.
16236         * modules/open (Depends-on): Likewise.
16237         * modules/openat (Depends-on): Likewise.
16238         * modules/perror (Depends-on): Likewise.
16239         * modules/poll (Depends-on): Likewise.
16240         * modules/popen (Depends-on): Likewise.
16241         * modules/posix_spawn (Depends-on): Likewise.
16242         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16243         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16244         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16245         * modules/posix_spawnp (Depends-on): Likewise.
16246         * modules/pread (Depends-on): Likewise.
16247         * modules/printf-posix (Depends-on): Likewise.
16248         * modules/ptsname (Depends-on): Likewise.
16249         * modules/putenv (Depends-on): Likewise.
16250         * modules/pwrite (Depends-on): Likewise.
16251         * modules/readline (Depends-on): Likewise.
16252         * modules/readlink (Depends-on): Likewise.
16253         * modules/readlinkat (Depends-on): Likewise.
16254         * modules/recv (Depends-on): Likewise.
16255         * modules/recvfrom (Depends-on): Likewise.
16256         * modules/regex (Depends-on): Likewise.
16257         * modules/remove (Depends-on): Likewise.
16258         * modules/rename (Depends-on): Likewise.
16259         * modules/renameat (Depends-on): Likewise.
16260         * modules/rmdir (Depends-on): Likewise.
16261         * modules/round (Depends-on): Likewise.
16262         * modules/roundf (Depends-on): Likewise.
16263         * modules/roundl (Depends-on): Likewise.
16264         * modules/rpmatch (Depends-on): Likewise.
16265         * modules/select (Depends-on): Likewise.
16266         * modules/send (Depends-on): Likewise.
16267         * modules/sendto (Depends-on): Likewise.
16268         * modules/setenv (Depends-on): Likewise.
16269         * modules/setlocale (Depends-on): Likewise.
16270         * modules/setsockopt (Depends-on): Likewise.
16271         * modules/shutdown (Depends-on): Likewise.
16272         * modules/sigaction (Depends-on): Likewise.
16273         * modules/signbit (Depends-on): Likewise.
16274         * modules/sigprocmask (Depends-on): Likewise.
16275         * modules/sinl (Depends-on): Likewise.
16276         * modules/sleep (Depends-on): Likewise.
16277         * modules/snprintf (Depends-on): Likewise.
16278         * modules/snprintf-posix (Depends-on): Likewise.
16279         * modules/socket (Depends-on): Likewise.
16280         * modules/sprintf-posix (Depends-on): Likewise.
16281         * modules/sqrtl (Depends-on): Likewise.
16282         * modules/stat (Depends-on): Likewise.
16283         * modules/strchrnul (Depends-on): Likewise.
16284         * modules/strdup-posix (Depends-on): Likewise.
16285         * modules/strerror (Depends-on): Likewise.
16286         * modules/strerror_r-posix (Depends-on): Likewise.
16287         * modules/strndup (Depends-on): Likewise.
16288         * modules/strnlen (Depends-on): Likewise.
16289         * modules/strptime (Depends-on): Likewise.
16290         * modules/strsep (Depends-on): Likewise.
16291         * modules/strsignal (Depends-on): Likewise.
16292         * modules/strstr-simple (Depends-on): Likewise.
16293         * modules/strtod (Depends-on): Likewise.
16294         * modules/strtoimax (Depends-on): Likewise.
16295         * modules/strtok_r (Depends-on): Likewise.
16296         * modules/strtoumax (Depends-on): Likewise.
16297         * modules/symlink (Depends-on): Likewise.
16298         * modules/symlinkat (Depends-on): Likewise.
16299         * modules/tanl (Depends-on): Likewise.
16300         * modules/tcgetsid (Depends-on): Likewise.
16301         * modules/tmpfile (Depends-on): Likewise.
16302         * modules/trunc (Depends-on): Likewise.
16303         * modules/truncf (Depends-on): Likewise.
16304         * modules/truncl (Depends-on): Likewise.
16305         * modules/uname (Depends-on): Likewise.
16306         * modules/unlink (Depends-on): Likewise.
16307         * modules/unlockpt (Depends-on): Likewise.
16308         * modules/unsetenv (Depends-on): Likewise.
16309         * modules/usleep (Depends-on): Likewise.
16310         * modules/utimensat (Depends-on): Likewise.
16311         * modules/vasprintf (Depends-on): Likewise.
16312         * modules/vdprintf (Depends-on): Likewise.
16313         * modules/vdprintf-posix (Depends-on): Likewise.
16314         * modules/vfprintf-posix (Depends-on): Likewise.
16315         * modules/vprintf-posix (Depends-on): Likewise.
16316         * modules/vsnprintf (Depends-on): Likewise.
16317         * modules/vsnprintf-posix (Depends-on): Likewise.
16318         * modules/vsprintf-posix (Depends-on): Likewise.
16319         * modules/wcrtomb (Depends-on): Likewise.
16320         * modules/wcscasecmp (Depends-on): Likewise.
16321         * modules/wcscspn (Depends-on): Likewise.
16322         * modules/wcsdup (Depends-on): Likewise.
16323         * modules/wcsncasecmp (Depends-on): Likewise.
16324         * modules/wcsnrtombs (Depends-on): Likewise.
16325         * modules/wcspbrk (Depends-on): Likewise.
16326         * modules/wcsrtombs (Depends-on): Likewise.
16327         * modules/wcsspn (Depends-on): Likewise.
16328         * modules/wcsstr (Depends-on): Likewise.
16329         * modules/wcstok (Depends-on): Likewise.
16330         * modules/wcswidth (Depends-on): Likewise.
16331         * modules/wctob (Depends-on): Likewise.
16332         * modules/wctomb (Depends-on): Likewise.
16333         * modules/wctype (Depends-on): Likewise.
16334         * modules/wcwidth (Depends-on): Likewise.
16335         * modules/write (Depends-on): Likewise.
16336
16337 2011-05-03  Bruno Haible  <bruno@clisp.org>
16338
16339         Support for conditional dependencies.
16340         * doc/gnulib.texi (Module description): Document the syntax of
16341         conditional dependencies.
16342         * gnulib-tool: New option --conditional-dependencies.
16343         (func_usage): Document it.
16344         (cond_dependencies): New variable.
16345         (func_get_automake_snippet_conditional,
16346         func_get_automake_snippet_unconditional): New functions, extracted from
16347         func_get_automake_snippet.
16348         (func_get_automake_snippet): Use them.
16349         (sed_first_32_chars): New variable.
16350         (func_module_shellfunc_name): New function.
16351         (func_module_shellvar_name): New function.
16352         (func_module_conditional_name): New function.
16353         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16354         func_cond_module_condition): New functions.
16355         (func_modules_transitive_closure): Add support for conditional
16356         dependencies.
16357         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16358         conditional automake snippet in an automake conditional.
16359         (func_emit_autoconf_snippets): Emit shell functions that contain the
16360         code for conditional modules.
16361         (func_import, func_create_testdir): Update specification.
16362
16363 2011-05-03  Eric Blake  <eblake@redhat.com>
16364
16365         test-getaddrinfo: report error information
16366         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16367
16368 2011-05-03  Jim Meyering  <meyering@redhat.com>
16369
16370         bootstrap: avoid build failure when $GZIP is set
16371         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16372         program name.  If defined at all, it is supposed to list gzip options.
16373         Reported by Alan Curry in http://debbugs.gnu.org/8609
16374
16375 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16376
16377         readme-release: new module with release instructions
16378         * modules/readme-release: New module.
16379         * top/README-release: New file, from coreutils, grep, diffutils.
16380         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16381
16382 2011-05-02  Eric Blake  <eblake@redhat.com>
16383
16384         fflush: also replace fclose when fixing fflush
16385         * modules/fflush (Depends-on): Add fclose.
16386         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16387         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16388         memstreams with no backing fd.
16389         * doc/posix-functions/fclose.texi (fclose): Document the use of
16390         fflush module to fix the bug.
16391         * tests/test-fclose.c (main): Relax test when fclose is used in
16392         isolation.
16393
16394         fclose: add some tests
16395         * modules/fclose-tests: New test module.
16396         * tests/test-fclose.c: New file.
16397         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16398
16399         fclose: reduced dependencies
16400         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16401         simpler lseek.
16402         * lib/fclose.c (rpl_fclose): Likewise.
16403         Reported by Simon Josefsson.
16404
16405         exit: drop remaining clients
16406         * modules/argmatch (Depends-on): Replace exit with stdlib.
16407         * modules/copy-file (Depends-on): Likewise.
16408         * modules/execute (Depends-on): Likewise.
16409         * modules/exitfail (Depends-on): Likewise.
16410         * modules/obstack (Depends-on): Likewise.
16411         * modules/pagealign_alloc (Depends-on): Likewise.
16412         * modules/pipe-filter-gi (Depends-on): Likewise.
16413         * modules/pipe-filter-ii (Depends-on): Likewise.
16414         * modules/savewd (Depends-on): Likewise.
16415         * modules/spawn-pipe (Depends-on): Likewise.
16416         * modules/wait-process (Depends-on): Likewise.
16417         * modules/xsetenv (Depends-on): Likewise.
16418         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16419         * modules/git-merge-changelog (Depends-on): Likewise.
16420         * modules/long-options (Depends-on): Likewise.
16421         * modules/pt_chown (Depends-on): Likewise.
16422         * modules/sysexits (Depends-on): Likewise.
16423
16424         freading: relax license from LGPLv3+ to LGPLv2+
16425         * modules/freading (License): Relax LGPL version.
16426
16427 2011-05-02  Bruno Haible  <bruno@clisp.org>
16428
16429         fchdir: Remove unused dependencies.
16430         * modules/fchdir (Depends-on): Remove include_next.
16431
16432 2011-05-02  Bruno Haible  <bruno@clisp.org>
16433
16434         gnulib-tool: Refactor.
16435         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16436         from func_emit_autoconf_snippets.
16437         (func_emit_autoconf_snippets): Use it.
16438
16439 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16440
16441         * NEWS: Document removal of 'exit'.
16442         * modules/exit: Remove file.
16443
16444 2011-05-01  Bruno Haible  <bruno@clisp.org>
16445
16446         Update DEPENDENCIES.
16447         * DEPENDENCIES (gettext): Recommend the newest release.
16448         Reported by Simon Josefsson.
16449
16450 2011-05-01  Bruno Haible  <bruno@clisp.org>
16451
16452         gnulib-tool: Reduce code duplication.
16453         * gnulib-tool (func_emit_autoconf_snippets): New function.
16454         (func_import, func_create_testdir): Use it.
16455
16456 2011-04-30  Eric Blake  <eblake@redhat.com>
16457
16458         fclose: don't fail on non-seekable input stream
16459         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16460         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16461         since fflush is allowed to fail in that case.
16462
16463 2011-04-30  Bruno Haible  <bruno@clisp.org>
16464
16465         dup3: cleanup
16466         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16467
16468 2011-04-30  Bruno Haible  <bruno@clisp.org>
16469
16470         netdb: Make it work in C++ mode.
16471         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16472         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16473         module.
16474         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16475         gl_MODULE_INDICATOR_FOR_TESTS.
16476         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16477         * modules/netdb-c++-tests: New file.
16478         * tests/test-netdb-c++.cc: New file.
16479
16480 2011-04-30  Bruno Haible  <bruno@clisp.org>
16481
16482         New modules 'vfscanf', 'vscanf'.
16483         * modules/vfscanf: New file.
16484         * modules/vscanf: New file.
16485         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16486         here.
16487         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16488         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16489
16490 2011-04-30  Bruno Haible  <bruno@clisp.org>
16491
16492         passfd: Add comments.
16493         * lib/passfd.c: Add comments about platforms.
16494
16495 2011-04-30  Bruno Haible  <bruno@clisp.org>
16496
16497         sys_uio: Make <sys/uio.h> self-contained.
16498         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16499         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16500
16501 2011-04-30  Bruno Haible  <bruno@clisp.org>
16502
16503         sys_socket: Ensure 'struct iovec' definition.
16504         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16505         <sys/socket.h>.
16506         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16507
16508 2011-04-30  Bruno Haible  <bruno@clisp.org>
16509
16510         sys_uio: Protect definition of 'struct iovec'.
16511         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16512         it as a C struct.
16513
16514 2011-04-30  Bruno Haible  <bruno@clisp.org>
16515
16516         manywarnings: fix indentation
16517         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16518
16519 2011-04-30  Pádraig Brady <P@draigBrady.com>
16520
16521         manywarnings: add -Wno-missing-field-initializers if needed.
16522         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16523         option if it's needed to allow initialization with { 0, }
16524
16525 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16526
16527         announce-gen: cosmetic improvement
16528         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16529
16530 2011-04-29  Jim Meyering  <meyering@redhat.com>
16531
16532         vc-list-files: indent with spaces, not TABs
16533         * build-aux/vc-list-files: Convert leading TABs to spaces,
16534         to match the style of most other files in gnulib.
16535
16536         announce-gen: indent with spaces, not TABs
16537         * build-aux/announce-gen: Convert all TABs to spaces, to match
16538         the style of most other files in gnulib.
16539
16540 2011-04-29  Eric Blake  <eblake@redhat.com>
16541
16542         quotearg: avoid uninitialized variable use
16543         * lib/quotearg.c (quoting_options_from_style): Initialize
16544         remaining fields, and ensure that custom styles are only used via
16545         quoting_options rather than quoting_style.
16546
16547 2011-04-29  Jim Meyering  <meyering@redhat.com>
16548
16549         maint.mk: remove unused VC-tag variable
16550         * top/maint.mk (VC-tag): Remove unused variable.
16551
16552 2011-04-29  Bruno Haible  <bruno@clisp.org>
16553
16554         netdb: fix gai_strerror replacements
16555         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16556         * modules/netdb: Substitute it.
16557
16558 2011-04-29  Jim Meyering  <meyering@redhat.com>
16559
16560         test-getcwd.c: avoid new set-but-not-used warning
16561         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16562         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16563         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16564         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16565
16566         test-hash.c: avoid a new shadowing warning
16567         * tests/test-hash.c (main): Don't shadow "dup".
16568
16569 2011-04-28  Eric Blake  <eblake@redhat.com>
16570
16571         getaddrinfo: fix gai_strerror signature
16572         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16573         and work around mingw with UNICODE defined.
16574         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16575         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16576         * modules/netdb (Makefile.am): Substitute it.
16577         * lib/netdb.in.h (gai_strerror): Declare replacement.
16578         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16579         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16580         the fix.
16581
16582         getsockopt: avoid compiler warning
16583         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16584         Reported by Matthias Bolte.
16585
16586         tests: drop unused link dependency
16587         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16588         * modules/dirent-safer-tests (Makefile.am): Likewise.
16589         * modules/fdopendir-tests (Makefile.am): Likewise.
16590         * modules/mkfifoat-tests (Makefile.am): Likewise.
16591         * modules/openat-safer-tests (Makefile.am): Likewise.
16592         * modules/openat-tests (Makefile.am): Likewise.
16593         * modules/readlinkat-tests (Makefile.am): Likewise.
16594         * modules/symlinkat-tests (Makefile.am): Likewise.
16595         * modules/linkat-tests (Makefile.am): Likewise.
16596         (Depends-on): Switch to filenamecat-lgpl.
16597         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16598         LIBINTL.
16599         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16600         * tests/test-linkat.c (main): Don't require xalloc.
16601
16602         hash, mgetgroups: drop xalloc dependency
16603         * lib/hash.c (includes): Adjust includes.
16604         * lib/mgetgroups.c (includes): Likewise.
16605         (xgetgroups): Move...
16606         * lib/xgetgroups.c: ...to new file.
16607         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16608         * modules/xgetgroups: New file, split from...
16609         * modules/mgetgroups: ...here.
16610         (Depends-on): Add xalloc-oversized.
16611         * modules/hash (Depends-on): Likewise.
16612         * modules/hash-tests (Depends-on): Drop xalloc.
16613         (test_hash_LDADD): Drop unused library.
16614         * tests/test-hash.c (main): Break xalloc dependency.
16615         (includes): Drop unused include.
16616
16617         xalloc-oversized: new module
16618         * modules/xalloc-oversized: New module.
16619         * modules/xalloc (Depends-on): Add it.
16620         * lib/xalloc.h (xalloc_oversized): Move...
16621         * lib/xalloc-oversized.h: ...into new file.
16622
16623         utimecmp: drop dependency on xmalloc
16624         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16625         due to memory pressure.
16626         * modules/utimecmp (Depends-on): Drop xalloc.
16627
16628 2011-04-27  Eric Blake  <eblake@redhat.com>
16629
16630         getcwd: fix mingw bugs
16631         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16632         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16633         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16634
16635 2011-04-27  Bruno Haible  <bruno@clisp.org>
16636
16637         mkstemps: Ensure declaration on MacOS X 10.5.
16638         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16639         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16640         MacOS X.
16641
16642 2011-04-27  Bruno Haible  <bruno@clisp.org>
16643
16644         mkstemp: More documentation.
16645         * doc/posix-functions/mkstemp.texi: Document header file problem on
16646         MacOS X.
16647
16648 2011-04-27  Bruno Haible  <bruno@clisp.org>
16649
16650         mkstemp: Tweak configure message when cross-compiling.
16651         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16652         result as a guess.
16653
16654 2011-04-27  Bruno Haible  <bruno@clisp.org>
16655
16656         clean-temp: Clarify what it does.
16657         * lib/clean-temp.h: Add more comments.
16658         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16659         module.
16660         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16661         * doc/glibc-functions/mkstemps.texi: Likewise.
16662         * doc/glibc-functions/mkostemps.texi: Likewise.
16663
16664 2011-04-27  Eric Blake  <eblake@redhat.com>
16665
16666         fchdir: avoid extra chdir and fix test
16667         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16668         getcwd-lgpl.
16669         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16670         have to be canonical.
16671         (canonicalize_file_name): Drop unused macro.
16672         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16673
16674         filenamecat-lgpl: fix licence
16675         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16676         when it was first created.
16677
16678         linkat, renameat: add missing dependency
16679         * modules/linkat (Depends-on): Require getcwd-lgpl.
16680         * modules/renameat (Depends-on): Likewise.
16681
16682         tests: reduce dependencies
16683         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16684         * tests/test-renameat.c (main): Likewise.
16685         * modules/linkat-tests (Depends-on): Relax dependency.
16686         * modules/renameat-tests (Depends-on): Likewise.
16687         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16688         dependency explicit.
16689
16690         save-cwd: reduce default dependency
16691         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16692         * lib/save-cwd.c: Update comments.
16693         * NEWS: Document the semantic change.
16694
16695         getcwd: enhance tests
16696         * tests/test-getcwd-lgpl.c: New file, taken from...
16697         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16698         repeat long path stress tests from m4 probe.
16699         * modules/getcwd-lgpl-tests: New module.
16700         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16701         * m4/getcwd-abort-bug.m4: Update comment.
16702         * m4/getcwd-path-max.m4: Likewise.
16703
16704         getcwd-lgpl: new module
16705         * modules/getcwd-lgpl: New module.
16706         * lib/getcwd-lgpl.c: New file.
16707         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16708         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16709         * modules/getcwd (configure.ac): Set C witness.
16710         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16711
16712         getcwd: tweak comments
16713         * m4/getcwd-abort-bug.m4: Fix comments.
16714         * m4/getcwd-path-max.m4: Likewise.
16715         * m4/getcwd.m4: Likewise.
16716
16717 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16718         and Eric Blake  <eblake@redhat.com>
16719
16720         mkstemp: replace if system version uses wrong permissions
16721         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16722         read/write mode bits set in file created by mkstemp.
16723         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16724
16725 2011-04-27  Eric Blake  <eblake@redhat.com>
16726
16727         passfd: avoid compiler warning
16728         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16729         Reported by Laine Stump.
16730
16731 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16732
16733         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16734         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16735
16736 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16737         and Eric Blake  <eblake@redhat.com>
16738
16739         mkstemp: mention clean-temp module
16740         * lib/mkstemp.c: Add comment.
16741         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16742
16743 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16744
16745         inttypes: also provide default values for 32-bit tests
16746         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16747         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16748
16749 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16750
16751         strtoumax: remove dependency on strtoimax
16752         This is like the strtoull change of yesterday.
16753         * modules/strtoumax (Files): Add lib/strtoimax.c.
16754         (Depends-on): Remove strtoimax and add verify.
16755
16756         inttypes-incomplete: new module
16757         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16758         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16759         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16760         of gl_INTTYPES_H.
16761         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16762         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16763         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16764         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16765         * modules/strtoumax, modules/xstrtol (Depends-on):
16766         Depend on inttypes-incomplete, not inttypes.
16767         * modules/inttypes-incomplete: New module, containing the contents
16768         of the old modules/inttypes module, except that the Files: section
16769         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16770         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16771         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16772         (Depends-on): Depend only on inttypes-incomplete.
16773         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16774
16775         inttypes: omit now-redundant strtoimax and strtoumax work
16776         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16777         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16778
16779         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16780         This supports apps that need pointers to strtoimax and strtoumax,
16781         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16782         nonexistent functions.  See
16783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16784         et seq.
16785         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16786         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16787         a macro.
16788         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16789
16790 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16791
16792         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16793
16794 2011-04-25  Bruno Haible  <bruno@clisp.org>
16795
16796         strtol, strtoul: Mark modules as obsolete.
16797         * modules/strtol (Status, Notice): New sections.
16798         * modules/strtoul (Status, Notice): New sections.
16799
16800 2011-04-25  Bruno Haible  <bruno@clisp.org>
16801
16802         strtod: Remove check for strtod, unless supporting old platforms.
16803         * modules/strtod-obsolete: New file.
16804         * m4/strtod-obsolete.m4: New file.
16805         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16806         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16807         * modules/strtod (Depends-on): Add strtod-obsolete.
16808         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16809
16810 2011-04-25  Bruno Haible  <bruno@clisp.org>
16811
16812         strcase: Make module obsolete.
16813         * modules/strcase (Status, Notice): New sections.
16814
16815 2011-04-25  Bruno Haible  <bruno@clisp.org>
16816
16817         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16818         * modules/dup2-obsolete: New file.
16819         * m4/dup2-obsolete.m4: New file.
16820         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16821         gl_FUNC_DUP2_OBSOLETE is not also defined.
16822         * modules/dup2 (Depends-on): Add dup2-obsolete.
16823         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16824
16825 2011-04-25  Bruno Haible  <bruno@clisp.org>
16826
16827         strnlen: Avoid memchr related link error on old obsolete platforms.
16828         * modules/memchr-obsolete: New file.
16829         * m4/memchr-obsolete.m4: New file.
16830         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16831         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16832         * modules/memchr (Depends-on): Add memchr-obsolete.
16833         * modules/strnlen (Depends-on): Likewise.
16834         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16835
16836 2011-04-25  Jim Meyering  <meyering@redhat.com>
16837
16838         maint.mk: makefile_at_at_check extend and clean up
16839         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16840         in addition to */Makefile.am.
16841         Exempt legitimate uses of @VAR@ notation, e.g.,
16842         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16843         Remove obsolete coreutils-specific comment.
16844         Prompted by discussion here:
16845         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16846
16847 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16848
16849         strtoul: remove dependency on strtol
16850         This is so that 'configure' need not check for strtol merely because
16851         the application needs strtoul.
16852         * modules/strtoul (Files): Add lib/strtol.c.
16853         (Depends-on): Remove strtol.
16854
16855         strtoull: remove dependency on strtoul
16856         This is like the strtoll change.
16857         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16858         (Depends-on): Remove strtoul.
16859
16860         strtoll: remove dependency on strtol
16861         This is so that 'configure' need not check for strtol merely because
16862         the application needs strtoll.
16863         * modules/strtoll (Files): Add lib/strtol.c.
16864         (Depends-on): Remove strtol.
16865
16866 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16867
16868         inttypes: Move some configure check to module 'imaxdiv'.
16869         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16870         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16871         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16872
16873 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16874
16875         inttypes: Move some configure check to module 'imaxabs'.
16876         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16877         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16878         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16879
16880 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16881
16882         inttypes: Remove configure tests that are not needed since 2009-12-31.
16883         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16884         gl_cv_header_working_inttypes_h.
16885
16886 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16887
16888         * modules/strnlen (Depends-on): Remove memchr.
16889         The strnlen implementation doesn't need the memchr module's fixes; see
16890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16891
16892         strtol: remove dependency on wchar
16893         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16894         * modules/strtol (Depends-on): Remove wchar.
16895
16896 2011-04-21  Eric Blake  <eblake@redhat.com>
16897
16898         passfd: fix test regression on Linux
16899         * modules/passfd-tests (configure.ac): Correct socketpair check.
16900
16901         passfd: speed up configure and drop unused code
16902         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16903         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16904         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16905         Instead of probing at configure for unix_scm_rights_bsd44_way,
16906         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16907         check to a struct member probe.
16908         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16909         (sendfd, recvfd): Update preprocessor checks.
16910         * modules/passfd (Files): Reflect rename, and drop unused file.
16911         (Depends-on): Drop unused dependency.
16912
16913         passfd: allow compilation on mingw
16914         * modules/sys_socket (Depends-on): Add sys_uio.
16915         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16916         iovec and a minimal struct msghdr.
16917         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16918         * tests/test-sys_socket.c (main): Enhance test.
16919         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16920         guaranteed to provide what we need.
16921         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16922         * modules/passfd-tests (Depends-on): Add sys_wait.
16923         * tests/test-passfd.c (main): Skip test on mingw, for now.
16924         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16925         partial 'struct msghdr' implementation.
16926
16927         sys_uio: new module
16928         * modules/sys_uio: New module.
16929         * modules/sys_uio-tests: Likewise.
16930         * lib/sys_uio.in.h: New file.
16931         * m4/sys_uio_h.m4: Likewise.
16932         * tests/test-sys_uio.c: Likewise.
16933         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
16934         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
16935
16936 2011-04-20  Jim Meyering  <meyering@redhat.com>
16937
16938         useless-if-before-free: avoid false-positive
16939         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
16940         disjunct so that it too requires a terminating ";".  Without that,
16941         this script would identify as useless one statement from gcc that
16942         was not:
16943           if (aligned_ptr)
16944             free (((void **) aligned_ptr) [-1]);
16945
16946 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
16947
16948         doc: update users.txt.
16949         * users.txt: Add barcode.
16950
16951 2011-04-19  Bruno Haible  <bruno@clisp.org>
16952
16953         ioctl: Remove link dependency on native Windows.
16954         * lib/fd-hook.h: Renamed from lib/close-hook.h.
16955         (gl_close_fn, gl_ioctl_fn): New types.
16956         (struct fd_hook): Renamed from struct close_hook. Change type of
16957         private_close_fn field. Add private_ioctl_fn field.
16958         (close_hook_fn): Add parameter for primary close method.
16959         (execute_close_hooks, execute_all_close_hooks): Likewise.
16960         (ioctl_hook_fn): New type.
16961         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
16962         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16963         argument.
16964         (unregister_fd_hook): Renamed from unregister_close_hook.
16965         * lib/fd-hook.c: Renamed from lib/close-hook.c.
16966         Don't include <unistd.h>.
16967         (close): Remove undef.
16968         (anchor): Update.
16969         (execute_close_hooks): Add argument for primary close method.
16970         (execute_all_close_hooks): Likewise.
16971         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
16972         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16973         argument. Allow each argument to be NULL.
16974         (unregister_fd_hook): Renamed from unregister_close_hook.
16975         * lib/close.c (rpl_close): Pass 'close' function pointer to
16976         execute_all_close_hooks.
16977         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
16978         (primary_ioctl): New function.
16979         (ioctl): Don't call ioctlsocket here. Instead, call
16980         execute_all_ioctl_hooks.
16981         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
16982         close method.
16983         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
16984         (fd_sockets_hook): Renamed from close_sockets_hook.
16985         (gl_sockets_startup, gl_sockets_cleanup): Update.
16986         * modules/fd-hook: Renamed from modules/close-hook. Update.
16987         * modules/close (Depends-on): Add fd-hook, remove close-hook.
16988         * modules/sockets (Depends-on): Likewise.
16989         * modules/ioctl (Depends-on): Add fd-hook.
16990         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
16991         GNULIB_SOCKET.
16992
16993 2011-04-19  Bruno Haible  <bruno@clisp.org>
16994
16995         Move the support of O_NONBLOCK in open() to the 'open' module.
16996         * modules/nonblocking (Depends-on): Remove 'open'.
16997         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
16998         gl_cv_have_open_O_NONBLOCK.
16999         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17000         O_NONBLOCK support.
17001         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17002
17003 2011-04-17  Bruno Haible  <bruno@clisp.org>
17004
17005         pipe2: Simplify code.
17006         * lib/pipe2.c (pipe2): Reduce code duplication.
17007
17008 2011-04-17  Bruno Haible  <bruno@clisp.org>
17009
17010         nonblocking: Add comment.
17011         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17012
17013 2011-04-17  Bruno Haible  <bruno@clisp.org>
17014
17015         nonblocking: Add tests for sockets.
17016         * tests/test-nonblocking-socket.sh: New file.
17017         * tests/test-nonblocking-socket-main.c: New file.
17018         * tests/test-nonblocking-socket-child.c: New file.
17019         * tests/test-nonblocking-socket.h: New file.
17020         * tests/socket-server.h: New file.
17021         * tests/socket-client.h: New file.
17022         * modules/nonblocking-socket-tests: New file.
17023         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17024
17025 2011-04-17  Bruno Haible  <bruno@clisp.org>
17026
17027         nonblocking: Add tests for pipes.
17028         * tests/test-nonblocking-pipe.sh: New file.
17029         * tests/test-nonblocking-pipe-main.c: New file.
17030         * tests/test-nonblocking-pipe-child.c: New file.
17031         * tests/test-nonblocking-pipe.h: New file.
17032         * tests/test-nonblocking-writer.h: New file.
17033         * tests/test-nonblocking-reader.h: New file.
17034         * tests/test-nonblocking-misc.h: New file.
17035         * modules/nonblocking-pipe-tests: New file.
17036         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17037
17038 2011-04-16  Bruno Haible  <bruno@clisp.org>
17039
17040         gettext: Clarify the needed programmer actions.
17041         * modules/gettext (Notice): New field.
17042         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17043
17044 2011-04-16  Bruno Haible  <bruno@clisp.org>
17045
17046         strchrnul: Tweak last commit.
17047         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17048         bug.
17049         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17050         as in _GL_FUNCDECL_SYS.
17051         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17052         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17053
17054 2011-04-15  Eric Blake  <eblake@redhat.com>
17055
17056         strchrnul: work around cygwin bug
17057         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17058         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17059         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17060         * modules/string (Makefile.am): Substitute it.
17061         * lib/string.in.h (strchrnul): Use it.
17062
17063 2011-04-15  Bruno Haible  <bruno@clisp.org>
17064
17065         Don't require lib/stdio-write.c when only module 'stdio' is used.
17066         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17067         invocation.
17068         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17069
17070 2011-04-14  Bruno Haible  <bruno@clisp.org>
17071
17072         Support non-blocking pipe I/O in read() on native Windows.
17073         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17074         (read): New declaration.
17075         * lib/read.c: New file.
17076         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17077         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17078         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17079         vscanf): New declarations.
17080         * lib/stdio-read.c: New file.
17081         * m4/read.m4: New file.
17082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17083         REPLACE_READ.
17084         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17085         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17086         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17087         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17088         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17089         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17090         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17091         * modules/read: New file.
17092         * modules/nonblocking (Files): Add lib/stdio-read.c.
17093         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17094         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17095         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17096         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17097         * modules/pread (Depends-on): Add read.
17098         * modules/safe-read (Depends-on): Likewise.
17099         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17100         gets, scanf, vfscanf, vscanf): Verify signatures.
17101         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17102         problem with non-blocking pipes.
17103         * doc/posix-functions/fgetc.texi: Likewise.
17104         * doc/posix-functions/fgets.texi: Likewise.
17105         * doc/posix-functions/fread.texi: Likewise.
17106         * doc/posix-functions/fscanf.texi: Likewise.
17107         * doc/posix-functions/getc.texi: Likewise.
17108         * doc/posix-functions/getchar.texi: Likewise.
17109         * doc/posix-functions/gets.texi: Likewise.
17110         * doc/posix-functions/scanf.texi: Likewise.
17111         * doc/posix-functions/vfscanf.texi: Likewise.
17112         * doc/posix-functions/vscanf.texi: Likewise.
17113
17114 2011-04-14  Bruno Haible  <bruno@clisp.org>
17115
17116         Support non-blocking pipe I/O in write() on native Windows.
17117         * lib/write.c (rpl_write): Split a write request that failed merely
17118         because the byte count was larger than the pipe buffer's size.
17119         * doc/posix-functions/write.texi: Mention the problem with large byte
17120         counts.
17121
17122 2011-04-14  Bruno Haible  <bruno@clisp.org>
17123
17124         wchar: Ensure that wchar_t gets defined on uClibc.
17125         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17126         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17127
17128 2011-04-13  Bruno Haible  <bruno@clisp.org>
17129
17130         safe-write, full-read: Avoid unnecessary compilation units.
17131         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17132         (Depends-on): Remove safe-read. Add ssize_t.
17133         * modules/full-read (Files): Add lib/full-write.c.
17134         (Depends-on): Add full-write.
17135
17136 2011-04-13  Bruno Haible  <bruno@clisp.org>
17137
17138         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17139         * modules/pwrite (Depends-on): Add 'write'.
17140
17141 2011-04-13  Bruno Haible  <bruno@clisp.org>
17142
17143         Support non-blocking pipe I/O in write() on native Windows.
17144         * lib/unistd.in.h (write): Enable replacement also if
17145         GNULIB_UNISTD_H_NONBLOCKING is 1.
17146         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17147         (rpl_write): When failing to write on a non-blocking pipe, change
17148         errno from ENOSPC to EAGAIN.
17149         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17150         putchar, puts, vfprintf, vprintf): Enable replacement also if
17151         GNULIB_STDIO_H_NONBLOCKING is 1.
17152         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17153         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17154         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17155         CALL_WITH_SIGPIPE_EMULATION.
17156         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17157         * m4/nonblocking.m4: New file.
17158         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17159         for non-blocking I/O support.
17160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17161         GNULIB_UNISTD_H_NONBLOCKING.
17162         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17163         required for non-blocking I/O support.
17164         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17165         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17166         lib/stdio-write.c, m4/asm-underscore.m4.
17167         (Depends-on): Add stdio, unistd.
17168         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17169         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17170         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17171         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17172         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17173         problem with non-blocking pipes.
17174         * doc/posix-functions/fputc.texi: Likewise.
17175         * doc/posix-functions/fputs.texi: Likewise.
17176         * doc/posix-functions/fwrite.texi: Likewise.
17177         * doc/posix-functions/printf.texi: Likewise.
17178         * doc/posix-functions/putc.texi: Likewise.
17179         * doc/posix-functions/putchar.texi: Likewise.
17180         * doc/posix-functions/puts.texi: Likewise.
17181         * doc/posix-functions/vfprintf.texi: Likewise.
17182         * doc/posix-functions/vprintf.texi: Likewise.
17183         * doc/posix-functions/write.texi: Likewise.
17184
17185 2011-04-10  Jim Meyering  <meyering@redhat.com>
17186
17187         maint.mk: prohibit doubled words
17188         Detect them also when they're separated by a newline.
17189         There are 3 ways to customize it:
17190           - disable the test on a per file basis, as usual with rules using
17191             $(VC_LIST_EXCEPT)
17192           - replace the default doubled-word-selecting regexp (affects all files)
17193           - ignore a particular file-vs-doubled-word match
17194         I nearly used that last one to ignore the "is is" match in
17195         coreutils' NEWS file, since the text was "ls -is is ..."
17196         To do that, I would have added this line to cfg.mk:
17197           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17198         but it would have ignored any "is is" match in NEWS.
17199         Low probability, but still...
17200         Instead, I changed the text, slightly:
17201           -  ls -is is now consistent with ls -lis in ignoring values returned
17202           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17203         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17204         (prohibit_doubled_word_): Define.
17205         (sc_prohibit_doubled_word): New rule.
17206         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17207
17208 2011-04-10  Jim Meyering  <meyering@redhat.com>
17209
17210         maint: fix doubled-word typo in comment
17211         * m4/gethostname.m4: s/is is/it is/
17212         * m4/getdomainname.m4: Likewise.
17213
17214 2011-04-10  Jim Meyering  <meyering@redhat.com>
17215
17216         maint: remove doubled word: s/it it/it/
17217         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17218
17219 2011-04-10  Jim Meyering  <meyering@redhat.com>
17220
17221         maint.mk: remove useless semicolon and backslash
17222         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17223         semicolon and backslash.
17224
17225 2011-04-10  Bruno Haible  <bruno@clisp.org>
17226
17227         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17228         * modules/stdint-tests (Depends-on): Add wchar.
17229
17230 2011-04-10  Jim Meyering  <meyering@redhat.com>
17231
17232         maint: remove doubled words in comments, e.g., s/a a/a/
17233         * lib/strptime.c (day_of_the_week): s/the the/the/
17234         * tests/test-chown.h (test_chown): s/a a/a/
17235
17236         test-chown.h: correct a cast
17237         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17238         when the destination is a stat.st_gid.
17239
17240 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17241
17242         getaddrinfo: Fix test for sa_len member.
17243         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17244         include <sys/types.h> before <sys/socket.h>.
17245
17246 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17247
17248         maint: change "can not" to "cannot"
17249         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17250         boundaries.
17251
17252 2011-04-09  Jim Meyering  <meyering@redhat.com>
17253
17254         maint: change "a a" to "a"
17255         * tests/test-lchown.h (test_lchown): s/a a/a/
17256
17257         maint.mk: prohibit \<the the\>
17258         * top/maint.mk (sc_prohibit_the_the): New rule.
17259
17260         maint: fix "the the" in comment
17261         * lib/count-one-bits.h: s/the the/the/
17262
17263         maint: change "can not" to "cannot"
17264         But do not change the occurrences in maintain.texi or in
17265         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17266         * doc/gnulib-tool.texi: s/can not/cannot/
17267         * doc/posix-functions/accept.texi (accept): Likewise.
17268         * doc/posix-functions/socket.texi (socket): Likewise.
17269         * lib/mbrtowc.c: Likewise.
17270
17271         maint.mk: prohibit use of "can not"
17272         * top/maint.mk (sc_prohibit_can_not): New rule.
17273         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17274
17275 2011-04-09  Bruno Haible  <bruno@clisp.org>
17276
17277         careadlinkat: Guard against misuse of careadlinkatcwd.
17278         * lib/careadlinkat.c: Include <stdlib.h>.
17279         (careadlinkatcwd): Check that the fd argument is as expected.
17280
17281 2011-04-09  Bruno Haible  <bruno@clisp.org>
17282
17283         careadlinkat: Use common coding style.
17284         * lib/careadlinkat.c: Move gnulib includes after system includes.
17285
17286 2011-04-09  Bruno Haible  <bruno@clisp.org>
17287
17288         careadlinkat: Clarify specification.
17289         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17290         (careadlinkatcwd): Add comment.
17291         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17292
17293 2011-04-09  Bruno Haible  <bruno@clisp.org>
17294
17295         areadlinkat: Avoid link error on many platforms.
17296         * modules/areadlinkat (Depends-on): Add areadlink.
17297
17298 2011-04-09  Bruno Haible  <bruno@clisp.org>
17299
17300         allocator, careadlinkat: Fix double-inclusion guard.
17301         * lib/allocator.h: Fix double-inclusion guard.
17302         * lib/careadlinkat.h: Likewise.
17303
17304 2011-04-09  Bruno Haible  <bruno@clisp.org>
17305
17306         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17307         * lib/relocwrapper.c: Update dependencies hierarchy.
17308         * build-aux/install-reloc: Update list of files to be compiled.
17309         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17310         lib/allocator.[hc].
17311
17312 2011-04-08  Eric Blake  <eblake@redhat.com>
17313
17314         strftime: silence gnulib-tool warning
17315         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17316
17317 2011-04-08  Bruno Haible  <bruno@clisp.org>
17318
17319         verify: Fix syntax error with GCC 4.6 in C++ mode.
17320         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17321         (HAVE_STATIC_ASSERT): New macro.
17322         (verify_true, verify): Use 'static_assert' if it is supported and
17323         '_Static_assert' is not supported.
17324
17325 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17326
17327         allocator: New module.
17328         * modules/allocator, lib/allocator.c: New files.
17329         * lib/allocator.h (stdlib_allocator): New decl.
17330         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17331         Remove.  Do not include <stdlib.h>.
17332         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17333         * modules/careadlinkat (Files): Remove lib/allocator.h.
17334         (Depends-on): Add allocator.
17335
17336         stdlib: let modules use system malloc, realloc
17337         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17338         if !_GL_USE_STDLIB_ALLOC.
17339         (malloc, realloc): Limit this change to a smaller scope.
17340
17341         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17342         (malloc, realloc): Don't #undef; no longer needed.
17343         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17344         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17345         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17346         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17347         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17348         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17349         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17350         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17351
17352         careadlinkat: rename members to avoid problem
17353         * lib/allocator.h (struct allocator): Rename members from
17354         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17355         and realloc are #define'd.  Reported by Eric Blake in
17356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17357         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17358
17359 2011-04-08  Eric Blake  <eblake@redhat.com>
17360
17361         nonblocking: reduce dependency
17362         * tests/test-nonblocking.c: Only test sockets when in use.
17363         * modules/nonblocking-tests (Depends-on): Drop socket.
17364         (Makefile.am): Link even if sockets are not present.
17365         * modules/pipe2-tests (Makefile.am): Likewise.
17366         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17367
17368         pipe2: fix O_NONBLOCK support on mingw
17369         * modules/pipe2 (Depends-on): Add nonblocking.
17370         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17371         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17372         * tests/test-nonblocking.c (main): Likewise.
17373         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17374
17375         fcntl-h: fix O_ACCMODE on cygwin
17376         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17377         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17378
17379         pipe-filter: drop O_NONBLOCK workarounds
17380         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17381         * modules/pipe-filter-ii (Depends-on): Likewise.
17382         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17383
17384         nonblocking: provide O_NONBLOCK for mingw
17385         * modules/nonblocking (Depends-on): Add open.
17386         (configure.ac): Set new witness macro.
17387         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17388         * modules/fcntl-h (Makefile.am): Substitute it.
17389         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17390         nonblocking module is in use.
17391         * lib/nonblocking.c: Adjust portability test.
17392         * lib/open.c (open): Don't let native open see gnulib flag.
17393         * tests/test-fcntl-h.c (main): Enhance test.
17394         * tests/test-open.h (test_open): Likewise.
17395         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17396
17397         careadlinkat: fix compilation error on mingw
17398         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17399         within struct allocator.
17400
17401 2011-04-06  Eric Blake  <eblake@redhat.com>
17402
17403         binary-io: relicense under LGPLv2+
17404         * modules/binary-io (License): Relax to LGPLv2+.
17405         Requested for libvirt, and required by pipe2.
17406
17407 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17408
17409         verify: use _Static_assert if available
17410         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17411         (verify_true, verify): Use it if available.  This generates better
17412         diagnostics with GCC 4.6.0 and later.
17413
17414 2011-04-05  Bruno Haible  <bruno@clisp.org>
17415
17416         Remove leftover generated .h files after config.status changed.
17417
17418         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17419         GL_GENERATE_ALLOCA_H.
17420         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17421         GL_GENERATE_ALLOCA_H evaluates to false.
17422
17423         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17424         GL_GENERATE_ARGZ_H.
17425         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17426         evaluates to false.
17427
17428         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17429         GL_GENERATE_BYTESWAP_H.
17430         * modules/byteswap (Makefile.am): Remove byteswap.h if
17431         GL_GENERATE_BYTESWAP_H evaluates to false.
17432
17433         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17434         GL_GENERATE_ERRNO_H.
17435         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17436         evaluates to false.
17437
17438         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17439         GL_GENERATE_FLOAT_H.
17440         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17441         evaluates to false.
17442
17443         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17444         GL_GENERATE_FNMATCH_H.
17445         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17446         GL_GENERATE_FNMATCH_H evaluates to false.
17447
17448         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17449         GL_GENERATE_GLOB_H.
17450         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17451         evaluates to false.
17452
17453         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17454         automake conditional GL_GENERATE_ICONV_H.
17455         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17456         evaluates to false.
17457
17458         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17459         GL_GENERATE_NETINET_IN_H.
17460         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17461         GL_GENERATE_NETINET_IN_H evaluates to false.
17462
17463         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17464         conditional GL_GENERATE_PTHREAD_H.
17465         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17466         * modules/pthread (Makefile.am): Remove pthread.h if
17467         GL_GENERATE_PTHREAD_H evaluates to false.
17468
17469         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17470         GL_GENERATE_SCHED_H.
17471         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17472         evaluates to false.
17473
17474         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17475         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17476         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17477         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17478
17479         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17480         GL_GENERATE_STDARG_H.
17481         * modules/stdarg (Makefile.am): Remove stdarg.h if
17482         GL_GENERATE_STDARG_H evaluates to false.
17483
17484         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17485         GL_GENERATE_STDBOOL_H.
17486         * modules/stdbool (Makefile.am): Remove stdbool.h if
17487         GL_GENERATE_STDBOOL_H evaluates to false.
17488
17489         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17490         conditional GL_GENERATE_STDDEF_H.
17491         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17492         * modules/stddef (Makefile.am): Remove stddef.h if
17493         GL_GENERATE_STDDEF_H evaluates to false.
17494
17495         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17496         GL_GENERATE_STDINT_H.
17497         * modules/stdint (Makefile.am): Remove stdint.h if
17498         GL_GENERATE_STDINT_H evaluates to false.
17499
17500         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17501         GL_GENERATE_SYSEXITS_H.
17502         * modules/sysexits (Makefile.am): Remove sysexits.h if
17503         GL_GENERATE_SYSEXITS_H evaluates to false.
17504
17505         Reported by Karl Berry and Ralf Wildenhues.
17506
17507 2011-04-05  Bruno Haible  <bruno@clisp.org>
17508
17509         Ensure to rebuild generated .h files when config.status has changed.
17510         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17511         config.status.
17512         * modules/ctype (Makefile.am): Likewise.
17513         * modules/dirent (Makefile.am): Likewise.
17514         * modules/errno (Makefile.am): Likewise.
17515         * modules/fcntl-h (Makefile.am): Likewise.
17516         * modules/float (Makefile.am): Likewise.
17517         * modules/getopt-posix (Makefile.am): Likewise.
17518         * modules/glob (Makefile.am): Likewise.
17519         * modules/iconv-h (Makefile.am): Likewise.
17520         * modules/inttypes (Makefile.am): Likewise.
17521         * modules/langinfo (Makefile.am): Likewise.
17522         * modules/locale (Makefile.am): Likewise.
17523         * modules/math (Makefile.am): Likewise.
17524         * modules/netdb (Makefile.am): Likewise.
17525         * modules/netinet_in (Makefile.am): Likewise.
17526         * modules/poll-h (Makefile.am): Likewise.
17527         * modules/pthread (Makefile.am): Likewise.
17528         * modules/pty (Makefile.am): Likewise.
17529         * modules/sched (Makefile.am): Likewise.
17530         * modules/search (Makefile.am): Likewise.
17531         * modules/selinux-h (Makefile.am): Likewise.
17532         * modules/signal (Makefile.am): Likewise.
17533         * modules/spawn (Makefile.am): Likewise.
17534         * modules/stdarg (Makefile.am): Likewise.
17535         * modules/stdbool (Makefile.am): Likewise.
17536         * modules/stddef (Makefile.am): Likewise.
17537         * modules/stdint (Makefile.am): Likewise.
17538         * modules/stdio (Makefile.am): Likewise.
17539         * modules/stdlib (Makefile.am): Likewise.
17540         * modules/string (Makefile.am): Likewise.
17541         * modules/strings (Makefile.am): Likewise.
17542         * modules/sys_file (Makefile.am): Likewise.
17543         * modules/sys_ioctl (Makefile.am): Likewise.
17544         * modules/sys_select (Makefile.am): Likewise.
17545         * modules/sys_socket (Makefile.am): Likewise.
17546         * modules/sys_stat (Makefile.am): Likewise.
17547         * modules/sys_time (Makefile.am): Likewise.
17548         * modules/sys_times (Makefile.am): Likewise.
17549         * modules/sys_utsname (Makefile.am): Likewise.
17550         * modules/sys_wait (Makefile.am): Likewise.
17551         * modules/sysexits (Makefile.am): Likewise.
17552         * modules/termios (Makefile.am): Likewise.
17553         * modules/time (Makefile.am): Likewise.
17554         * modules/unistd (Makefile.am): Likewise.
17555         * modules/wchar (Makefile.am): Likewise.
17556         * modules/wctype-h (Makefile.am): Likewise.
17557         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17558
17559 2011-04-05  Bruno Haible  <bruno@clisp.org>
17560
17561         pipe2: Relicense under LGPLv2+.
17562         * modules/pipe2 (License): Change to LGPLv2+.
17563         Requested by Eric Blake, for libvirt.
17564
17565 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17566
17567         bootstrap: compute gnulib_extra_files after updating build_aux
17568         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17569         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17570
17571 2011-04-05  Eric Blake  <eblake@redhat.com>
17572
17573         bootstrap: preserve git whitelist item sorting
17574         * build-aux/bootstrap (sort_patterns): New function.
17575         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17576
17577 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17578
17579         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17580         sc_space_tab check.
17581
17582 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17583
17584         areadlink, areadlinkat: rewrite in terms of careadlinkat
17585         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17586         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17587         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17588         (malloc, realloc): Remove #undefs.
17589         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17590         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17591         readlink, ssize_t, stdint, unistd.
17592         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17593         areadlink, stdint.
17594
17595         careadlinkat: new module
17596         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17597         * modules/careadlinkat: New files, written by me with
17598         a review and feedback from Ben Pfaff in
17599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17600
17601 2011-04-01  Bruno Haible  <bruno@clisp.org>
17602
17603         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17604         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17605         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17606         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17607         Reported by Bruce Korb <bruce.korb@gmail.com>.
17608
17609 2011-04-01  Bruno Haible  <bruno@clisp.org>
17610
17611         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17612         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17613         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17614         * modules/wcpcpy (Depends-on): Add extensions.
17615         * modules/wcpncpy (Depends-on): Likewise.
17616         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17617         systems.
17618         * doc/posix-functions/wcpncpy.texi: Likewise.
17619         * doc/posix-functions/wcwidth.texi: Likewise.
17620
17621 2011-03-31  Eric Blake  <eblake@redhat.com>
17622
17623         nonblocking: fix mingw test failures
17624         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17625         non-blocking flag on regular file.
17626         (get_nonblocking_flag): Set errno on invalid fd.
17627         * tests/test-nonblocking.c (main): Avoid test failure on
17628         directories if fchdir is not active.
17629         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17630
17631 2011-03-31  Bruno Haible  <bruno@clisp.org>
17632
17633         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17634         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17635         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17636         Reported by Simon Josefsson <simon@josefsson.org>.
17637
17638 2011-03-31  Bruno Haible  <bruno@clisp.org>
17639         and Eric Blake  <eblake@redhat.com>
17640
17641         nonblocking: new module
17642         * modules/nonblocking: New module.
17643         * modules/nonblocking-tests: Likewise.
17644         * lib/nonblocking.h: New file.
17645         * lib/nonblocking.c: Likewise.
17646         * tests/test-nonblocking.c: New test.
17647         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17648
17649 2011-03-30  Bruno Haible  <bruno@clisp.org>
17650
17651         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17652         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17653         instead of 'printf' format for GCC >= 4.4.
17654         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17655         (fprintf, printf, vfprintf, vprintf): Declare with
17656         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17657         the system's vfprintf() function.
17658         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17659
17660 2011-03-30  Eric Blake  <eblake@redhat.com>
17661
17662         passfd: fix scoping bug
17663         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17664         before sendmsg/recvmsg.
17665
17666         passfd: standardize coding conventions
17667         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17668         can be learned at compile time.
17669         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17670         ifdefs.
17671         (sendfd, recvfd): Follow gnulib code conventions.
17672
17673         passfd: fix incorrect sendmsg arguments
17674         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17675         incorrect msg_controllen value.
17676         * modules/passfd-tests (Depends-on): Check for alarm.
17677         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17678         Reported by Bastien ROUCARIES.
17679
17680 2011-03-30  Bruno Haible  <bruno@clisp.org>
17681
17682         c-strcasestr: Relicense under LGPLv2+.
17683         * modules/c-strcasestr (License): Change to LGPLv2+.
17684         Requested by Eric Blake, for libvirt.
17685
17686 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17687
17688         * users.txt: Add libidn2.  Fix libtasn1 link.
17689
17690 2011-03-30  Jim Meyering  <meyering@redhat.com>
17691
17692         tests: readlink* ("",... fails with EINVAL on newer kernels
17693         readlink and readlinkat have typically failed with ENOENT for
17694         the invalid, empty file name,  "".  However, with the advent
17695         of linux-2.6.39, they fail with EINVAL.
17696         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17697         when operating on the empty file name.
17698         * tests/test-readlink.h (test_readlink): Likewise.
17699
17700 2011-03-29  Bruno Haible  <bruno@clisp.org>
17701
17702         Relicense some modules under LGPLv2+, for libidn2.
17703         * modules/array-mergesort (License): Change to LGPLv2+.
17704         * modules/c-strcaseeq (License): Likewise.
17705         * modules/striconveh (License): Likewise.
17706         * modules/striconveha (License): Likewise.
17707         * modules/uniconv/base (License): Likewise.
17708         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17709         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17710         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17711         * modules/unictype/base (License): Likewise.
17712         * modules/unictype/bidiclass-of (License): Likewise.
17713         * modules/unictype/category-M (License): Likewise.
17714         * modules/unictype/category-none (License): Likewise.
17715         * modules/unictype/category-of (License): Likewise.
17716         * modules/unictype/category-test (License): Likewise.
17717         * modules/unictype/category-test-withtable (License): Likewise.
17718         * modules/unictype/combining-class (License): Likewise.
17719         * modules/unictype/joiningtype-of (License): Likewise.
17720         * modules/unictype/scripts (License): Likewise.
17721         * modules/uninorm/base (License): Likewise.
17722         * modules/uninorm/canonical-decomposition (License): Likewise.
17723         * modules/uninorm/composition (License): Likewise.
17724         * modules/uninorm/decompose-internal (License): Likewise.
17725         * modules/uninorm/decomposition-table (License): Likewise.
17726         * modules/uninorm/nfc (License): Likewise.
17727         * modules/uninorm/nfd (License): Likewise.
17728         * modules/uninorm/u32-normalize (License): Likewise.
17729         * modules/unistr/base (License): Likewise.
17730         * modules/unistr/u32-cpy (License): Likewise.
17731         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17732         * modules/unistr/u32-to-u8 (License): Likewise.
17733         * modules/unistr/u32-uctomb (License): Likewise.
17734         * modules/unistr/u8-check (License): Likewise.
17735         * modules/unistr/u8-mblen (License): Likewise.
17736         * modules/unistr/u8-mbtouc (License): Likewise.
17737         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17738         * modules/unistr/u8-mbtoucr (License): Likewise.
17739         * modules/unistr/u8-prev (License): Likewise.
17740         * modules/unistr/u8-strlen (License): Likewise.
17741         * modules/unistr/u8-to-u32 (License): Likewise.
17742         * modules/unistr/u8-uctomb (License): Likewise.
17743         * modules/unitypes (License): Likewise.
17744         Requested by Simon Josefsson.
17745
17746 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17747
17748         lib-symbol-visibility: Add a notice.
17749         * modules/lib-symbol-visibility (Notice): New field.
17750
17751 2011-03-29  Bruno Haible  <bruno@clisp.org>
17752
17753         getaddrinfo: Doc fix.
17754         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17755         section "fixed in Gnulib".
17756
17757 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17758
17759         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17760         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17761
17762 2011-03-26  Bruno Haible  <bruno@clisp.org>
17763
17764         unictype/property-byname: Reduce the number of load-time relocations.
17765         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17766         (UC_PROPERTY_INDEX_*): New enumeration values.
17767         (uc_property_byname): Convert an index from the lookup table to an
17768         uc_property_t.
17769         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17770         values.
17771
17772 2011-03-26  Bruno Haible  <bruno@clisp.org>
17773
17774         unictype/property-byname: Allow omitted word separators and aliases.
17775         * lib/unictype/pr_byname.gperf: Add property names without word
17776         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17777         for 'space'.
17778
17779 2011-03-26  Bruno Haible  <bruno@clisp.org>
17780
17781         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17782         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17783         also hyphens to space.
17784         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17785         without spaces.
17786         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17787
17788 2011-03-26  Bruno Haible  <bruno@clisp.org>
17789
17790         unictype/joiningtype-byname: Recognize long names as well.
17791         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17792         a long name.
17793         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17794         unictype/joiningtype_byname.h.
17795         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17796         * lib/unictype/joiningtype_byname.gperf: New file.
17797         * modules/unictype/joiningtype-byname (Files): Add
17798         lib/unictype/joiningtype_byname.gperf.
17799         (Depends-on): Add gperf.
17800         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17801         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17802         long names.
17803
17804         Tests for module 'unictype/joiningtype-longname'.
17805         * modules/unictype/joiningtype-longname-tests: New file.
17806         * tests/unictype/test-joiningtype_longname.c: New file.
17807
17808         New module 'unictype/joiningtype-longname'.
17809         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17810         * lib/unictype/joiningtype_longname.c: New file.
17811         * modules/unictype/joiningtype-longname: New file.
17812         * modules/unictype/joiningtype-all (Depends-on): Add
17813         unictype/joiningtype-longname.
17814
17815 2011-03-26  Bruno Haible  <bruno@clisp.org>
17816
17817         unictype/bidiclass-byname: Recognize long names as well.
17818         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17819         name.
17820         * lib/unictype/bidi_byname.c: Include <string.h>,
17821         unictype/bidi_byname.h.
17822         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17823         * lib/unictype/bidi_byname.gperf: New file.
17824         * modules/unictype/bidiclass-byname (Files): Add
17825         lib/unictype/bidi_byname.gperf.
17826         (Depends-on): Add gperf.
17827         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17828         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17829         long names.
17830
17831         Tests for module 'unictype/bidiclass-longname'.
17832         * modules/unictype/bidiclass-longname-tests: New file.
17833         * tests/unictype/test-bidi_longname.c: New file.
17834
17835         New module 'unictype/bidiclass-longname'.
17836         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17837         * lib/unictype/bidi_longname.c: New file.
17838         * modules/unictype/bidiclass-longname: New file.
17839         * modules/unictype/bidiclass-all (Depends-on): Add
17840         unictype/bidiclass-longname.
17841
17842 2011-03-26  Bruno Haible  <bruno@clisp.org>
17843
17844         unictype/bidi*: Rename modules.
17845         * modules/unictype/bidiclass-all: Renamed from
17846         modules/unictype/bidicategory-all.
17847         * modules/unictype/bidiclass-name: Renamed from
17848         modules/unictype/bidiclass-name.
17849         (Description): Update.
17850         * modules/unictype/bidiclass-name-tests: Renamed from
17851         modules/unictype/bidicategory-name-tests.
17852         * modules/unictype/bidiclass-byname: Renamed from
17853         modules/unictype/bidicategory-byname.
17854         (Description): Update.
17855         * modules/unictype/bidiclass-byname-tests: Renamed from
17856         modules/unictype/bidicategory-byname-tests.
17857         * modules/unictype/bidiclass-of: Renamed from
17858         modules/unictype/bidicategory-of.
17859         (Description): Update.
17860         * modules/unictype/bidiclass-of-tests: Renamed from
17861         modules/unictype/bidicategory-of-tests.
17862         * modules/unictype/bidiclass-test: Renamed from
17863         modules/unictype/bidicategory-test.
17864         (Description): Update.
17865         * modules/unictype/bidiclass-test-tests: Renamed from
17866         modules/unictype/bidicategory-test-tests.
17867         * modules/unictype/bidicategory-all: New file, a simple redirection.
17868         * modules/unictype/bidicategory-name: Likewise.
17869         * modules/unictype/bidicategory-byname: Likewise.
17870         * modules/unictype/bidicategory-of: Likewise.
17871         * modules/unictype/bidicategory-test: Likewise.
17872         * modules/unictype/property-bidi-* (Dependencies): Update.
17873         * lib/unictype/bidi_*.c: Update comment.
17874
17875 2011-03-26  Bruno Haible  <bruno@clisp.org>
17876
17877         unictype/bidi*: Rename functions, part 2.
17878         * modules/unictype/bidicategory-name (configure.ac): Update required
17879         libunistring version.
17880         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17881
17882 2011-03-25  Bruno Haible  <bruno@clisp.org>
17883
17884         New module 'unictype/combining-class-all'.
17885         * modules/unictype/combining-class-all: New file.
17886
17887         Tests for module 'unictype/combining-class-byname'.
17888         * modules/unictype/combining-class-byname-tests: New file.
17889         * tests/unictype/test-combiningclass_byname.c: New file.
17890
17891         New module 'unictype/combining-class-byname'.
17892         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17893         * lib/unictype/combiningclass_byname.c: New file.
17894         * lib/unictype/combiningclass_byname.gperf: New file.
17895         * modules/unictype/combining-class-byname: New file.
17896
17897         Tests for module 'unictype/combining-class-longname'.
17898         * modules/unictype/combining-class-longname-tests: New file.
17899         * tests/unictype/test-combiningclass_longname.c: New file.
17900
17901         New module 'unictype/combining-class-longname'.
17902         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17903         * lib/unictype/combiningclass_longname.c: New file.
17904         * modules/unictype/combining-class-longname: New file.
17905
17906         Tests for module 'unictype/combining-class-name'.
17907         * modules/unictype/combining-class-name-tests: New file.
17908         * tests/unictype/test-combiningclass_name.c: New file.
17909
17910         New module 'unictype/combining-class-name'.
17911         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17912         * lib/unictype/combiningclass_name.c: New file.
17913         * modules/unictype/combining-class-name: New file.
17914
17915 2011-03-25  Bruno Haible  <bruno@clisp.org>
17916
17917         unictype/combining-class: Rename source files.
17918         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17919         of unictype/combining.h.
17920         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17921         Update.
17922         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17923         * modules/unictype/combining-class (Description): Fix.
17924         (Files, Makefile.am): Update.
17925         * tests/unictype/test-combiningclass.c: Renamed from
17926         tests/unictype/test-combining.c.
17927         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
17928
17929 2011-03-25  Bruno Haible  <bruno@clisp.org>
17930
17931         unictype: Update list of canonical combining classes.
17932         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
17933
17934 2011-03-25  Bruno Haible  <bruno@clisp.org>
17935
17936         unictype/category-byname: Recognize long names as well.
17937         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
17938         a long name.
17939         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
17940         unictype/categ_byname.h.
17941         (UC_CATEGORY_INDEX_*): New enumeration values.
17942         (uc_general_category_byname): Use uc_general_category_lookup and
17943         convert from index to value.
17944         * lib/unictype/categ_byname.gperf: New file.
17945         * modules/unictype/category-byname (Files): Add
17946         lib/unictype/categ_byname.gperf.
17947         (Depends-on): Add gperf.
17948         (Makefile.am): Add rule for generating unictype/categ_byname.h.
17949         * tests/unictype/test-categ_byname.c (main): Test the recognition of
17950         long names.
17951
17952         Tests for module 'unictype/category-longname'.
17953         * modules/unictype/category-longname-tests: New file.
17954         * tests/unictype/test-categ_longname.c: New file.
17955
17956         New module 'unictype/category-longname'.
17957         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
17958         * lib/unictype/categ_longname.c: New file.
17959         * modules/unictype/category-longname: New file.
17960         * modules/unictype/category-all (Depends-on): Add it.
17961
17962 2011-03-25  Bruno Haible  <bruno@clisp.org>
17963
17964         Tests for module 'unictype/category-LC'.
17965         * modules/unictype/category-LC-tests: New file.
17966         * tests/unictype/test-categ_LC.c: New file, automatically generated.
17967
17968         New module 'unictype/category-LC'.
17969         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
17970         (UC_CATEGORY_LC): New declaration.
17971         (UC_CASED_LETTER): New macro.
17972         * lib/gen-uni-tables.c (is_category_LC): New function.
17973         (output_categories): Also handle category LC.
17974         (UC_CATEGORY_MASK_LC): New enumeration value.
17975         (general_category_byname): Also handle category LC.
17976         * lib/unictype/categ_LC.c: New file.
17977         * lib/unictype/categ_LC.h: New file, automatically generated.
17978         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
17979         category LC.
17980         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
17981         * modules/unictype/category-LC: New file.
17982         * modules/unictype/category-byname (Depends-on): Add
17983         unictype/category-LC.
17984         * modules/unictype/category-all (Depends-on): Likewise.
17985
17986 2011-03-25  Eric Blake  <eblake@redhat.com>
17987
17988         xmalloc: revert yesterday's regression
17989         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
17990         realloc's underlying behavior (allowing allocation of zero-size
17991         objects, especially if malloc-gnu is also in use).
17992
17993 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
17994
17995         maint.mk: add missing version to VC-tag
17996         * top/maint.mk: git tag was missing actual tag name; add it.
17997
17998         valgrind: do leak checking, and exit with code 1 on error (not 0)
17999         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18000         to VALGRIND.
18001
18002 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18003
18004         posix-modules: say what it does.
18005         * posix-modules: Add a line to the --help output saying what it does.
18006
18007 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18008
18009         xmalloc: Do not leak if underlying realloc is C99 compatible.
18010         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18011         This avoids a leak on C99-based systems.  See
18012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18013
18014 2011-03-24  Eric Blake  <eblake@redhat.com>
18015
18016         realloc: document portability problem
18017         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18018         passing 0 size to realloc.
18019
18020 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18021
18022         doc: update users.txt
18023         * users.txt: Add cvsps, tmpwatch
18024
18025 2011-03-23  Matt Rice  <ratmice@gmail.com>
18026
18027         doc: update users.txt
18028         * users.txt: Add gdb.
18029
18030 2011-03-23  Jim Meyering  <meyering@redhat.com>
18031
18032         doc: update users.txt
18033         Looking through matches up to the following URL (there are still
18034         several more pages), I found several projects that use gnulib:
18035         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18036         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18037         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18038
18039 2011-03-22  Bruno Haible  <bruno@clisp.org>
18040
18041         unictype/bidi*: Rename functions.
18042         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18043         uc_bidi_class, uc_is_bidi_class): New declarations.
18044         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18045         uc_bidi_category_byname.
18046         (uc_bidi_category_byname): New function.
18047         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18048         u_bidi_category_name.
18049         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18050         (uc_bidi_category_name): New function.
18051         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18052         uc_bidi_category.
18053         (uc_bidi_category): New function.
18054         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18055         uc_is_bidi_category. Invoke uc_bidi_class.
18056         (uc_is_bidi_category): New function.
18057         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18058         instead of uc_bidi_category_byname.
18059         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18060         instead of uc_bidi_category_name.
18061         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18062         uc_bidi_category.
18063         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18064         instead of uc_is_bidi_category.
18065
18066 2011-03-21  Bruno Haible  <bruno@clisp.org>
18067
18068         New module 'unictype/joininggroup-all'.
18069         * modules/unictype/joininggroup-all: New file.
18070
18071         Tests for module 'unictype/joininggroup-of'.
18072         * modules/unictype/joininggroup-of-tests: New file.
18073         * tests/unictype/test-joininggroup_of.c: New file.
18074         * tests/unictype/test-joininggroup_of.h: New file, automatically
18075         generated by gen-uni-tables.
18076
18077         New module 'unictype/joininggroup-of'.
18078         * modules/unictype/joininggroup-of: New file.
18079         * lib/unictype/joininggroup_of.c: New file.
18080         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18081         gen-uni-tables.
18082
18083         Tests for module 'unictype/joininggroup-byname'.
18084         * modules/unictype/joininggroup-byname-tests: New file.
18085         * tests/unictype/test-joininggroup_byname.c: New file.
18086
18087         New module 'unictype/joininggroup-byname'.
18088         * modules/unictype/joininggroup-byname: New file.
18089         * lib/unictype/joininggroup_byname.c: New file.
18090         * lib/unictype/joininggroup_byname.gperf: New file.
18091
18092         Tests for module 'unictype/joininggroup-name'.
18093         * modules/unictype/joininggroup-name-tests: New file.
18094         * tests/unictype/test-joininggroup_name.c: New file.
18095
18096         New module 'unictype/joininggroup-name'.
18097         * modules/unictype/joininggroup-name: New file.
18098         * lib/unictype/joininggroup_name.c: New file.
18099         * lib/unictype/joininggroup_name.h: New file.
18100
18101         New module 'unictype/joiningtype-all'.
18102         * modules/unictype/joiningtype-all: New file.
18103
18104         Tests for module 'unictype/joiningtype-of'.
18105         * modules/unictype/joiningtype-of-tests: New file.
18106         * tests/unictype/test-joiningtype_of.c: New file.
18107         * tests/unictype/test-joiningtype_of.h: New file, automatically
18108         generated by gen-uni-tables.
18109
18110         New module 'unictype/joiningtype-of'.
18111         * modules/unictype/joiningtype-of: New file.
18112         * lib/unictype/joiningtype_of.c: New file.
18113         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18114         gen-uni-tables.
18115
18116         Tests for module 'unictype/joiningtype-byname'.
18117         * modules/unictype/joiningtype-byname-tests: New file.
18118         * tests/unictype/test-joiningtype_byname.c: New file.
18119
18120         New module 'unictype/joiningtype-byname'.
18121         * modules/unictype/joiningtype-byname: New file.
18122         * lib/unictype/joiningtype_byname.c: New file.
18123
18124         Tests for module 'unictype/joiningtype-name'.
18125         * modules/unictype/joiningtype-name-tests: New file.
18126         * tests/unictype/test-joiningtype_name.c: New file.
18127
18128         New module 'unictype/joiningtype-name'.
18129         * modules/unictype/joiningtype-name: New file.
18130         * lib/unictype/joiningtype_name.c: New file.
18131
18132         unictype: Add support for Arabic shaping properties.
18133         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18134         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18135         declarations.
18136         (UC_JOINING_GROUP_*): New enumeration values.
18137         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18138         declarations.
18139         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18140         (unicode_joining_type): New variable.
18141         (UC_JOINING_GROUP_*): New enumeration values.
18142         (unicode_joining_group): New variable.
18143         (fill_arabicshaping, joining_type_as_c_identifier,
18144         output_joining_type_test, output_joining_type,
18145         joining_group_as_c_identifier, output_joining_group_test,
18146         output_joining_group): New functions.
18147         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18148         fill_arabicshaping and output_joining_type_test, output_joining_type,
18149         output_joining_group_test, output_joining_group.
18150         Reported by Simon Josefsson.
18151
18152 2011-03-21  Jim Meyering  <meyering@redhat.com>
18153
18154         strftime: fix a bug in yesterday's change
18155         * lib/strftime.c (add): Accommodate width's initial value of -1.
18156         Otherwise, nstrftime would copy uninitialized data into
18157         the result buffer.
18158
18159 2011-03-21  Jim Meyering  <meyering@redhat.com>
18160
18161         tests: add strftime-tests module
18162         * tests/test-strftime.c: New file.
18163         * modules/strftime-tests: New module.
18164
18165 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18166
18167         strftime: don't assume a byte count fits in 'int'
18168         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18169         found this problem by static analysis, using gcc -Wstrict-overflow
18170         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18171         on an integer overflow having undefined behavior, but it turns out
18172         that the argument is a size, which might not fit in 'int' anyway,
18173
18174 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18175
18176         stdio: don't require ignore_value around fwrite
18177
18178         This patch works around libc bug 11959
18179         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18180         Without this patch, applications must often write
18181         ignore_value (fwrite (...)) even though the ignore_value is
18182         not helpful here.  It's common to write many objects, using
18183         fwrite/printf/etc., and then use ferror to detect output error.
18184
18185         I considered making this patch optional, but decided against it,
18186         because libc is obviously being inconsistent here: there is no
18187         reason libc should insist that user code must inspect fwrite
18188         return's value without also insisting that it inspect printf's,
18189         putchar's, etc.  If user code wants to have a strict style where
18190         all these functions' values are checked (so that ferror need not
18191         be checked), we could add support for that style in a new gnulib
18192         module, but in the meantime it's better to be consistent and to
18193         support common usage.
18194
18195         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18196         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18197         that we are compiling in checking mode, and if not C++, and
18198         if not already wrapping fwrite for some other reason.
18199         (fwrite): #define to rpl_fwrite if the latter is defined.
18200
18201 2011-03-20  Bruno Haible  <bruno@clisp.org>
18202
18203         verror: Fix compilation error introduced on 2011-02-13.
18204         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18205         instead of __attribute__.
18206         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18207
18208 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18209             Bruno Haible  <bruno@clisp.org>
18210
18211         socklen: do not depend on sys_socket
18212         While trying to modify Emacs to use gnulib's socklen module,
18213         I discovered a circular dependency: socklen depends on sys_socket
18214         and vice versa.  Emacs can use socklen, but it does not need
18215         sys_socket because it has its own substitute for sys/socket.h.
18216         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18217         gl_TYPE_SOCKLEN_T.
18218         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18219         gl_PREREQ_SYS_H_SOCKET.
18220         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18221         gl_PREREQ_SYS_H_SOCKET.
18222         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18223         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18224         * modules/socklen (Depends-on): Do not depend on sys_socket.
18225         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18226
18227 2011-03-20  Jim Meyering  <meyering@redhat.com>
18228
18229         maint.mk: sort file names *after* new transformation
18230         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18231         prefix would have led to an unwarranted failure in GNU parted.
18232         Sort after that transformation.
18233
18234 2011-03-19  Jim Meyering  <meyering@redhat.com>
18235
18236         maint.mk: fix po-file syntax-check rule
18237         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18238         Patch by Bruno Haible.
18239
18240 2011-03-19  Bruno Haible  <bruno@clisp.org>
18241
18242         socklen: Update comment.
18243         * m4/socklen.m4: Update comment about platforms.
18244
18245 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18246             Bruno Haible  <bruno@clisp.org>
18247
18248         inet_ntop, inet_pton: Simplify.
18249         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18250         documented to provide socklen_t and we already depend on sys_socket.
18251         * modules/inet_pton (Depends-on): Likewise.
18252         * lib/arpa_inet.in.h: Adjust comment.
18253
18254 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18255             Bruno Haible  <bruno@clisp.org>
18256
18257         netdb: Simplify.
18258         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18259         documented to provide socklen_t and we already depend on sys_socket.
18260         * lib/netdb.in.h: Adjust comment.
18261
18262 2011-03-19  Bruno Haible  <bruno@clisp.org>
18263
18264         sys_socket, netdb: Document problem with socklen_t.
18265         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18266         platforms.
18267         * doc/posix-headers/netdb.texi: Likewise.
18268
18269 2011-03-18  Eric Blake  <eblake@redhat.com>
18270
18271         maint.mk: let po check work in VPATH build
18272         * top/maint.mk (po_file): Allow cfg.mk override.
18273         (sc_po_check): Allow VPATH use.
18274         Reported by Jiri Denemark.
18275
18276 2011-03-16  Jim Meyering  <meyering@redhat.com>
18277
18278         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18279         Before, you would have had to create one .x-sc_ file per rule in order
18280         to exempt offending files.  Now, you may instead use a Make variable --
18281         usually defined in cfg.mk -- whose name identifies the affected rule.
18282         * top/maint.mk (_sc_excl): Define.
18283         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18284         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18285
18286 2011-03-13  Bruno Haible  <bruno@clisp.org>
18287
18288         ignore-value tests: Avoid warnings.
18289         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18290         empty for gcc < 3.4.
18291
18292 2011-03-13  Bruno Haible  <bruno@clisp.org>
18293
18294         passfd: Fix link error on Solaris.
18295         * modules/passfd (Description): Correct.
18296         (Depends-on): Add socketlib.
18297         (Link): New section.
18298         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18299
18300 2011-03-13  Bruno Haible  <bruno@clisp.org>
18301
18302         passfd: Fix link error on AIX 5.2.
18303         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18304
18305 2011-03-13  Bruno Haible  <bruno@clisp.org>
18306
18307         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18308         * lib/sys_socket.in.h: Include <stddef.h>.
18309         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18310         CMSG_FIRSTHDR. Remove unused variable.
18311
18312 2011-03-13  Bruno Haible  <bruno@clisp.org>
18313
18314         passfd: Fix compilation error on OpenBSD.
18315         * lib/passfd.c: Include <sys/uio.h>.
18316
18317 2011-03-13  Bruno Haible  <bruno@clisp.org>
18318
18319         passfd test: Fix warnings.
18320         * tests/test-passfd.c: Include <sys/wait.h>.
18321         (main): Fix typo.
18322
18323 2011-03-13  Bruno Haible  <bruno@clisp.org>
18324
18325         passfd module, part 4, tweaks.
18326         * tests/test-passfd.c: Reorder includes.
18327         (main): Fix perror and printf calls.
18328
18329 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18330
18331         passfd module, part 4.
18332         * modules/passfd-tests: New file.
18333         * tests/test-passfd.c: New file.
18334
18335 2011-03-13  Jim Meyering  <meyering@redhat.com>
18336
18337         Makefile: rely on GNU make; derive syntax-check rule names
18338         Rather than requiring that each sc_ rule be listed as a dependent
18339         of "check", use features of GNU make to derive the list.
18340         * Makefile (syntax-check-rules): Define.
18341         (check): Depend on the new variable, not the hard-coded list.
18342
18343 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18344             Bruno Haible  <bruno@clisp.org>
18345
18346         passfd module, part 3.
18347         * lib/passfd.h (recvfd): Add a flags argument.
18348         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18349         (recvfd): Add a flags argument.
18350         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18351         exists.
18352         * modules/passfd (Depends-on): Add cloexec.
18353         Suggested by Eric Blake.
18354
18355 2011-03-13  Bruno Haible  <bruno@clisp.org>
18356
18357         passfd module, part 2, tweaks.
18358         * modules/passfd (Files): Reorder.
18359         (Depends-on): Remove errno.
18360         (Include): Remove <sys/socket.h>, <sys/un.h>.
18361         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18362         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18363         specification header. Include <sys/socket.h> always. Don't include
18364         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18365         (sendfd): Clarify that it sets errno when it fails.
18366         (recvfd): Fix specification.
18367
18368 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18369
18370         passfd module, part 2.
18371         * modules/passfd: New file.
18372         * lib/passfd.h: New file.
18373         * lib/passfd.c: New file.
18374
18375 2011-03-12  Bruno Haible  <bruno@clisp.org>
18376
18377         wcswidth, mbswidth: Avoid integer overflow.
18378         * lib/wcswidth.c: Include <limits.h>.
18379         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18380         * lib/mbswidth.c: Include <limits.h>.
18381         (mbsnwidth): Avoid 'int' overflow.
18382         Reported by Jim Meyering.
18383
18384 2011-03-12  Bruno Haible  <bruno@clisp.org>
18385
18386         futimens, utimensat: Avoid endless recursion on Solaris 10.
18387         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18388         Solaris.
18389         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18390         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18391
18392 2011-03-11  Jim Meyering  <meyering@redhat.com>
18393
18394         maint.mk: relax a regexp to accommodate other formatting styles
18395         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18396         between "ngettext" and the following "(".
18397
18398 2011-03-11  Pádraig Brady <P@draigBrady.com>
18399
18400         maint.mk: suppress a false positive warning
18401         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18402         diagnostics are marked with ngettext.
18403
18404 2011-03-10  Eric Blake  <eblake@redhat.com>
18405
18406         wchar: add explicit dependencies, for Tru64
18407         * modules/mbmemcasecoll (Depends-on): Add wchar.
18408         * modules/mbtowc (Depends-on): Likewise.
18409         * modules/vasnprintf (Depends-on): Likewise.
18410         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18411         * modules/wctomb (Depends-on): Likewise.
18412         Reported by Peter O'Gorman.
18413
18414 2011-03-08  Bruno Haible  <bruno@clisp.org>
18415
18416         passfd module, part 1, tweaks.
18417         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18418         Improve indentation. Improve AC_MSG_CHECKING messages.
18419         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18420         gl_SOCKET_FAMILIES.
18421
18422 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18423
18424         passfd module, part 1.
18425         * m4/afunix.m4: New file.
18426         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18427         sockets.
18428
18429 2011-03-08  Bruno Haible  <bruno@clisp.org>
18430
18431         regex-quote: New API.
18432         * lib/regex-quote.h: Include <stdbool.h>.
18433         (struct regex_quote_spec): New type.
18434         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18435         New declarations.
18436         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18437         'const struct regex_quote_spec *' argument.
18438         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18439         (pcre_special): New constant.
18440         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18441         New functions.
18442         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18443         'const struct regex_quote_spec *' argument.
18444         * modules/regex-quote (Depends-on): Add stdbool.
18445         * tests/test-regex-quote.c (check): Update for new API. Add test for
18446         anchored results.
18447         * NEWS: Mention the API change.
18448         Reported by Reuben Thomas and Eric Blake.
18449
18450 2011-03-06  Bruno Haible  <bruno@clisp.org>
18451
18452         regex-quote: Fix creation of POSIX extended regular expressions.
18453         * lib/regex-quote.c (ere_special): Add grouping and alternation
18454         operators.
18455
18456 2011-03-05  Bruno Haible  <bruno@clisp.org>
18457
18458         doc: Improve doc regarding autopoint vs. gnulib.
18459         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18460         disable autopoint while running autoreconf.
18461         Suggested by Ralf Wildenhues.
18462
18463 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18464
18465         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18466         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18467
18468 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18469
18470         parse-duration: remove xalloc.h dependency
18471         * lib/parse-duration.c (parse_period): handle NULL return from
18472         strdup instead of calling xstrdup().
18473         * modules/parse-duration: remove "xalloc" dependency
18474
18475 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18476
18477         bootstrap: honor m4_base when running aclocal
18478         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18479
18480 2011-03-02  Jim Meyering  <meyering@redhat.com>
18481
18482         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18483         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18484         on request from Matt Booth.
18485
18486 2011-03-01  Eric Blake  <eblake@redhat.com>
18487
18488         test-link: work on Hurd
18489         * tests/test-link.h (test_link): Hurd rejects linking directories
18490         with EISDIR instead of the POSIX-mandated EPERM.
18491
18492 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18493
18494         stdio: simplify by moving files to printf-posix, sigpipe
18495         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18496         since this symbol is needed only if printf is replaced.
18497         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18498         Require gl_ASM_SYMBOL_PREFIX.
18499         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18500         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18501         (Depends-on): Add 'raise'.
18502         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18503         * modules/stdio (Files): Remove lib/stdio-write.c,
18504         m4/asm-underscore.m4.
18505         (Depends-on): Remove 'raise'.
18506
18507         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18508         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18509         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18510         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18511
18512 2011-02-28  Bruno Haible  <bruno@clisp.org>
18513
18514         localcharset: Assume ANSI C behaviour of free().
18515         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18516         calling free().
18517         Suggested by Simon Josefsson <simon@josefsson.org>.
18518
18519 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18520             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18521             Bruno Haible  <bruno@clisp.org>  (tiny change)
18522
18523         On Cygwin, use /proc file system instead of win32 API.
18524         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18525         Win32 file names.
18526         (DllMain): Simplify by removing Cygwin specific code.
18527         (find_shared_library_fullname): Use Linux specific implementation also
18528         for Cygwin.
18529         (get_shared_library_fullname): Update accordingly.
18530         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18531         Win32 file names.
18532         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18533         Cygwin specific code.
18534
18535 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18536             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18537
18538         Fix OpenMP flag detection for various Fortran compilers.
18539         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18540         OpenMP-conditional compilation construct, to force compile
18541         failure with missing OpenMP flag.
18542         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18543
18544 2011-02-25  Eric Blake  <eblake@redhat.com>
18545
18546         strstr: expand test coverage
18547         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18548         compilation.
18549         * tests/test-memmem.c (main): Duplicate tests.
18550         * tests/test-strcasestr.c (main): Likewise.
18551         * tests/test-c-strcasestr.c (main): Likewise.
18552
18553 2011-02-25  Jim Meyering  <meyering@redhat.com>
18554
18555         maint.mk: detect missing-NL-at-EOF, too
18556         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18557         it also detects when a file lacks a newline at EOF.
18558         (require_exactly_one_NL_at_EOF_): Renamed from
18559         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18560         since people may well have .x-sc_... file names tied to the
18561         existing name.  Suggested by Eric Blake.
18562
18563 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18564
18565         dirname: move m4/dos.m4 functionality into lib/dosname.h
18566
18567         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18568         extracts symbols from it, puts them into config.h; but it's much
18569         easier to use the symbols directly.  filename.h already does this,
18570         but it disagrees with dos.m4 in some respects.  This patch
18571         introduces a different include file dosname.h that packages up
18572         dos.m4, and then later we can work on merging filename.h and
18573         dosname.h.  Applications that need only the easy-to-configure
18574         symbols should consider including dosname.h rather than dirname.h.
18575         * NEWS: Mention incompatible changes.
18576         * m4/dos.m4: Remove.
18577         * lib/dosname.h, modules/dosname: New files.
18578         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18579         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18580         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18581         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18582         Include dosname.h, not dirname.h.
18583         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18584         Include dosname.h, for definitions of symbols like ISSLASH
18585         that used to be in config.h.
18586         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18587         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18588         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18589         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18590         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18591         * modules/rmdir (Files): Likewise.
18592         * modules/stat (Files): Likewise.
18593         * modules/unlink (Files): Likewise.
18594         * modules/dirname-lgpl (Depends-on): Add dosname.
18595         * modules/lstat (Depends-on): Likewise.
18596         * modules/openat (Depends-on): Likewise.
18597         * modules/rmdir (Depends-on): Likewise.
18598         * modules/savewd (Depends-on): Likewise.
18599         * modules/stat (Depends-on): Likewise.
18600         * modules/unlink (Depends-on): Likewise.
18601         * modules/openat (Depends-on): Remove dirname-lgpl.
18602         * modules/savewd (Depends-on): Likewise.
18603         * tests/test-dirname.c: Do not use removed symbols like
18604         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18605         the remaining symbols, e.g., ISSLASH ('\\').
18606
18607 2011-02-25  Eric Blake  <eblake@redhat.com>
18608
18609         strstr: revert patches that introduced bug and pessimization
18610         * lib/str-two-way.h: Add another reference.
18611         (two_way_short_needle, two_way_long_needle): Revert changes from
18612         2011-02-24; they pessimize search speed.
18613         (critical_factorization): Partially revert changes from
18614         2010-06-22; they violate the requirement that the left half of the
18615         needle be smaller than the period of the needle.
18616
18617 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18618
18619         filenamecat: remove unnecessary dependency on dirname-lgpl
18620         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18621         is no direct dependency, just an indirect one via filenamecat-lgpl.
18622
18623         remove: remove unnecessary use of m4/dos.m4
18624         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18625         * modules/remove (FILES): Remove m4/dos.m4.
18626
18627         * lib/openat-proc.c: Don't include dirname.h; not needed.
18628
18629         backupfile: remove unnecessary use of m4/dos.m4
18630         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18631         of its symbols are used by the backupfile code.  backupfile.c does
18632         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18633         for the rare case of programs that want all their backup file
18634         names to live within 8+3 limits, and dos.m4 doesn't address that.
18635         * modules/backupfile (Files): Remove m4/dos.m4.
18636
18637 2011-02-24  Jim Meyering  <meyering@redhat.com>
18638
18639         strstr: fix a bug whereby strstr would mistakenly return NULL
18640         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18641         in period calculation.
18642         (two_way_long_needle): Likewise.
18643         The original problem was reported by Mike Stump in
18644         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18645         Ralf Wildenhues provided the short needle and haystack.
18646         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18647         Add a more involved test to trigger the bug in two_way_long_needle.
18648
18649 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18650
18651         gnulib-tool: remove use of bold display in help screen
18652         * gnulib-tool (func_usage): Do not use bold display anymore in the
18653         help screen.  That was just meant to be a temporary emphasis for a
18654         backward-incompatible change.
18655
18656 2011-02-23  Bruno Haible  <bruno@clisp.org>
18657
18658         Fix misindentation of preprocessor directives.
18659         * lib/argp-namefrob.h: Reindent preprocessor directives.
18660         * lib/getopt_int.h (struct _getopt_data): Likewise.
18661         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18662         * lib/vasnprintf.c (decode_long_double): Likewise.
18663         * tests/test-argmatch.c: Insert blank lines, for clarity.
18664         * tests/test-exclude.c: Likewise.
18665
18666 2011-02-22  Bruno Haible  <bruno@clisp.org>
18667
18668         ioctl: Fix for MacOS X in 64-bit mode.
18669         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18670         value.
18671         Suggested by Eric Blake.
18672         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18673
18674 2011-02-22  Jim Meyering  <meyering@redhat.com>
18675
18676         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18677         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18678         in lib/.
18679
18680 2011-02-22  Eric Blake  <eblake@redhat.com>
18681
18682         maint: avoid any CDPATH issue
18683         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18684
18685         maint: adjust cpp indentation for my modules, as well
18686         * Makefile (sc_cpp_indent_check): Add my name.
18687         * lib/fbufmode.c: Filter through cppi.
18688         * lib/fpurge.c: Likewise.
18689         * lib/freadable.c: Likewise.
18690         * lib/freading.c: Likewise.
18691         * lib/fwritable.c: Likewise.
18692         * lib/fwriting.c: Likewise.
18693         * lib/sigaction.c: Likewise.
18694
18695 2011-02-22  Jim Meyering  <meyering@redhat.com>
18696
18697         maint: adjust cpp indentation to reflect nesting depth
18698         I.e., in a block of code that begins with an unnested "#if",
18699         put one space between the "#" in column 1 and following token.
18700         For example,
18701         -#include <sys/vfs.h>
18702         +# include <sys/vfs.h>
18703         Do this only in .c files that are part of a module I maintain.
18704         * lib/linkat.c: Filter through cppi.
18705         * lib/nanosleep.c: Likewise.
18706         * lib/openat.c: Likewise.
18707         * lib/openat-die.c: Likewise.
18708         * lib/dup3.c: Likewise.
18709         * lib/fchownat.c: Likewise.
18710         * lib/flock.c: Likewise.
18711         * lib/fsync.c: Likewise.
18712         * lib/fts.c: Likewise.
18713         * lib/getpass.c: Likewise.
18714         * lib/gettimeofday.c: Likewise.
18715         * lib/userspec.c: Likewise.
18716         * Makefile (sc_cpp_indent_check): New rule, to check this.
18717
18718 2011-02-22  Bruno Haible  <bruno@clisp.org>
18719
18720         New module 'wctomb'.
18721         * lib/stdlib.in.h (wctomb): New declaration.
18722         * lib/wctomb.c: New file.
18723         * lib/wctomb-impl.h: New file.
18724         * m4/wctomb.m4: New file.
18725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18726         REPLACE_WCTOMB.
18727         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18728         REPLACE_WCTOMB.
18729         * modules/wctomb: New file.
18730         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18731         * doc/posix-functions/wctomb.texi: Mention the new module.
18732         * modules/wctob (Depends-on): Add wctomb.
18733
18734 2011-02-22  Bruno Haible  <bruno@clisp.org>
18735
18736         New module 'mbtowc'.
18737         * lib/stdlib.in.h (mbtowc): New declaration.
18738         * lib/mbtowc.c: New file.
18739         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18740         * m4/mbtowc.m4: New file.
18741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18742         REPLACE_MBTOWC.
18743         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18744         REPLACE_MBTOWC.
18745         * modules/mbtowc: New file.
18746         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18747         * doc/posix-functions/mbtowc.texi: Mention the new module.
18748         * modules/btowc (Depends-on): Add mbtowc.
18749
18750 2011-02-22  Bruno Haible  <bruno@clisp.org>
18751
18752         wcrtomb: Add more tests for native Windows platforms.
18753         * tests/test-wcrtomb-w32-1.sh: New file.
18754         * tests/test-wcrtomb-w32-2.sh: New file.
18755         * tests/test-wcrtomb-w32-3.sh: New file.
18756         * tests/test-wcrtomb-w32-4.sh: New file.
18757         * tests/test-wcrtomb-w32-5.sh: New file.
18758         * tests/test-wcrtomb-w32.c: New file.
18759         * modules/wcrtomb-tests (Files): Add them.
18760         (Makefile.am): Arrange to run these tests.
18761         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18762         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18763
18764 2011-02-20  Bruno Haible  <bruno@clisp.org>
18765
18766         wcrtomb: Enhance test.
18767         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18768
18769 2011-02-20  Bruno Haible  <bruno@clisp.org>
18770
18771         mbrtowc: Tiny optimization.
18772         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18773
18774 2011-02-20  Jim Meyering  <meyering@redhat.com>
18775
18776         test-exclude.c: remove unmatched #endif
18777         * tests/test-exclude.c: Remove stray #endif, left over from
18778         the change of a week ago.
18779
18780 2011-02-19  Jim Meyering  <meyering@redhat.com>
18781
18782         git-version-gen: skip "-dirty" check when appropriate
18783         * build-aux/git-version-gen: Don't run any git commands when the
18784         version string comes from .tarball-version.  Prior to this, we
18785         would run git update-index --refresh even from a just-unpacked
18786         tarball directory, and that could affect a .git/ directory in a
18787         parent of the build directory.  Reported by Mike Frysinger.
18788
18789 2011-02-19  Bruno Haible  <bruno@clisp.org>
18790
18791         unictype/property-byname: Reduce the size of the 'data' segment.
18792         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18793
18794 2011-02-19  Bruno Haible  <bruno@clisp.org>
18795
18796         unictype/scripts: Reduce the size of the 'data' segment.
18797         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18798         '%pic'.
18799         * lib/unictype/scripts_byname.gperf: Regenerated.
18800
18801 2011-02-19  Bruno Haible  <bruno@clisp.org>
18802
18803         stdint: Update documentation.
18804         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18805
18806 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18807
18808         stdint: omit redundant check for wchar.h
18809         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18810         always tests whether wchar.h exists, so remove the now-redundant test.
18811
18812 2011-02-18  Bruno Haible  <bruno@clisp.org>
18813
18814         stdint: Cut dependency to module 'wchar'.
18815         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18816         include the necessary prerequisites.
18817         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18818         * modules/stdint (Depends-on): Remove wchar.
18819         (Makefile.am): Substitute HAVE_WCHAR_H.
18820         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18821
18822 2011-02-18  Eric Blake  <eblake@redhat.com>
18823
18824         longlong: skip, rather than fail, on cross-compilation
18825         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18826         when cross-compiling; regression from 2011-02-16.
18827
18828 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18829
18830         * NEWS: Mention 2011-02-08 change to stdlib.
18831
18832 2011-02-17  Bruno Haible  <bruno@clisp.org>
18833
18834         getloadavg: Add comments about platforms.
18835         * m4/getloadavg.m4: Add comment.
18836         * lib/getloadavg.c: Likewise.
18837
18838 2011-02-17  Bruno Haible  <bruno@clisp.org>
18839
18840         getloadavg: Fix link error on Solaris 2.6.
18841         * modules/getloadavg (Link): New section.
18842         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18843         linking test-getloadavg.
18844         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18845         getloadavg.
18846
18847 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18848
18849         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18850         It was 'int', but this doesn't match the IRIX 6.5 manual.
18851         Suggested by Bruno Haible in
18852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18853
18854 2011-02-17  Bruno Haible  <bruno@clisp.org>
18855
18856         havelib: Fix comments.
18857         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18858         change.
18859
18860 2011-02-17  Bruno Haible  <bruno@clisp.org>
18861
18862         havelib: Update config.rpath.
18863         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18864
18865 2011-02-17  Bruno Haible  <bruno@clisp.org>
18866
18867         getloadavg test: Add some plausibility checks.
18868         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18869         is improbable.
18870
18871 2011-02-16  Eric Blake  <eblake@redhat.com>
18872
18873         maintainer-makefile: make syntax-check a no-op from tarballs
18874         * top/maint.mk (no-vc-detected): New rule.
18875         (local-checks-available): Use it to avoid hanging if someone tries
18876         'make syntax-check' from a tarball.  Also append to any non-syntax
18877         checks already defined in cfg.mk.
18878
18879 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18880
18881         longlong: tune, particularly for common case of c99
18882
18883         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18884         or running anything if c99, or if unsigned long long int does not
18885         work.  In either case, we know the answer without further tests.
18886         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18887         it at most once, and use its results for both long long int and
18888         unsigned long long int.  This is more likely to be efficient in
18889         the common case where the program wants to check for both long
18890         long int and unsigned long long int.
18891         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18892         since the answer is already known.
18893
18894 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18895
18896         getloadavg: set errno
18897         * lib/getloadavg.c: Set errno when returning -1.  If no other
18898         error number looks appropriate, set it to ENOSYS if the getloadavg
18899         looks like it can't possibly ever work, ENOTSUP otherwise.
18900         Suggested by Bruno Haible in
18901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18902
18903         getloadavg: trim unused parts and speed up 'configure'
18904         * NEWS: Document this.
18905         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18906         always compiled if getloadavg is absent.
18907         Move test code to ...
18908         * tests/test-getloadavg.c: New file, containing previous
18909         contents of test from lib/getloadavg.c.  It also contains
18910         suggestions by Bruno Haible in
18911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18912         * modules/getloadavg-tests: New file.
18913         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18914         Do tests in the same order as they're needed for getloadavg.c.
18915         Omit setgid-related tests that generate symbols KMEM_GROUP,
18916         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18917         Do only the tests that are needed to see whether the system has
18918         getloadavg, moving the other tests into ...
18919         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18920         NLIST_NAME_UNION; nobody should be using it.  Do not define
18921         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18922         relevant, as the user of this module shouldn't care how getloadavg
18923         is implemented.
18924
18925         getloadavg: omit unused var
18926         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18927
18928 2011-02-15  Jim Meyering  <meyering@redhat.com>
18929
18930         doc: update users.txt
18931         * users.txt: Update iwhd's URL.
18932
18933 2011-02-13  Bruno Haible  <bruno@clisp.org>
18934
18935         Consistent macro naming for macros that use GCC __attribute__.
18936         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
18937         _ATTRIBUTE_NONNULL_.
18938         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
18939         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
18940         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
18941         ATTRIBUTE_DEPRECATED.
18942         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
18943         ATTRIBUTE_NORETURN.
18944         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18945         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18946         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18947         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18948         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
18949         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
18950         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
18951         ATTRIBUTE_SENTINEL.
18952         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
18953         ATTRIBUTE_RETURN_CHECK.
18954         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
18955         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
18956         ATTRIBUTE_NORETURN.
18957         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
18958         Reported by Paul Eggert.
18959
18960 2011-02-13  Bruno Haible  <bruno@clisp.org>
18961
18962         Don't interfere with a program's definition of __attribute__.
18963         * lib/argp.h (__attribute__): Remove definition.
18964         (_GL_ATTRIBUTE_FORMAT): New macro.
18965         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
18966         * lib/argp-fmtstream.h (__attribute__): Remove definition.
18967         (_GL_ATTRIBUTE_FORMAT): New macro.
18968         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
18969         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
18970         GCC 3 or newer.
18971         * lib/error.h (__attribute__): Remove definition.
18972         (_GL_ATTRIBUTE_FORMAT): New macro.
18973         (error, error_at_line): Use it.
18974         * lib/hash.h (__attribute__): Remove definition.
18975         (ATTRIBUTE_WUR): Update definition. Define always.
18976         * lib/openat.h (__attribute__): Remove definition.
18977         (ATTRIBUTE_NORETURN): Update definition. Define always.
18978         * lib/sigpipe-die.h (__attribute__): Remove definition.
18979         (ATTRIBUTE_NORETURN): Update definition. Define always.
18980         * lib/vasnprintf.h (__attribute__): Remove definition.
18981         (_GL_ATTRIBUTE_FORMAT): New macro.
18982         (asnprintf, vasnprintf): Use it.
18983         * lib/xalloc.h (__attribute__): Remove definition.
18984         (ATTRIBUTE_NORETURN): Update definition. Define always.
18985         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
18986         * lib/xmemdup0.h (__attribute__): Remove definition.
18987         (ATTRIBUTE_NORETURN): Update definition. Define always.
18988         * lib/xprintf.h (__attribute__): Remove definition.
18989         (_GL_ATTRIBUTE_FORMAT): New macro.
18990         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
18991         * lib/xstrtol.h (__attribute__): Remove definition.
18992         (ATTRIBUTE_NORETURN): Update definition. Define always.
18993         * lib/xvasprintf.h (__attribute__): Remove definition.
18994         (_GL_ATTRIBUTE_FORMAT): New macro.
18995         (xasprintf, xvasprintf): Use it.
18996         * tests/test-argmatch.c (__attribute__): Remove definition.
18997         (ATTRIBUTE_NORETURN): Update definition. Define always.
18998         * tests/test-exclude.c (__attribute__): Remove definition.
18999         (ATTRIBUTE_NORETURN): Update definition. Define always.
19000         Reported by Paul Eggert.
19001
19002 2011-02-13  Bruno Haible  <bruno@clisp.org>
19003
19004         mbrtowc: Add more tests for native Windows platforms.
19005         * tests/test-mbrtowc-w32-1.sh: New file.
19006         * tests/test-mbrtowc-w32-2.sh: New file.
19007         * tests/test-mbrtowc-w32-3.sh: New file.
19008         * tests/test-mbrtowc-w32-4.sh: New file.
19009         * tests/test-mbrtowc-w32-5.sh: New file.
19010         * tests/test-mbrtowc-w32.c: New file.
19011         * modules/mbrtowc-tests (Files): Add them.
19012         (Makefile.am): Arrange to run these tests.
19013         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19014         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19015
19016 2011-02-13  Bruno Haible  <bruno@clisp.org>
19017
19018         mbrtowc: Work around native Windows bug.
19019         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19020         guess when no suitable locale for testing was found.
19021         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19022
19023 2011-02-13  Bruno Haible  <bruno@clisp.org>
19024
19025         mbsinit: Work around mingw bug.
19026         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19027         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19028         Windows.
19029         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19030
19031 2011-02-13  Bruno Haible  <bruno@clisp.org>
19032
19033         mbsinit: Don't crash for a NULL argument.
19034         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19035         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19036
19037 2011-02-13  Bruno Haible  <bruno@clisp.org>
19038
19039         Don't interfere with a program's definition of __attribute__.
19040         * lib/stdio.in.h (__attribute__): Remove definition.
19041         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19042         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19043         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19044         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19045         * lib/string.in.h (__attribute__): Remove definition.
19046         Reported by Paul Eggert.
19047
19048 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19049
19050         stdlib: don't get in the way of non-GCC __attribute__
19051         See thread starting at
19052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19053         Revert previous stdlib change, installing the following instead:
19054         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19055         to get in the way of a non-GCC compiler that supports __attribute__.
19056         (_GL_ATTRIBUTE_RETURN): New macro.
19057         (_Exit): Use it instead of __attribute__.
19058
19059 2011-02-12  Bruno Haible  <bruno@clisp.org>
19060
19061         quotearg test: Avoid test failure on mingw.
19062         * tests/test-quotearg.sh: Convert the locale identifier from native
19063         Windows syntax to Unix syntax.
19064
19065 2011-02-12  Bruno Haible  <bruno@clisp.org>
19066
19067         setlocale: Prefer gnulib's override over libintl's override.
19068         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19069         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19070         GNULIB_defined_setlocale is set.
19071
19072 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19073
19074         stdlib: support non-GCC __attribute__
19075
19076         Fix a serious and tricky problem encountered when attempting to
19077         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19078         5.5, but it crashed due to memory corruption on Solaris 10 with
19079         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19080         bits that are otherwise zero.  This tagging is optional inside
19081         Emacs but is preferred and is used when __attribute__ ((__aligned
19082         (8))) works, as it does with both recent-enough GCC and with Sun C
19083         5.11.  However, Sun C 5.11 is not GCC and does not #define
19084         __GNUC__ and __GNUC_MINOR__.
19085
19086         When I added the getloadavg module to Emacs, it brought in
19087         stdlib.in.h, which contained this fragment:
19088
19089            #ifndef __attribute__
19090            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19091            #  define __attribute__(Spec)   /* empty */
19092            # endif
19093            #endif
19094
19095         When files that include <stdlib.h> were compiled with Sun C 5.11,
19096         the above code disabled __attribute__ ((__aligned (8))), which
19097         caused variables to not be properly aligned, which eventually led
19098         to the pointer corruption mentioned above.  (This was a bit hard
19099         to diagnose, unfortunately.)
19100
19101         Several "#define __attribute__(X) /* empty */" code snippets need
19102         to be eradicated from Gnulib to work with non-GCC compilers that
19103         support __attribute__.  The Autoconf way to do this is to test for
19104         each kind of attribute that we want support for, and selectively
19105         enable that in source code.
19106
19107         Fix this problem just for stdlib.h, by adding a test for the
19108         __noreturn__ attribute, and change stdlib.in.h to use that test
19109         when needed.  This technique can be easily generalized to the
19110         other *.in.h files and attributes, and a similar technique can be
19111         used for *.h and *.c files.  This patch is enough to solve the
19112         problem for Emacs + getloadavg, and I thought I'd publish it for
19113         feedback before undertaking further, similar fixes in other
19114         modules.
19115
19116         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19117         because it's not needed for stdlib.h.  It merely substitutes the
19118         value directly into stdlib.h.  We may well need to #define it, or
19119         similar symbols, for other modules, but it's nice to also have an
19120         option to not #define it for applications like Emacs that do not
19121         need it.
19122
19123         * lib/stdlib.in.h (__attribute__): Do not #define.
19124         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19125         be defined only if the _Exit module is also used.
19126         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19128         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19129         platforms.
19130         * modules/_Exit (Files): Add m4/attribute.m4.
19131         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19132         * m4/attribute.m4: New file.
19133
19134 2011-02-12  Bruno Haible  <bruno@clisp.org>
19135
19136         wcsrtombs: Work around bug on native Windows.
19137         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19138         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19139         instead of len.
19140         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19141
19142 2011-02-12  Bruno Haible  <bruno@clisp.org>
19143
19144         mbsrtowcs: Work around bug on native Windows.
19145         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19146         against mingw bug.
19147         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19148
19149 2011-02-12  Bruno Haible  <bruno@clisp.org>
19150
19151         Avoid setlocale bugs in tests.
19152         * modules/btowc (Dependencies): Add setlocale.
19153         * modules/c-strcase (Dependencies): Likewise.
19154         * modules/mbmemcasecmp (Dependencies): Likewise.
19155         * modules/mbmemcasecoll (Dependencies): Likewise.
19156         * modules/mbrtowc (Dependencies): Likewise.
19157         * modules/mbscasecmp (Dependencies): Likewise.
19158         * modules/mbscasestr (Dependencies): Likewise.
19159         * modules/mbschr (Dependencies): Likewise.
19160         * modules/mbscspn (Dependencies): Likewise.
19161         * modules/mbsinit (Dependencies): Likewise.
19162         * modules/mbsncasecmp (Dependencies): Likewise.
19163         * modules/mbsnrtowcs (Dependencies): Likewise.
19164         * modules/mbspbrk (Dependencies): Likewise.
19165         * modules/mbspcasecmp (Dependencies): Likewise.
19166         * modules/mbsrchr (Dependencies): Likewise.
19167         * modules/mbsrtowcs (Dependencies): Likewise.
19168         * modules/mbsspn (Dependencies): Likewise.
19169         * modules/mbsstr (Dependencies): Likewise.
19170         * modules/nl_langinfo (Dependencies): Likewise.
19171         * modules/quotearg (Dependencies): Likewise.
19172         * modules/unicase/locale-language (Dependencies): Likewise.
19173         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19174         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19175         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19176         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19177         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19178         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19179         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19180         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19181         * modules/vasnprintf-posix (Dependencies): Likewise.
19182         * modules/wcrtomb (Dependencies): Likewise.
19183         * modules/wcsnrtombs (Dependencies): Likewise.
19184         * modules/wcsrtombs (Dependencies): Likewise.
19185
19186 2011-02-12  Bruno Haible  <bruno@clisp.org>
19187
19188         setlocale: Workaround native Windows bug.
19189         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19190         succeeds but sets LC_CTYPE to "C", report a failure.
19191         * tests/test-setlocale2.sh: New file.
19192         * tests/test-setlocale2.c: New file.
19193         * modules/setlocale-tests (Files): Add the new files.
19194         (Makefile.am): Enable test-setlocale2.sh test.
19195         * doc/posix-functions/setlocale.texi: Mention workaround.
19196
19197 2011-02-11  Bruno Haible  <bruno@clisp.org>
19198
19199         Tests for module 'setlocale'.
19200         * modules/setlocale-tests: New file.
19201         * tests/test-setlocale1.sh: New file.
19202         * tests/test-setlocale1.c: New file.
19203
19204         New module 'setlocale'.
19205         * lib/locale.in.h (setlocale): New declaration.
19206         * lib/setlocale.c: New file, based on
19207         gettext/gettext-runtime/intl/setlocale.c.
19208         * m4/setlocale.m4: New file.
19209         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19210         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19211         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19212         REPLACE_SETLOCALE.
19213         * modules/setlocale: New file.
19214         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19215         * doc/posix-functions/setlocale.texi: Mention the new module.
19216
19217 2011-02-11  Bruno Haible  <bruno@clisp.org>
19218
19219         Prepare for locale dependent tests on mingw.
19220         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19221         because it has the wrong locale encoding.
19222         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19223         French_France.1252 instead of "fr".
19224         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19225         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19226         because it has the wrong locale encoding.
19227         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19228         native Windows, try Turkish_Turkey.65001.
19229         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19230         Chinese_China.54936.
19231
19232         Prepare for locale dependent tests on mingw.
19233         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19234         differently.
19235         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19236         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19237         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19238         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19239
19240 2011-02-11  Eric Blake  <eblake@redhat.com>
19241
19242         strptime: avoid compiler warnings
19243         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19244         compiler warnings about dead code.
19245         Reported by Daniel P. Berrange.
19246
19247 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19248
19249         doc: update users.txt
19250         * users.txt: Add rcs.
19251
19252 2011-02-10  John W. Eaton  <jwe@gnu.org>
19253
19254         doc: update users.txt
19255         * users.txt: Add octave.
19256
19257 2011-02-10  Jim Meyering  <meyering@redhat.com>
19258
19259         doc: update users.txt
19260         * users.txt: Add iwhd.
19261
19262 2011-02-09  Bruno Haible  <bruno@clisp.org>
19263
19264         gnulib-tool: Make copyright notice adjustment more robust.
19265         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19266         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19267         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19268         License".
19269         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19270
19271 2011-02-06  Bruno Haible  <bruno@clisp.org>
19272
19273         New module 'towctrans'.
19274         * modules/towctrans: New file.
19275         * lib/wctype.in.h (towctrans): New declaration.
19276         * lib/towctrans.c: New file.
19277         * lib/towctrans-impl.h: New file.
19278         * m4/towctrans.m4: New file.
19279         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19280         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19281         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19282         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19283         * doc/posix-functions/towctrans.texi: Mention the new module.
19284
19285 2011-02-06  Bruno Haible  <bruno@clisp.org>
19286
19287         New module 'wctrans'.
19288         * modules/wctrans: New file.
19289         * lib/wctype.in.h (wctrans): New declaration.
19290         * lib/wctrans.c: New file.
19291         * lib/wctrans-impl.h: New file.
19292         * m4/wctrans.m4: New file.
19293         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19294         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19295         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19296         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19297         * doc/posix-functions/wctrans.texi: Mention the new module.
19298
19299 2011-02-06  Bruno Haible  <bruno@clisp.org>
19300
19301         New module 'iswctype'.
19302         * modules/iswctype: New file.
19303         * lib/wctype.in.h (iswctype): New declaration.
19304         * lib/iswctype.c: New file.
19305         * lib/iswctype-impl.h: New file.
19306         * m4/iswctype.m4: New file.
19307         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19308         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19309         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19310         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19311         * doc/posix-functions/iswctype.texi: Mention the new module and the
19312         HP-UX 11.00 problem.
19313
19314 2011-02-06  Bruno Haible  <bruno@clisp.org>
19315
19316         New module 'wctype'.
19317         * modules/wctype: Change to represent the wctype() substitute.
19318         * lib/wctype.in.h (wctype): New declaration.
19319         * lib/wctype.c: New file.
19320         * lib/wctype-impl.h: New file.
19321         * m4/wctype.m4: New file.
19322         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19323         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19324         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19325         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19326         * doc/posix-functions/wctype.texi: Mention the new module and the
19327         HP-UX 11.00 problem.
19328
19329 2011-02-06  Bruno Haible  <bruno@clisp.org>
19330
19331         wctype-h: Ensure wctype_t and wctrans_t are defined.
19332         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19333         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19334         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19335         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19336         HAVE_WCTRANS_T.
19337         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19338
19339 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19340
19341         flock: fix license typo
19342
19343         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19344         omitted.
19345
19346 2011-02-08  Bruno Haible  <bruno@clisp.org>
19347
19348         Split large sed scripts, for HP-UX sed.
19349         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19350         to avoid HP-UX limit of 99 commands, in the near future.
19351         * modules/stdlib (Makefile.am): Likewise.
19352         * modules/unistd (Makefile.am): Likewise.
19353         * modules/wchar (Makefile.am): Likewise.
19354         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19355         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19356         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19357
19358 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19359             Bruno Haible  <bruno@clisp.org>
19360
19361         stdlib: improve random_r modularization
19362         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19363         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19364         you also need the random_r module to get this material right.
19365         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19366         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19367         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19368
19369 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19370
19371         stdlib: don't depend on stdint
19372         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19373         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19374         be independent of whether stdint.h is needed.
19375         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19376         here, instead of ...
19377         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19378         struct random_data should be using the random_r module, not just
19379         the stdlib module (which wouldn't make sense: what package needs
19380         just struct random_data without also needing random_r?).
19381         * modules/stdlib (Depends-on): Remove stdint.
19382
19383         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19384         See the thread rooted at
19385         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19386         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19387         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19388         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19389         __VMS)); previously it was always included (via fcntl--.h).
19390         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19391         hand; this is good enough for load averages.  Also, do not use
19392         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19393         flags directly if available and don't bother otherwise.  (Packages
19394         that need the extra reliability should use the modules that define
19395         these flags on older platforms that lack them.)
19396         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19397         fcntl-safer.
19398
19399 2011-02-08  Jim Meyering  <meyering@redhat.com>
19400
19401         di-set.h, ino-map.h: add multiple-inclusion guard
19402         Technically, the guard is required only for ino-map.h, due to its
19403         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19404         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19405         * lib/ino-map.h: Likewise.
19406
19407 2011-02-06  Bruno Haible  <bruno@clisp.org>
19408
19409         iswblank: Ensure declaration on glibc systems.
19410         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19411         * modules/iswblank (Dependencies): Add 'extensions'.
19412         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19413
19414 2011-02-06  Bruno Haible  <bruno@clisp.org>
19415
19416         New module 'iswblank'.
19417         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19418         * modules/iswblank: New file.
19419         * modules/wctype-h (Files): Remove lib/iswblank.c.
19420         (Makefile.am): Substitute GNULIB_ISWBLANK.
19421         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19422         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19423         (gl_WCTYPE_H_DEFAULTS): New macro.
19424         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19425         * modules/iswblank-tests: New file.
19426         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19427         * tests/test-wctype-h.c (main): Remove iswblank tests.
19428         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19429         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19430         of 'wctype-h'.
19431         * NEWS: Mention the change.
19432         * modules/mbchar (Depends-on): Add iswblank.
19433
19434 2011-02-08  Bruno Haible  <bruno@clisp.org>
19435
19436         di-set tests: Refactor.
19437         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19438         unnecessary includes.
19439         (ASSERT): Remove macro.
19440         (main): Make C90 compliant by avoiding variable declaration after
19441         statement.
19442         * modules/di-set-tests (Files): Add tests/macros.h.
19443
19444 2011-02-08  Bruno Haible  <bruno@clisp.org>
19445
19446         ino-map tests: Refactor.
19447         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19448         unnecessary includes.
19449         (ASSERT): Remove macro.
19450         (main): Make C90 compliant by avoiding variable declaration after
19451         statement.
19452         * modules/ino-map-tests (Files): Add tests/macros.h.
19453
19454 2011-02-08  Jim Meyering  <meyering@redhat.com>
19455
19456         di-set: add "const" to a cast
19457         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19458         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19459
19460 2011-02-06  Bruno Haible  <bruno@clisp.org>
19461
19462         Rename module 'wctype' to 'wctype-h'.
19463         * modules/wctype-h: Renamed from modules/wctype.
19464         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19465         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19466         (Files, Depends-on, Makefile.am): Update.
19467         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19468         (Files, Makefile.am): Update.
19469         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19470         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19471         * doc/posix-headers/wctype.texi: Update.
19472         * doc/posix-functions/iswalnum.texi: Update.
19473         * doc/posix-functions/iswalpha.texi: Update.
19474         * doc/posix-functions/iswblank.texi: Update.
19475         * doc/posix-functions/iswcntrl.texi: Update.
19476         * doc/posix-functions/iswdigit.texi: Update.
19477         * doc/posix-functions/iswgraph.texi: Update.
19478         * doc/posix-functions/iswlower.texi: Update.
19479         * doc/posix-functions/iswprint.texi: Update.
19480         * doc/posix-functions/iswpunct.texi: Update.
19481         * doc/posix-functions/iswspace.texi: Update.
19482         * doc/posix-functions/iswupper.texi: Update.
19483         * doc/posix-functions/iswxdigit.texi: Update.
19484         * doc/posix-functions/towlower.texi: Update.
19485         * doc/posix-functions/towupper.texi: Update.
19486         * NEWS: Mention the change.
19487         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19488         * modules/mbchar (Dependencies): Likewise.
19489         * modules/mbswidth (Dependencies): Likewise.
19490         * modules/quotearg (Dependencies): Likewise.
19491         * modules/regex (Dependencies): Likewise.
19492         * modules/wcscasecmp (Dependencies): Likewise.
19493         * modules/wcsncasecmp (Dependencies): Likewise.
19494         * modules/wcwidth (Dependencies): Likewise.
19495
19496 2011-02-06  Bruno Haible  <bruno@clisp.org>
19497
19498         New module 'wcswidth'.
19499         * modules/wcswidth: New file.
19500         * lib/wchar.in.h (wcswidth): New declaration.
19501         * lib/wcswidth.c: New file.
19502         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19503         * m4/wcswidth.m4: New file.
19504         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19505         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19506         REPLACE_WCSWIDTH.
19507         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19508         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19509         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19510         * doc/posix-functions/wcswidth.texi: Mention the new module.
19511
19512 2011-02-06  Bruno Haible  <bruno@clisp.org>
19513
19514         New module 'wcstok'.
19515         * modules/wcstok: New file.
19516         * lib/wchar.in.h (wcstok): New declaration.
19517         * lib/wcstok.c: New file.
19518         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19519         * m4/wcstok.m4: New file.
19520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19523         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19524         * doc/posix-functions/wcstok.texi: Mention the new module.
19525
19526 2011-02-06  Bruno Haible  <bruno@clisp.org>
19527
19528         New module 'wcsstr'.
19529         * modules/wcsstr: New file.
19530         * lib/wchar.in.h (wcsstr): New declaration.
19531         * lib/wcsstr.c: New file.
19532         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19533         * m4/wcsstr.m4: New file.
19534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19537         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19538         * doc/posix-functions/wcsstr.texi: Mention the new module.
19539
19540 2011-02-06  Bruno Haible  <bruno@clisp.org>
19541
19542         New module 'wcspbrk'.
19543         * modules/wcspbrk: New file.
19544         * lib/wchar.in.h (wcspbrk): New declaration.
19545         * lib/wcspbrk.c: New file.
19546         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19547         * m4/wcspbrk.m4: New file.
19548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19550         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19551         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19552         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19553
19554 2011-02-06  Bruno Haible  <bruno@clisp.org>
19555
19556         New module 'wcsspn'.
19557         * modules/wcsspn: New file.
19558         * lib/wchar.in.h (wcsspn): New declaration.
19559         * lib/wcsspn.c: New file.
19560         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19561         * m4/wcsspn.m4: New file.
19562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19565         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19566         * doc/posix-functions/wcsspn.texi: Mention the new module.
19567
19568 2011-02-06  Bruno Haible  <bruno@clisp.org>
19569
19570         New module 'wcscspn'.
19571         * modules/wcscspn: New file.
19572         * lib/wchar.in.h (wcscspn): New declaration.
19573         * lib/wcscspn.c: New file.
19574         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19575         * m4/wcscspn.m4: New file.
19576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19579         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19580         * doc/posix-functions/wcscspn.texi: Mention the new module.
19581
19582 2011-02-06  Bruno Haible  <bruno@clisp.org>
19583
19584         New module 'wcsrchr'.
19585         * modules/wcsrchr: New file.
19586         * lib/wchar.in.h (wcsrchr): New declaration.
19587         * lib/wcsrchr.c: New file.
19588         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19589         * m4/wcsrchr.m4: New file.
19590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19592         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19593         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19594         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19595
19596 2011-02-06  Bruno Haible  <bruno@clisp.org>
19597
19598         New module 'wcschr'.
19599         * modules/wcschr: New file.
19600         * lib/wchar.in.h (wcschr): New declaration.
19601         * lib/wcschr.c: New file.
19602         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19603         * m4/wcschr.m4: New file.
19604         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19605         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19606         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19607         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19608         * doc/posix-functions/wcschr.texi: Mention the new module.
19609
19610 2011-02-06  Bruno Haible  <bruno@clisp.org>
19611
19612         New module 'wcsdup'.
19613         * modules/wcsdup: New file.
19614         * lib/wchar.in.h (wcsdup): New declaration.
19615         * lib/wcsdup.c: New file.
19616         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19617         * m4/wcsdup.m4: New file.
19618         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19619         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19620         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19621         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19622         * doc/posix-functions/wcsdup.texi: Mention the new module.
19623
19624 2011-02-06  Bruno Haible  <bruno@clisp.org>
19625
19626         New module 'wcsxfrm'.
19627         * modules/wcsxfrm: New file.
19628         * lib/wchar.in.h (wcsxfrm): New declaration.
19629         * lib/wcsxfrm.c: New file.
19630         * lib/wcsxfrm-impl.h: New file.
19631         * m4/wcsxfrm.m4: New file.
19632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19635         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19636         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19637
19638 2011-02-06  Bruno Haible  <bruno@clisp.org>
19639
19640         New module 'wcscoll'.
19641         * modules/wcscoll: New file.
19642         * lib/wchar.in.h (wcscoll): New declaration.
19643         * lib/wcscoll.c: New file.
19644         * lib/wcscoll-impl.h: New file.
19645         * m4/wcscoll.m4: New file.
19646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19649         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19650         * doc/posix-functions/wcscoll.texi: Mention the new module.
19651
19652 2011-02-06  Bruno Haible  <bruno@clisp.org>
19653
19654         New module 'wcsncasecmp'.
19655         * modules/wcsncasecmp: New file.
19656         * lib/wchar.in.h (wcsncasecmp): New declaration.
19657         * lib/wcsncasecmp.c: New file.
19658         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19659         * m4/wcsncasecmp.m4: New file.
19660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19663         HAVE_WCSNCASECMP.
19664         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19665         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19666
19667 2011-02-06  Bruno Haible  <bruno@clisp.org>
19668
19669         New module 'wcscasecmp'.
19670         * modules/wcscasecmp: New file.
19671         * lib/wchar.in.h (wcscasecmp): New declaration.
19672         * lib/wcscasecmp.c: New file.
19673         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19674         * m4/wcscasecmp.m4: New file.
19675         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19676         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19677         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19678         HAVE_WCSCASECMP.
19679         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19680         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19681
19682 2011-02-05  Bruno Haible  <bruno@clisp.org>
19683
19684         New module 'wcsncmp'.
19685         * modules/wcsncmp: New file.
19686         * lib/wchar.in.h (wcsncmp): New declaration.
19687         * lib/wcsncmp.c: New file.
19688         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19689         * m4/wcsncmp.m4: New file.
19690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19692         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19693         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19694         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19695
19696 2011-02-05  Bruno Haible  <bruno@clisp.org>
19697
19698         New module 'wcscmp'.
19699         * modules/wcscmp: New file.
19700         * lib/wchar.in.h (wcscmp): New declaration.
19701         * lib/wcscmp.c: New file.
19702         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19703         * m4/wcscmp.m4: New file.
19704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19706         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19707         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19708         * doc/posix-functions/wcscmp.texi: Mention the new module.
19709
19710 2011-02-05  Bruno Haible  <bruno@clisp.org>
19711
19712         New module 'wcsncat'.
19713         * modules/wcsncat: New file.
19714         * lib/wchar.in.h (wcsncat): New declaration.
19715         * lib/wcsncat.c: New file.
19716         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19717         * m4/wcsncat.m4: New file.
19718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19721         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19722         * doc/posix-functions/wcsncat.texi: Mention the new module.
19723
19724 2011-02-05  Bruno Haible  <bruno@clisp.org>
19725
19726         New module 'wcscat'.
19727         * modules/wcscat: New file.
19728         * lib/wchar.in.h (wcscat): New declaration.
19729         * lib/wcscat.c: New file.
19730         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19731         * m4/wcscat.m4: New file.
19732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19735         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19736         * doc/posix-functions/wcscat.texi: Mention the new module.
19737
19738 2011-02-05  Bruno Haible  <bruno@clisp.org>
19739
19740         New module 'wcpncpy'.
19741         * modules/wcpncpy: New file.
19742         * lib/wchar.in.h (wcpncpy): New declaration.
19743         * lib/wcpncpy.c: New file.
19744         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19745         * m4/wcpncpy.m4: New file.
19746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19748         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19749         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19750         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19751
19752 2011-02-05  Bruno Haible  <bruno@clisp.org>
19753
19754         New module 'wcsncpy'.
19755         * modules/wcsncpy: New file.
19756         * lib/wchar.in.h (wcsncpy): New declaration.
19757         * lib/wcsncpy.c: New file.
19758         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19759         * m4/wcsncpy.m4: New file.
19760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19762         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19763         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19764         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19765
19766 2011-02-05  Bruno Haible  <bruno@clisp.org>
19767
19768         New module 'wcpcpy'.
19769         * modules/wcpcpy: New file.
19770         * lib/wchar.in.h (wcpcpy): New declaration.
19771         * lib/wcpcpy.c: New file.
19772         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19773         * m4/wcpcpy.m4: New file.
19774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19776         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19777         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19778         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19779
19780 2011-02-05  Bruno Haible  <bruno@clisp.org>
19781
19782         New module 'wcscpy'.
19783         * modules/wcscpy: New file.
19784         * lib/wchar.in.h (wcscpy): New declaration.
19785         * lib/wcscpy.c: New file.
19786         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19787         * m4/wcscpy.m4: New file.
19788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19790         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19791         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19792         * doc/posix-functions/wcscpy.texi: Mention the new module.
19793
19794 2011-02-05  Bruno Haible  <bruno@clisp.org>
19795
19796         New module 'wcsnlen'.
19797         * modules/wcsnlen: New file.
19798         * lib/wchar.in.h (wcsnlen): New declaration.
19799         * lib/wcsnlen.c: New file.
19800         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19801         * m4/wcsnlen.m4: New file.
19802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19805         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19806         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19807
19808 2011-02-05  Bruno Haible  <bruno@clisp.org>
19809
19810         New module 'wcslen'.
19811         * modules/wcslen: New file.
19812         * lib/wchar.in.h (wcslen): New declaration.
19813         * lib/wcslen.c: New file.
19814         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19815         * m4/wcslen.m4: New file.
19816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19819         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19820         * doc/posix-functions/wcslen.texi: Mention the new module.
19821
19822 2011-02-05  Bruno Haible  <bruno@clisp.org>
19823
19824         New module 'wmemset'.
19825         * modules/wmemset: New file.
19826         * lib/wchar.in.h (wmemset): New declaration.
19827         * lib/wmemset.c: New file.
19828         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19829         * m4/wmemset.m4: New file.
19830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19832         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19833         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19834         * doc/posix-functions/wmemset.texi: Mention the new module.
19835
19836 2011-02-05  Bruno Haible  <bruno@clisp.org>
19837
19838         New module 'wmemmove'.
19839         * modules/wmemmove: New file.
19840         * lib/wchar.in.h (wmemmove): New declaration.
19841         * lib/wmemmove.c: New file.
19842         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19843         * m4/wmemmove.m4: New file.
19844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19846         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19847         HAVE_WMEMMOVE.
19848         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19849         * doc/posix-functions/wmemmove.texi: Mention the new module.
19850
19851 2011-02-05  Bruno Haible  <bruno@clisp.org>
19852
19853         New module 'wmemcpy'.
19854         * modules/wmemcpy: New file.
19855         * lib/wchar.in.h (wmemcpy): New declaration.
19856         * lib/wmemcpy.c: New file.
19857         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19858         * m4/wmemcpy.m4: New file.
19859         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19860         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19861         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19862         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19863         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19864
19865 2011-02-05  Bruno Haible  <bruno@clisp.org>
19866
19867         New module 'wmemcmp'.
19868         * modules/wmemcmp: New file.
19869         * lib/wchar.in.h (wmemcmp): New declaration.
19870         * lib/wmemcmp.c: New file.
19871         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19872         * m4/wmemcmp.m4: New file.
19873         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19874         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19875         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19876         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19877         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19878
19879 2011-02-07  Jim Meyering  <meyering@redhat.com>
19880
19881         di-set, ino-map: new modules, from coreutils
19882         * lib/di-set.c: New file.
19883         * lib/di-set.h: Likewise.
19884         * lib/ino-map.c: Likewise.
19885         * lib/ino-map.h: Likewise.
19886         * modules/di-set: Likewise.
19887         * modules/di-set-tests: Likewise.
19888         * modules/ino-map: Likewise.
19889         * modules/ino-map-tests: Likewise.
19890         * tests/test-di-set.c: Likewise.
19891         * tests/test-ino-map.c: Likewise.
19892
19893 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19894
19895         getloadavg: merge minor changes from Emacs
19896
19897         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19898         (getloadavg): Use memset, not bzero.
19899
19900         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19901         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19902         clash (bug#86).
19903
19904 2010-11-14  Bruno Haible  <bruno@clisp.org>
19905
19906         Allow multiple gnulib generated replacements to coexist.
19907         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19908         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19909         * lib/langinfo.in.h (nl_item): Likewise.
19910         * lib/math.in.h (_NaN, NAN): Likewise.
19911         * lib/netdb.in.h (struct addrinfo): Likewise.
19912         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19913         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19914         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19915         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19916         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19917         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19918         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19919         pthread_mutexattr_init, pthread_mutexattr_settype,
19920         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19921         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19922         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19923         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19924         * lib/sched.in.h (struct sched_param): Likewise.
19925         * lib/se-selinux.in.h (security_class_t, security_context_t,
19926         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19927         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
19928         lsetfilecon, fsetfilecon, security_check_context,
19929         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
19930         Likewise.
19931         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
19932         Likewise.
19933         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
19934         _gl_function_taking_int_returning_void_t, union sigval,
19935         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
19936         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
19937         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19938         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
19939         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
19940         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
19941         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
19942         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
19943         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
19944         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
19945         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
19946         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
19947         socklen_t, rpl_fd_isset): Likewise.
19948         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
19949         * lib/sys_time.in.h (struct timeval): Likewise.
19950         * lib/sys_times.in.h (struct tms): Likewise.
19951         * lib/sys_utsname.in.h (struct utsname):
19952         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
19953         * lib/unistd.in.h (getpagesize): Likewise.
19954         * lib/wchar.in.h (mbstate_t): Likewise.
19955         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19956         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
19957         towlower, towupper): Likewise.
19958         Reported by Sam Steingold <sds@gnu.org>.
19959
19960 2011-02-05  Eric Blake  <eblake@redhat.com>
19961
19962         unsetenv: work around Haiku issues
19963         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
19964         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
19965
19966 2010-12-30  Bruce Korb  <bkorb@gnu.org>
19967
19968         libposix: avoid calling error() within libposix
19969         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
19970         is defined.
19971
19972 2011-02-05  Eric Blake  <eblake@redhat.com>
19973
19974         strerror_r-posix: port to cygwin
19975         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
19976         implementation.
19977         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
19978         * tests/test-strerror_r.c (main): Fix test.
19979         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19980         issue.
19981
19982 2011-02-05  Bruno Haible  <bruno@clisp.org>
19983
19984         New module 'wmemchr'.
19985         * modules/wmemchr: New file.
19986         * lib/wchar.in.h (wmemchr): New declaration.
19987         * lib/wmemchr.c: New file.
19988         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
19989         * m4/wmemchr.m4: New file.
19990         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
19991         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
19992         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
19993         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
19994         * doc/posix-functions/wmemchr.texi: Mention the new module.
19995
19996 2011-02-04  Eric Blake  <eblake@redhat.com>
19997
19998         fdopendir: detect FreeBSD bug
19999         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20000         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20001
20002 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20003
20004         stdbool: do not define HAVE_STDBOOL_H
20005         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20006         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20007         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20008         imported from the latest Autoconf git.  It was motivated by Emacs,
20009         which uses gnulib but does not need HAVE_STDBOOL_H.
20010
20011 2011-02-04  Bruno Haible  <bruno@clisp.org>
20012
20013         wcsnrtombs: Prepare for new module wwcsnrtombs.
20014         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20015         * lib/wcsnrtombs.c: Include it.
20016         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20017
20018         wcsrtombs: Prepare for new module wwcsrtombs.
20019         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20020         * lib/wcsrtombs.c: Include it.
20021         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20022
20023         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20024         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20025         * lib/mbsnrtowcs.c: Include it.
20026         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20027
20028         mbsrtowcs: Prepare for new module mbsrtowwcs.
20029         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20030         * lib/mbsrtowcs.c: Include it.
20031         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20032
20033 2011-02-04  Bruno Haible  <bruno@clisp.org>
20034
20035         vasnprintf: Reduce use of malloc for small format strings.
20036         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20037         (arguments): Add room for the first 7 arguments.
20038         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20039         (char_directives, u8_directives, u16_directives, u32_directives): Add
20040         room for the first 7 directives.
20041         * lib/printf-parse.c: Include <string.h>.
20042         (PRINTF_PARSE): Change memory handling code so that it uses the first
20043         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20044         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20045         Reported by Pádraig Brady <P@draigbrady.com>.
20046
20047 2011-01-31  Eric Blake  <eblake@redhat.com>
20048
20049         dup2: work around Haiku bug
20050         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20051         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20052         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20053         * tests/test-dup2.c (main): Enhance test.
20054
20055 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20056
20057         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20058         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20059         declared by eglibc 2.11.2.
20060         * lib/stdio.in.h: Likewise.
20061
20062 2011-01-31  Eric Blake  <eblake@redhat.com>
20063
20064         ignore-value: add missing test dependency
20065         * tests/test-ignore-value.c: Revert previous change; stdio.h
20066         provides off_t.
20067         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20068
20069 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20070
20071         mktime: clarify long_int width checking
20072         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20073         the top level, to make it clearer that the assumption about
20074         long_int width is being checked.  See
20075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20076
20077 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20078
20079         ignore-value: Fix self-test.
20080         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20081
20082 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20083
20084         TYPE_MAXIMUM: avoid theoretically undefined behavior
20085         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20086         negative number, which the C Standard says has undefined behavior.
20087         In practice this is not a problem, but might as well do it by the book.
20088         Reported by Rich Felker and Eric Blake; see
20089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20090         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20091         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20092         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20093         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20094         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20095         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20096
20097         mktime: #undef mktime before #defining it
20098         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20099
20100         mktime: systematically normalize tm_isdst comparisons
20101         * lib/mktime.c (isdst_differ): New function.
20102         (__mktime_internal): Use it systematically for all isdst comparisons.
20103         This completes the fix for libc BZ #6723, and removes the need for
20104         normalizing tm_isdst.  See
20105         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20106         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20107
20108         mktime: fix some integer overflow issues and sidestep the rest
20109
20110         This was prompted by a bug report by Benjamin Lindner for MinGW
20111         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20112         His bug is due to signed integer overflow (0 - INT_MIN), and I
20113         I scanned through mktime.c looking for other integer overflow
20114         problems, fixing all the bugs I found.
20115
20116         Although the C Standard says the resulting code is still not safe
20117         in the presence of integer overflow, in practice it should be good
20118         enough for all real-world two's-complement implementations, except
20119         for debugging environments that deliberately trap on integer
20120         overflow (e.g., gcc -ftrapv).
20121
20122         * lib/mktime.c (WRAPV): New macro.
20123         (SHR): Also check that long_int and time_t shift right in the
20124         usual way, before using the fast-but-unportable method.
20125         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20126         used.  The code already assumed two's complement, so there's
20127         no need to test for alternatives.  All uses removed.
20128         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20129         the C standard.  Problem reported by Rich Felker in
20130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20131         (twos_complement_arithmetic): Also check long_int and time_t.
20132         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20133         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20134         (__mktime_internal): Avoid integer overflow with unary subtraction
20135         in two instances where -1 - X is an adequate replacement for -X,
20136         since the calculations are approximate.
20137
20138 2011-01-29  Eric Blake  <eblake@redhat.com>
20139
20140         mktime: avoid infinite loop
20141         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20142         type; behavior is still undefined but portable to all known targets.
20143         Reported by Rich Felker.
20144
20145 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20146
20147         rename, unlink, same-inode: Relicense.
20148         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20149         * modules/unlink (License): Likewise.
20150         * modules/same-inode (License): Likewise.
20151
20152 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20153
20154         mktime: avoid problems on NetBSD 5 / i386
20155         * lib/mktime.c (long_int): New type.  This works around a problem
20156         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20157         but time_t is 64 bits, and where I expect the existing code is
20158         wrong in some cases.
20159         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20160         (ydhms_diff): Bring back the compile-time check for wide-enough
20161         year and yday.
20162
20163         mktime: fix misspelling in comment
20164         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20165         This merges all recent glibc changes of importance.
20166
20167 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20168
20169         move-if-change: cope with concurrent mv of identical file.
20170         * build-aux/move-if-change (CMPPROG): Accept environment
20171         variable as an override for `cmp'.
20172         (usage): Document CMPPROG.
20173         Adjust comparison to drop stdout.  Cope with failure of mv if
20174         the target file exists and is identical to the source, for
20175         parallel builds.
20176         Report from H.J. Lu against binutils in PR binutils/12283.
20177
20178 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20179
20180         * users.txt: Mention sharutils.
20181
20182 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20183
20184         * users.txt: Mention OATH Toolkit.
20185
20186 2011-01-27  Bruno Haible  <bruno@clisp.org>
20187
20188         Prepare for supporting FreeBSD 10.
20189         * build-aux/config.libpath: Remove handling of freebsd1*.
20190
20191 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20192
20193         Prepare for supporting FreeBSD 10.
20194         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20195         match FreeBSD 10.0.
20196
20197 2011-01-27  Bruno Haible  <bruno@clisp.org>
20198
20199         vma-iter, get-rusage-as: Add OpenBSD support.
20200         * modules/vma-iter (configure.ac): Test for mquery.
20201         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20202         * lib/vma-iter.c: Include <sys/mman.h>.
20203         (vma_iterate): Add an implementation based on mquery().
20204         * lib/resource-ext.h (get_rusage_as): Update comments.
20205         * lib/get-rusage-as.c: Likewise.
20206         * lib/get-rusage-data.c: Likewise.
20207
20208 2011-01-26  Karl Berry  <karl@gnu.org>
20209
20210         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20211         variables to make it easier to override the makeinfo program used.
20212
20213 2011-01-26  Eric Blake  <eblake@redhat.com>
20214
20215         fcntl: work around Haiku F_DUPFD bugs
20216         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20217         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20218         cloexec bit on duplication.
20219         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20220
20221 2011-01-26  Bruno Haible  <bruno@clisp.org>
20222
20223         Enable memory leak tests on AIX.
20224         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20225         * tests/test-fprintf-posix3.c (main): Likewise.
20226
20227 2011-01-26  Bruno Haible  <bruno@clisp.org>
20228
20229         Tests for module 'get-rusage-data'.
20230         * modules/get-rusage-data-tests: New file.
20231         * tests/test-get-rusage-data.c: New file.
20232
20233         New module 'get-rusage-data'.
20234         * lib/resource-ext.h (get_rusage_data): New declaration.
20235         * lib/get-rusage-data.c: New file.
20236         * modules/get-rusage-data: New file.
20237
20238 2011-01-25  Bruno Haible  <bruno@clisp.org>
20239
20240         get-rusage-as: Allow for easier testing.
20241         * lib/resource-ext.h (get_rusage_as): Add comment.
20242         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20243         (main): New function for interactive testing.
20244
20245 2011-01-25  Bruno Haible  <bruno@clisp.org>
20246
20247         vma-iter: Treat Haiku like BeOS.
20248         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20249         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20250
20251 2011-01-25  Eric Blake  <eblake@redhat.com>
20252
20253         c-stack: fix regression on cygwin when libsigsegv is present
20254         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20255
20256 2011-01-24  Bruno Haible  <bruno@clisp.org>
20257
20258         vma-iter: Avoid empty intervals.
20259         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20260         on an empty interval.
20261
20262 2011-01-24  Jim Meyering  <meyering@redhat.com>
20263
20264         u64: remove unnecessary #include
20265         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20266
20267 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20268
20269         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20270         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20271
20272 2011-01-23  Bruno Haible  <bruno@clisp.org>
20273
20274         New module 'vma-iter'.
20275         * lib/vma-iter.h: New file.
20276         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20277         * modules/vma-iter: New file.
20278         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20279         for get_rusage_as_via_iterator.
20280         (vma_iterate_callback): New function.
20281         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20282         * modules/get-rusage-as (Depends-on): Add vma-iter.
20283
20284 2011-01-23  Bruno Haible  <bruno@clisp.org>
20285
20286         uninorm: Tweak includes.
20287         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20288         Reported by Jim Meyering.
20289
20290 2011-01-23  Bruno Haible  <bruno@clisp.org>
20291
20292         get-rusage-as: Improve on NetBSD.
20293         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20294         /proc, like on FreeBSD.
20295
20296 2011-01-23  Jim Meyering  <meyering@redhat.com>
20297
20298         xreadlink.h: remove unnecessary #include
20299         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20300
20301         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20302         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20303
20304 2011-01-23  Bruno Haible  <bruno@clisp.org>
20305
20306         get-rusage-as: Fix bug.
20307         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20308         original limit when aborting the first loop.
20309
20310 2011-01-23  Bruno Haible  <bruno@clisp.org>
20311
20312         wctype: Ensure valid C syntax.
20313         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20314         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20315
20316 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20317
20318         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20319         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20320         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20321         as they are needed only for configure's test case.
20322         This removes two unnecessary symbols from config.h.
20323
20324         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20325         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20327         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20328         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20329         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20330         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20331         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20332         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20333         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20334         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20335         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20336         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20337         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20338         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20339         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20340         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20341         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20342
20343 2011-01-21  Eric Blake  <eblake@redhat.com>
20344
20345         maintainer-makefile: work with older git for submodule check
20346         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20347         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20348         Reported by Matthias Bolte.
20349
20350         bootstrap: minor portability fixes
20351         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20352         (usage): Omit leading capital and trailing . on help phrases, per
20353         GNU Coding Standards.
20354         (check_versions, top level): Prefix messages with script name.
20355
20356 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20357
20358         bootstrap: support --no-git option
20359         * build-aux/bootstrap: Add --no-git option, to be used when
20360         --gnulib-srcdir points to the exact desired checkout.
20361
20362 2011-01-21  Eric Blake  <eblake@redhat.com>
20363
20364         strerror_r-posix: work with glibc 2.13
20365         * lib/strerror_r.c (strerror_r): Fix return type.
20366
20367 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20368             Bruno Haible  <bruno@clisp.org>
20369
20370         uN_strstr: New unit tests.
20371         * modules/unistr/u8-strstr-tests: New file.
20372         * modules/unistr/u16-strstr-tests: New file.
20373         * modules/unistr/u32-strstr-tests: New file.
20374         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20375         * tests/unistr/test-u8-strstr.c: New file.
20376         * tests/unistr/test-u16-strstr.c: New file.
20377         * tests/unistr/test-u32-strstr.c: New file.
20378
20379 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20380             Bruno Haible  <bruno@clisp.org>
20381
20382         Make uN_strstr functions O(n) worst-case.
20383         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20384         16-bit and 32-bit unit cases, use the unibyte algorithm from
20385         lib/mbsstr.c.
20386         * lib/unistr/u8-strstr.c: Include <string.h>.
20387         (UNIT_IS_UINT8_T): New macro.
20388         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20389         (U_STRLEN, U_STRNLEN): New macros.
20390         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20391         (U_STRLEN, U_STRNLEN): New macros.
20392         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20393         (configure.ac): Update required libunistring version.
20394         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20395         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20396         malloca.
20397         (configure.ac): Update required libunistring version.
20398         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20399         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20400         malloca.
20401         (configure.ac): Update required libunistring version.
20402
20403 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20404             Bruno Haible  <bruno@clisp.org>
20405
20406         Prepare for faster uN_strstr functions.
20407         * lib/str-kmp.h: Support definable UNITs.
20408         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20409         needle_len argument.
20410         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20411         * lib/mbscasestr.c (mbscasestr): Likewise.
20412
20413 2011-01-21  Pádraig Brady <P@draigBrady.com>
20414
20415         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20416         * tests/test-malloca.c (main): Unset the environment variable
20417         to greatly speed up the test.
20418         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20419         * modules/malloca-tests: Depend on unsetenv.
20420
20421 2011-01-21  Pádraig Brady <P@draigBrady.com>
20422
20423         ignore-value: remove stdint dependency
20424         * lib/ignore-value.h: Remove <stdint.h>
20425         * modules/ignore-value: Remove stdint dependency.
20426
20427 2011-01-21  Jim Meyering  <meyering@redhat.com>
20428
20429         maint.mk: adjust variable name to be consistent with other gl_ vars
20430         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20431         to be lower case.
20432
20433 2011-01-20  Jim Meyering  <meyering@redhat.com>
20434
20435         maint.mk: make "check" depend on public-submodule-commit by default
20436         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20437
20438 2011-01-20  Bruno Haible  <bruno@clisp.org>
20439
20440         mbfile, mbiter: Complete change from 2008-12-21.
20441         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20442         * m4/mbiter.m4 (gl_MBITER): Likewise.
20443
20444 2011-01-20  Jim Meyering  <meyering@redhat.com>
20445
20446         init.sh: insert space between each function name and "()"
20447         * tests/init.sh: Make it a little easier to see that a function's
20448         name is "warn_", and not "warn" when looking at the first part of
20449         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20450
20451 2011-01-20  Jim Meyering  <meyering@redhat.com>
20452
20453         mountlist: clean up code formatting
20454         * lib/mountlist.c (read_file_system_list): Split a long line,
20455         correct bracing style, use NULL in place of "(struct statfs *)0",
20456         don't parenthesize return value, add spaces around "=" and after
20457         ";-in-for-stmt".
20458
20459 2011-01-14  Markus Duft <mduft@gentoo.org>
20460
20461         mountlist: add support for Interix
20462         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20463         Apply statvfs to all entries of /dev/fs.
20464         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20465         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20466
20467 2011-01-20  Jim Meyering  <meyering@redhat.com>
20468
20469         maint.mk: improve the public-submodule-commit rule
20470         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20471         to suppress printing of its commands... unless V=1.
20472         Add git submodule's --quiet option to suppress printing of e.g.,
20473         "Entering gnulib" output.
20474         "cd" into $(srcdir) before running git submodule.
20475
20476 2011-01-20  Bruno Haible  <bruno@clisp.org>
20477
20478         include_next: Fix bug introduced on 2011-01-18.
20479         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20480         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20481         ac_cv_header_... variable if the second argument is not 'check'.
20482         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20483         gl_NEXT_HEADERS_INTERNAL.
20484
20485 2011-01-20  Bruno Haible  <bruno@clisp.org>
20486
20487         Allow the user to avoid the GNULIB_TEST_* macros.
20488         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20489         Suggested by Paul Eggert.
20490
20491 2011-01-14  Jim Meyering  <meyering@redhat.com>
20492
20493         bootstrap: avoid failure when there is no .gitmodules file
20494         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20495         has been assigned to, even when its value is the empty string.
20496         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20497         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20498         Reported by John W. Eaton <jwe@gnu.org>.
20499
20500 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20501
20502         assume <ctype.h>, ..., <time.h> exist
20503         For years gnulib has been assuming the existence of the headers
20504         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20505         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20506         them, since they don't appear to be needed.
20507         * README (Portability guidelines): Document this.
20508         * lib/flock.c: Assume <fcntl.h> exists.
20509         * lib/regex_internal.h: Assume <locale.h> exists.
20510         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20511         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20512         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20513         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20514         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20515         * m4/regex.m4 (gl_REGEX): Likewise.
20516         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20517         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20518         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20519         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20520         * tests/test-argp.c: Likewise.
20521         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20522
20523         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20524         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20525         AA_APPLE_UNIVERSAL_BUILD.  See
20526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20527         * NEWS: Document this.
20528
20529 2011-01-19  Eric Blake  <eblake@redhat.com>
20530
20531         c-stack: assume stack overflow if SA_SIGINFO unsupported
20532         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20533         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20534         sigaction will work.
20535         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20536         behavior match Linux.
20537         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20538
20539         stdbool-tests: accomodate Haiku
20540         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20541
20542         binary-io: fix O_TEXT on Haiku
20543         * modules/binary-io (Depends-on): Add fcntl-h.
20544         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20545         than blindly undefining O_TEXT.
20546         Reported by Scott McCreary.
20547
20548 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20549
20550         include_next: do not check for standard headers like stddef.h
20551
20552         I found this problem when modifying Emacs to use gnulib.
20553         I noticed that it added HAVE_STDDEF_H to config.h, even though
20554         gnulib always assumes <stddef.h> exists as per README and this
20555         symbol is unnecessary.
20556         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20557         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20558         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20559         faster for headers like stddef.h that are known to exist.
20560         (gl_CHECK_NEXT_HEADERS): Use it.
20561         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20562         rather than gl_CHECK_NEXT_HEADERS.
20563         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20564         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20565
20566 2011-01-18  Eric Blake  <eblake@redhat.com>
20567
20568         ansi-c++-opt: skip C++ dependency style if C++ is unused
20569         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20570         tests when we know C++ compilation is not desired.
20571         Reported by Scott McCreary.
20572
20573 2011-01-18  Bruno Haible  <bruno@clisp.org>
20574
20575         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20576         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20577         (main): Perform test also when getrlimit and setrlimit don't exist or
20578         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20579         limiting the address space size using setrlimit, compare the address
20580         space size before and after the the test.
20581         * tests/test-dprintf-posix2.c: Likewise.
20582         * tests/test-fprintf-posix3.sh: Update skip messages.
20583         * tests/test-dprintf-posix2.sh: Likewise.
20584         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20585         * modules/dprintf-posix-tests (Depends-on): Likewise.
20586         Reported by Bruce Korb <bkorb@gnu.org> and
20587         Gary V. Vaughan <gary@gnu.org>.
20588
20589 2011-01-18  Bruno Haible  <bruno@clisp.org>
20590
20591         get-rusage-as: Improvement for Cygwin.
20592         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20593         areas that are merely reserved.
20594
20595 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20596
20597         strftime: remove dependencies on multibyte modules
20598
20599         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20600         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20601         only if __osf__ is defined, and I suspect OSF doesn't need these
20602         other modules.  If my guess is wrong, we'll need to come up with a
20603         variant of strftime that doesn't need the multibyte modules.
20604
20605         I discovered this problem when attempting modify Emacs to use the
20606         strftime module.  With the previous gnulib, this caused Emacs to
20607         need 31 new files, ranging from lib/config.charset to
20608         m4/wint_t.m4.  This was overkill and I expect would be offputting
20609         to the Emacs maintainers.  After this change, only 6 new files are
20610         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20611         stdbool.m4, and tm_gmtoff.m4.
20612
20613         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20614         Suggested by Bruno Haible in
20615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20616         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20617         and do not check for wchar.h.
20618         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20619         (Depends-on): Remove mbrlen, mbsinit, wchar.
20620
20621 2011-01-18  Bruno Haible  <bruno@clisp.org>
20622
20623         Tests for module 'get-rusage-as'.
20624         * modules/get-rusage-as-tests: New file.
20625         * tests/test-get-rusage-as.c: New file.
20626
20627         New module 'get-rusage-as'.
20628         * modules/get-rusage-as: New file.
20629         * lib/resource-ext.h: New file.
20630         * lib/get-rusage-as.c: New file.
20631
20632 2011-01-17  Eric Blake  <eblake@redhat.com>
20633
20634         sigaction: relax license from LGPLv3+ to LGPLv2+
20635         * modules/sigaction (License): Relax to LGPLv2+.
20636
20637 2011-01-14  Bruno Haible  <bruno@clisp.org>
20638
20639         filemode: Make function declarations usable in C++ mode.
20640         * lib/filemode.h: Enclose function declarations in extern "C" block.
20641         Reported by John W. Eaton <jwe@gnu.org>.
20642
20643 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20644
20645         save-cwd: no longer include "xgetcwd.h"
20646         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20647         This avoids a compilation failure in projects that use save-cwd
20648         without also using the xgetcwd module.
20649
20650 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20651
20652         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20653         This is so that a program like Emacs, which needs only dtoastr,
20654         does not have to bother with distributing and compiling ftoastr
20655         and ldtoastr.
20656         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20657         * modules/dtoastr, modules/ldtoastr: New files.
20658         * modules/ftoastr: Now works just for 'float'.
20659         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20660         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20661         dtoastr.c, ldtoastr.c.
20662
20663 2011-01-11  Jim Meyering  <meyering@redhat.com>
20664
20665         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20666         There is no need to work around the lack of the fchdir function,
20667         since gnulib can now provide a replacement when required.
20668         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20669         * modules/save-cwd (Depends-on): Add fchdir.
20670
20671 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20672
20673         openat, save-cwd: avoid xmalloc
20674
20675         This removes a direct (but undocumented) dependency of openat on
20676         xalloc, along with an indirect dependency via save-cwd.  It also
20677         removes a dependency of save-cwd on xgetcwd, and thereby
20678         indirectly on xalloc.  This change causes the openat substitute
20679         to fall back on save_cwd when memory is tight, and for save_cwd to
20680         fail instead of dying when memory is tight, but that's good enough.
20681         Problem and initial idea for fix reported by Bastien Roucaries in
20682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20683
20684         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20685         xalloc.h (for xmalloc).
20686         (openat_proc_name): Use malloc, not xmalloc.
20687         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20688         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20689
20690         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20691         This avoids heap allocation for file names whose lengths are in
20692         the range 512..1023, with the upper bound increasing to at most
20693         4031 depending on the platform's PATH_MAX.  (We do not want
20694         pathmax.h here as it might supply a non-constant PATH_MAX.)
20695         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20696         Perhaps they should be moved to malloca.h?
20697         (OPENAT_BUFFER_SIZE): Use them.
20698
20699 2011-01-10  Bruno Haible  <bruno@clisp.org>
20700
20701         doc: Update users.txt.
20702         * users.txt: Add recutils.
20703
20704 2011-01-09  Karl Berry  <karl@gnu.org>
20705
20706         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20707
20708         * doc/configmake.texi: New file.
20709         * doc/gnulib.texi: Include it.
20710         * modules/configmake: Move documentation from here.
20711
20712 2011-01-09  Bruno Haible  <bruno@clisp.org>
20713
20714         Update to Unicode 6.0.0.
20715         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20716         (get_lbp): Update for Unicode 6.0.0.
20717         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20718         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20719         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20720         U+11001, U+11038..U+11046. Remove U+06DE.
20721         (uc_width): Fix bounds of planes.
20722         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20723         lib/uniwidth/width.c.
20724         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20725         trailing whitespace removed.
20726         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20727         without comments, but with the original copyright notice.
20728         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20729         * lib/unicase/ignorable.h: Likewise.
20730         * lib/unicase/tocasefold.h: Likewise.
20731         * lib/unicase/tolower.h: Likewise.
20732         * lib/unicase/totitle.h: Likewise.
20733         * lib/unicase/toupper.h: Likewise.
20734         * lib/unictype/bidi_of.h: Likewise.
20735         * lib/unictype/blocks.h: Likewise.
20736         * lib/unictype/categ_C.h: Likewise.
20737         * lib/unictype/categ_Cn.h: Likewise.
20738         * lib/unictype/categ_L.h: Likewise.
20739         * lib/unictype/categ_Ll.h: Likewise.
20740         * lib/unictype/categ_Lm.h: Likewise.
20741         * lib/unictype/categ_Lo.h: Likewise.
20742         * lib/unictype/categ_Lu.h: Likewise.
20743         * lib/unictype/categ_M.h: Likewise.
20744         * lib/unictype/categ_Mc.h: Likewise.
20745         * lib/unictype/categ_Me.h: Likewise.
20746         * lib/unictype/categ_Mn.h: Likewise.
20747         * lib/unictype/categ_N.h: Likewise.
20748         * lib/unictype/categ_Nd.h: Likewise.
20749         * lib/unictype/categ_No.h: Likewise.
20750         * lib/unictype/categ_P.h: Likewise.
20751         * lib/unictype/categ_Po.h: Likewise.
20752         * lib/unictype/categ_S.h: Likewise.
20753         * lib/unictype/categ_Sc.h: Likewise.
20754         * lib/unictype/categ_Sk.h: Likewise.
20755         * lib/unictype/categ_Sm.h: Likewise.
20756         * lib/unictype/categ_So.h: Likewise.
20757         * lib/unictype/categ_of.h: Likewise.
20758         * lib/unictype/combining.h: Likewise.
20759         * lib/unictype/ctype_alnum.h: Likewise.
20760         * lib/unictype/ctype_alpha.h: Likewise.
20761         * lib/unictype/ctype_graph.h: Likewise.
20762         * lib/unictype/ctype_lower.h: Likewise.
20763         * lib/unictype/ctype_print.h: Likewise.
20764         * lib/unictype/ctype_punct.h: Likewise.
20765         * lib/unictype/ctype_upper.h: Likewise.
20766         * lib/unictype/decdigit.h: Likewise.
20767         * lib/unictype/digit.h: Likewise.
20768         * lib/unictype/numeric.h: Likewise.
20769         * lib/unictype/pr_alphabetic.h: Likewise.
20770         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20771         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20772         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20773         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20774         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20775         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20776         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20777         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20778         * lib/unictype/pr_case_ignorable.h: Likewise.
20779         * lib/unictype/pr_cased.h: Likewise.
20780         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20781         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20782         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20783         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20784         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20785         * lib/unictype/pr_combining.h: Likewise.
20786         * lib/unictype/pr_composite.h: Likewise.
20787         * lib/unictype/pr_currency_symbol.h: Likewise.
20788         * lib/unictype/pr_decimal_digit.h: Likewise.
20789         * lib/unictype/pr_deprecated.h: Likewise.
20790         * lib/unictype/pr_format_control.h: Likewise.
20791         * lib/unictype/pr_grapheme_base.h: Likewise.
20792         * lib/unictype/pr_grapheme_extend.h: Likewise.
20793         * lib/unictype/pr_grapheme_link.h: Likewise.
20794         * lib/unictype/pr_id_continue.h: Likewise.
20795         * lib/unictype/pr_id_start.h: Likewise.
20796         * lib/unictype/pr_ideographic.h: Likewise.
20797         * lib/unictype/pr_lowercase.h: Likewise.
20798         * lib/unictype/pr_math.h: Likewise.
20799         * lib/unictype/pr_numeric.h: Likewise.
20800         * lib/unictype/pr_other_alphabetic.h: Likewise.
20801         * lib/unictype/pr_other_id_continue.h: Likewise.
20802         * lib/unictype/pr_other_math.h: Likewise.
20803         * lib/unictype/pr_punctuation.h: Likewise.
20804         * lib/unictype/pr_sentence_terminal.h: Likewise.
20805         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20806         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20807         * lib/unictype/pr_unified_ideograph.h: Likewise.
20808         * lib/unictype/pr_uppercase.h: Likewise.
20809         * lib/unictype/pr_xid_continue.h: Likewise.
20810         * lib/unictype/pr_xid_start.h: Likewise.
20811         * lib/unictype/scripts.h: Likewise.
20812         * lib/unictype/scripts_byname.gperf: Likewise.
20813         * lib/unictype/sy_java_ident.h: Likewise.
20814         * lib/unigbrk/gbrkprop.h: Likewise.
20815         * lib/unilbrk/lbrkprop1.h: Likewise.
20816         * lib/unilbrk/lbrkprop2.h: Likewise.
20817         * lib/uninorm/decomposition-table2.h: Likewise.
20818         * lib/uniwbrk/wbrkprop.h: Likewise.
20819         * tests/unicase/test-cased.c: Likewise.
20820         * tests/unicase/test-ignorable.c: Likewise.
20821         * tests/unicase/test-uc_tolower.c: Likewise.
20822         * tests/unicase/test-uc_totitle.c: Likewise.
20823         * tests/unicase/test-uc_toupper.c: Likewise.
20824         * tests/unictype/test-categ_C.c: Likewise.
20825         * tests/unictype/test-categ_Cn.c: Likewise.
20826         * tests/unictype/test-categ_L.c: Likewise.
20827         * tests/unictype/test-categ_Ll.c: Likewise.
20828         * tests/unictype/test-categ_Lm.c: Likewise.
20829         * tests/unictype/test-categ_Lo.c: Likewise.
20830         * tests/unictype/test-categ_Lu.c: Likewise.
20831         * tests/unictype/test-categ_M.c: Likewise.
20832         * tests/unictype/test-categ_Mc.c: Likewise.
20833         * tests/unictype/test-categ_Me.c: Likewise.
20834         * tests/unictype/test-categ_Mn.c: Likewise.
20835         * tests/unictype/test-categ_N.c: Likewise.
20836         * tests/unictype/test-categ_Nd.c: Likewise.
20837         * tests/unictype/test-categ_No.c: Likewise.
20838         * tests/unictype/test-categ_P.c: Likewise.
20839         * tests/unictype/test-categ_Po.c: Likewise.
20840         * tests/unictype/test-categ_S.c: Likewise.
20841         * tests/unictype/test-categ_Sc.c: Likewise.
20842         * tests/unictype/test-categ_Sk.c: Likewise.
20843         * tests/unictype/test-categ_Sm.c: Likewise.
20844         * tests/unictype/test-categ_So.c: Likewise.
20845         * tests/unictype/test-ctype_alnum.c: Likewise.
20846         * tests/unictype/test-ctype_alpha.c: Likewise.
20847         * tests/unictype/test-ctype_graph.c: Likewise.
20848         * tests/unictype/test-ctype_lower.c: Likewise.
20849         * tests/unictype/test-ctype_print.c: Likewise.
20850         * tests/unictype/test-ctype_punct.c: Likewise.
20851         * tests/unictype/test-ctype_upper.c: Likewise.
20852         * tests/unictype/test-decdigit.h: Likewise.
20853         * tests/unictype/test-digit.h: Likewise.
20854         * tests/unictype/test-numeric.h: Likewise.
20855         * tests/unictype/test-pr_alphabetic.c: Likewise.
20856         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20857         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20858         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20859         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20860         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20861         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20862         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20863         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20864         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20865         * tests/unictype/test-pr_cased.c: Likewise.
20866         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20867         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20868         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20869         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20870         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20871         * tests/unictype/test-pr_combining.c: Likewise.
20872         * tests/unictype/test-pr_composite.c: Likewise.
20873         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20874         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20875         * tests/unictype/test-pr_deprecated.c: Likewise.
20876         * tests/unictype/test-pr_format_control.c: Likewise.
20877         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20878         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20879         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20880         * tests/unictype/test-pr_id_continue.c: Likewise.
20881         * tests/unictype/test-pr_id_start.c: Likewise.
20882         * tests/unictype/test-pr_ideographic.c: Likewise.
20883         * tests/unictype/test-pr_lowercase.c: Likewise.
20884         * tests/unictype/test-pr_math.c: Likewise.
20885         * tests/unictype/test-pr_numeric.c: Likewise.
20886         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20887         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20888         * tests/unictype/test-pr_other_math.c: Likewise.
20889         * tests/unictype/test-pr_punctuation.c: Likewise.
20890         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20891         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20892         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20893         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20894         * tests/unictype/test-pr_uppercase.c: Likewise.
20895         * tests/unictype/test-pr_xid_continue.c: Likewise.
20896         * tests/unictype/test-pr_xid_start.c: Likewise.
20897         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20898         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20899         changes.
20900         * lib/unictype/categ_Cc.h: Likewise.
20901         * lib/unictype/categ_Cf.h: Likewise.
20902         * lib/unictype/categ_Co.h: Likewise.
20903         * lib/unictype/categ_Cs.h: Likewise.
20904         * lib/unictype/categ_Lt.h: Likewise.
20905         * lib/unictype/categ_Nl.h: Likewise.
20906         * lib/unictype/categ_Pc.h: Likewise.
20907         * lib/unictype/categ_Pd.h: Likewise.
20908         * lib/unictype/categ_Pe.h: Likewise.
20909         * lib/unictype/categ_Pf.h: Likewise.
20910         * lib/unictype/categ_Pi.h: Likewise.
20911         * lib/unictype/categ_Ps.h: Likewise.
20912         * lib/unictype/categ_Z.h: Likewise.
20913         * lib/unictype/categ_Zl.h: Likewise.
20914         * lib/unictype/categ_Zp.h: Likewise.
20915         * lib/unictype/categ_Zs.h: Likewise.
20916         * lib/unictype/ctype_blank.h: Likewise.
20917         * lib/unictype/ctype_cntrl.h: Likewise.
20918         * lib/unictype/ctype_digit.h: Likewise.
20919         * lib/unictype/ctype_space.h: Likewise.
20920         * lib/unictype/ctype_xdigit.h: Likewise.
20921         * lib/unictype/mirror.h: Likewise.
20922         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20923         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20924         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20925         * lib/unictype/pr_bidi_control.h: Likewise.
20926         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20927         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20928         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20929         * lib/unictype/pr_bidi_pdf.h: Likewise.
20930         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20931         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20932         * lib/unictype/pr_dash.h: Likewise.
20933         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20934         * lib/unictype/pr_diacritic.h: Likewise.
20935         * lib/unictype/pr_extender.h: Likewise.
20936         * lib/unictype/pr_hex_digit.h: Likewise.
20937         * lib/unictype/pr_hyphen.h: Likewise.
20938         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20939         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20940         * lib/unictype/pr_ignorable_control.h: Likewise.
20941         * lib/unictype/pr_iso_control.h: Likewise.
20942         * lib/unictype/pr_join_control.h: Likewise.
20943         * lib/unictype/pr_left_of_pair.h: Likewise.
20944         * lib/unictype/pr_line_separator.h: Likewise.
20945         * lib/unictype/pr_logical_order_exception.h: Likewise.
20946         * lib/unictype/pr_non_break.h: Likewise.
20947         * lib/unictype/pr_not_a_character.h: Likewise.
20948         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20949         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20950         * lib/unictype/pr_other_id_start.h: Likewise.
20951         * lib/unictype/pr_other_lowercase.h: Likewise.
20952         * lib/unictype/pr_other_uppercase.h: Likewise.
20953         * lib/unictype/pr_paired_punctuation.h: Likewise.
20954         * lib/unictype/pr_paragraph_separator.h: Likewise.
20955         * lib/unictype/pr_pattern_syntax.h: Likewise.
20956         * lib/unictype/pr_pattern_white_space.h: Likewise.
20957         * lib/unictype/pr_private_use.h: Likewise.
20958         * lib/unictype/pr_quotation_mark.h: Likewise.
20959         * lib/unictype/pr_radical.h: Likewise.
20960         * lib/unictype/pr_soft_dotted.h: Likewise.
20961         * lib/unictype/pr_space.h: Likewise.
20962         * lib/unictype/pr_titlecase.h: Likewise.
20963         * lib/unictype/pr_variation_selector.h: Likewise.
20964         * lib/unictype/pr_white_space.h: Likewise.
20965         * lib/unictype/pr_zero_width.h: Likewise.
20966         * lib/unictype/sy_c_ident.h: Likewise.
20967         * lib/unictype/sy_c_whitespace.h: Likewise.
20968         * lib/unictype/sy_java_whitespace.h: Likewise.
20969         * lib/uninorm/composition-table.gperf: Likewise.
20970         * lib/uninorm/decomposition-table1.h: Likewise.
20971         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
20972         LB8.
20973         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20974         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20975         * modules/unictype/*: Bump version number of expected libunistring
20976         version.
20977
20978 2011-01-09  Bruno Haible  <bruno@clisp.org>
20979
20980         Update to Unicode 5.2.0.
20981         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
20982         trailing whitespace removed.
20983
20984 2011-01-09  Bruno Haible  <bruno@clisp.org>
20985
20986         New Unicode character properties, from Unicode 5.2.0.
20987         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
20988         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
20989         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
20990         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
20991         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
20992         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
20993         uc_is_property_cased, uc_is_property_case_ignorable,
20994         uc_is_property_changes_when_lowercased,
20995         uc_is_property_changes_when_uppercased,
20996         uc_is_property_changes_when_titlecased,
20997         uc_is_property_changes_when_casefolded,
20998         uc_is_property_changes_when_casemapped): New declarations.
20999         * lib/unictype/pr_byname.gperf: Add the new properties.
21000         * modules/unictype/property-byname (Depends-on): Depend on the new
21001         properties modules.
21002         * modules/unictype/property-all (Depends-on): Likewise.
21003         * MODULES.html.sh (Unicode string functions): Add
21004         unictype/property-case-ignorable, unictype/property-cased,
21005         unictype/property-changes-when-casefolded,
21006         unictype/property-changes-when-casemapped,
21007         unictype/property-changes-when-lowercased,
21008         unictype/property-changes-when-titlecased,
21009         unictype/property-changes-when-uppercased.
21010
21011         New module 'unictype/property-changes-when-casemapped'.
21012         * modules/unictype/property-changes-when-casemapped: New file.
21013         * lib/unictype/pr_changes_when_casemapped.c: New file.
21014         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21015         generated by gen-uni-tables.
21016         * modules/unictype/property-changes-when-casemapped-tests: New file.
21017         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21018         automatically generated by gen-uni-tables.
21019
21020         New module 'unictype/property-changes-when-casefolded'.
21021         * modules/unictype/property-changes-when-casefolded: New file.
21022         * lib/unictype/pr_changes_when_casefolded.c: New file.
21023         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21024         generated by gen-uni-tables.
21025         * modules/unictype/property-changes-when-casefolded-tests: New file.
21026         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21027         automatically generated by gen-uni-tables.
21028
21029         New module 'unictype/property-changes-when-titlecased'.
21030         * modules/unictype/property-changes-when-titlecased: New file.
21031         * lib/unictype/pr_changes_when_titlecased.c: New file.
21032         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21033         generated by gen-uni-tables.
21034         * modules/unictype/property-changes-when-titlecased-tests: New file.
21035         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21036         automatically generated by gen-uni-tables.
21037
21038         New module 'unictype/property-changes-when-uppercased'.
21039         * modules/unictype/property-changes-when-uppercased: New file.
21040         * lib/unictype/pr_changes_when_uppercased.c: New file.
21041         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21042         generated by gen-uni-tables.
21043         * modules/unictype/property-changes-when-uppercased-tests: New file.
21044         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21045         automatically generated by gen-uni-tables.
21046
21047         New module 'unictype/property-changes-when-lowercased'.
21048         * modules/unictype/property-changes-when-lowercased: New file.
21049         * lib/unictype/pr_changes_when_lowercased.c: New file.
21050         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21051         generated by gen-uni-tables.
21052         * modules/unictype/property-changes-when-lowercased-tests: New file.
21053         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21054         automatically generated by gen-uni-tables.
21055
21056         New module 'unictype/property-case-ignorable'.
21057         * modules/unictype/property-case-ignorable: New file.
21058         * lib/unictype/pr_case_ignorable.c: New file.
21059         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21060         by gen-uni-tables.
21061         * modules/unictype/property-case-ignorable-tests: New file.
21062         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21063         generated by gen-uni-tables.
21064
21065         New module 'unictype/property-cased'.
21066         * modules/unictype/property-cased: New file.
21067         * lib/unictype/pr_cased.c: New file.
21068         * lib/unictype/pr_cased.h: New file, automatically generated by
21069         gen-uni-tables.
21070         * modules/unictype/property-cased-tests: New file.
21071         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21072         gen-uni-tables.
21073
21074 2011-01-09  Bruno Haible  <bruno@clisp.org>
21075
21076         Update to Unicode 5.2.0.
21077         * lib/gen-uni-tables.c (output_predicate, output_category,
21078         output_combclass, output_bidi_category, output_decimal_digit_test,
21079         output_decimal_digit, output_digit_test, output_digit,
21080         output_numeric_test, output_numeric, output_mirror, output_scripts,
21081         output_scripts_byname, output_blocks, output_ident_category): Fix
21082         comment header.
21083         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21084         get_wbp.
21085         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21086         items.
21087         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21088         Changes_When_Lowercased, Changes_When_Uppercased,
21089         Changes_When_Titlecased, Changes_When_Casefolded,
21090         Changes_When_Casemapped.
21091         (is_property_alphabetic, is_property_default_ignorable_code_point):
21092         Update for Unicode 5.2.0.
21093         (is_property_cased, is_property_case_ignorable,
21094         is_property_changes_when_lowercased,
21095         is_property_changes_when_uppercased,
21096         is_property_changes_when_titlecased,
21097         is_property_changes_when_casefolded,
21098         is_property_changes_when_casemapped): New functions.
21099         (output_properties): Output also the properties cased, case_ignorable,
21100         changes_when_lowercased, changes_when_uppercased,
21101         changes_when_titlecased, changes_when_casefolded,
21102         changes_when_casemapped.
21103         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21104         Unicode TR#11 revision 17 -> 19.
21105         (LBP_CP): New enumeration value.
21106         (LBP_*): Adjust values accordingly.
21107         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21108         TR#14 revision 22 -> 24.
21109         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21110         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21111         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21112         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21113         is_WBP_MIDLETTER.
21114         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21115         the code1 and code2 of each composition rule.
21116         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21117         * lib/unicase/ignorable.h: Likewise.
21118         * lib/unicase/tocasefold.h: Likewise.
21119         * lib/unicase/tolower.h: Likewise.
21120         * lib/unicase/totitle.h: Likewise.
21121         * lib/unicase/toupper.h: Likewise.
21122         * lib/unictype/bidi_of.h: Likewise.
21123         * lib/unictype/blocks.h: Likewise.
21124         * lib/unictype/categ_C.h: Likewise.
21125         * lib/unictype/categ_Cf.h: Likewise.
21126         * lib/unictype/categ_Cn.h: Likewise.
21127         * lib/unictype/categ_L.h: Likewise.
21128         * lib/unictype/categ_Ll.h: Likewise.
21129         * lib/unictype/categ_Lm.h: Likewise.
21130         * lib/unictype/categ_Lo.h: Likewise.
21131         * lib/unictype/categ_Lu.h: Likewise.
21132         * lib/unictype/categ_M.h: Likewise.
21133         * lib/unictype/categ_Mc.h: Likewise.
21134         * lib/unictype/categ_Mn.h: Likewise.
21135         * lib/unictype/categ_N.h: Likewise.
21136         * lib/unictype/categ_Nd.h: Likewise.
21137         * lib/unictype/categ_Nl.h: Likewise.
21138         * lib/unictype/categ_No.h: Likewise.
21139         * lib/unictype/categ_P.h: Likewise.
21140         * lib/unictype/categ_Pd.h: Likewise.
21141         * lib/unictype/categ_Po.h: Likewise.
21142         * lib/unictype/categ_S.h: Likewise.
21143         * lib/unictype/categ_Sc.h: Likewise.
21144         * lib/unictype/categ_So.h: Likewise.
21145         * lib/unictype/categ_of.h: Likewise.
21146         * lib/unictype/combining.h: Likewise.
21147         * lib/unictype/ctype_alnum.h: Likewise.
21148         * lib/unictype/ctype_alpha.h: Likewise.
21149         * lib/unictype/ctype_graph.h: Likewise.
21150         * lib/unictype/ctype_lower.h: Likewise.
21151         * lib/unictype/ctype_print.h: Likewise.
21152         * lib/unictype/ctype_punct.h: Likewise.
21153         * lib/unictype/ctype_upper.h: Likewise.
21154         * lib/unictype/decdigit.h: Likewise.
21155         * lib/unictype/digit.h: Likewise.
21156         * lib/unictype/numeric.h: Likewise.
21157         * lib/unictype/pr_alphabetic.h: Likewise.
21158         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21159         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21160         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21161         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21162         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21163         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21164         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21165         * lib/unictype/pr_combining.h: Likewise.
21166         * lib/unictype/pr_composite.h: Likewise.
21167         * lib/unictype/pr_currency_symbol.h: Likewise.
21168         * lib/unictype/pr_dash.h: Likewise.
21169         * lib/unictype/pr_decimal_digit.h: Likewise.
21170         * lib/unictype/pr_deprecated.h: Likewise.
21171         * lib/unictype/pr_diacritic.h: Likewise.
21172         * lib/unictype/pr_extender.h: Likewise.
21173         * lib/unictype/pr_grapheme_base.h: Likewise.
21174         * lib/unictype/pr_grapheme_extend.h: Likewise.
21175         * lib/unictype/pr_grapheme_link.h: Likewise.
21176         * lib/unictype/pr_id_continue.h: Likewise.
21177         * lib/unictype/pr_id_start.h: Likewise.
21178         * lib/unictype/pr_ideographic.h: Likewise.
21179         * lib/unictype/pr_ignorable_control.h: Likewise.
21180         * lib/unictype/pr_logical_order_exception.h: Likewise.
21181         * lib/unictype/pr_lowercase.h: Likewise.
21182         * lib/unictype/pr_numeric.h: Likewise.
21183         * lib/unictype/pr_other_alphabetic.h: Likewise.
21184         * lib/unictype/pr_punctuation.h: Likewise.
21185         * lib/unictype/pr_sentence_terminal.h: Likewise.
21186         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21187         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21188         * lib/unictype/pr_unified_ideograph.h: Likewise.
21189         * lib/unictype/pr_uppercase.h: Likewise.
21190         * lib/unictype/pr_xid_continue.h: Likewise.
21191         * lib/unictype/pr_xid_start.h: Likewise.
21192         * lib/unictype/pr_zero_width.h: Likewise.
21193         * lib/unictype/scripts.h: Likewise.
21194         * lib/unictype/scripts_byname.gperf: Likewise.
21195         * lib/unictype/sy_java_ident.h: Likewise.
21196         * lib/unigbrk/gbrkprop.h: Likewise.
21197         * lib/unilbrk/lbrkprop1.h: Likewise.
21198         * lib/unilbrk/lbrkprop2.h: Likewise.
21199         * lib/unilbrk/lbrktables.h: Likewise.
21200         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21201         LBP_CP. Implement rule LB30.
21202         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21203         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21204         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21205         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21206         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21207         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21208         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21209         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21210         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21211         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21212         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21213         bits instead of 16 bits in the code1 and code2 of each composition
21214         rule.
21215         (uc_composition): Update for Unicode 5.2.0.
21216         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21217         * lib/uninorm/decomposition-table2.h: Likewise.
21218         * lib/uniwbrk/wbrkprop.h: Likewise.
21219         * tests/unicase/test-cased.c: Likewise.
21220         * tests/unicase/test-ignorable.c: Likewise.
21221         * tests/unicase/test-uc_tolower.c: Likewise.
21222         * tests/unicase/test-uc_totitle.c: Likewise.
21223         * tests/unicase/test-uc_toupper.c: Likewise.
21224         * tests/unictype/test-categ_C.c: Likewise.
21225         * tests/unictype/test-categ_Cf.c: Likewise.
21226         * tests/unictype/test-categ_Cn.c: Likewise.
21227         * tests/unictype/test-categ_L.c: Likewise.
21228         * tests/unictype/test-categ_Ll.c: Likewise.
21229         * tests/unictype/test-categ_Lm.c: Likewise.
21230         * tests/unictype/test-categ_Lo.c: Likewise.
21231         * tests/unictype/test-categ_Lu.c: Likewise.
21232         * tests/unictype/test-categ_M.c: Likewise.
21233         * tests/unictype/test-categ_Mc.c: Likewise.
21234         * tests/unictype/test-categ_Mn.c: Likewise.
21235         * tests/unictype/test-categ_N.c: Likewise.
21236         * tests/unictype/test-categ_Nd.c: Likewise.
21237         * tests/unictype/test-categ_Nl.c: Likewise.
21238         * tests/unictype/test-categ_No.c: Likewise.
21239         * tests/unictype/test-categ_P.c: Likewise.
21240         * tests/unictype/test-categ_Pd.c: Likewise.
21241         * tests/unictype/test-categ_Po.c: Likewise.
21242         * tests/unictype/test-categ_S.c: Likewise.
21243         * tests/unictype/test-categ_Sc.c: Likewise.
21244         * tests/unictype/test-categ_So.c: Likewise.
21245         * tests/unictype/test-ctype_alnum.c: Likewise.
21246         * tests/unictype/test-ctype_alpha.c: Likewise.
21247         * tests/unictype/test-ctype_graph.c: Likewise.
21248         * tests/unictype/test-ctype_lower.c: Likewise.
21249         * tests/unictype/test-ctype_print.c: Likewise.
21250         * tests/unictype/test-ctype_punct.c: Likewise.
21251         * tests/unictype/test-ctype_upper.c: Likewise.
21252         * tests/unictype/test-decdigit.h: Likewise.
21253         * tests/unictype/test-digit.h: Likewise.
21254         * tests/unictype/test-numeric.h: Likewise.
21255         * tests/unictype/test-pr_alphabetic.c: Likewise.
21256         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21257         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21258         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21259         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21260         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21261         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21262         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21263         * tests/unictype/test-pr_combining.c: Likewise.
21264         * tests/unictype/test-pr_composite.c: Likewise.
21265         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21266         * tests/unictype/test-pr_dash.c: Likewise.
21267         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21268         * tests/unictype/test-pr_deprecated.c: Likewise.
21269         * tests/unictype/test-pr_diacritic.c: Likewise.
21270         * tests/unictype/test-pr_extender.c: Likewise.
21271         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21272         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21273         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21274         * tests/unictype/test-pr_id_continue.c: Likewise.
21275         * tests/unictype/test-pr_id_start.c: Likewise.
21276         * tests/unictype/test-pr_ideographic.c: Likewise.
21277         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21278         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21279         * tests/unictype/test-pr_lowercase.c: Likewise.
21280         * tests/unictype/test-pr_numeric.c: Likewise.
21281         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21282         * tests/unictype/test-pr_punctuation.c: Likewise.
21283         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21284         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21285         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21286         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21287         * tests/unictype/test-pr_uppercase.c: Likewise.
21288         * tests/unictype/test-pr_xid_continue.c: Likewise.
21289         * tests/unictype/test-pr_xid_start.c: Likewise.
21290         * tests/unictype/test-pr_zero_width.c: Likewise.
21291         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21292         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21293         changed behaviour: line breaking is now disallowed between a letter
21294         or '=' and '('.
21295         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21296         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21297         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21298         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21299         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21300         lib/uniwidth/width.c.
21301         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21302         without comments, but with the original copyright notice.
21303         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21304         changes.
21305         * lib/unictype/categ_Cc.h: Likewise.
21306         * lib/unictype/categ_Co.h: Likewise.
21307         * lib/unictype/categ_Cs.h: Likewise.
21308         * lib/unictype/categ_Lt.h: Likewise.
21309         * lib/unictype/categ_Me.h: Likewise.
21310         * lib/unictype/categ_Pc.h: Likewise.
21311         * lib/unictype/categ_Pe.h: Likewise.
21312         * lib/unictype/categ_Pf.h: Likewise.
21313         * lib/unictype/categ_Pi.h: Likewise.
21314         * lib/unictype/categ_Ps.h: Likewise.
21315         * lib/unictype/categ_Sk.h: Likewise.
21316         * lib/unictype/categ_Sm.h: Likewise.
21317         * lib/unictype/categ_Z.h: Likewise.
21318         * lib/unictype/categ_Zl.h: Likewise.
21319         * lib/unictype/categ_Zp.h: Likewise.
21320         * lib/unictype/categ_Zs.h: Likewise.
21321         * lib/unictype/ctype_blank.h: Likewise.
21322         * lib/unictype/ctype_cntrl.h: Likewise.
21323         * lib/unictype/ctype_digit.h: Likewise.
21324         * lib/unictype/ctype_space.h: Likewise.
21325         * lib/unictype/ctype_xdigit.h: Likewise.
21326         * lib/unictype/mirror.h: Likewise.
21327         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21328         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21329         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21330         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21331         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21332         * lib/unictype/pr_bidi_control.h: Likewise.
21333         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21334         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21335         * lib/unictype/pr_bidi_pdf.h: Likewise.
21336         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21337         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21338         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21339         * lib/unictype/pr_format_control.h: Likewise.
21340         * lib/unictype/pr_hex_digit.h: Likewise.
21341         * lib/unictype/pr_hyphen.h: Likewise.
21342         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21343         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21344         * lib/unictype/pr_iso_control.h: Likewise.
21345         * lib/unictype/pr_join_control.h: Likewise.
21346         * lib/unictype/pr_left_of_pair.h: Likewise.
21347         * lib/unictype/pr_line_separator.h: Likewise.
21348         * lib/unictype/pr_math.h: Likewise.
21349         * lib/unictype/pr_non_break.h: Likewise.
21350         * lib/unictype/pr_not_a_character.h: Likewise.
21351         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21352         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21353         * lib/unictype/pr_other_id_continue.h: Likewise.
21354         * lib/unictype/pr_other_id_start.h: Likewise.
21355         * lib/unictype/pr_other_lowercase.h: Likewise.
21356         * lib/unictype/pr_other_math.h: Likewise.
21357         * lib/unictype/pr_other_uppercase.h: Likewise.
21358         * lib/unictype/pr_paired_punctuation.h: Likewise.
21359         * lib/unictype/pr_paragraph_separator.h: Likewise.
21360         * lib/unictype/pr_pattern_syntax.h: Likewise.
21361         * lib/unictype/pr_pattern_white_space.h: Likewise.
21362         * lib/unictype/pr_private_use.h: Likewise.
21363         * lib/unictype/pr_quotation_mark.h: Likewise.
21364         * lib/unictype/pr_radical.h: Likewise.
21365         * lib/unictype/pr_soft_dotted.h: Likewise.
21366         * lib/unictype/pr_space.h: Likewise.
21367         * lib/unictype/pr_titlecase.h: Likewise.
21368         * lib/unictype/pr_variation_selector.h: Likewise.
21369         * lib/unictype/pr_white_space.h: Likewise.
21370         * lib/unictype/sy_c_ident.h: Likewise.
21371         * lib/unictype/sy_c_whitespace.h: Likewise.
21372         * lib/unictype/sy_java_whitespace.h: Likewise.
21373         * modules/uni*/*: Bump version number of expected libunistring version.
21374         Reported by Simon Josefsson.
21375
21376 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21377
21378         useless-if-before-free: fix typo in --help and make the internal,
21379         automatic version date update process work once again.
21380         --help output contained a NUL character instead of the
21381         backslash-zero that was intended.  Also, the "must lie within
21382         the first 8 lines" line is on line 9, and hence not getting
21383         automatically updated.
21384         * build-aux/useless-if-before-free: Fix the former by adding a
21385         backslash, and the latter by condensing the three lines of what-it-does
21386         to a single line, leaving one line of slack for the future.
21387
21388 2011-01-09  Bruno Haible  <bruno@clisp.org>
21389
21390         uniwidth/width: Fix width of U+1D173..U+1D17A.
21391         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21392         symbolic_width, output_width_property_test): New functions.
21393         (main): Invoke output_nonspacing_property, output_width_property_test.
21394         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21395         U+1D173..U+1D17A.
21396         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21397         1.
21398         * modules/uniwidth/*: Bump version number of expected libunistring
21399         version.
21400         * modules/unilbrk/*: Likewise.
21401
21402 2011-01-08  Bruno Haible  <bruno@clisp.org>
21403
21404         uninorm tests: Preserve copyright of Unicode data file.
21405         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21406         Mention modifications.
21407
21408 2011-01-08  Bruno Haible  <bruno@clisp.org>
21409
21410         gen-uni-tables: Prepare for Unicode 5.2.0.
21411         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21412         (debug_output_lbp, output_lbp): Update.
21413
21414 2011-01-08  Bruno Haible  <bruno@clisp.org>
21415
21416         unilbrk: Clarify gen-uni-tables.c code.
21417         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21418         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21419         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21420
21421 2011-01-07  Bruno Haible  <bruno@clisp.org>
21422
21423         strtod: Restore errno when successfully parsing Infinity or NaN.
21424         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21425         restore the original errno.
21426
21427 2011-01-07  Bruno Haible  <bruno@clisp.org>
21428
21429         remove test: Avoid failure on HP-UX 11.
21430         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21431
21432 2011-01-07  Bruno Haible  <bruno@clisp.org>
21433
21434         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21435         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21436         error code.
21437
21438 2011-01-07  Pádraig Brady <P@draigBrady.com>
21439
21440         ignore-value: fixup comments, and add Eric Blake
21441         as an author since he rewrote the macros.
21442         * lib/ignore-value.h (ignore_value):  State that
21443         we now support aggregates.  Also specify exactly
21444         when the GCC warn_unused_result feature was added.
21445
21446 2011-01-06  Eric Blake  <eblake@redhat.com>
21447
21448         ignore-value: support aggregate types
21449         * lib/ignore-value.h (ignore_value): Provide separate gcc
21450         definition.
21451         * modules/ignore-value-tests: New test module.
21452         * tests/test-ignore-value.c: New test.
21453
21454         maint.mk: improve sc_prohibit_strcmp regex
21455         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21456         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21457         definition of STRNEQ.
21458
21459         signal: work around Haiku issue with SIGBUS
21460         * lib/siglist.h: Add comment.
21461         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21462         strsignal's favoring of SIGSEGV.
21463         * tests/test-signal.c (main): Avoid test failure.
21464         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21465         Reported by Scott McCreary.
21466
21467         maint.mk: add pre-release check to ensure submodule commits are public
21468         * top/maint.mk (public-submodule-commit): New rule.
21469         (submodule-checks): New variable.
21470         (alpha beta stable): Depend on the variable.
21471
21472 2011-01-05  Pádraig Brady <P@draigBrady.com>
21473         and Jim Meyering  <meyering@redhat.com>
21474
21475         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21476         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21477         (ATTRIBUTE_DEPRECATED): Define.
21478         (_ignore_case): New function.
21479         (ignore_value): New macro, to replace the old function.
21480         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21481         * modules/ignore-value (Depends-on): Add stdint.
21482
21483 2011-01-04  Eric Blake  <eblake@redhat.com>
21484
21485         doc: regenerate INSTALL
21486         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21487         @firstparagraphindent support, now that autoconf dropped it.
21488         (INSTALL_PRELUDE): Reinstate old macro.
21489         * doc/install.texi: Resync from autoconf.
21490         * doc/INSTALL: Reflect recent autoconf update.
21491         * doc/INSTALL.ISO: Likewise.
21492         * doc/INSTALL.UTF-8: Likewise.
21493         Reported by Karl Berry.
21494
21495 2011-01-04  Bruce Korb  <address@hidden>
21496
21497         git-version-gen: avoid a sub-shell
21498         * build-aux/git-version-gen: Redirect stderr in `...` via
21499         "exec 2>...", rather than via an added sub-shell.
21500
21501 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21502
21503         git-version-gen: use (...) rather than sh -c '...'
21504         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21505         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21506
21507 2011-01-03  Jim Meyering  <meyering@redhat.com>
21508
21509         git-version-gen: convert leading TABs to spaces
21510         * build-aux/git-version-gen: Expand leading TABs.
21511
21512         git-version-gen: handle failed "git rev-list"
21513         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21514         from git and proceeding as if it had succeeded but printed no SHA1
21515         checksums, suppress the diagnostic and handle the failure.
21516         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21517
21518         git-version-gen: include command name in one more diagnostic
21519         * build-aux/git-version-gen: When the required .tarball-version file
21520         was missing or unreadable, you might see the diagnostic from "cat",
21521         but no trace of the name of the invoking script.  Now, you still see
21522         the diagnostic from cat, but also get one from "git-version-gen: ".
21523         Inspired by a patch from Bruce Korb.
21524
21525         update-copyright: adjust test to match changed code
21526         * tests/test-update-copyright.sh: Change test's expected output
21527         to match new actual output.
21528
21529 2011-01-02  Bruno Haible  <bruno@clisp.org>
21530
21531         getlogin_r: Avoid test failure on HP-UX 11.
21532         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21533         ERANGE when the second argument is zero.
21534         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21535         portability problem.
21536
21537 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21538
21539         * build-aux/update-copyright: doc Simon's changes
21540
21541 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21542
21543         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21544         environment variable.
21545
21546 2011-01-02  Bruno Haible  <bruno@clisp.org>
21547
21548         unigbrk: Avoid gcc warnings.
21549         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21550         unused variable.
21551         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21552         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21553         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21554         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21555         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21556         Change type of first argument to 'const char *'.
21557         (main): Remove unused variable.
21558         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21559         type of first argument to 'const char *'.
21560         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21561         Likewise.
21562         (main): Change type of variable 's'.
21563         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21564         to 'int'.
21565
21566 2011-01-02  Bruno Haible  <bruno@clisp.org>
21567
21568         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21569         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21570         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21571         bug.
21572         * lib/pwrite.c: Undo 2010-12-31 patch.
21573         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21574
21575 2011-01-02  Bruno Haible  <bruno@clisp.org>
21576
21577         pread: Fix test whether it works.
21578         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21579
21580 2011-01-02  Bruno Haible  <bruno@clisp.org>
21581
21582         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21583         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21584         ends in "6". Don't require a specific month name. Try also the locale
21585         names found on HP-UX 11 and Solaris 7.
21586
21587 2011-01-02  Bruno Haible  <bruno@clisp.org>
21588
21589         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21590         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21591         C linkage.
21592         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21593
21594 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21595
21596         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21597         for consistency, since the "cluster" term is not used elsewhere.
21598         * lib/unigbrk.in.h: Update name.
21599         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21600         * lib/unigbrk/u16-grapheme-next.c: Update name.
21601         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21602         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21603         * lib/unigbrk/u32-grapheme-next.c: Update name.
21604         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21605         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21606         * lib/unigbrk/u8-grapheme-next.c: Update name.
21607         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21608         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21609         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21610         Suggested by Bruno Haible.
21611
21612 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21613
21614         Remove module 'u8-grapheme-len' as too redundant with
21615         'u8-grapheme-next'.
21616         * modules/unigbrk/u8-grapheme-len: Delete file.
21617         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21618         * lib/unigbrk.in.h: Remove prototype for deleted function.
21619         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21620         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21621
21622         Remove module 'u16-grapheme-len' as too redundant with
21623         'u16-grapheme-next'.
21624         * modules/unigbrk/u16-grapheme-len: Delete file.
21625         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21626         * lib/unigbrk.in.h: Remove prototype for deleted function.
21627         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21628         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21629
21630         Remove module 'u32-grapheme-len' as too redundant with
21631         'u32-grapheme-next'.
21632         * modules/unigbrk/u32-grapheme-len: Delete file.
21633         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21634         * lib/unigbrk.in.h: Remove prototype for deleted function.
21635         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21636         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21637
21638         Suggested by Bruno Haible.
21639
21640 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21641
21642         * unigbrk.in.h: Fix typo: "ben" => "been".
21643         Reported by Bruno Haible.
21644
21645 2011-01-01  Jim Meyering  <meyering@redhat.com>
21646
21647         maint: update almost all copyright ranges to include 2011
21648         Run the new "make update-copyright" rule.
21649
21650 2011-01-01  Jim Meyering  <meyering@redhat.com>
21651
21652         maint: update-copyright: exempt doc/INSTALL*
21653         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21654         since they are generated.  Suggested by Bruno Haible.
21655
21656 2011-01-01  Jim Meyering  <meyering@redhat.com>
21657
21658         maint: refine the update-copyright rule
21659         * Makefile (update-copyright): Also exclude any file that includes
21660         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21661         code that merely generates the comment.
21662
21663 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21664
21665         New module 'u8-grapheme-len'.
21666         * modules/unigbrk/u8-grapheme-len: New file.
21667         * modules/unigbrk/u8-grapheme-len-tests: New file.
21668         * lib/unigbrk.in.h: Add prototype for new function.
21669         * lib/unigbrk/u8-grapheme-len.c: New file.
21670         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21671
21672         New module 'u16-grapheme-len'.
21673         * modules/unigbrk/u16-grapheme-len: New file.
21674         * modules/unigbrk/u16-grapheme-len-tests: New file.
21675         * lib/unigbrk.in.h: Add prototype for new function.
21676         * lib/unigbrk/u16-grapheme-len.c: New file.
21677         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21678
21679         New module 'u32-grapheme-len'.
21680         * modules/unigbrk/u32-grapheme-len: New file.
21681         * modules/unigbrk/u32-grapheme-len-tests: New file.
21682         * lib/unigbrk.in.h: Add prototype for new function.
21683         * lib/unigbrk/u32-grapheme-len.c: New file.
21684         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21685
21686         New module 'u8-grapheme-next'.
21687         * modules/unigbrk/u8-grapheme-next: New file.
21688         * modules/unigbrk/u8-grapheme-next-tests: New file.
21689         * lib/unigbrk.in.h: Add prototype for new function.
21690         * lib/unigbrk/u8-grapheme-next.c: New file.
21691         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21692
21693         New module 'u16-grapheme-next'.
21694         * modules/unigbrk/u16-grapheme-next: New file.
21695         * modules/unigbrk/u16-grapheme-next-tests: New file.
21696         * lib/unigbrk.in.h: Add prototype for new function.
21697         * lib/unigbrk/u16-grapheme-next.c: New file.
21698         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21699
21700         New module 'u32-grapheme-next'.
21701         * modules/unigbrk/u32-grapheme-next: New file.
21702         * modules/unigbrk/u32-grapheme-next-tests: New file.
21703         * lib/unigbrk.in.h: Add prototype for new function.
21704         * lib/unigbrk/u32-grapheme-next.c: New file.
21705         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21706
21707         New module 'u8-grapheme-prev'.
21708         * modules/unigbrk/u8-grapheme-prev: New file.
21709         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21710         * lib/unigbrk.in.h: Add prototype for new function.
21711         * lib/unigbrk/u8-grapheme-prev.c: New file.
21712         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21713
21714         New module 'u16-grapheme-prev'.
21715         * modules/unigbrk/u16-grapheme-prev: New file.
21716         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21717         * lib/unigbrk.in.h: Add prototype for new function.
21718         * lib/unigbrk/u16-grapheme-prev.c: New file.
21719         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21720
21721         New module 'u32-grapheme-prev'.
21722         * modules/unigbrk/u32-grapheme-prev: New file.
21723         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21724         * lib/unigbrk.in.h: Add prototype for new function.
21725         * lib/unigbrk/u32-grapheme-prev.c: New file.
21726         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21727
21728         New module 'u8-grapheme-breaks'.
21729         * modules/unigbrk/u8-grapheme-breaks: New file.
21730         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21731         * lib/unigbrk.in.h: Add prototype for new function.
21732         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21733         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21734
21735         New module 'u16-grapheme-breaks'.
21736         * modules/unigbrk/u16-grapheme-breaks: New file.
21737         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21738         * lib/unigbrk.in.h: Add prototype for new function.
21739         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21740         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21741
21742         New module 'u32-grapheme-breaks'.
21743         * modules/unigbrk/u32-grapheme-breaks: New file.
21744         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21745         * lib/unigbrk.in.h: Add prototype for new function.
21746         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21747         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21748
21749         New module 'ulc-grapheme-breaks'.
21750         * modules/unigbrk/ulc-grapheme-breaks: New file.
21751         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21752         * m4/locale-ar.m4: New file.
21753         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21754         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21755         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21756
21757 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21758
21759         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21760         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21761         modified how this file was generated before I initially submitted
21762         the module, but failed to regenerate it.  This meant that several
21763         of the level2 entries were wrong.
21764         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21765         Remove the division-by-2 that is folded into the table now that
21766         gbrkprop.h has been regenerated properly.  Now -1 entries are
21767         handled correctly.
21768
21769         New module 'unigbrk/uc-gbrk-prop-tests'.
21770         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21771         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21772         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21773         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21774
21775 2011-01-01  Bruno Haible  <bruno@clisp.org>
21776
21777         Avoid use of hexadecimal escapes.
21778         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21779         instead of hexadecimal escapes.
21780
21781 2011-01-01  Jim Meyering  <meyering@redhat.com>
21782
21783         maint: new rule to update copyright year ranges
21784         * Makefile (update-copyright): New rule.
21785
21786         maint: indent with TABs in Makefile
21787         * Makefile: Expand leading sequences of spaces to TABs
21788
21789         version-etc: update the copyright year it reports
21790         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21791
21792 2010-12-31  Bruno Haible  <bruno@clisp.org>
21793
21794         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21795         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21796         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21797         zero.
21798
21799 2010-12-31  Bruno Haible  <bruno@clisp.org>
21800
21801         pwrite: Work around HP-UX 11.11 bug.
21802         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21803         works and set REPLACE_PWRITE if not.
21804         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21805         function.
21806         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21807
21808 2010-12-31  Bruno Haible  <bruno@clisp.org>
21809
21810         pread: Work around HP-UX 11 bugs.
21811         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21812         and set REPLACE_PREAD if not.
21813         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21814
21815 2010-12-31  Eric Blake  <eblake@redhat.com>
21816
21817         nl_langinfo: fix YESEXPR on Irix 6.5
21818         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21819         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21820         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21821         it.
21822
21823 2010-12-31  Bruno Haible  <bruno@clisp.org>
21824
21825         iconv: Document HP-UX 11 bug.
21826         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21827
21828 2010-12-31  Bruno Haible  <bruno@clisp.org>
21829
21830         ldexpl: Fix link error on HP-UX 11.
21831         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21832         LDEXPL_LIBM, using $ISNANL_LIBM.
21833
21834 2010-12-31  Eric Blake  <eblake@redhat.com>
21835
21836         ftello: avoid compilation failure with SunStudio c89
21837         * lib/ftello.c (ftello): Use lseek, not llseek.
21838
21839         tests: avoid failing coreutils tests on cygwin
21840         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21841         (create_exe_shims_): Return 0 when skipping.
21842
21843 2010-12-31  Bruno Haible  <bruno@clisp.org>
21844
21845         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21846         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21847
21848 2010-12-31  Bruno Haible  <bruno@clisp.org>
21849
21850         waitpid: Fix link error in C++ mode.
21851         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21852
21853 2010-12-31  Bruno Haible  <bruno@clisp.org>
21854
21855         isnan: Use GCC built-ins when possible.
21856         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21857         __builtin_isnan.
21858         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21859         (isnan): Define using GCC built-ins for GCC >= 4.0.
21860
21861 2010-12-31  Bruno Haible  <bruno@clisp.org>
21862
21863         isnand: Fix mistake.
21864         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21865         __builtin_isnand.
21866
21867 2010-12-31  Bruno Haible  <bruno@clisp.org>
21868
21869         open: Avoid C++ error on HP-UX 11.
21870         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21871
21872 2010-12-31  Bruno Haible  <bruno@clisp.org>
21873
21874         time_r: Add missing declarations on HP-UX 11.
21875         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21876         instead of HAVE_LOCALTIME_R.
21877         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21878         HAVE_LOCALTIME_R always.
21879         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21880         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21881         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21882         HAVE_LOCALTIME_R.
21883         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21884         * doc/posix-functions/localtime_r.texi: Likewise.
21885
21886 2010-12-29  Eric Blake  <eblake@redhat.com>
21887
21888         mountlist: tweak previous commit
21889         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21890         Reported by Paul Eggert.
21891
21892         mountlist: fix local drive detection on cygwin
21893         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21894         that works for cygwin.
21895
21896 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21897
21898         ftoastr, snprintf: ftoastr + snprintf module
21899         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21900         since the snprintf module now should be good enough here.
21901         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21902         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21903         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21904         GNULIB_SNPRINTF only for the test directory, and the latter
21905         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21906         seems to suffice by itself.
21907
21908 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21909
21910         alloca: one step towards thread-safety
21911         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21912         need for a static variable.  All callers changed.  This does not
21913         make the alloca replacement thread-safe, but it's one step.
21914
21915         tests: minor indenting change
21916         * tests/init.sh: Sync from coreutils housekeeping patch
21917         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21918         to keep lines within 80 columns.
21919
21920 2010-12-28  Jim Meyering  <meyering@redhat.com>
21921
21922         regex: don't infloop on persistent failing calloc
21923         * lib/regexec.c (build_trtable): Return failure indication upon
21924         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21925         In glibc, this was fixed for version 2.13:
21926         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21927
21928 2010-12-28  Bruno Haible  <bruno@clisp.org>
21929             Paul Eggert <eggert@cs.ucla.edu>
21930
21931         linkat: Make implementation robust against system behaviour variations.
21932         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21933         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
21934         way, and to -2 if it needs a generic runtime test.
21935         * lib/linkat.c (solaris_optimized_link_immediate,
21936         solaris_optimized_link_follow): New functions.
21937         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
21938         (check_same_link): Use it.
21939
21940 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
21941
21942         New module 'unigbrk/base'.
21943         * modules/unigbrk/base: New file.
21944         * lib/unigbrk.in.h: New file.
21945
21946         New module 'unigbrk/uc-gbrk-prop'.
21947         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
21948         * modules/unigbrk/uc-gbrk-prop: New file.
21949         * lib/unigbrk/gbrkprop.h: New file.
21950         * lib/unigbrk/uc-gbrk-prop.c: New file.
21951
21952         New module 'unigbrk/uc-is-grapheme-break'.
21953         * modules/unigbrk/uc-is-grapheme-break: New file.
21954         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
21955         * lib/unigbrk/uc-is-grapheme-break.c: New file.
21956         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
21957         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
21958         * tests/unigbrk/GraphemeBreakTest.txt: New file.
21959
21960         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
21961
21962 2010-12-27  Bruno Haible  <bruno@clisp.org>
21963
21964         linkat test: Avoid failure on Solaris 11 2010-11.
21965         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
21966
21967 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21968
21969         utimens: work around glibc rounding bug on more platforms
21970         * lib/utimens.c (fdutimens): Work around rounding bug even if
21971         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
21972         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
21973
21974 2010-12-27  Bruno Haible  <bruno@clisp.org>
21975
21976         select tests: Improve comments.
21977         * tests/test-select.c (do_select): Add comments.
21978
21979 2010-12-27  Bruno Haible  <bruno@clisp.org>
21980
21981         select tests: Safer way of handling timeout.
21982         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
21983         at every invocation.
21984
21985 2010-12-27  Bruno Haible  <bruno@clisp.org>
21986
21987         select tests: Use 'bool' where appropriate.
21988         * tests/test-select.c (connect_to_socket): Change argument type to
21989         'bool'.
21990
21991 2010-12-27  Bruno Haible  <bruno@clisp.org>
21992
21993         select tests: Use existing modules.
21994         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
21995         (configure.ac): Don't test for unistd.h.
21996         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
21997         declared in <unistd.h>.
21998
21999 2010-12-27  Bruno Haible  <bruno@clisp.org>
22000
22001         mbrtowc: Work around a Solaris 7 bug.
22002         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22003         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22004         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22005         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22006         MBRTOWC_NULL_ARG1_BUG.
22007         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22008         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22009         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22010         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22011
22012 2010-12-27  Jim Meyering  <meyering@redhat.com>
22013
22014         read-file.c: tweak syntax
22015         * lib/read-file.c (fread_file): Remove space after "*" in function
22016         definitions.
22017
22018 2010-12-27  Bruno Haible  <bruno@clisp.org>
22019
22020         times test: Avoid gcc warnings on OSF/1.
22021         * tests/test-times.c (main): Cast printf arguments from clock_t to
22022         'long int'.
22023
22024 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22025
22026         utimens: work around glibc rounding bug on older Linux kernels
22027         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22028         on Linux with a glibc whose utimes might not work, then work
22029         around a longstanding glibc bug involving rounding rather than
22030         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22031         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22032
22033 2010-12-26  Bruno Haible  <bruno@clisp.org>
22034
22035         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22036         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22037         _GL_CXXALIAS_SYS.
22038         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22039
22040 2010-12-26  Bruno Haible  <bruno@clisp.org>
22041
22042         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22043         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22044         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22045         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22046         looking for the declaration.
22047         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22048         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22049         problem.
22050         * doc/posix-functions/inet_pton.texi: Likewise.
22051
22052 2010-12-26  Bruno Haible  <bruno@clisp.org>
22053
22054         arpa_inet: Use the common idioms with C++ support.
22055         * lib/arpa_inet.in.h: Include c++defs.h.
22056         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22057         support.
22058         * modules/arpa_inet (Depends-on): Add c++defs.
22059         (Makefile.am): Substitute the contents of c++defs.h.
22060         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22061         * modules/arpa_inet-c++-tests: New file.
22062         * tests/test-arpa_inet-c++.cc: New file.
22063
22064 2010-12-25  Bruno Haible  <bruno@clisp.org>
22065
22066         Fix more C++ link errors on Solaris 8.
22067         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22068         $(LIB_EACCESS).
22069         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22070         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22071         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22072         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22073         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22074
22075 2010-12-25  Bruno Haible  <bruno@clisp.org>
22076
22077         printf-posix: Fix link error when a non-GCC compiler is used.
22078         * lib/stdio.in.h (printf): When not using GCC, override printf
22079         correctly.
22080         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22081
22082 2010-12-25  Bruno Haible  <bruno@clisp.org>
22083
22084         strerror_r-posix: Update doc.
22085         * doc/posix-functions/strerror_r.texi: Update doc about the return
22086         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22087
22088 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22089
22090         utimens: simplify the logic of the previous change
22091         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22092         This should not affect whether the test succeeds or fails.
22093
22094         utimens: configure better on hosts with NFS clock skew
22095         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22096         uses the clock of the local host.  It might use the clock of the
22097         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22098         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22099
22100 2010-12-25  Bruno Haible  <bruno@clisp.org>
22101
22102         ptsname test: Avoid failure on Solaris.
22103         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22104         open a pseudo-terminal; don't use BSD-style ptys.
22105         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22106
22107 2010-12-25  Bruno Haible  <bruno@clisp.org>
22108
22109         ptsname: Avoid ERANGE failure on some systems.
22110         * lib/ptsname.c (buffer): Increase size.
22111
22112 2010-12-25  Bruno Haible  <bruno@clisp.org>
22113
22114         rename, renameat: Avoid test failures at NFS mounted locations.
22115         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22116         so that subsequent mkdir calls succeed.
22117
22118 2010-12-25  Bruno Haible  <bruno@clisp.org>
22119
22120         iswblank: Fix C++ link error on Solaris 8.
22121         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22122         _GL_FUNCDECL_SYS.
22123
22124 2010-12-25  Bruno Haible  <bruno@clisp.org>
22125
22126         unistd: Fix C++ link error on Solaris 8.
22127         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22128
22129 2010-12-25  Bruno Haible  <bruno@clisp.org>
22130
22131         readlink doc: Mention an old glibc bug.
22132         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22133
22134 2010-12-25  Bruno Haible  <bruno@clisp.org>
22135
22136         fcntl-h: Fix for use of C++ on glibc systems.
22137         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22138         also on glibc systems in C++ mode.
22139         Reported by Gary V. Vaughan <gary@gnu.org>.
22140
22141 2010-12-25  Bruno Haible  <bruno@clisp.org>
22142
22143         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22144         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22145
22146 2010-12-25  Bruno Haible  <bruno@clisp.org>
22147
22148         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22149         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22150         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22151         test whether truncl works according to ISO C 99 with IEC 60559.
22152         * m4/truncl-ieee.m4: New file.
22153         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22154         m4/signbit.m4.
22155         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22156
22157 2010-12-25  Bruno Haible  <bruno@clisp.org>
22158
22159         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22160         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22161         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22162         test whether ceill works according to ISO C 99 with IEC 60559.
22163         * m4/ceill-ieee.m4: New file.
22164         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22165         m4/signbit.m4.
22166         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22167
22168 2010-12-25  Bruno Haible  <bruno@clisp.org>
22169
22170         Ensure all prerequisites of <wchar.h> are included.
22171         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22172         before <wchar.h>.
22173         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22174         gl_MBRLEN_NUL_RETVAL): Likewise.
22175         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22176         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22177         AC_FUNC_MBRTOWC): Likewise.
22178         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22179         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22180         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22181         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22182         Likewise.
22183         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22184         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22185         (gl_WCHAR_H): Improve comments.
22186         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22187
22188 2010-12-25  Bruno Haible  <bruno@clisp.org>
22189
22190         strtok_r: Fix C syntax error in autoconf macro.
22191         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22192         characters in test program.
22193
22194 2010-12-24  Bruno Haible  <bruno@clisp.org>
22195
22196         ceil, trunc, round: Fix gcc warnings.
22197         * lib/ceil.c (MIN): Undefine before redefining.
22198         * lib/trunc.c (MIN): Likewise.
22199         * lib/round.c (MIN): Likewise.
22200         Include <math.h> first.
22201
22202 2010-12-24  Bruno Haible  <bruno@clisp.org>
22203
22204         select tests: Avoid failures on OSF/1 5.1.
22205         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22206         failure of closing the last socket; it may fail with ECONNRESET.
22207
22208 2010-12-24  Eric Blake  <eblake@redhat.com>
22209
22210         stdint: avoid HP-UX 10.20 preprocessor bug
22211         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22212         than #if.
22213         * tests/test-floor2.c (main): Likewise.
22214         Reported by Peter O'Gorman.
22215
22216         pipe: make obsoletion transition easier
22217         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22218         * modules/pipe (Files): Include revived file.
22219         (Include): Drop reference, to mirror getdate's behavior.
22220
22221 2010-12-24  Bruno Haible  <bruno@clisp.org>
22222
22223         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22224         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22225         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22226         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22227
22228 2010-12-24  Bruno Haible  <bruno@clisp.org>
22229
22230         gethostname: Ensure declaration on NonStop Kernel.
22231         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22232         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22233
22234 2010-12-24  Bruno Haible  <bruno@clisp.org>
22235
22236         sys_select: Ensure all necessary types on NonStop Kernel.
22237         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22238         include <sys/time.h>.
22239         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22240         NonStop Kernel.
22241         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22242
22243 2010-12-24  Bruno Haible  <bruno@clisp.org>
22244
22245         sys_select: Remove unneeded include.
22246         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22247         have <sys/select.h>.
22248
22249 2010-12-24  Bruno Haible  <bruno@clisp.org>
22250
22251         gethostname: Provide a fallback for HOST_NAME_MAX.
22252         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22253         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22254         instead.
22255         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22256
22257 2010-12-24  Bruno Haible  <bruno@clisp.org>
22258
22259         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22260         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22261         (SA_RESTART): Likewise.
22262         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22263
22264 2010-12-24  Bruno Haible  <bruno@clisp.org>
22265
22266         signal: Define NSIG.
22267         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22268         * tests/test-signal.c (nsig): New variable.
22269         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22270
22271 2010-12-24  Bruno Haible  <bruno@clisp.org>
22272
22273         rename, renameat: Avoid test failures on OSF/1 5.1.
22274         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22275         alternative error codes.
22276         * tests/test-renameat.c (main): Likewise.
22277
22278 2010-12-24  Bruno Haible  <bruno@clisp.org>
22279
22280         *printf: Detect large precisions bug on Solaris 10/SPARC.
22281         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22282         by Paul Eggert.
22283         * tests/test-snprintf-posix.h (test_function): Add this test code here
22284         too.
22285         * tests/test-sprintf-posix.h (test_function): Likewise.
22286         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22287         * tests/test-vasprintf-posix.c (test_function): Likewise.
22288         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22289         around by gnulib.
22290         * doc/posix-functions/printf.texi: Likewise.
22291         * doc/posix-functions/snprintf.texi: Likewise.
22292         * doc/posix-functions/sprintf.texi: Likewise.
22293         * doc/posix-functions/vfprintf.texi: Likewise.
22294         * doc/posix-functions/vprintf.texi: Likewise.
22295         * doc/posix-functions/vsnprintf.texi: Likewise.
22296         * doc/posix-functions/vsprintf.texi: Likewise.
22297         * doc/posix-functions/dprintf.texi: Undo last commit.
22298         * doc/posix-functions/vdprintf.texi: Likewise.
22299
22300 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22301
22302         tests: port test-fdutimensat.c to Solaris 8
22303         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22304         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22305         On Solaris 8, it fails with errno == ENOSYS, because there is no
22306         futimens (so it can't use the fd), and there is no lutimens (so it
22307         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22308
22309         vsnprintf: make more consistent with snprintf; doc fixes
22310
22311         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22312         the byte count return problem was promoted from the snprintf-posix
22313         to the snprintf module.
22314         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22315         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22316         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22317         * tests/test-snprintf.c (main): Check the byte count returned.
22318         * tests/test-vsnprintf.c (main): Likewise.
22319
22320 2010-12-23  Eric Blake  <eblake@redhat.com>
22321
22322         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22323         * modules/sigpipe (License): Relax license.
22324
22325 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22326
22327         doc: document Solaris printf bug with large float precisions
22328         * doc/posix-functions/dprintf.texi (dprintf):
22329         * doc/posix-functions/fprintf.texi (fprintf):
22330         * doc/posix-functions/printf.texi (printf):
22331         * doc/posix-functions/snprintf.texi (snprintf):
22332         * doc/posix-functions/sprintf.texi (sprintf):
22333         * doc/posix-functions/vdprintf.texi (vdprintf):
22334         * doc/posix-functions/vfprintf.texi (vfprintf):
22335         * doc/posix-functions/vprintf.texi (vprintf):
22336         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22337         * doc/posix-functions/vsprintf.texi (vsprintf):
22338         Mention that these functions mishandle large floating point
22339         precisions on Solaris 10.  The same bug is also present in Solaris
22340         8, and I assume earlier.  This causes "cd gnulib-tests; make
22341         check" to fail on Solaris 8 (and I assume, later) when building
22342         the latest coreutils, in test-vasprintf-posix's call to
22343         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22344         the wide flavors (e.g., wprintf) so this patch just updates the
22345         documentation for the narrow ones.
22346
22347         test-posixtm.c: add two tests
22348         * tests/test-posixtm.c: Add two tests, to highlight the
22349         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22350         around this bug; this is merely to document it.
22351
22352 2010-12-22  Bruno Haible  <bruno@clisp.org>
22353
22354         getlogin_r: Work around portability problem on OSF/1.
22355         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22356         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22357         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22358         test for a truncated result.
22359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22360         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22361         * modules/getlogin_r (Depends-on): Add memchr.
22362         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22363
22364 2010-12-22  Bruno Haible  <bruno@clisp.org>
22365
22366         ptsname: Avoid test failure on OSF/1 5.1.
22367         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22368         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22369         (same_slave): New function.
22370         (main): Use it to compare ptsname's result with the expected file name.
22371
22372 2010-12-22  Bruno Haible  <bruno@clisp.org>
22373
22374         Port extended stdio modules to HP NonStop Kernel.
22375         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22376         macros.
22377         * lib/fbufmode.c: Update comments.
22378         * lib/fflush.c: Likewise.
22379         * lib/fpurge.c: Likewise.
22380         * lib/freadable.c: Likewise.
22381         * lib/freadahead.c: Likewise.
22382         * lib/freading.c: Likewise.
22383         * lib/freadptr.c: Likewise.
22384         * lib/freadseek.c: Likewise.
22385         * lib/fseeko.c: Likewise.
22386         * lib/fseterr.c: Likewise.
22387         * lib/fwritable.c: Likewise.
22388         * lib/fwriting.c: Likewise.
22389         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22390
22391 2010-12-22  Bruno Haible  <bruno@clisp.org>
22392
22393         ttyname_r: Work around bug on OSF/1 5.1.
22394         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22395         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22396         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22397         present.
22398         * lib/ttyname_r.c (ttyname_r): Update comments.
22399
22400 2010-12-22  Bruno Haible  <bruno@clisp.org>
22401
22402         round: Implement result sign according to IEEE 754.
22403         * lib/round.c (MIN, MINUS_ZERO): New macros.
22404         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22405         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22406         * tests/test-round-ieee.c (main): Likewise.
22407         * tests/test-roundl-ieee.c (main): Likewise.
22408
22409         trunc: Implement result sign according to IEEE 754.
22410         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22411         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22412         * tests/test-trunc2.c: Include minus-zero.h.
22413         (MINUS_ZERO): New macro.
22414         (trunc_reference): Keep in sync with lib/trunc.c.
22415         * tests/test-truncf2.c: Include minus-zero.h.
22416         (MINUS_ZERO): New macro.
22417         (truncf_reference): Keep in sync with lib/trunc.c.
22418         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22419         * tests/test-trunc-ieee.c (main): Likewise.
22420         * tests/test-truncl-ieee.c (main): Likewise.
22421
22422         ceil: Implement result sign according to IEEE 754.
22423         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22424         (FUNC): Return -0.0 for -1 < x < 0.
22425         * tests/test-ceil2.c: Include minus-zero.h.
22426         (MINUS_ZERO): New macro.
22427         (ceil_reference): Keep in sync with lib/ceil.c.
22428         * tests/test-ceilf2.c: Include minus-zero.h.
22429         (MINUS_ZERO): New macro.
22430         (ceilf_reference): Keep in sync with lib/ceil.c.
22431         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22432         * tests/test-ceil-ieee.c (main): Likewise.
22433         * tests/test-ceill-ieee.c (main): Likewise.
22434
22435         floor: Implement result sign according to IEEE 754.
22436         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22437         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22438         * tests/test-floorf2.c (floorf_reference): Likewise.
22439         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22440         * tests/test-floor-ieee.c (main): Likewise.
22441         * tests/test-floorl-ieee.c (main): Likewise.
22442
22443 2010-12-22  Bruno Haible  <bruno@clisp.org>
22444
22445         getaddrinfo: Update doc.
22446         * doc/posix-functions/gai_strerror.texi: Return type is also different
22447         on AIX and HP-UX.
22448
22449 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22450
22451         getaddrinfo, inet_ntop: Update doc for Solaris.
22452         * doc/posix-functions/gai_strerror.texi: Return type is also an
22453         issue on Solaris 9 and earlier.
22454         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22455         on Solaris 10 and earlier.
22456
22457 2010-12-21  Bruno Haible  <bruno@clisp.org>
22458
22459         New module 'roundl-ieee'.
22460         * modules/roundl-ieee: New file.
22461         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22462         test whether roundl works according to ISO C 99 with IEC 60559.
22463         * m4/roundl-ieee.m4: New file.
22464         * modules/roundl-ieee-tests: New file.
22465         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22466         * tests/test-roundl.c (main): Remove signbit tests.
22467         * modules/roundl-tests (Depends-on): Remove signbit.
22468         * doc/posix-functions/roundl.texi: Mention the new module.
22469
22470 2010-12-21  Bruno Haible  <bruno@clisp.org>
22471
22472         New module 'truncl-ieee'.
22473         * modules/truncl-ieee: New file.
22474         * modules/truncl-ieee-tests: New file.
22475         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22476         * tests/test-truncl.c (main): Remove signbit tests.
22477         * modules/truncl-tests (Depends-on): Remove signbit.
22478         * doc/posix-functions/truncl.texi: Mention the new module.
22479
22480 2010-12-21  Bruno Haible  <bruno@clisp.org>
22481
22482         New module 'ceill-ieee'.
22483         * modules/ceill-ieee: New file.
22484         * modules/ceill-ieee-tests: New file.
22485         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22486         * tests/test-ceill.c (main): Remove signbit tests.
22487         * modules/ceill-tests (Depends-on): Remove signbit.
22488         * doc/posix-functions/ceill.texi: Mention the new module.
22489
22490 2010-12-21  Bruno Haible  <bruno@clisp.org>
22491
22492         New module 'floorl-ieee'.
22493         * modules/floorl-ieee: New file.
22494         * modules/floorl-ieee-tests: New file.
22495         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22496         * tests/test-floorl.c (main): Remove signbit tests.
22497         * modules/floorl-tests (Depends-on): Remove signbit.
22498         * doc/posix-functions/floorl.texi: Mention the new module.
22499
22500 2010-12-21  Bruno Haible  <bruno@clisp.org>
22501
22502         New module 'round-ieee'.
22503         * modules/round-ieee: New file.
22504         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22505         whether round works according to ISO C 99 with IEC 60559.
22506         * m4/round-ieee.m4: New file.
22507         * modules/round-ieee-tests: New file.
22508         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22509         * tests/test-round1.c (main): Remove signbit tests.
22510         * modules/round-tests (Depends-on): Remove 'signbit'.
22511         * doc/posix-functions/round.texi: Mention the new module.
22512
22513 2010-12-21  Bruno Haible  <bruno@clisp.org>
22514
22515         New module 'trunc-ieee'.
22516         * modules/trunc-ieee: New file.
22517         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22518         whether trunc works according to ISO C 99 with IEC 60559.
22519         * m4/trunc-ieee.m4: New file.
22520         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22522         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22523         * modules/trunc-ieee-tests: New file.
22524         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22525         * tests/test-trunc1.c (main): Remove signbit tests.
22526         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22527         * doc/posix-functions/trunc.texi: Mention the new module.
22528
22529 2010-12-21  Bruno Haible  <bruno@clisp.org>
22530
22531         New module 'ceil-ieee'.
22532         * modules/ceil-ieee: New file.
22533         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22534         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22535         ISO C 99 with IEC 60559.
22536         * m4/ceil-ieee.m4: New file.
22537         * modules/ceil (Files): Add lib/ceil.c.
22538         (Depends-on): Add 'float'.
22539         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22540         * lib/math.in.h (ceil): New declaration.
22541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22542         REPLACE_CEIL.
22543         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22544         * modules/ceil-ieee-tests: New file.
22545         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22546         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22547         * doc/posix-functions/ceil.texi: Mention the new module.
22548
22549 2010-12-21  Bruno Haible  <bruno@clisp.org>
22550
22551         New module 'floor-ieee'.
22552         * modules/floor-ieee: New file.
22553         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22554         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22555         ISO C 99 with IEC 60559.
22556         * m4/floor-ieee.m4: New file.
22557         * modules/floor (Files): Add lib/floor.c.
22558         (Depends-on): Add 'float'.
22559         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22560         * lib/math.in.h (floor): New declaration.
22561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22562         REPLACE_FLOOR.
22563         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22564         * modules/floor-ieee-tests: New file.
22565         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22566         * tests/test-math-c++.cc: Check the signature of 'floor'.
22567         * doc/posix-functions/floor.texi: Mention the new module.
22568
22569 2010-12-21  Bruno Haible  <bruno@clisp.org>
22570
22571         New module 'roundf-ieee'.
22572         * modules/roundf-ieee: New file.
22573         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22574         test whether roundf works according to ISO C 99 with IEC 60559.
22575         * m4/roundf-ieee.m4: New file.
22576         * modules/roundf-ieee-tests: New file.
22577         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22578         * tests/test-roundf1.c (main): Remove signbit tests.
22579         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22580         * doc/posix-functions/roundf.texi: Mention the new module.
22581
22582 2010-12-21  Bruno Haible  <bruno@clisp.org>
22583
22584         New module 'truncf-ieee'.
22585         * modules/truncf-ieee: New file.
22586         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22587         test whether truncf works according to ISO C 99 with IEC 60559.
22588         * m4/truncf-ieee.m4: New file.
22589         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22591         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22592         * modules/truncf-ieee-tests: New file.
22593         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22594         * tests/test-truncf1.c (main): Remove signbit tests.
22595         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22596         * doc/posix-functions/truncf.texi: Mention the new module.
22597
22598 2010-12-21  Bruno Haible  <bruno@clisp.org>
22599
22600         New module 'ceilf-ieee'.
22601         * modules/ceilf-ieee: New file.
22602         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22603         test whether ceilf works according to ISO C 99 with IEC 60559.
22604         * m4/ceilf-ieee.m4: New file.
22605         * modules/ceilf-ieee-tests: New file.
22606         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22607         * tests/test-ceilf1.c (main): Remove signbit tests.
22608         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22609         * doc/posix-functions/ceilf.texi: Mention the new module.
22610
22611 2010-12-21  Bruno Haible  <bruno@clisp.org>
22612
22613         New module 'floorf-ieee'.
22614         * modules/floorf-ieee: New file.
22615         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22616         test whether floorf works according to ISO C 99 with IEC 60559.
22617         * m4/floorf-ieee.m4: New file.
22618         * modules/floorf-ieee-tests: New file.
22619         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22620         * tests/test-floorf1.c (main): Remove signbit tests.
22621         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22622         * doc/posix-functions/floorf.texi: Mention the new module.
22623
22624 2010-12-21  Bruno Haible  <bruno@clisp.org>
22625
22626         Support for minus zero in autoconf macros.
22627         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22628         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22629         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22630         * tests/minus-zero.h: Update comments.
22631
22632 2010-12-21  Bruno Haible  <bruno@clisp.org>
22633
22634         Tests for module 'ceil'.
22635         * modules/ceil-tests: New file.
22636         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22637         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22638
22639 2010-12-21  Bruno Haible  <bruno@clisp.org>
22640
22641         Tests for module 'floor'.
22642         * modules/floor-tests: New file.
22643         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22644         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22645
22646 2010-12-21  Bruno Haible  <bruno@clisp.org>
22647
22648         math: Fix indentation.
22649         * lib/math.in.h (floorf): Fix indentation.
22650
22651 2010-12-21  Bruno Haible  <bruno@clisp.org>
22652
22653         Fix cross-compilation guesses on Solaris.
22654         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22655         not match "solaris2.10".
22656         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22657         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22658         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22659
22660 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22661
22662         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22663         This fixes a problem observed with the latest coreutils snapshot
22664         that caused a test to fail on Solaris 8.  src/csplit.c's call
22665         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22666         earlier, instead of returning the number of bytes that would have
22667         been generated; this causes csplit to incorrectly report memory
22668         exhaustion.
22669         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22670         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22671         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22672         comments to match.
22673         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22674         Fix typo in matching older versions of Solaris: "solaris2.10"
22675         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22676         only for guessing while cross-compiling.
22677         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22678
22679 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22680
22681         ftoastr: fix comment again
22682         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22683         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22684         Also, simplify example a bit by using flags = 0.
22685
22686 2010-12-20  Bruno Haible  <bruno@clisp.org>
22687
22688         round*, trunc*: Update documentation regarding glibc.
22689         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22690         * doc/posix-functions/round.texi: Likewise.
22691         * doc/posix-functions/roundl.texi: Likewise.
22692         * doc/posix-functions/truncf.texi: Likewise.
22693         * doc/posix-functions/trunc.texi: Likewise.
22694         * doc/posix-functions/truncl.texi: Likewise.
22695
22696 2010-12-20  Bruno Haible  <bruno@clisp.org>
22697
22698         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22699         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22700         * doc/posix-functions/round.texi: Likewise.
22701         * doc/posix-functions/roundl.texi: Likewise.
22702
22703 2010-12-20  Bruno Haible  <bruno@clisp.org>
22704
22705         ttyname_r: Add missing declaration on HP-UX 11.
22706         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22707         HAVE_TTYNAME_R.
22708         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22709         declared. Set HAVE_TTYNAME_R always.
22710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22711         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22712         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22713         HAVE_TTYNAME_R.
22714         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22715
22716 2010-12-20  Bruno Haible  <bruno@clisp.org>
22717
22718         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22719         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22720         * doc/posix-functions/getlogin_r.texi: Likewise.
22721         * tests/test-getlogin.c: Include <errno.h>.
22722         (main): Avoid test failure on HP-UX 11.11.
22723         * tests/test-getlogin_r.c (main): Likewise.
22724
22725 2010-12-20  Bruno Haible  <bruno@clisp.org>
22726
22727         getlogin_r: Add missing declaration on HP-UX 11.
22728         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22729         declared also when it exists as a function.
22730         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22731
22732 2010-12-20  Bruno Haible  <bruno@clisp.org>
22733
22734         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22735         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22736         through wcrtomb.
22737
22738 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22739
22740         ftoastr: fix comment
22741         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22742         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22743
22744 2010-12-19  Bruno Haible  <bruno@clisp.org>
22745
22746         isnan: Ensure it is a macro.
22747         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22748         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22749         Solaris.
22750
22751 2010-12-19  Bruno Haible  <bruno@clisp.org>
22752
22753         ldexpl test: Fix link error on OSF/1 5.1.
22754         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22755
22756 2010-12-19  Bruno Haible  <bruno@clisp.org>
22757
22758         wctype: Make it work in C++ mode on OSF/1 5.1.
22759         * lib/wctype.in.h (iswblank): Declare but not define here.
22760         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22761         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22762         * modules/wctype (Files): Add lib/iswblank.c.
22763
22764 2010-12-19  Bruno Haible  <bruno@clisp.org>
22765
22766         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22767         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22768         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22769
22770 2010-12-19  Bruno Haible  <bruno@clisp.org>
22771
22772         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22773         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22774         _POSIX_PII_SOCKET.
22775         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22776         * doc/posix-functions/recvfrom.texi: Likewise.
22777         * doc/posix-functions/send.texi: Likewise.
22778         * doc/posix-functions/sendto.texi: Likewise.
22779
22780 2010-12-19  Bruno Haible  <bruno@clisp.org>
22781
22782         tcgetsid: Add missing declaration on OSF/1 5.1.
22783         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22784         HAVE_TCGETSID.
22785         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22786         Don't set HAVE_TCGETSID.
22787         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22788         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22789         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22790         HAVE_TCGETSID.
22791         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22792
22793 2010-12-19  Bruno Haible  <bruno@clisp.org>
22794
22795         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22796         * lib/stdio.in.h: During the include_next statement, let recursive
22797         includes of this file include only the system header file.
22798
22799 2010-12-19  Bruno Haible  <bruno@clisp.org>
22800
22801         iconv_open: Fix regression from 2010-12-04.
22802         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22803         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22804
22805 2010-12-19  Bruno Haible  <bruno@clisp.org>
22806
22807         stdbool test: Avoid a gcc warning.
22808         * tests/test-stdbool.c (main): Fail if e1 is false.
22809         Reported by Jim Meyering.
22810
22811 2010-12-19  Jim Meyering  <meyering@redhat.com>
22812
22813         setenv: restore to working order
22814         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22815         mistakenly removed.
22816         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22817         HAVE_SETENV.
22818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22819         HAVE_SETENV.
22820
22821 2010-12-19  Bruno Haible  <bruno@clisp.org>
22822
22823         Document some different function declarations on OSF/1 5.1.
22824         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22825         * doc/posix-functions/inet_ntop.texi: Likewise.
22826         * doc/posix-functions/gethostname.texi: Likewise.
22827         * lib/unistd.in.h (gethostname): Update comment.
22828
22829 2010-12-19  Bruno Haible  <bruno@clisp.org>
22830
22831         doc: Mention vasprintf-posix module.
22832         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22833         the 'vasprintf-posix' module.
22834         * doc/glibc-functions/vasprintf.texi: Likewise.
22835
22836 2010-12-19  Bruno Haible  <bruno@clisp.org>
22837
22838         unsetenv: Add missing declaration on OSF/1 5.1.
22839         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22840         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22841         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22843         not HAVE_UNSETENV.
22844         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22845         HAVE_UNSETENV.
22846         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22847
22848 2010-12-19  Bruno Haible  <bruno@clisp.org>
22849
22850         setenv: Add missing declaration on OSF/1 5.1.
22851         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22852         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22853         declared. Don't set HAVE_SETENV.
22854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22855         not HAVE_SETENV.
22856         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22857         HAVE_SETENV.
22858         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22859
22860 2010-12-19  Bruno Haible  <bruno@clisp.org>
22861
22862         nl_langinfo tests: Avoid gcc warning.
22863         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22864
22865 2010-12-19  Bruno Haible  <bruno@clisp.org>
22866
22867         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22868         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22869         _GL_CXXALIAS_SYS.
22870
22871 2010-12-19  Bruno Haible  <bruno@clisp.org>
22872
22873         stdbool: Relax test.
22874         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22875         address to 'bool' work in static initializer, for compilers other than
22876         GCC.
22877
22878 2010-12-19  Bruno Haible  <bruno@clisp.org>
22879
22880         ftello: Add missing declaration on OSF/1 5.1.
22881         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22882         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22884         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22885         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22886
22887 2010-12-19  Bruno Haible  <bruno@clisp.org>
22888
22889         fseeko: Add missing declaration on OSF/1 5.1.
22890         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22891         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22893         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22894         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22895
22896 2010-12-19  Bruno Haible  <bruno@clisp.org>
22897
22898         fchdir: Add missing declaration on OSF/1 5.1.
22899         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22900         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22902         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22903         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22904
22905 2010-12-19  Bruno Haible  <bruno@clisp.org>
22906
22907         relocatable-prog-wrapper: Separate from relocatable-prog.
22908         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22909         uninstall-relocwrapper rule here.
22910         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22911         Reported by Ian Beckwith <ianb@erislabs.net>.
22912
22913 2010-12-19  Bruno Haible  <bruno@clisp.org>
22914
22915         unistr/u8-mbsnlen: Add missing dependency.
22916         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22917         Reported by Ian Beckwith <ianb@erislabs.net>.
22918
22919 2010-12-19  Bruno Haible  <bruno@clisp.org>
22920
22921         iconv: Make it possible again to use this module without 'iconv-h'.
22922         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22923         if it is not defined.
22924         Reported by Ian Beckwith <ianb@erislabs.net>.
22925
22926 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22927
22928         acl: port to Solaris 8 when copying from tmpfs to ufs
22929         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
22930         error number.  Problem observed on Solaris 8 with latest
22931         coreutils, with "mv A B", where A is on a tmpfs file system and B
22932         is on a ufs file system.  This caused coreutils' mv/part-symlink
22933         test to fail.
22934
22935         tests: set fail=0 at start
22936         * tests/init.sh (setup_): Move fail=0 initialization here ...
22937         (mktempd_): ... from here, so that tests can rely on fail being
22938         set to 0 initially.  This fixes a problem in coreutils; see:
22939         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
22940
22941 2010-12-18  Bruno Haible  <bruno@clisp.org>
22942
22943         memmem-simple: Stylistic changes.
22944         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
22945         Fix preprocessor directive indentation.
22946
22947 2010-12-15  Pádraig Brady <P@draigBrady.com>
22948
22949         memmem, memmem-simple: reorganize and expand empty needle check
22950         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
22951         functional checks to memmem-simple so that one has a fully functional
22952         memmem by using just this module.
22953         Restrict the performance only check to the memmem module.
22954         Also expand the empty needle check to ensure the correct
22955         pointer is returned, not just a non NULL pointer.
22956         * doc/glibc-functions/memmem.texi: Rearrange the portability
22957         documentation to correlate with the rearranged checks.
22958         Clarify exactly how the memmem and memmem-simple modules
22959         relate to each other.
22960
22961 2010-12-15  Pádraig Brady <P@draigBrady.com>
22962             Bruno Haible  <bruno@clisp.org>
22963
22964         Improve cross-compilation guesses for uClibc.
22965         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
22966         that uClibc does not have the glibc bug.
22967         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22968         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
22969
22970 2010-12-14  Eric Blake  <eblake@redhat.com>
22971
22972         configmake: provide fallbacks for oldest supported autotools
22973         * m4/configmake.m4: New file.
22974         * modules/configmake (Files): Ship it.
22975         (configure.ac): Use it to guarantee fallbacks.
22976
22977 2010-12-13  Pádraig Brady <P@draigBrady.com>
22978
22979         read-file: Improve handling of large files
22980         * lib/read-file.c (fread_file): Minimize realloc()s
22981         for regular files, and better manage sizes around SIZE_MAX.
22982
22983 2010-12-13  Eric Blake  <eblake@redhat.com>
22984
22985         cloexec, fcntl: relax license
22986         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
22987         consent from all contributors.
22988         * modules/fcntl (License): Likewise.
22989
22990 2010-12-10  Bruno Haible  <bruno@clisp.org>
22991
22992         Tests for module 'pipe-posix'.
22993         * modules/pipe-posix-tests: New file.
22994         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
22995
22996 2010-12-10  Bruno Haible  <bruno@clisp.org>
22997
22998         pipe-posix: Make it work in C++ mode.
22999         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23000         (pipe): Use common idiom, not a macro definition.
23001         * lib/pipe.c: New file.
23002         * m4/pipe.m4: New file.
23003         * modules/pipe-posix (Description): Enhance.
23004         (Files): Add lib/pipe.c, m4/pipe.m4.
23005         (configure.ac): Invoke gl_FUNC_PIPE.
23006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23007         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23008         * tests/test-unistd-c++.cc: Check the signature of pipe.
23009
23010 2010-12-10  Bruno Haible  <bruno@clisp.org>
23011
23012         Rename module 'pipe' to 'spawn-pipe'.
23013         * modules/spawn-pipe: New file, renamed from modules/pipe.
23014         (Files, configure.ac, Makefile.am): Update.
23015         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23016         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23017         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23018         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23019         "spawn-pipe.h" instead of "pipe.h".
23020         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23021         to gl_SPAWN_PIPE.
23022         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23023         (Files, Makefile.am): Update.
23024         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23025         Update.
23026         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23027         Include "spawn-pipe.h" instead of "pipe.h".
23028         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23029         * lib/javacomp.c: Likewise.
23030         * lib/javaversion.c: Likewise.
23031         * lib/pipe-filter-gi.c: Likewise.
23032         * lib/pipe-filter-ii.c: Likewise.
23033         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23034         * modules/javacomp (Depends-on): Likewise.
23035         * modules/javaversion (Depends-on): Likewise.
23036         * modules/pipe-filter-gi (Depends-on): Likewise.
23037         * modules/pipe-filter-ii (Depends-on): Likewise.
23038         * MODULES.html.sh (Executing programs): Update.
23039         * NEWS: Mention the change.
23040
23041 2010-12-10  Eric Blake  <eblake@redhat.com>
23042
23043         pipe-posix: new module
23044         * modules/pipe-posix: New file.
23045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23046         (gl_UNISTD_H): Check for declaration.
23047         * modules/unistd (Makefile.am): Substitute it.
23048         * lib/unistd.in.h (pipe): Provide it for mingw.
23049         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23050         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23051
23052 2010-12-07  Bruno Haible  <bruno@clisp.org>
23053
23054         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23055         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23056         u8_strcmp_gnu.
23057         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23058
23059 2010-12-06  Bruno Haible  <bruno@clisp.org>
23060
23061         Update internal documentation.
23062         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23063
23064 2010-12-04  Bruno Haible  <bruno@clisp.org>
23065
23066         Put more information about failed tests into the test return codes.
23067         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23068         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23069         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23070         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23071         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23072         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23073         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23074         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23075         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23076         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23077         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23078         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23079         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23080         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23081         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23082         returns a bit mask.
23083         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23084         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23085         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23086         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23087         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23088         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23089         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23091         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23092         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23093         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23094         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23095         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23096         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23097         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23098         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23099         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23100         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23101         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23102         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23103         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23104         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23105         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23106         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23107         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23108         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23109         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23110         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23111         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23112         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23113         gl_PRINTF_PRECISION): Likewise.
23114         * m4/regex.m4 (gl_REGEX): Likewise.
23115         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23116         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23117         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23118         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23119         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23120         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23121         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23122         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23123         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23124         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23125         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23126         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23127         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23128         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23129         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23130         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23131         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23132         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23133         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23134         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23135         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23136         enumerated value.
23137         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23138
23139 2010-12-04  Bruno Haible  <bruno@clisp.org>
23140
23141         Update for Solaris 11 2010-11.
23142         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23143         Express, released in November 2010.
23144
23145 2010-12-04  Bruno Haible  <bruno@clisp.org>
23146
23147         nproc: Relax license.
23148         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23149         and Paul Eggert.
23150         Requested by Ludovic Courtès <ludo@gnu.org>.
23151
23152 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23153
23154         utimecmp: fine-grained src to nearby coarse-grained dest
23155
23156         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23157         and the source is on a file system with higher-resolution time
23158         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23159         not work, and the time stamps are close together, the algorithm to
23160         determine the exact resolution from the read-back mtime was buggy:
23161         it had a "!=" where it should have had an "==".  This bug has been
23162         in the code ever since it was introduced to gnulib.
23163         Problem reported by Dan Jacobson in
23164         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23165
23166 2010-11-30  Bruno Haible  <bruno@clisp.org>
23167
23168         strerror_r-posix: Fix autoconf test.
23169         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23170
23171 2010-11-28  Bruno Haible  <bruno@clisp.org>
23172             Paul Eggert  <eggert@cs.ucla.edu>
23173
23174         Tests for module 'getdomainname'.
23175         * modules/getdomainname-tests: New file.
23176         * tests/test-getdomainname.c: New file, based on
23177         tests/test-gethostname.c.
23178
23179 2010-11-28  Bruno Haible  <bruno@clisp.org>
23180             Paul Eggert  <eggert@cs.ucla.edu>
23181
23182         getdomainname: Use the system function when possible.
23183         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23184         (getdomainname): Replace if needed. Provide the declaration if it is
23185         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23186         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23187         (getdomainname): When the system has getdomainname, call the system
23188         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23189         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23190         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23191         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23192         the function if its second argument is of type 'int' or if it is found
23193         in libnsl.
23194         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23195         <sys/systeminfo.h> and sysinfo().
23196         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23198         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23199         HAVE_GETDOMAINNAME.
23200         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23201         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23202         * doc/glibc-functions/getdomainname.texi: Document the problems with
23203         the getdomainname declaration.
23204
23205 2010-11-28  Bruno Haible  <bruno@clisp.org>
23206
23207         sys_socket: Ensure ss_family field on AIX.
23208         * lib/sys_socket.in.h (ss_family): New macro definition.
23209         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23210         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23211         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23212         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23213         * modules/sys_socket (Makefile.am): Substitute
23214         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23215         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23216
23217 2010-11-27  Bruno Haible  <bruno@clisp.org>
23218
23219         readline: Improve configure output.
23220         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23221         "checking for readline..." result understandable.
23222
23223 2010-11-27  Bruno Haible  <bruno@clisp.org>
23224
23225         *printf-posix: Detect a bug on Solaris 10/x86.
23226         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23227         for floating-point output.
23228         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23229         directive.
23230         * tests/test-snprintf-posix.h (test_function): Likewise.
23231         * tests/test-sprintf-posix.h (test_function): Likewise.
23232         * tests/test-vasprintf-posix.c (test_function): Likewise.
23233         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23234         * doc/posix-functions/printf.texi: Likewise.
23235         * doc/posix-functions/snprintf.texi: Likewise.
23236         * doc/posix-functions/sprintf.texi: Likewise.
23237         * doc/posix-functions/vfprintf.texi: Likewise.
23238         * doc/posix-functions/vprintf.texi: Likewise.
23239         * doc/posix-functions/vsnprintf.texi: Likewise.
23240         * doc/posix-functions/vsprintf.texi: Likewise.
23241         * doc/glibc-functions/obstack_printf.texi: Likewise.
23242         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23243
23244 2010-11-27  Bruno Haible  <bruno@clisp.org>
23245
23246         Fix link error when module libunistring-optional is in use.
23247         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23248         * modules/striconveha-tests (Makefile.am): Likewise.
23249
23250 2010-11-27  Bruno Haible  <bruno@clisp.org>
23251
23252         regex: Mention link dependencies.
23253         * modules/regex (Link): New section.
23254         * modules/rpmatch (Link): Likewise.
23255         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23256
23257 2010-11-27  Bruno Haible  <bruno@clisp.org>
23258
23259         ftoastr: Fix compilation error on Solaris.
23260         * lib/ftoastr.c: Include <config.h>.
23261
23262 2010-11-27  Bruno Haible  <bruno@clisp.org>
23263
23264         getloadavg: Update documentation.
23265         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23266
23267 2010-11-27  Bruno Haible  <bruno@clisp.org>
23268
23269         sys_socket: Fix test whether the functions are declared.
23270         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23271         not <sys/select.h>.
23272
23273 2010-11-27  Bruno Haible  <bruno@clisp.org>
23274
23275         getpass: Make sure to get system declaration on some platforms.
23276         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23277         gl_USE_SYSTEM_EXTENSIONS.
23278         * modules/getpass (Depends-on): Add extensions.
23279
23280 2010-11-26  Bruno Haible  <bruno@clisp.org>
23281
23282         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23283         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23284         'iconv' module is present.
23285         (ICONV_CONST): New macro.
23286         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23287         ICONV_CONST.
23288         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23289         set ICONV_CONST.
23290         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23291         here.
23292         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23293         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23294         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23295         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23296         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23297         present.
23298
23299 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23300
23301         ftoastr: comment fix
23302         * lib/ftoastr.c: "little" -> "little or no" in comment
23303
23304 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23305
23306         stdint: port to GCC 4.3 + OSX + Octave
23307         On this platform, stdint.h is buggy and defines int64_t to long
23308         long int.  The replacement defined it to long int, causing
23309         problems with C++ style name mangling.  Instead, trust the system
23310         definition if INT64_MAX is defined, and likewise for the unsigned
23311         variant.   Problem reported by Jarno Rajahalme in
23312         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23313         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23314         and don't mess with int64_t and INT64_MAX in this case.
23315         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23316
23317 2010-11-24  Bruno Haible  <bruno@clisp.org>
23318
23319         doc: Corrections regarding MacOS X 10.4 and 10.5.
23320         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23321         MacOS X.
23322         Reported by Simon Josefsson.
23323
23324 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23325
23326         Uninstall ".bin" files installed by relocwrapper.
23327         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23328         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23329         unless it is already there.
23330
23331 2010-11-21  Bruno Haible  <bruno@clisp.org>
23332
23333         Update for NetBSD 5.0.
23334         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23335         NetBSD; the test fails on NetBSD 5.0.
23336         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23337         about NetBSD.
23338
23339 2010-11-21  Bruno Haible  <bruno@clisp.org>
23340
23341         Update for HP-UX 11.23 and HP-UX 11.31.
23342         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23343         HP-UX.
23344
23345 2010-11-21  Bruno Haible  <bruno@clisp.org>
23346
23347         Update for MacOS X 10.5.
23348         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23349         MacOS X; the test fails on MacOS X 10.5.8.
23350         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23351         about MacOS X.
23352
23353 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23354
23355         bootstrap: add bootstrap_sync option.
23356         See discussion at
23357         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23358         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23359         * build-aux/bootstrap: Accept --bootstrap-sync to update
23360         bootstrap if it is not identical to the local gnulib's
23361         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23362         enable this by default.  Accept --no-bootstrap-sync to disable
23363         it.
23364
23365 2010-11-20  Bruno Haible  <bruno@clisp.org>
23366
23367         Ensure that <features.h> is included before __GLIBC__ is tested.
23368         * lib/printf-parse.h: Include <features.h>.
23369         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23370         Reported by Mike Frysinger <vapier@gentoo.org>.
23371
23372         Ensure that <features.h> is included before __GLIBC__ is tested.
23373         * lib/wchar.in.h: Include <features.h>.
23374         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23375         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23376         Reported by Mike Frysinger <vapier@gentoo.org>.
23377
23378         Ensure that <features.h> is included before __GLIBC__ is tested.
23379         * lib/arpa_inet.in.h: Include <features.h>.
23380         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23381         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23382         Reported by Mike Frysinger <vapier@gentoo.org>.
23383
23384         Ensure that <features.h> is included before __GLIBC__ is tested.
23385         * build-aux/link-warning.h: Include <features.h>.
23386         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23387         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23388         Reported by Mike Frysinger <vapier@gentoo.org>.
23389
23390         Ensure that <features.h> is included before __GLIBC__ is tested.
23391         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23392         Reported by Mike Frysinger <vapier@gentoo.org>.
23393
23394 2010-11-20  Bruno Haible  <bruno@clisp.org>
23395
23396         memmem: Fix autoconf test.
23397         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23398
23399 2010-11-20  Bruno Haible  <bruno@clisp.org>
23400
23401         Port to uClibc.
23402         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23403         * lib/fcntl.in.h: Likewise.
23404         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23405         * lib/mbrtowc.c (mbrtowc): Likewise.
23406         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23407         * lib/strerror_r.c: Likewise.
23408         * lib/unistr/u8-strnlen.c: Likewise.
23409         * lib/vasnprintf.c (decimal_point_char): Likewise.
23410         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23411         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23412         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23413         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23414         * tests/test-sigaction.c (handler, main): Likewise.
23415         * lib/freading.h: Treat uClibc like a non-glibc platform.
23416         * lib/freading.c: Likewise.
23417         * lib/gettext.h: Likewise.
23418         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23419         Likewise.
23420         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23421         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23422         * lib/propername.c (proper_name_utf8): Likewise.
23423         * lib/spawn.in.h: Likewise.
23424         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23425         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23426         mem_cd_iconveh_internal): Likewise.
23427         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23428         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23429         strstr, strcasestr): Likewise.
23430         * lib/unicodeio.c (unicode_to_mb): Likewise.
23431         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23432         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23433         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23434         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23435         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23436         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23437         * lib/unistr/u8-stpncpy.c: Likewise.
23438         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23439         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23440         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23441         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23442         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23443         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23444         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23445         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23446         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23447         Likewise.
23448         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23449         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23450         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23451         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23452         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23453         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23454         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23455         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23456         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23457         * tests/test-striconveha.c (main): Likewise.
23458         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23459         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23460         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23461         * doc/posix-functions/getline.texi: Likewise.
23462         Reported by Mike Frysinger <vapier@gentoo.org>.
23463
23464 2010-11-20  Bruno Haible  <bruno@clisp.org>
23465
23466         nproc: Fix condition.
23467         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23468         HAVE_PTHREAD_AFFINITY_NP.
23469
23470 2010-11-20  Bruno Haible  <bruno@clisp.org>
23471
23472         Fix a comment.
23473         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23474
23475 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23476
23477         ftoastr: don't assume snprintf
23478         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23479         Implement a subset of snprintf here, by using sprintf safely.
23480         * modules/ftoastr (Depends-on): Remove snprintf.
23481
23482 2010-11-19  Jim Meyering  <meyering@redhat.com>
23483
23484         test-rename.h: fix compilation failure
23485         * tests/test-rename.h (test_rename): Add omitted "}".
23486
23487 2010-11-17  Jim Meyering  <meyering@redhat.com>
23488
23489         maint.mk: add a URL discussing the no-@acronym policy
23490         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23491
23492 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23493
23494         ftoastr: depend on snprintf, improve comments
23495         * lib/ftoastr.c: Also mention Loitsch's draft.
23496         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23497         needed in the current implementation, but it might simplify
23498         speeding up the code later.
23499         * modules/ftoastr: Depend on snprintf; this improves portability.
23500         Suggested by Bruno Haible in the same email.
23501
23502         ftoastr: port to hosts lacking strtof and strtold
23503         Problem reported by Bruno Haible in
23504         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23505         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23506         environment and strtold (and presumably strtof) are not available.
23507         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23508         (configure.ac): Require gl_C99_STRTOLD.
23509
23510 2010-11-18  Bruno Haible  <bruno@clisp.org>
23511
23512         c-strtold: Avoid link error on AIX 7.
23513         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23514         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23515         (gl_C_STRTOLD): Test whether strtold_l exists.
23516         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23517
23518 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23519
23520         intprops: new macro INT_BITS_STRLEN_BOUND
23521         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23522         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23523         not exposed.  Also, it uses a slightly tighter bound than before;
23524         though this makes no practical difference, we might as well be as
23525         tight as we easily can.
23526
23527         ftoastr: new module, for lossless conversion of floats to short strings
23528         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23529         * modules/ftoastr: New files.
23530
23531 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23532
23533         bootstrap: port to Solaris sed
23534         * build-aux/bootstrap (get_version): Port to Solaris sed.
23535         See Ralf Wildenhues's note in
23536         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23537
23538 2010-11-14  Jim Meyering  <meyering@redhat.com>
23539
23540         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23541         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23542         and move definition closer to sole use.
23543
23544 2010-11-13  Jim Meyering  <meyering@redhat.com>
23545
23546         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23547         Now we require at least autoconf-2.59, which means the work-around
23548         is no longer needed.
23549         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23550         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23551         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23552         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23553         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23554
23555 2010-11-13  Bruno Haible  <bruno@clisp.org>
23556
23557         rename, renameat: Avoid test failures at NFS mounted locations.
23558         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23559         functions.
23560         (test_rename): Use assert_nonexistent.
23561         * tests/test-rename.c: Include <dirent.h>.
23562         * tests/test-renameat.c: Likewise.
23563         Reported by Gary V. Vaughan <gary@gnu.org>.
23564
23565         rename, renameat: Document Linux bug with NFS
23566         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23567         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23568         * doc/posix-functions/renameat.texi: Likewise.
23569         Suggested by Eric Blake.
23570
23571 2010-11-13  Bruno Haible  <bruno@clisp.org>
23572
23573         rename test: Add comments.
23574         * tests/test-rename.h (test_rename): Add structure and comments.
23575
23576 2010-11-13  Eric Blake  <eblake@redhat.com>
23577
23578         maintainer-makefile: cover a few more files
23579         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23580         scripts generated within C files, for libvirt.
23581
23582 2010-11-13  Bruno Haible  <bruno@clisp.org>
23583
23584         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23585         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23586         character, return the number of bytes that belong together, not always
23587         1.
23588         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23589         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23590         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23591         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23592         number of bytes of an invalid character.
23593         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23594         (main): Invoke it.
23595         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23596         results.
23597         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23598         malformed byte sequences.
23599         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23600         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23601         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23602         Reported by Ben Pfaff and Paolo Bonzini.
23603
23604 2010-11-13  Bruno Haible  <bruno@clisp.org>
23605
23606         openat: Work around glibc bug with fchownat() and empty file names.
23607         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23608         (gl_FUNC_FCHOWNAT): Invoke it.
23609         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23610         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23611         Reported by Gary V. Vaughan <gary@gnu.org>.
23612
23613 2010-11-13  Bruno Haible  <bruno@clisp.org>
23614
23615         openat: Ensure autoconf macro ordering.
23616         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23617         gl_USE_SYSTEM_EXTENSIONS.
23618         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23619
23620 2010-11-13  Bruno Haible  <bruno@clisp.org>
23621
23622         Update comments.
23623         * lib/unistr/u8-check.c: Update file name in comments.
23624         * lib/unistr/u8-mblen.c: Likewise.
23625         * lib/unistr/u8-prev.c: Likewise.
23626         * lib/unistr/u8-strmblen.c: Likewise.
23627         * lib/unistr/u8-strmbtouc.c: Likewise.
23628
23629 2010-11-13  Jim Meyering  <meyering@redhat.com>
23630
23631         tests: avoid test failure on Solaris 10 due to lack of PATH export
23632         * tests/test-update-copyright.sh: Don't forget to export PATH.
23633
23634         init.sh: ensure that IFS is defined, just in case...
23635         * tests/init.sh (setup_): Ensure that IFS is defined,
23636         so that saving and restoring it works as expected.  This
23637         appears to be useful at least for an old version of dash
23638         from a long time ago (RH 6).  See here for details:
23639         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23640
23641         maint.mk: tighten "test a == b" check
23642         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23643         test to files that contain something like #!/bin/sh.
23644         Without this, coreutils would get two false positives in
23645         the comments of C source files.
23646
23647 2010-11-12  Eric Blake  <eblake@redhat.com>
23648
23649         bootstrap: fix typo in previous attempt
23650         * build-aux/bootstrap (buildreq): Correct the grouping.
23651         Reported by Paul Eggert.
23652
23653         maintainer-makefile: prohibit test x == x
23654         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23655         Based on a report by Matthias Bolte.
23656
23657         bootstrap: allow FreeBSD gzip
23658         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23659         which has no '.' and goes to stderr.
23660         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23661         Reported by Matthias Bolte.
23662
23663         maintainer-makefile: check for i18n setup
23664         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23665         will likely work.
23666
23667 2010-11-12  Bruno Haible  <bruno@clisp.org>
23668
23669         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23670         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23671         * lib/nanosleep.c (nanosleep): Likewise.
23672
23673 2010-11-11  Bruno Haible  <bruno@clisp.org>
23674
23675         fcntl-h: Fix for use of C++ on glibc systems.
23676         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23677         also on glibc systems in C++ mode.
23678         Reported by Gary V. Vaughan <gary@gnu.org>.
23679
23680 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23681
23682         mknod: avoid false failure with dash
23683         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23684
23685 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23686
23687         unlink: Fix "is it should" typo in diagnostic.
23688         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23689         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23690
23691 2010-11-11  Bruno Haible  <bruno@clisp.org>
23692
23693         Tests for module 'strerror_r-posix'.
23694         * modules/strerror_r-posix-tests: New file.
23695         * tests/test-strerror_r.c: New file.
23696         * tests/test-string-c++.cc: Check the signature of strerror_r.
23697
23698         New module 'strerror_r-posix'.
23699         * lib/string.in.h (strerror_r): New declaration.
23700         * lib/strerror_r.c: New file.
23701         * m4/strerror_r.m4: New file.
23702         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23703         of strerror_r.
23704         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23705         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23706         * modules/strerror_r-posix: New file.
23707         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23708         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23709         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23710         portability problems.
23711
23712 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23713
23714         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23715         line is also considered for output. Quoted function name in shell
23716         command, so temporary files for functions like MyClass::operator()
23717         are removed correctly without errors.
23718
23719 2010-11-09  Bruno Haible  <bruno@clisp.org>
23720
23721         * doc/posix-functions/strerror.texi: List more failing platforms.
23722
23723         * doc/posix-functions/strerror.texi: Add a comment.
23724
23725 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23726
23727         fdopendir: fix bug on MacOS X when low on file descriptors
23728
23729         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23730         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23731         All callers changed.
23732         (fdopendir): Invoke save_cwd at the top level, not after using
23733         multiple dup() calls to use up file descriptors.  Then retry
23734         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23735         less than the maximum number of open file descriptors, because
23736         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23737         on Mac OS X 10.6.4 for tar 1.24
23738         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23739         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23740         and for tar 1.25
23741         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23742
23743 2010-11-07  Bruno Haible  <bruno@clisp.org>
23744
23745         vasnprintf: Support I flag on glibc systems.
23746         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23747         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23748         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23749         snprintf function.
23750         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23751         glibc systems.
23752         * tests/test-vasnprintf-posix3.c: New file.
23753         * modules/vasnprintf-posix-tests (Files): Add it.
23754         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23755
23756 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23757
23758         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23759         * MODULES.html.sh: For compiler warnings, use name
23760         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23761
23762 2010-11-05  Eric Blake  <eblake@redhat.com>
23763
23764         ceil, floor: avoid spurious failure with icc
23765         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23766         [denormals-as-zero] when optimizing without -mieee-fp option.
23767         * tests/test-floorf2.c (floorf_reference): Likewise.
23768         * tests/test-ceilf1.c (dummy): New function.
23769         (main): Use it to outsmart icc's optimization.
23770         * tests/test-floorf1.c (dummy, main): Likewise.
23771
23772         tests: require working signbit
23773         * modules/ceilf-tests (Depends-on): Add signbit.
23774         * modules/ceill-tests (Depends-on): Likewise.
23775         * modules/floorf-tests (Depends-on): Likewise.
23776         * modules/floorl-tests (Depends-on): Likewise.
23777         * modules/round-tests (Depends-on): Likewise.
23778         * modules/roundf-tests (Depends-on): Likewise.
23779         * modules/roundl-tests (Depends-on): Likewise.
23780         * modules/trunc-tests (Depends-on): Likewise.
23781         * modules/truncf-tests (Depends-on): Likewise.
23782         * modules/truncl-tests (Depends-on): Likewise.
23783
23784         strtod: work around icc bug
23785         * lib/strtod.c (minus_zero): Define to working value.
23786         (strtod): Use it to avoid icc bug.
23787
23788         copysign: enhance tests
23789         * modules/copysign-tests (Files): Add minus-zero.h.
23790         * tests/test-copysign.c (main): Also test zeros.
23791
23792 2010-11-04  Eric Blake  <eblake@redhat.com>
23793
23794         ceil, floor, round, trunc: enhance tests of -0
23795         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23796         * tests/test-ceill.c (main): Likewise.
23797         * tests/test-floorf1.c (main): Likewise.
23798         * tests/test-floorl.c (main): Likewise.
23799         * tests/test-round1.c (main): Likewise.
23800         * tests/test-roundf1.c (main): Likewise.
23801         * tests/test-roundl.c (main): Likewise.
23802         * tests/test-trunc1.c (main): Likewise.
23803         * tests/test-truncf1.c (main): Likewise.
23804         * tests/test-truncl.c (main): Likewise.
23805
23806 2010-11-04  Eric Blake  <eblake@redhat.com>
23807
23808         frexp, tests: work around ICC bug with -zero
23809         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23810         works with more compilers.
23811         * tests/minus-zero.h: New file.
23812         * modules/ceilf-tests (Files): Include it.
23813         * modules/ceill-tests (Files): Likewise.
23814         * modules/floorf-tests (Files): Likewise.
23815         * modules/floorl-tests (Files): Likewise.
23816         * modules/frexp-nolibm-tests (Files): Likewise.
23817         * modules/frexp-tests (Files): Likewise.
23818         * modules/frexpl-nolibm-tests (Files): Likewise.
23819         * modules/frexpl-tests (Files): Likewise.
23820         * modules/isnan-tests (Files): Likewise.
23821         * modules/isnand-nolibm-tests (Files): Likewise.
23822         * modules/isnand-tests (Files): Likewise.
23823         * modules/isnanf-nolibm-tests (Files): Likewise.
23824         * modules/isnanf-tests (Files): Likewise.
23825         * modules/isnanl-nolibm-tests (Files): Likewise.
23826         * modules/isnanl-tests (Files): Likewise.
23827         * modules/round-tests (Files): Likewise.
23828         * modules/roundf-tests (Files): Likewise.
23829         * modules/roundl-tests (Files): Likewise.
23830         * modules/ldexpl-tests (Files): Likewise.
23831         * modules/signbit-tests (Files): Likewise.
23832         * modules/snprintf-posix-tests (Files): Likewise.
23833         * modules/sprintf-posix-tests (Files): Likewise.
23834         * modules/strtod-tests (Files): Likewise.
23835         * modules/trunc-tests (Files): Likewise.
23836         * modules/truncf-tests (Files): Likewise.
23837         * modules/truncl-tests (Files): Likewise.
23838         * modules/vsnprintf-posix-tests (Files): Likewise.
23839         * modules/vsprintf-posix-tests (Files): Likewise.
23840         * modules/vasnprintf-posix-tests (Files): Likewise.
23841         * modules/vasprintf-posix-tests (Files): Likewise.
23842         * tests/test-ceilf1.c (main): Use it.
23843         * tests/test-ceill.c (main): Likewise.
23844         * tests/test-floorf1.c (main): Likewise.
23845         * tests/test-floorl.c (main): Likewise.
23846         * tests/test-frexp.c (main): Likewise.
23847         * tests/test-frexpl.c (main): Likewise.
23848         * tests/test-isnan.c (main): Likewise.
23849         * tests/test-isnand.h (main): Likewise.
23850         * tests/test-isnanf.h (main): Likewise.
23851         * tests/test-isnanl.h (main): Likewise.
23852         * tests/test-ldexpl.c (main): Likewise.
23853         * tests/test-round.c (main): Likewise.
23854         * tests/test-roundf.c (main): Likewise.
23855         * tests/test-roundl.c (main): Likewise.
23856         * tests/test-signbit.c (test_signbitf, test_signbitd)
23857         (test_signbitl): Likewise.
23858         * tests/test-snprintf-posix.h (test_function): Likewise.
23859         * tests/test-sprintf-posix.h (test_function): Likewise.
23860         * tests/test-strtod.c (main): Likewise.
23861         * tests/test-trunc1.c (main): Likewise.
23862         * tests/test-truncf1.c (main): Likewise.
23863         * tests/test-truncl.c (main): Likewise.
23864
23865         isnanl: work around icc bug
23866         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23867
23868 2010-11-03  Eric Blake  <eblake@redhat.com>
23869
23870         tests: fix compiler warnings
23871         * tests/test-getopt.h (test_getopt): Fix condition.
23872         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23873         * tests/test-pipe2.c (main): Likewise.
23874         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23875
23876         utimens: fix broken m4 test
23877         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23878
23879 2010-10-28  Bruno Haible  <bruno@clisp.org>
23880
23881         posix_spawn*, getdtablesize: Relax license.
23882         * modules/posix_spawn (License): Change to LGPLv2+.
23883         * modules/posix_spawnp (License): Likewise.
23884         * modules/posix_spawn-internal (License): Likewise.
23885         * modules/posix_spawnattr_init (License): Likewise.
23886         * modules/posix_spawnattr_getflags (License): Likewise.
23887         * modules/posix_spawnattr_setflags (License): Likewise.
23888         * modules/posix_spawnattr_getpgroup (License): Likewise.
23889         * modules/posix_spawnattr_setpgroup (License): Likewise.
23890         * modules/posix_spawnattr_getschedparam (License): Likewise.
23891         * modules/posix_spawnattr_setschedparam (License): Likewise.
23892         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23893         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23894         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23895         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23896         * modules/posix_spawnattr_getsigmask (License): Likewise.
23897         * modules/posix_spawnattr_setsigmask (License): Likewise.
23898         * modules/posix_spawnattr_destroy (License): Likewise.
23899         * modules/posix_spawn_file_actions_init (License): Likewise.
23900         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23901         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23902         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23903         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23904         * modules/getdtablesize (License): Likewise.
23905         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23906
23907 2010-10-26  Bruno Haible  <bruno@clisp.org>
23908
23909         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23910         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23911         Cygwin and mingw.
23912         Suggested by Eric Blake.
23913
23914 2010-10-26  Bruno Haible  <bruno@clisp.org>
23915
23916         stdio: Work around compilation error due to renameat() on Solaris 10.
23917         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23918         * lib/renameat.c: Don't include <unistd.h> here.
23919         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23920         Reported by Paul Eggert and Eric Blake.
23921
23922 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23923
23924         renameat: port to Solaris 10, which declares renameat in unistd.h
23925
23926         * lib/renameat.c: Include unistd.h before stdio.h, because
23927         Solaris 10 declares renameat in unistd.h.  Problem encountered
23928         when building GNU tar 1.24 on Solaris 10.
23929
23930 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23931
23932         fdopendir: fix C89 compilation
23933         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
23934         compilers.
23935
23936 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
23937
23938         inttostr: simplify by removing unnecessary redundancy
23939         * lib/anytostr.c: Don't include verify.h.
23940         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
23941         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
23942         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
23943         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
23944         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
23945         Likewise.
23946         * modules/inttostr (Depends-on): Remove 'verify'.
23947
23948 2010-10-23  Bruno Haible  <bruno@clisp.org>
23949
23950         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
23951         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
23952         Reported by Eric Blake.
23953
23954 2010-10-23  Bruno Haible  <bruno@clisp.org>
23955
23956         Tests: Fix LOCALE_JA on MirBSD 10.
23957         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
23958         to an UTF-8 locale.
23959         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
23960         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23961         Reported by Eric Blake.
23962
23963 2010-10-21  Bruno Haible  <bruno@clisp.org>
23964
23965         nl_langinfo test: Avoid test failure on NetBSD 5.
23966         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
23967         Reported by Eric Blake.
23968
23969 2010-10-21  Eric Blake  <eblake@redhat.com>
23970
23971         c-stack: work around libsigsegv 2.8 bug
23972         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
23973         overflow on at least PowerPC64.
23974
23975 2010-10-17  Bruno Haible  <bruno@clisp.org>
23976
23977         userspec: Drop redundant file.
23978         * modules/userspec (Files): Remove lib/inttostr.h.
23979
23980 2010-10-17  Bruno Haible  <bruno@clisp.org>
23981
23982         nl_langinfo tests: Silence some warnings.
23983         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
23984         Reported by Jim Meyering.
23985
23986 2010-10-17  Bruno Haible  <bruno@clisp.org>
23987
23988         Make use of GCC's attribute __alloc_size__.
23989         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
23990         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
23991         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
23992         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
23993         __alloc_size__.
23994         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23995         Suggested by Jim Meyering.
23996
23997 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
23998
23999         bootstrap: anchor .gitignore entries.
24000         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24001         with...
24002         (insert_vc_ignore): ... this new function, which prepends `/' to
24003         all .gitignore entries before passing them to
24004         insert_sorted_if_absent.
24005
24006 2010-10-16  Bruno Haible  <bruno@clisp.org>
24007
24008         nextafter: Fix configure check.
24009         * modules/nextafter (configure.ac): Correct expected prototype.
24010
24011 2010-10-16  Bruno Haible  <bruno@clisp.org>
24012
24013         termios: Update documentation.
24014         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24015
24016 2010-10-16  Bruno Haible  <bruno@clisp.org>
24017
24018         tests: Make them compile with TinyCC.
24019         * tests/test-strstr.c (main): Remove parentheses around array
24020         initializer.
24021
24022 2010-10-15  Eric Blake  <eblake@redhat.com>
24023
24024         ignore-value: make header idempotent
24025         * lib/ignore-value.h: Add double-inclusion guards.
24026         Reported by Stefan Berger.
24027
24028 2010-10-15  Jim Meyering  <meyering@redhat.com>
24029
24030         GNUmakefile: handle "stable" target, not "major"
24031         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24032         lists in maint.mk and announce-gen.  Without this, "make stable"
24033         would fail to ensure that $(VERSION) is up to date.
24034
24035 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24036
24037         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24038         & co.
24039
24040 2010-10-14  Bruno Haible  <bruno@clisp.org>
24041
24042         vasnprintf: Don't set errno to 0.
24043         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24044         block that sets it to 0.
24045         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24046
24047 2010-10-14  Bruno Haible  <bruno@clisp.org>
24048
24049         socketlib: Fix.
24050         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24051         gl_PREREQ_SYS_H_WINSOCK2.
24052         Reported by Ian Beckwith <ianb@erislabs.net>.
24053
24054 2010-10-13  Jim Meyering  <meyering@redhat.com>
24055
24056         test-select-stdin.c: avoid warn_unused_result warnings
24057         * tests/test-select-stdin.c: Include "macros.h".
24058         ASSERT that read and fflush succeed.
24059
24060 2010-10-13  Jim Meyering  <meyering@redhat.com>
24061
24062         git-version-gen: do require git-VC'd files in cwd
24063         * build-aux/git-version-gen: Reject a git version string
24064         if there are no commits associated with the current directory.
24065         This avoids an unlikely false-positive (unrelated dir whose parent
24066         repository also contains a tag matching v*), as pointed out
24067         by Giuseppe Scrivano in
24068         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24069
24070 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24071
24072         argv-iter: omit nonconforming declaration
24073         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24074         enum arg_iter_err declaration, which doesn't conform to C99.
24075         Solaris 10 cc warns about this.
24076
24077 2010-10-13  Eric Blake  <eblake@redhat.com>
24078
24079         termios: fix compilation on mingw
24080         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24081         (gl_TERMIOS_H): Adjust it on mingw.
24082         * modules/termios (Makefile.am): Substitute new key.
24083         * lib/termios.in.h (includes): Make include_next conditional.
24084         * doc/posix-headers/termios.texi (termios.h): Update
24085         documentation.
24086         Reported by Daniel P. Berrange.
24087
24088 2010-10-13  Jim Meyering  <meyering@redhat.com>
24089
24090         git-version-gen: don't require that .git/ be in the current dir
24091         * build-aux/git-version-gen: Adjust this script so that it works
24092         when run from any working directory beneath the top-level .git/-
24093         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24094         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24095
24096         test-select: avoid warn_unused_result warnings
24097         * tests/test-select.c: Include "macros.h".
24098         ASSERT that each call to read, write, and pipe succeeds.
24099         While not technically required, also check each "close".
24100         * modules/select-tests (Files): Add tests/macros.h.
24101
24102         test-symlinkat: remove declaration of unused local
24103         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24104
24105         test-inttostr: avoid shadowing warnings
24106         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24107         and use malloc rather than the stack for the same reason as
24108         mentioned in the comment justifying the other allocation.
24109
24110 2010-10-11  Bruno Haible  <bruno@clisp.org>
24111
24112         stdlib: Allow multiple gnulib generated replacements to coexist.
24113         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24114         Reported by Sam Steingold <sds@gnu.org>.
24115
24116 2010-10-11  Jim Meyering  <meyering@redhat.com>
24117
24118         fix a documentation typo
24119         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24120
24121 2010-10-11  Eric Blake  <eblake@redhat.com>
24122
24123         futimens: work around Solaris 11 bug
24124         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24125         * tests/test-futimens.h (test_futimens): Enhance, rather than
24126         weaken test.
24127         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24128
24129 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24130
24131         Indentation.
24132         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24133         higher-level operators more to the left.
24134
24135 2010-10-11  Jim Meyering  <meyering@redhat.com>
24136
24137         test-futimens: avoid unwarranted test failure on Solaris 5.11
24138         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24139         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24140         because it tries to dereference the NULL name argument.
24141
24142 2010-10-11  Bruno Haible  <bruno@clisp.org>
24143
24144         Indentation.
24145         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24146         indentation.
24147
24148 2010-10-11  Jim Meyering  <meyering@redhat.com>
24149
24150         spawn.in.h: make indentation consistent with parentheses
24151         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24152         Make indentation consistent with parentheses.
24153
24154 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24155
24156         Fix mismatched parens in previous commit
24157         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24158         parens.
24159
24160 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24161
24162         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24163
24164         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24165         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24166         * lib/malloca.c: Include "verify.h".
24167         (verify1): Remove, replacing with a verify call.
24168         * lib/relocwrapper.c (verify1): Likewise.
24169         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24170         Likewise.
24171         * modules/malloca (Depends-on): Add 'verify'.
24172         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24173         * modules/vasnprintf (Depends-on): Add 'verify'.
24174         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24175         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24176         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24177         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24178         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24179         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24180         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24181
24182         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24183
24184         Formerly the style was sometimes 2*X - 1, because the C standard
24185         was wrongly thought to disallow ?: in integral constant expressions.
24186         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24187         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24188         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24189         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24190         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24191         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24192         verify that time_t cannot be floating.
24193
24194 2010-10-08  Eric Blake  <eblake@redhat.com>
24195
24196         time: enforce recent POSIX ruling that time_t is integral
24197         * lib/time.in.h (__time_t_must_be_integral): Detect any
24198         problematic systems, allowing the rest of gnulib to assume POSIX.
24199
24200 2010-10-08  Jim Meyering  <meyering@redhat.com>
24201
24202         fdopendir: fix a bug on systems lacking openat and /proc support
24203         OpenBSD 4.7 is one such system.  The most noticeable effect was
24204         failure of any application making nontrivial use of fts: rm, du,
24205         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24206           ./rm: traversal failed: `a': Bad file descriptor
24207         Debugging that, you see that even though FD 6 was closed just
24208         prior to the opendir call in fd_clone_opendir, its resulting
24209         dir->dd_fd was 8, rather than the expected value of 6:
24210
24211         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24212         93                close (fd);
24213         (gdb) n
24214         94                dir = fd_clone_opendir (dupfd);
24215         (gdb) n
24216         95                saved_errno = errno;
24217         (gdb) p dir->dd_fd
24218         $11 = 8
24219
24220         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24221         The problem is that on OpenBSD, fd_clone_opendir has to resort
24222         to using the old-style save/restore CWD mechanism, due to its
24223         lack of openat/proc support, and *that* would steal the FD (6)
24224         that opendir was supposed to use.
24225
24226         The fix is to squirrel away the desired FD so that save_cwd uses a
24227         different one, and then free the dest FD right before calling opendir.
24228         That guarantees opendir will use the required file descriptor.
24229
24230         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24231
24232 2010-10-08  Bruno Haible  <bruno@clisp.org>
24233
24234         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24235         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24236
24237 2010-10-08  Bruno Haible  <bruno@clisp.org>
24238
24239         nanosleep: Make replacement POSIX compliant.
24240         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24241         is out of range.
24242         Reported by Jim Meyering.
24243
24244 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24245
24246         bootstrap: add hook for altering gnulib.mk, for Bison
24247         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24248         the Bison bootstrapping process can rewrite file names and variables
24249         in this file before later parts of 'bootstrap' use the file.
24250         Bison wants to include lib/gnulib.mk from the top-level makefile,
24251         so it needs the file names in this file to be relative to the top
24252         level, not relative to lib; plus it needs variable names to be
24253         rewritten.
24254         (slurp): Use the new function.
24255
24256         bootstrap: reformat for readability
24257         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24258
24259 2010-10-08  Eric Blake  <eblake@redhat.com>
24260
24261         docs: update cygwin progress
24262         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24263         1.7.7.
24264         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24265         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24266         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24267         * doc/posix-functions/carg.texi (carg): Likewise.
24268         * doc/posix-functions/cargf.texi (cargf): Likewise.
24269         * doc/posix-functions/casin.texi (casin): Likewise.
24270         * doc/posix-functions/casinf.texi (casinf): Likewise.
24271         * doc/posix-functions/casinh.texi (casinh): Likewise.
24272         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24273         * doc/posix-functions/catan.texi (catan): Likewise.
24274         * doc/posix-functions/catanf.texi (catanf): Likewise.
24275         * doc/posix-functions/catanh.texi (catanh): Likewise.
24276         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24277         * doc/posix-functions/ccos.texi (ccos): Likewise.
24278         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24279         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24280         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24281         * doc/posix-functions/cexp.texi (cexp): Likewise.
24282         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24283         * doc/posix-functions/cimag.texi (cimag): Likewise.
24284         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24285         * doc/posix-functions/clog.texi (clog): Likewise.
24286         * doc/posix-functions/clogf.texi (clogf): Likewise.
24287         * doc/posix-functions/conj.texi (conj): Likewise.
24288         * doc/posix-functions/conjf.texi (conjf): Likewise.
24289         * doc/posix-functions/cpow.texi (cpow): Likewise.
24290         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24291         * doc/posix-functions/cproj.texi (cproj): Likewise.
24292         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24293         * doc/posix-functions/creal.texi (creal): Likewise.
24294         * doc/posix-functions/crealf.texi (crealf): Likewise.
24295         * doc/posix-functions/csin.texi (csin): Likewise.
24296         * doc/posix-functions/csinf.texi (csinf): Likewise.
24297         * doc/posix-functions/csinh.texi (csinh): Likewise.
24298         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24299         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24300         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24301         * doc/posix-functions/ctan.texi (ctan): Likewise.
24302         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24303         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24304         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24305         * doc/posix-headers/complex.texi (complex.h): Likewise.
24306
24307 2010-10-07  Jim Meyering  <meyering@redhat.com>
24308
24309         parse-datetime: avoid compilation failure on OpenBSD 4.7
24310         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24311         This works around a compilation failure on OpenBSD 4.7:
24312         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24313
24314 2010-10-07  Eric Blake  <eblake@redhat.com>
24315
24316         docs: update cygwin progress
24317         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24318         1.7.6.
24319         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24320         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24321         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24322         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24323         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24324         Likewise.
24325         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24326         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24327         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24328         Likewise.
24329         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24330         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24331         Likewise.
24332         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24333         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24334         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24335         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24336         Likewise.
24337         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24338         Likewise.
24339         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24340
24341         docs: update parse-datetime history
24342         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24343         documentation of this function's history and alternatives.
24344
24345         cygwin: use more robust version check
24346         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24347         exclude an eventual cygwin 1.9.1.
24348         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24349         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24350         (gl_FUNC_STRCASESTR): Likewise.
24351         Reported by Bruno Haible.
24352
24353 2010-10-06  Bruno Haible  <bruno@clisp.org>
24354
24355         string, sys_select: Avoid #including large headers unless necessary.
24356         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24357         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24358         OSF/1, BeOS, Haiku.
24359         Reported by Jim Meyering.
24360
24361 2010-10-05  Eric Blake  <eblake@redhat.com>
24362
24363         memmem, strstr, strcasestr: fix bug with long periodic needle
24364         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24365         periodic needle having false positive.
24366         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24367         and cygwin 1.7.7.
24368         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24369         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24370         (gl_FUNC_STRCASESTR): Likewise.
24371         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24372         * tests/test-memmem.c (main): Expose the bug.
24373         * tests/test-strcasestr.c (main): Likewise.
24374         * tests/test-strstr.c (main): Likewise.
24375         * tests/test-c-strcasestr.c (main): Likewise.
24376         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24377         * doc/posix-functions/strstr.texi (strstr): Likewise.
24378         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24379         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24380
24381 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24382
24383         parse-datetime: do some more renaming
24384         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24385         parse_datetime, not get_date.  Mention the renaming.
24386         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24387         in comments.
24388         * m4/bison.m4: Likewise.
24389
24390 2010-10-05  Eric Blake  <eblake@redhat.com>
24391
24392         parse-datetime: better name than get_date
24393         * NEWS: Reword the deprecation notice.
24394         * modules/get_date: Rename to modules/parse-datetime.
24395         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24396         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24397         * lib/get_date.y: Rename to lib/parse-datetime.y.
24398         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24399         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24400         * doc/getdate.texi: Provide fallback wrapper.
24401         * lib/getdate.h: Move guts, and wrap...
24402         * lib/parse-datetime.h: ...new file.
24403         * lib/parse-datetime.y (get_date): Rename...
24404         (parse_datetime): ...to this.
24405         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24406         (gl_PARSE_DATETIME): ...to this.
24407         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24408         documentation.
24409         * modules/getdate (Files): Provide fallback docs and header.
24410         (Notice, Depends-on): Update references.
24411         * tests/test-parse-datetime.c: Likewise.
24412         * DEPENDENCIES: Likewise.
24413         * MODULES.html.sh (Date and time <time.h>): Likewise.
24414         * doc/parse-datetime.texi (Date input formats)
24415         (Authors of parse_datetime): Likewise.
24416         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24417         (Include): Likewise.
24418         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24419         * gnulib-tool: Likewise.
24420         * m4/bison.m4 (gl_BISON): Likewise.
24421         Suggested by Bruno Haible.
24422
24423 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24424
24425         more ports to Solaris tr, which needs [] around ranges
24426         * gnulib-tool: Solaris tr needs [] around ranges.
24427         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24428         * tests/test-pipe-filter-gi1.c (main): Likewise.
24429         * tests/test-pipe-filter-ii1.c (main): Likewise.
24430
24431 2010-10-05  Eric Blake  <eblake@redhat.com>
24432
24433         bootstrap: fix Solaris regression
24434         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24435         around ranges.
24436         Reported by Pádraig Brady.
24437
24438         bootstrap: work with pkg-config
24439         * build-aux/bootstrap (check_versions): Also transliterate - in
24440         prerequisite name.
24441         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24442         prerequisites that were already found, to avoid confusion.
24443         Reported by Justin Clift.
24444
24445         faccessat: remove unused wrappers
24446         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24447         presence of these wrappers dragged in -lgen on Solaris.
24448         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24449
24450 2010-10-05  Jim Meyering  <meyering@redhat.com>
24451
24452         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24453         * Makefile (sc_pragma_columns): New syntax-check rule.
24454
24455 2010-10-04  Bruno Haible  <bruno@clisp.org>
24456
24457         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24458         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24459         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24460         Reported by Bruce Korb and Eric Blake.
24461
24462 2010-10-04  Bruno Haible  <bruno@clisp.org>
24463
24464         threadlib: Make option --with-libpth-prefix work.
24465         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24466         use $LIBPTH, not just -lpth.
24467
24468 2010-10-04  Bruno Haible  <bruno@clisp.org>
24469
24470         Avoid line length limitation from HP NonStop system header files.
24471         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24472         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24473         * lib/ctype.in.h: Likewise.
24474         * lib/dirent.in.h: Likewise.
24475         * lib/errno.in.h: Likewise.
24476         * lib/fcntl.in.h: Likewise.
24477         * lib/float.in.h: Likewise.
24478         * lib/getopt.in.h: Likewise.
24479         * lib/iconv.in.h: Likewise.
24480         * lib/inttypes.in.h: Likewise.
24481         * lib/langinfo.in.h: Likewise.
24482         * lib/locale.in.h: Likewise.
24483         * lib/math.in.h: Likewise.
24484         * lib/netdb.in.h: Likewise.
24485         * lib/netinet_in.in.h: Likewise.
24486         * lib/poll.in.h: Likewise.
24487         * lib/pthread.in.h: Likewise.
24488         * lib/pty.in.h: Likewise.
24489         * lib/sched.in.h: Likewise.
24490         * lib/se-selinux.in.h: Likewise.
24491         * lib/search.in.h: Likewise.
24492         * lib/signal.in.h: Likewise.
24493         * lib/spawn.in.h: Likewise.
24494         * lib/stdarg.in.h: Likewise.
24495         * lib/stddef.in.h: Likewise.
24496         * lib/stdint.in.h: Likewise.
24497         * lib/stdio.in.h: Likewise.
24498         * lib/stdlib.in.h: Likewise.
24499         * lib/string.in.h: Likewise.
24500         * lib/strings.in.h: Likewise.
24501         * lib/sys_file.in.h: Likewise.
24502         * lib/sys_ioctl.in.h: Likewise.
24503         * lib/sys_select.in.h: Likewise.
24504         * lib/sys_socket.in.h: Likewise.
24505         * lib/sys_stat.in.h: Likewise.
24506         * lib/sys_time.in.h: Likewise.
24507         * lib/sys_times.in.h: Likewise.
24508         * lib/sys_utsname.in.h: Likewise.
24509         * lib/sys_wait.in.h: Likewise.
24510         * lib/sysexits.in.h: Likewise.
24511         * lib/termios.in.h: Likewise.
24512         * lib/time.in.h: Likewise.
24513         * lib/unistd.in.h: Likewise.
24514         * lib/wchar.in.h: Likewise.
24515         * lib/wctype.in.h: Likewise.
24516         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24517         * modules/ctype (Makefile.am): Likewise.
24518         * modules/dirent (Makefile.am): Likewise.
24519         * modules/errno (Makefile.am): Likewise.
24520         * modules/fcntl-h (Makefile.am): Likewise.
24521         * modules/float (Makefile.am): Likewise.
24522         * modules/getopt-posix (Makefile.am): Likewise.
24523         * modules/iconv-h (Makefile.am): Likewise.
24524         * modules/inttypes (Makefile.am): Likewise.
24525         * modules/langinfo (Makefile.am): Likewise.
24526         * modules/locale (Makefile.am): Likewise.
24527         * modules/math (Makefile.am): Likewise.
24528         * modules/netdb (Makefile.am): Likewise.
24529         * modules/netinet_in (Makefile.am): Likewise.
24530         * modules/poll-h (Makefile.am): Likewise.
24531         * modules/pthread (Makefile.am): Likewise.
24532         * modules/pty (Makefile.am): Likewise.
24533         * modules/sched (Makefile.am): Likewise.
24534         * modules/search (Makefile.am): Likewise.
24535         * modules/selinux-h (Makefile.am): Likewise.
24536         * modules/signal (Makefile.am): Likewise.
24537         * modules/spawn (Makefile.am): Likewise.
24538         * modules/stdarg (Makefile.am): Likewise.
24539         * modules/stddef (Makefile.am): Likewise.
24540         * modules/stdint (Makefile.am): Likewise.
24541         * modules/stdio (Makefile.am): Likewise.
24542         * modules/stdlib (Makefile.am): Likewise.
24543         * modules/string (Makefile.am): Likewise.
24544         * modules/strings (Makefile.am): Likewise.
24545         * modules/sys_file (Makefile.am): Likewise.
24546         * modules/sys_ioctl (Makefile.am): Likewise.
24547         * modules/sys_select (Makefile.am): Likewise.
24548         * modules/sys_socket (Makefile.am): Likewise.
24549         * modules/sys_stat (Makefile.am): Likewise.
24550         * modules/sys_time (Makefile.am): Likewise.
24551         * modules/sys_times (Makefile.am): Likewise.
24552         * modules/sys_utsname (Makefile.am): Likewise.
24553         * modules/sys_wait (Makefile.am): Likewise.
24554         * modules/sysexits (Makefile.am): Likewise.
24555         * modules/termios (Makefile.am): Likewise.
24556         * modules/time (Makefile.am): Likewise.
24557         * modules/unistd (Makefile.am): Likewise.
24558         * modules/wchar (Makefile.am): Likewise.
24559         * modules/wctype (Makefile.am): Likewise.
24560
24561 2010-10-04  Bruno Haible  <bruno@clisp.org>
24562
24563         read-file tests: Avoid a test failure on NonStop Kernel.
24564         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24565         a regular file.
24566         Reported by Joachim Schmitz <schmitz@hp.com>.
24567
24568 2010-10-03  Bruno Haible  <bruno@clisp.org>
24569
24570         gnulib-tool: Fixes for --create-testdir with --libtool.
24571         * gnulib-tool (func_get_automake_snippet): Don't augment
24572         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24573         an executable.
24574         (func_create_testdir): Handle module 'alloca' like func_import.
24575         Reported by Bruce Korb <bruce.korb@gmail.com>.
24576
24577 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24578
24579         Avoid some lines longer than 80 characters.
24580         * lib/stdint.in.h: Break long comment lines.
24581         * lib/math.in.h: Likewise.
24582         (_GL_NUM_UINT_WORDS): New macro, for readability.
24583         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24584         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24585         * lib/stdlib.in.h: Likewise.
24586         * lib/spawn.in.h: Likewise.
24587         * lib/sys_socket.in.h: Update an URL.
24588         * lib/sys_stat.in.h: Break long line.
24589
24590 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24591
24592         Improve pmccabe2html.
24593         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24594         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24595         when the sources change. Remove the line in the HTML about "Used
24596         ranges" (which implied that there might be other unused ranges),
24597         rename "Resume" to "Summary" (easier to understand for more users).
24598         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24599         styles, and some unnecessary blank lines.
24600
24601 2010-10-03  Bruno Haible  <bruno@clisp.org>
24602             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24603
24604         acl: Add support for ACLs on NonStop Kernel.
24605         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24606         Check whether the function aclsort() exists.
24607         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24608         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24609         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24610         (acl_nontrivial [HAVE_ACLSORT]: New function.
24611         (file_has_acl): Implement for NonStop Kernel.
24612         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24613         (qset_acl): Implement for NonStop Kernel.
24614         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24615         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24616         (main): Implement for NonStop Kernel.
24617         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24618         Kernel. Handle this flavor.
24619         * tests/test-set-mode-acl.sh: Likewise.
24620         * tests/test-copy-acl.sh: Likewise.
24621         * tests/test-copy-file.sh: Likewise.
24622
24623 2010-10-03  Bruno Haible  <bruno@clisp.org>
24624
24625         Info about ACLs on NonStop Kernel.
24626         * doc/acl-resources.txt: Add info about NonStop Kernel.
24627         References by Joachim Schmitz <schmitz@hp.com>.
24628
24629 2010-10-02  Bruno Haible  <bruno@clisp.org>
24630
24631         Define missing EDQUOT on NonStop Kernel.
24632         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24633         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24634         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24635         missing.
24636         * doc/posix-headers/errno.texi: Mention the NSK bug.
24637         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24638         Reported by Joachim Schmitz <schmitz@hp.com>.
24639
24640 2010-10-02  Bruno Haible  <bruno@clisp.org>
24641
24642         Update doc for POSIX:2008.
24643         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24644         Update URL of POSIX specification.
24645
24646 2010-10-02  Bruno Haible  <bruno@clisp.org>
24647
24648         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24649         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24650         from gnulib, not from Automake.
24651
24652 2010-10-02  Bruno Haible  <bruno@clisp.org>
24653
24654         New module 'system-posix'.
24655         * modules/system-posix: New file.
24656         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24657         module is present.
24658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24659         GNULIB_SYSTEM_POSIX.
24660         * modules/stdlib (Depends-on): Remove sys_wait.
24661         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24662         * doc/posix-functions/system.texi: Mention the new module.
24663         * doc/posix-headers/stdlib.texi: Likewise.
24664         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24665         define test_sys_wait_macros to a no-op.
24666         Reported by Sam Steingold <sds@gnu.org>.
24667
24668 2010-09-30  Bruno Haible  <bruno@clisp.org>
24669
24670         More renaming from 'getdate' to 'get_date'.
24671         * doc/get_date.texi: Renamed from doc/getdate.texi.
24672         * modules/get_date (Files): Update.
24673         * MODULES.html.sh (Date and time <time.h>): Update.
24674         * DEPENDENCIES: Update.
24675         * gnulib-tool: Update comment.
24676         * m4/bison.m4 (gl_BISON): Likewise.
24677         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24678
24679 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24680
24681         bootstrap: support ACLOCAL_FLAGS during aclocal
24682         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24683         can add additional -I dir for third-party .m4 files.
24684
24685 2010-09-30  Eric Blake  <eblake@redhat.com>
24686
24687         bootstrap: use glibtoolize on MacOS
24688         * build-aux/bootstrap (check_versions): Convert libtool into
24689         libtoolize.
24690         (tool search): Move libtool check earlier, and look for
24691         glibtoolize for MacOS.
24692         (gnulib_tool_options): Auto-add --libtool when appropriate.
24693         Reported by Justin Clift.
24694
24695         poll: fix typo that broke test on MacOS
24696         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24697         Reported by Justin Clift.
24698
24699         getdate: rename to get_date
24700         Note: getdate.h is not renamed, to minimize client impact.
24701         * modules/getdate: Mark obsolete.  Move old contents...
24702         * modules/get_date: ...to new module name.
24703         * modules/getdate-tests: Move...
24704         * modules/get_date-tests: ...here.
24705         * m4/getdate.m4: Move...
24706         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24707         * lib/getdate.y: Move...
24708         * lib/get_date.y: ...here.
24709         * tests/test-getdate.c: Move...
24710         * tests/test-get_date.c: ...here.
24711         * doc/posix-functions/getdate.texi (getdate): Update name.
24712         * NEWS: Mention the change.
24713
24714 2010-09-29  Bruno Haible  <bruno@clisp.org>
24715
24716         Separate the module 'waitpid' from the module 'sys_wait'.
24717         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24718         present.
24719         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24720         gl_MODULE_INDICATOR_FOR_TESTS.
24721         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24722         * modules/sys_wait (Depends-on): Remove waitpid.
24723         (Makefile.am): Substitute GNULIB_WAITPID.
24724         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24725         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24726         signature only if the 'waitpid' module is present.
24727         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24728         * NEWS: Mention the change.
24729         * modules/grantpt (Depends-on): Add waitpid.
24730         * modules/wait-process (Depends-on): Likewise.
24731
24732 2010-09-29  Bruno Haible  <bruno@clisp.org>
24733
24734         More tests for module 'sys_wait'.
24735         * modules/sys_wait-c++-tests: New file.
24736         * tests/test-sys_wait-c++.cc: New file.
24737         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24738         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24739
24740 2010-09-29  Bruno Haible  <bruno@clisp.org>
24741
24742         New module 'waitpid'.
24743         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24744         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24745         Don't include <process.h>.
24746         (waitpid): Declare only, using modern idiom.
24747         * m4/waitpid.m4: New file.
24748         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24749         * modules/waitpid: New file.
24750         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24751         (Makefile.am): Update.
24752         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24753
24754 2010-09-28  Bruno Haible  <bruno@clisp.org>
24755
24756         poll: Assume ANSI C.
24757         * lib/poll.c (poll): Use an ANSI C declaration.
24758
24759 2010-09-28  Bruno Haible  <bruno@clisp.org>
24760
24761         poll-h: Create poll.h on all platforms.
24762         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24763         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24764         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24765         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24766         (gl_REPLACE_POLL_H): Don't set POLL_H.
24767         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24768         * modules/poll-h (Depends-on): Add include_next.
24769         (Makefile.am): Create poll.h unconditionally. Substitute also
24770         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24771
24772 2010-09-28  Bruno Haible  <bruno@clisp.org>
24773
24774         Tests for module 'poll-h'.
24775         * modules/poll-h-c++-tests: New file.
24776         * tests/test-poll-h-c++.cc: New file.
24777
24778         Tests for module 'poll-h'.
24779         * modules/poll-h-tests: New file.
24780         * tests/test-poll-h.c: New file.
24781
24782 2010-09-28  Bruno Haible  <bruno@clisp.org>
24783
24784         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24785         * modules/poll-h (Depends-on): Add 'extensions'.
24786
24787 2010-09-28  Bruno Haible  <bruno@clisp.org>
24788
24789         New module 'poll-h'.
24790         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24791         (poll): Use modern idiom.
24792         * modules/poll-h: New file.
24793         * modules/poll (Files): Remove lib/poll.in.h.
24794         (Depends-on): Add poll-h.
24795         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24796         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24797         * m4/poll_h.m4: New file.
24798         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24799         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24800         and invoke gl_REPLACE_POLL_H.
24801         * lib/poll.c: Use common idiom.
24802         * tests/test-poll.c: Likewise.
24803         * doc/posix-headers/poll.texi: Mention the poll-h module.
24804         Suggested by Eric Blake.
24805
24806 2010-09-26  Bruno Haible  <bruno@clisp.org>
24807
24808         sys_wait: Implement WSTOPSIG.
24809         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24810         Reported by Simon Josefsson.
24811
24812 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24813
24814         stdlib, sys_wait: Avoid compilation error on mingw.
24815         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24816
24817 2010-09-26  Bruno Haible  <bruno@clisp.org>
24818
24819         stdlib tests: Avoid code duplication.
24820         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24821         * modules/sys_wait-tests (Files): Likewise.
24822         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24823         * tests/test-stdlib.c: Include test-sys_wait.h.
24824         (main): Invoke test_sys_wait_macros.
24825         * tests/test-sys_wait.c: Include test-sys_wait.h.
24826         (main): Invoke test_sys_wait_macros.
24827
24828 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24829
24830         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24831         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24832         sure Windows sockets are working before calling getaddrinfo.
24833         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24834         * doc/gnulib.texi (Windows sockets): Fix typo.
24835
24836 2010-09-25  Bruno Haible  <bruno@clisp.org>
24837
24838         Tests for module 'regex-quote'.
24839         * modules/regex-quote-tests: New file.
24840         * tests/test-regex-quote.c: New file.
24841
24842         New module 'regex-quote'.
24843         * lib/regex-quote.h: New file.
24844         * lib/regex-quote.c: New file.
24845         * modules/regex-quote: New file.
24846         Suggested by Reuben Thomas <rrt@sc3d.org>.
24847
24848 2010-09-24  Bruno Haible  <bruno@clisp.org>
24849
24850         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24851         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24852
24853 2010-09-23  Bruno Haible  <bruno@clisp.org>
24854
24855         setenv: Relax license.
24856         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24857         Blake.
24858         Requested by Eric Blake.
24859
24860 2010-09-22  Bruno Haible  <bruno@clisp.org>
24861
24862         termios: Relax license.
24863         * modules/termios (License): Change to LGPLv2+.
24864         Requested by Eric Blake.
24865
24866 2010-09-22  Bruno Haible  <bruno@clisp.org>
24867
24868         threadlib: Allow the package to change the default to 'no'.
24869         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24870         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24871         Reported by Paul Eggert.
24872
24873 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24874             Bruno Haible  <bruno@clisp.org>
24875
24876         Fix endless loop in mbmemcasecoll.
24877         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24878         byte.
24879         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24880
24881 2010-09-22  Bruno Haible  <bruno@clisp.org>
24882
24883         Tests for module 'memcoll'.
24884         * modules/memcoll-tests: New file.
24885         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24886
24887         memcoll, xmemcoll: Clarify size vs. length.
24888         * modules/memcoll.c (memcoll0): Clarify specification.
24889         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24890         passed to collate_error.
24891
24892 2010-09-22  Bruno Haible  <bruno@clisp.org>
24893
24894         Tests for module 'memcasecmp'.
24895         * modules/memcasecmp-tests: New file.
24896         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24897
24898 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24899
24900         * lib/pthread.in.h: Add split double-inclusion guard, and include
24901         system <pthread.h> if there is one.  Use @@-style as in other
24902         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24903         pthread.h doesn't.
24904         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24905         (pthread_mutexattr_settype, pthread_mutex_trylock):
24906         New static inline functions, if there's no system <pthread.h>.
24907         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24908         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24909         Approximate with mutexes if the system lacks spinlocks, as in
24910         MacOS.
24911         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24912         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24913         @@-style.  Check for spinlocks separately.
24914         (gl_PTHREAD_DEFAULTS): New macro.
24915         * modules/pthread: Redo to use a more typical style for in.h files.
24916
24917 2010-09-21  Eric Blake  <eblake@redhat.com>
24918
24919         net_if: enhance tests
24920         * tests/test-net_if.c (main): Move signature checks earlier.
24921         Print failures to stderr.
24922         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24923         Document the bug that we do not yet fix.
24924
24925 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24926
24927         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
24928         about gnulib, not GSS.
24929
24930 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24931
24932         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
24933         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
24934         for Emacs.
24935         * build-aux/pmccabe2html: Make Makefile.am example code more
24936         cut-and-paste friendly.
24937
24938 2010-09-21  Simon Josefsson  <simon@josefsson.org>
24939
24940         * tests/test-net_if.c: New file.
24941         * modules/net_if-tests: New file.
24942
24943 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24944
24945         pthread: add pthread_spin_destroy
24946         * lib/pthread.in.h (pthread_spin_destroy): New function.
24947
24948 2010-09-19  Bruno Haible  <bruno@clisp.org>
24949
24950         gnulib-tool: Fix --help output.
24951         * gnulib-tool (func_usage): Fix help message.
24952         Reported by Reuben Thomas <rrt@sc3d.org>.
24953
24954 2010-09-18  Jim Meyering  <meyering@redhat.com>
24955
24956         maint.mk: avoid unexpanded \n in two diagnostics
24957         * top/maint.mk (sc_prohibit_always_true_header_tests):
24958         Don't use a literal \n in a halt=... assignment.  It would not be
24959         expanded, and the two \n bytes would appear in the diagnostic output
24960         rather than the desired newline.  Use halt=$$(printf ... instead.
24961         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24962
24963 2010-09-18  Bruno Haible  <bruno@clisp.org>
24964
24965         netinet_in: Doc tweak.
24966         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
24967         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24968
24969 2010-09-18  Jim Meyering  <meyering@redhat.com>
24970
24971         init.sh: correct an outdated comment
24972         * tests/init.sh (create_exe_shims_):  s/function/alias/
24973
24974         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
24975         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
24976         a file named "*.exe" is removed between the glob expansion and the
24977         processing of that oddly named file.
24978
24979 2010-09-17  Eric Blake  <eblake@redhat.com>
24980
24981         mirbsd: add some more support
24982         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
24983         in BSD family.
24984         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
24985         devices as OpenBSD.
24986         * m4/host-os.m4 (mirbsd): Add MirBSD.
24987
24988         tests: fix unportable assumption on sys/wait.h
24989         * tests/test-sys_wait.c (main): Relax test.
24990         * tests/test-stdlib.c (main): Likewise.
24991
24992         init.sh: accomodate directory with no .exes
24993         * tests/init.sh: Accomodate directory containing only scripts.
24994
24995         tests: avoid compiler warning
24996         * tests/test-stdlib.c (main): Use the variable.
24997
24998         fdutimens, fdutimensat: update signature, again
24999         * lib/utimens.h (gl_futimens): Delete, and move signature...
25000         (fdutimens): ...here.
25001         (fdutimensat): Rearrange signature.
25002         (lutimensat): Rename variable for clarity.
25003         * lib/fdutimensat.c (fdutimensat): Update signature.
25004         * lib/utimens.c (fdutimens): Likewise.
25005         (gl_futimens): Delete.
25006         (utimens, lutimens): Update callers.
25007         * lib/futimens.c (futimens): Likewise.
25008         * tests/test-fdutimensat.c: Likewise.
25009         * tests/test-utimens.c: Likewise.
25010         * tests/test-futimens.h: Update comment.
25011         * NEWS: Mention this.
25012         Suggested by Paul Eggert.
25013
25014 2010-09-17  Bruno Haible  <bruno@clisp.org>
25015
25016         Take over the maintenance of some older macros from Autoconf.
25017         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25018         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25019         GNU Autoconf.
25020         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25021         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25022
25023 2010-09-17  Eric Blake  <eblake@redhat.com>
25024
25025         fdutimensat: drop atflag validation
25026         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25027         with valid fd, to close a race scenario where futimens is
25028         unsupported and FILE was replaced by a symlink.
25029         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25030         accordingly.
25031         Suggested by Paul Eggert.
25032
25033 2010-09-16  Bruno Haible  <bruno@clisp.org>
25034
25035         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25036         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25037
25038 2010-09-16  Bruno Haible  <bruno@clisp.org>
25039
25040         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25041         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25042         login_tty exists.
25043         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25044
25045 2010-09-16  Bruno Haible  <bruno@clisp.org>
25046
25047         login_tty: Make the replacement code work on BSD systems.
25048         * lib/login_tty.c: Include <sys/ioctl.h>.
25049         (login_tty): Use ioctl TIOCSCTTY when available.
25050         * modules/login_tty (Depends-on): Add sys_ioctl.
25051         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25052
25053 2010-09-16  Bruno Haible  <bruno@clisp.org>
25054
25055         login_tty: Stricter unit test.
25056         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25057         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25058         and tcgetsid() after login_tty.
25059         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25060
25061 2010-09-16  Bruno Haible  <bruno@clisp.org>
25062
25063         New module 'tcgetsid'.
25064         * lib/tcgetsid.c: New file.
25065         * m4/tcgetsid.m4: New file.
25066         * modules/tcgetsid: New file.
25067         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25068         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25069         GNULIB_TCGETSID, HAVE_TCGETSID.
25070         * lib/termios.in.h: Include <sys/types.h>.
25071         (tcgetsid): New declaration.
25072         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25073         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25074         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25075         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25076
25077 2010-09-16  Bruno Haible  <bruno@clisp.org>
25078
25079         Tests for module 'termios'.
25080         * modules/termios-c++-tests: New file.
25081         * modules/termios-tests: New file.
25082         * tests/test-termios-c++.cc: New file.
25083         * tests/test-termios.c: New file.
25084
25085         New module 'termios'.
25086         * modules/termios: New file.
25087         * lib/termios.in.h: New file.
25088         * m4/termios_h.m4: New file.
25089         * doc/posix-headers/termios.texi: Mention the new module.
25090
25091 2010-09-16  Eric Blake  <eblake@redhat.com>
25092
25093         fdutimensat: add an atflag parameter
25094         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25095         * lib/utimens.h (fdutimensat): Update prototype.
25096         * tests/test-fdutimensat.c: Adjust test to match.
25097         * NEWS: Document the change.
25098         Suggested by Paul Eggert.
25099
25100 2010-09-16  Bruno Haible  <bruno@clisp.org>
25101
25102         Fix typos in comments.
25103         * lib/striconveh.h: Fix typo in comment.
25104         * lib/login_tty.c (login_tty): Likewise.
25105
25106 2010-09-15  Bruno Haible  <bruno@clisp.org>
25107
25108         stdlib: clarify MirBSD WEXITSTATUS bug
25109         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25110         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25111
25112 2010-09-15  Eric Blake  <eblake@redhat.com>
25113
25114         stdlib: work around MirBSD WEXITSTATUS bug
25115         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25116         * modules/stdlib (Depends-on): Add sys_wait.
25117         * tests/test-sys_wait.c (main): Enhance test.
25118         * tests/test-stdlib.c (main): Likewise.
25119         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25120
25121         docs: mention MacOS issue with WEXITSTATUS(constant)
25122         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25123         issue.
25124         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25125
25126         strnlen: add tests
25127         * modules/strnlen-tests: New file.
25128         * tests/test-strnlen.c: Likewise.
25129
25130 2010-09-14  Bruno Haible  <bruno@clisp.org>
25131
25132         unistr/base: Avoid link errors when module 'libunistring' is also used.
25133         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25134         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25135         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25136         Declare also when HAVE_LIBUNISTRING is set.
25137         Reported by Pádraig Brady <P@draigbrady.com>.
25138
25139 2010-09-14  Eric Blake  <eblake@redhat.com>
25140
25141         test-rawmemchr: make more robust
25142         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25143         (Depends-on, configure.ac): Add needed prerequisites to use it.
25144         * modules/memchr-tests (Files, Depends-on, configure.ac):
25145         Likewise, to avoid implicit reliance on memchr module prereqs.
25146         * tests/test-memchr.c (main): Ensure proper masking.
25147         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25148         reads.
25149
25150         memchr: detect glibc Alpha bug
25151         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25152         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25153         Alpha.
25154         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25155         * tests/test-memchr.c (main): Enhance test.
25156         Reported by Nelson H. F. Beebe.
25157
25158 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25159
25160         fts, getcwd, glob: audit for dirfd returning -1
25161         * lib/fts.c (opendir): Remove #define; no longer used.
25162         (opendirat): New arg PDIR_FD.  All callers changed.
25163         (fts_build, _opendir2): Use new opendirat to avoid the need for
25164         dirfd, or for checking whether dirfd returns a negative value.
25165         Don't use opendir; always use openat followed by fdopendir.
25166         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25167         it.
25168         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25169         returns -1 here.
25170         * modules/fts (Depends-on): Remove dirfd.
25171         * modules/getcwd (Depends-on): Likewise.
25172
25173 2010-09-13  Eric Blake  <eblake@redhat.com>
25174
25175         float: fix broken MirBSD header
25176         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25177         * doc/posix-headers/float.texi (float.h): Document it.
25178
25179 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25180
25181         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25182         * lib/fts.c (opendirat): New arg extra_flags.
25183         (__opendir2): Use it to avoid following symlinks when opening
25184         a directory, if symlinks are not supposed to be followed.  See
25185         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25186
25187         fdopendir: preserve argument fd before returning
25188         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25189         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25190         (fdopendir): Use them, arranging for FD to be open to the same
25191         directory that it was when it started.  (It might be temporarily
25192         closed while fdopendir is running, so this not thread- or
25193         signal-safe.)  Be careful to do the right thing even when file
25194         descriptors are scarce and dup fails with errno == EMFILE.  See
25195         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25196
25197 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25198
25199         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25200         * NEWS: Document change.
25201         * m4/regex.m4: Disable test for regoff_t size.
25202
25203 2010-09-13  Jim Meyering  <meyering@redhat.com>
25204
25205         fts: don't operate on an invalid file descriptor after failed dup
25206         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25207         negative file descriptor.
25208
25209 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25210
25211         savedir: add streamsavedir, deprecate fdsavedir
25212         * NEWS: Mention deprecation of fdsavedir.
25213         * lib/savedir.c (streamsavedir): New extern function, whose name
25214         ends in "savedir" to be consistent with the others.  This differs
25215         from savedirstream in that it doesn't close its argument.  The
25216         next version of GNU tar will use this instead of fdsavedir, to
25217         avoid some race conditions and conserve file descriptors.
25218         (savedirstream): Reimplement as a wrapper around streamsavedir.
25219         (fdsavedir): Add a comment deprecating this function.  As far as
25220         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25221         * lib/savedir.h (streamsavedir): New decl.
25222         (fdsavedir): Add a comment deprecating this.
25223
25224 2010-09-10  Bruno Haible  <bruno@clisp.org>
25225
25226         langinfo: Fix last commit.
25227         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25228         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25229         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25230
25231 2010-09-10  Bruno Haible  <bruno@clisp.org>
25232
25233         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25234         * lib/progreloc.c (O_EXEC): Define fallback.
25235
25236 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25237
25238         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25239         * NEWS: Document recent changes to fcntl-h.
25240         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25241         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25242         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25243         Similarly for O_SEARCH; this last was already true, but not documented.
25244         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25245         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25246         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25247         Likewise.
25248         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25249         is zero, not whether it is defined.
25250         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25251         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25252         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25253
25254 2010-09-10  Bruno Haible  <bruno@clisp.org>
25255
25256         langinfo, nl_langinfo: Fix for IRIX 5.3.
25257         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25258         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25259         HAVE_LANGINFO_YESEXPR.
25260         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25261         HAVE_LANGINFO_YESEXPR.
25262         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25263         HAVE_LANGINFO_T_FMT_AMPM is 0.
25264         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25265         HAVE_LANGINFO_YESEXPR is 0.
25266         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25267         NOEXPR.
25268         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25269         * doc/posix-functions/nl_langinfo.texi: Likewise.
25270         Reported by Eric Blake.
25271
25272 2010-09-10  Bruno Haible  <bruno@clisp.org>
25273
25274         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25275         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25276         on FreeBSD 8.0 and OpenBSD 4.6.
25277         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25278         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25279         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25280         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25281         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25282         ac_includes_default.
25283         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25284
25285 2010-09-09  Eric Blake  <eblake@redhat.com>
25286
25287         strsignal: work around NetBSD bug
25288         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25289         * lib/string.in.h (includes): Likewise.
25290         * doc/posix-functions/strsignal.texi (strsignal): Document the
25291         bug.
25292         Reported by Nelson H. F. Beebe.
25293
25294         gnulib-tool: work with NetBSD /bin/sh
25295         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25296         (func_get_description, func_get_comment, func_get_status)
25297         (func_get_notice, func_get_applicability, func_get_filelist)
25298         (func_get_dependencies, func_get_autoconf_early_snippet)
25299         (func_get_autoconf_snippet, func_get_automake_snippet)
25300         (func_get_include_directive, func_get_link_directive)
25301         (func_get_license, func_get_maintainer, func_import): Avoid
25302         shell syntax errors from parsing syntax extensions.
25303
25304 2010-09-09  Bruno Haible  <bruno@clisp.org>
25305
25306         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25307         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25308         a reliable way to determine whether the 'alias' command works.
25309
25310 2010-09-08  Jim Meyering  <meyering@redhat.com>
25311
25312         init.sh: penalize a set-x-impaired shell; don't disqualify it
25313         * tests/init.sh: Too many shells corrupt application stderr when
25314         you set -x, so we can't afford to disqualify them, since at least
25315         on Irix-6.5, that would disqualify all bourne shells.
25316         Instead, use a two-pass approach.
25317         On the first pass, try to find a shell that meets the stricter
25318         condition that set -x does not corrupt stderr.
25319         If no shell meets the stricter condition, retest each candidate
25320         shell, but without that extra condition.  Finally, when
25321         VERBOSE=yes is requested and set -x might cause trouble, simply
25322         issue a warning and refrain from enabling debug output.
25323
25324 2010-09-08  Eric Blake  <eblake@redhat.com>
25325
25326         unsetenv: fix OpenBSD bug
25327         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25328         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25329         documentation.
25330         Reported by Jim Meyering.
25331
25332         strtod: work around IRIX 6.5 bug
25333         * lib/strtod.c (strtod): Reparse number on shorter string if
25334         exponent parse was invalid.
25335         * tests/test-strtod.c (main): Add check for "0x1p 2".
25336         Reported by Tom G. Christensen.
25337
25338         getopt: optimize previous patch
25339         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25340         empty variable.  Speed up awk script.
25341         Reported by Paolo Bonzini.
25342
25343 2010-09-08  Jim Meyering  <meyering@redhat.com>
25344
25345         test.sh: disqualify shells for which set -x corrupts stderr
25346         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25347         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25348         appear in stderr output.  For example, this command:
25349             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25350         prints "P=1" on those two systems:
25351
25352 2010-09-08  Bruno Haible  <bruno@clisp.org>
25353
25354         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25355         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25356         commands, because some shells ignore redirections when there is an
25357         error in the command lookup.
25358         Reported by Eric Blake.
25359
25360 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25361
25362         * lib/regex.h: Fix a mention of `regex_compile' (should be
25363         `re_compile_pattern').
25364         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25365         (re_set_registers): Correct name of parameter in comment.
25366
25367         * doc/regex.texi: Add documentation for missing syntax flags.
25368         Remove commented-out documentation of defunct syntax option
25369         RE_NO_EMPTY_ALTS.
25370         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25371         Add documentation of re_set_registers.
25372         Document trick to re-use a pattern buffer by setting fastmap manually.
25373         Update documentation of struct re_pattern_buffer per public members.
25374         Uncomment documentation of equivalence class operators and
25375         collating symbol operators, since they are now implemented,
25376         Explain leftmost-longest matching in relation to alternatives.
25377         Tidy documentation of substring matching.
25378         Remove POSIX documentation, which is done better in
25379         glibc, and refer the reader there. Keep BSD API documentation, as
25380         that is not readily available elsewhere.
25381
25382 2010-09-07  Eric Blake  <eblake@redhat.com>
25383
25384         getopt: handle POSIXLY_CORRECT set but not exported
25385         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25386         export state of POSIXLY_CORRECT, due to bash set -o posix.
25387         Reported by Dustin J. Mitchell.
25388
25389 2010-09-05  Bruno Haible  <bruno@clisp.org>
25390
25391         gnulib-tool: Highlight the changed options.
25392         * gnulib-tool (func_usage): Display the --import, --add-import,
25393         --remove-import explanations in bold font.
25394
25395 2010-09-06  Karl Berry  <karl@gnu.org>
25396
25397         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25398
25399 2010-09-05  Bruno Haible  <bruno@clisp.org>
25400
25401         uniwidth/width: Update comment.
25402         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25403         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25404
25405 2010-09-05  Bruno Haible  <bruno@clisp.org>
25406
25407         isinf, isnan: Relax license.
25408         * modules/isinf (License): Change from GPL to LGPL, with consent from
25409         Ben Pfaff.
25410         * modules/isnan (License): Likewise.
25411         Requested by Ludovic Courtès.
25412
25413 2010-09-04  Bruno Haible  <bruno@clisp.org>
25414
25415         gnulib-tool: Help migration from --import to --add-import or --update.
25416         * gnulib-tool: Emit a verbose error message when --import is used
25417         without any module name.
25418
25419 2010-09-04  Bruno Haible  <bruno@clisp.org>
25420
25421         Update doc about gnulib-tool.
25422         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25423         'gnulib-tool --update' in more detail.
25424         Reported by Eric Blake.
25425
25426 2010-09-04  Bruno Haible  <bruno@clisp.org>
25427
25428         gnulib-tool: Change --import. New options --add/remove-import.
25429         * gnulib-tool: New options --add-import, --remove-import.
25430         (func_usage): Document them.
25431         (have_associative): Define always.
25432         (func_import): In import mode, don't merge the specified settings with
25433         the cached settings. Implement remove-import mode.
25434         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25435         Explain when to use them versus --import.
25436         (Simple update): Use --add-import instead of --import.
25437         * NEWS: Mention the change.
25438
25439 2010-09-04  Bruno Haible  <bruno@clisp.org>
25440
25441         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25442         separate gnulib.mk.
25443
25444 2010-09-04  Bruno Haible  <bruno@clisp.org>
25445
25446         gnulib-tool: Don't talk about CVS any more.
25447         * gnulib-tool (func_usage, func_import): Write "version control"
25448         instead of CVS.
25449
25450 2010-09-04  Jim Meyering  <meyering@redhat.com>
25451
25452         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25453         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25454         false positives (whose names may be ill-chosen) when searching
25455         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25456         would cause a false-positive.
25457
25458         avoid coreutils "make distcheck" failure
25459         Coreutils tests with an absolute build directory name that contains
25460         a space.  Not quoting this directory name caused a failure.
25461         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25462         * tests/test-vc-list-files-cvs.sh: Likewise.
25463
25464 2010-09-04  Bruno Haible  <bruno@clisp.org>
25465
25466         gnulib-tool: Avoid error when run in a package without Makefile.am.
25467         * gnulib-tool: When collecting the m4dirs in a package that does not
25468         have a Makefile.am, eliminate those directories that contain no
25469         gnulib-cache.m4. Fix expression that counts these directories.
25470
25471 2010-09-04  Bruno Haible  <bruno@clisp.org>
25472
25473         update-copyright test: Improve output when perl is missing or too old.
25474         * tests/test-update-copyright.sh: Move test of Perl version down after
25475         the test whether Perl exists. Provide an explanation relating Perl's
25476         error message to Automake's SKIP: message.
25477
25478 2010-09-04  Bruno Haible  <bruno@clisp.org>
25479
25480         Don't augment PATH in TESTS_ENVIRONMENT.
25481         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25482         set abs_aux_dir instead of augmenting PATH.
25483         * modules/vc-list-files-tests (Makefile.am): Likewise.
25484         * tests/test-update-copyright.sh: Augment PATH here.
25485         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25486         path_prepend_.
25487         * tests/test-vc-list-files-git.sh: Likewise.
25488
25489 2010-09-04  Jim Meyering  <meyering@redhat.com>
25490
25491         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25492         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25493
25494 2010-09-04  Bruno Haible  <bruno@clisp.org>
25495
25496         strdup: Fix compilation error in C++ mode.
25497         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25498         the macro.
25499
25500 2010-09-04  Bruno Haible  <bruno@clisp.org>
25501
25502         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25503         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25504         macro into a function.
25505         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25506
25507 2010-09-04  Bruno Haible  <bruno@clisp.org>
25508
25509         Set PATH_SEPARATOR the same way autoconf does.
25510         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25511         the value of PATH_SEPARATOR the same way autoconf-generated configure
25512         scripts do.
25513         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25514         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25515
25516 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25517
25518         Set PATH_SEPARATOR the same way autoconf does.
25519         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25520         the same way autoconf-generated configure scripts do.
25521         * posix-modules: Likewise.
25522
25523 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25524
25525         hash: fix safe_hasher const typo
25526         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25527         const; otherwise, there is a type error later.
25528
25529 2010-09-02  Jim Meyering  <meyering@redhat.com>
25530
25531         test-update-copyright.sh: require perl 5.8.0
25532         * tests/test-update-copyright.sh: Require 5.8.0,
25533         which Tom G. Christensen has confirmed is adequate,
25534         while 5.6.1 is not.
25535
25536 2010-09-02  Eric Blake  <eblake@redhat.com>
25537
25538         tests: init.sh improvements for re-exec'ing with zsh
25539         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25540         -vx through shell re-exec.
25541         Reported by Tom G. Christensen.
25542
25543         wctype: fix typo in previous commit
25544         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25545         Reported by Ludovic Courtès.
25546
25547 2010-09-02  Jim Meyering  <meyering@redhat.com>
25548
25549         test-update-copyright.sh: skip test if Perl is too old
25550         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25551         Reported by Tom G. Christensen.
25552
25553 2010-09-02  Bruno Haible  <bruno@clisp.org>
25554
25555         wctype: Avoid compilation error on IRIX 6.5.30.
25556         * lib/wctype.in.h (iswblank): Declare with a replacement if
25557         REPLACE_ISWBLANK is set.
25558         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25559         declared. Set REPLACE_ISWBLANK.
25560         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25561         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25562         * doc/posix-headers/wctype.texi: Likewise.
25563         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25564
25565 2010-09-01  Bruno Haible  <bruno@clisp.org>
25566
25567         New module 'socketlib'.
25568         * modules/socketlib: New file.
25569         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25570         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25571         * modules/sockets (Depends-on): Add socketlib.
25572         Suggested by Sam Steingold <sds@gnu.org>.
25573
25574 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25575
25576         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25577
25578         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25579         when one needs search access to a directory but not read access.
25580         On systems where it is available, it works in some cases where
25581         O_RDONLY does not, namely on directories that are searchable but
25582         not readable, and which need only to be searchable.  If O_SEARCH
25583         is not available, fall back to the traditional method of using
25584         O_RDONLY.
25585
25586         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25587         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25588         when opening a directory that needs only to be searchable.
25589         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25590         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25591         * lib/openat-proc.c (openat_proc_name): Likewise.
25592         * lib/openat.c (openat_needs_fchdir): Likewise.
25593         * lib/save-cwd.c (save_cwd): Likewise.
25594         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25595
25596 2010-08-28  Bruno Haible  <bruno@clisp.org>
25597
25598         New module 'host-cpu-c-abi'.
25599         * modules/host-cpu-c-abi: New file.
25600         * m4/host-cpu-c-abi.m4: New file, based on part of
25601         clisp/src/m4/general.m4.
25602         Requested by Sam Steingold <sds@gnu.org>.
25603
25604 2010-08-31  Eric Blake  <eblake@redhat.com>
25605         and Jim Meyering  <meyering@redhat.com>
25606
25607         hash: factor, and guard against misbehaving hasher function
25608         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25609         of table->hasher's return value.  Also protect against a hash value
25610         so large that adding it to table->bucket results in a NULL pointer.
25611         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25612         Use it in place of open-coded check-and-abort.
25613
25614 2010-08-30  Bruno Haible  <bruno@clisp.org>
25615
25616         hash: silence spurious clang warning
25617         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25618         Reported by Eric Blake.
25619
25620 2010-08-30  Eric Blake  <eblake@redhat.com>
25621
25622         strstr, memmem, strcasestr: avoid leaked shell message
25623         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25624         FreeBSD.
25625         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25626         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25627
25628         tests: silence clang warning
25629         * tests/test-malloca.c (do_allocation): Avoid dead store.
25630
25631 2010-08-29  Bruno Haible  <bruno@clisp.org>
25632
25633         gettext: Fix recent mistake.
25634         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25635
25636 2010-08-29  Bruno Haible  <bruno@clisp.org>
25637
25638         selinux-h: Offer a --without-selinux option.
25639         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25640         --without-selinux was specified, skip all tests and define
25641         HAVE_SELINUX_SELINUX_H to 0.
25642         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25643         set LIB_SELINUX to empty.
25644         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25645         gl_LIBSELINUX. If --without-selinux was specified, replace
25646         selinux/context.h.
25647         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25648
25649 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25650             Bruno Haible  <bruno@clisp.org>
25651
25652         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25653         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25654         of HAVE_REALLOC.
25655         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25656         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25657         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25658         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25659
25660 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25661             Bruno Haible  <bruno@clisp.org>
25662
25663         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25664         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25665         HAVE_CALLOC.
25666         * lib/xmalloc.c: Update accordingly.
25667         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25668         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25669         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25670
25671 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25672             Bruno Haible  <bruno@clisp.org>
25673
25674         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25675         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25676         HAVE_MALLOC.
25677         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25678         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25679         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25680
25681 2010-08-29  Bruno Haible  <bruno@clisp.org>
25682
25683         Update modules list.
25684         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25685         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25686         (String handling <string.h>): Add astrxfrm.
25687         (File system functions): Add readlinkat.
25688
25689 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25690
25691         Tests for module 'realloc-gnu'.
25692         * modules/realloc-gnu-tests: New file.
25693         * tests/test-realloc-gnu.c: New file.
25694
25695         Tests for module 'calloc-gnu'.
25696         * modules/calloc-gnu-tests: New file.
25697         * tests/test-calloc-gnu.c: New file.
25698
25699         Tests for module 'malloc-gnu'.
25700         * modules/malloc-gnu-tests: New file.
25701         * tests/test-malloc-gnu.c: New file.
25702
25703 2010-08-28  Bruno Haible  <bruno@clisp.org>
25704
25705         Rename module 'realloc' -> 'realloc-gnu'.
25706         * modules/realloc-gnu: New file, copied from modules/realloc.
25707         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25708         obsolete.
25709         * modules/mgetgroups (Depends-on): Update.
25710         * doc/posix-functions/realloc.texi: Update.
25711         * NEWS: Mention the change.
25712
25713         Rename module 'calloc' -> 'calloc-gnu'.
25714         * modules/calloc-gnu: New file, copied from modules/calloc.
25715         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25716         obsolete.
25717         * doc/posix-functions/calloc.texi: Update.
25718         * NEWS: Mention the change.
25719
25720         Rename module 'malloc' -> 'malloc-gnu'.
25721         * modules/malloc-gnu: New file, copied from modules/malloc.
25722         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25723         obsolete.
25724         * modules/argp (Depends-on): Update.
25725         * modules/regex (Depends-on): Update.
25726         * doc/posix-functions/malloc.texi: Update.
25727         * NEWS: Mention the change.
25728
25729 2010-08-28  Eric Blake  <eblake@redhat.com>
25730
25731         pread, pwrite: add missing dependency
25732         * modules/pread (Depends-on): Add extensions.
25733         * modules/pwrite (Depends-on): Likewise.
25734
25735 2010-08-28  Bruno Haible  <bruno@clisp.org>
25736
25737         unistr/u*-strchr: Fix tests dependencies.
25738         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25739         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25740         Reported by Ian Beckwith <ianb@erislabs.net>.
25741
25742 2010-08-28  Bruno Haible  <bruno@clisp.org>
25743
25744         read-file: Don't occupy too much unused memory.
25745         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25746
25747 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25748             Eric Blake  <eblake@redhat.com>
25749             Bruno Haible  <bruno@clisp.org>
25750
25751         read-file: Avoid memory reallocations with regular files.
25752         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25753         (fread_file): With regular files, use the remaining length as the
25754         initial buffer size.  Check against overflow.
25755         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25756         sys_stat.
25757
25758 2010-08-28  Bruno Haible  <bruno@clisp.org>
25759
25760         ftello: Relax license.
25761         * modules/ftello (License): Relax to LGPLv2+.
25762         Reported by Eric Blake.
25763
25764 2010-08-28  Bruno Haible  <bruno@clisp.org>
25765
25766         Avoid relocwrapper link errors due to gnulib replacement functions.
25767         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25768         function.
25769         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25770
25771 2010-08-28  Bruno Haible  <bruno@clisp.org>
25772
25773         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25774         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25775         defined.
25776         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25777         Suggested by Eric Blake.
25778
25779 2010-08-28  Bruno Haible  <bruno@clisp.org>
25780
25781         sys_socket, netdb: Ensure socklen_t gets defined.
25782         * modules/sys_socket (Depends-on): Add socklen.
25783         * modules/netdb (Depends-on): Likewise.
25784         * modules/getaddrinfo (Depends-on): Remove socklen.
25785         * modules/getsockopt (Depends-on): Likewise.
25786         * modules/setsockopt (Depends-on): Likewise.
25787         * tests/test-sys_socket.c: Check that socklen_t is defined.
25788         * tests/test-netdb.c: Likewise.
25789         * m4/socklen.m4: Update comments.
25790         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25791
25792 2010-08-27  Eric Blake  <eblake@redhat.com>
25793
25794         login_tty: add missing dependency
25795         * modules/login_tty (Depends-on): Add pty.
25796
25797 2010-08-26  Eric Blake  <eblake@redhat.com>
25798
25799         lib-symbol-versions: fix m4 quoting
25800         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25801         format for AC_LINK_IFELSE.
25802
25803         glob: fix compile test
25804         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25805
25806         btowc: fix missing file
25807         * modules/btowc (Files): Also ship locale-fr.m4.
25808
25809         lseek: fix link test
25810         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25811         AC_LINK_IFELSE.
25812
25813         include_next: silence autoconf 2.68 warning
25814         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25815         AC_COMPILE_IFELSE as special.
25816         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25817         autoconf < 2.68.
25818
25819         acl: fix compilation test
25820         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25821         AC_COMPILE_IFELSE.
25822
25823 2010-08-26  Bruno Haible  <bruno@clisp.org>
25824
25825         Modernize AC_TRY_RUN invocations.
25826         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25827         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25828         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25829         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25830         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25831         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25832         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25833         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25834         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25835         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25836         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25837         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25838         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25839         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25840         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25841         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25842         gl_MBRLEN_NUL_RETVAL): Likewise.
25843         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25844         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25845         Likewise.
25846         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25847         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25848         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25849         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25850         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25851         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25852         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25853         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25854         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25855         Likewise.
25856         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25857         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25858         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25859         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25860         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25861         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25862         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25863         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25864         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25865         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25866
25867 2010-08-26  Bruno Haible  <bruno@clisp.org>
25868
25869         Modernize AC_TRY_LINK invocations.
25870         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25871         AC_TRY_LINK.
25872         * m4/argp.m4 (gl_ARGP): Likewise.
25873         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25874         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25875         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25876         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25877         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25878         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25879         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25880         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25881         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25882         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25883         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25884         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25885         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25886         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25887         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25888         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25889         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25890         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25891         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25892         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25893         Likewise.
25894         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25895         Likewise.
25896         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25897         Likewise.
25898         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25899         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25900         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25901         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25902         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25903         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25904         * m4/servent.m4 (gl_SERVENT): Likewise.
25905         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25906         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25907         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25908         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25909         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25910         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25911         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25912         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25913         * modules/tsearch-tests (configure.ac): Likewise.
25914
25915 2010-08-26  Bruno Haible  <bruno@clisp.org>
25916
25917         Modernize AC_TRY_COMPILE invocations.
25918         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25919         AC_TRY_COMPILE.
25920         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25921         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25922         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25923         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25924         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25925         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25926         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25927         * m4/lock.m4 (gl_LOCK): Likewise.
25928         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
25929         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25930         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
25931         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25932         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25933         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
25934         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25935         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
25936         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25937         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25938         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25939         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25940         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
25941         extraneous semicolon.
25942
25943 2010-08-26  Jim Meyering  <meyering@redhat.com>
25944
25945         stat-time: relax license LGPL
25946         * modules/stat-time (License): Change from GPL to LGPL,
25947         with consent from all contributors, for use in libguile.
25948         Requested by Ludovic Courtès.
25949
25950 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
25951
25952         poll: return immediately on POLLHUP.
25953         * lib/poll.c (poll): Always set timeout before wait_timeout is
25954         computed.
25955
25956 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25957
25958         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
25959         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
25960         rmdir ("dir/.//"), unlinkat.
25961
25962 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25963
25964         stdbool: avoid spurious failure with modern xlc
25965         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25966
25967 2010-08-24  Bruno Haible  <bruno@clisp.org>
25968
25969         getloadavg: simplify code
25970         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
25971         gl_have_func. Update comments.
25972
25973 2010-08-24  Eric Blake  <eblake@redhat.com>
25974
25975         getloadavg: don't define SVR4 on cygwin
25976         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
25977         only define SVR4 when -lkvm is required.
25978         Reported by Yaakov Selkowitz.
25979
25980 2010-08-24  Bruno Haible  <bruno@clisp.org>
25981
25982         priv-set: fix comment
25983         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
25984
25985 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25986
25987         priv-set: fix comments
25988         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
25989         to match code, as suggested by David Bartley in:
25990         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
25991
25992 2010-08-23  Eric Blake  <eblake@redhat.com>
25993
25994         stdbool: avoid rejecting clang
25995         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25996         * tests/test-stdbool.c: Enable more tests if using the system
25997         <stdbool.h> instead of the gnulib replacement.
25998         (main): Move xlc bug test to a runtime test for all compilers.
25999         Reported by Anders Kaseorg.
26000
26001         argz: fix shell quoting issue
26002         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26003         Reported by Charles Wilson.
26004
26005 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26006             Erik Faye-Lund <kusmabite@gmail.com>
26007
26008         poll, select: handle ERROR_BROKEN_PIPE.
26009         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26010         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26011         * lib/select.c (win32_compute_revents): Do not mark a pipe
26012         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26013
26014 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26015
26016         fts: allow compilation with C++
26017         * lib/fts_.h: Specify extern "C" linkage with C++.
26018
26019 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26020
26021         Fix gnulib-tool sed script de-commentation for AIX sed.
26022         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26023         sed.
26024
26025 2010-08-17  Eric Blake  <eblake@redhat.com>
26026
26027         test-stddef: test for (some) offsetof bugs
26028         * tests/test-stddef.c: Enhance test to ensure correct type of
26029         offsetof.
26030         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26031         that we are not fixing at this time.
26032
26033 2010-08-15  Bruno Haible  <bruno@clisp.org>
26034
26035         stpncpy: Allow stpncpy to be defined as a macro.
26036         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26037         if it's already correctly declared.
26038         * lib/string.in.h (stpncpy): Undefine before redefining.
26039         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26040
26041 2010-08-14  Bruno Haible  <bruno@clisp.org>
26042
26043         Rename module 'memxfrm' to 'amemxfrm'.
26044         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26045         (amemxfrm): Renamed from memxfrm.
26046         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26047         (amemxfrm): Renamed from memxfrm.
26048         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26049         * NEWS: Mention the change.
26050         * MODULES.html.sh (String handling <string.h>): Update.
26051         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26052         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26053         * lib/unicase/u16-casexfrm.c: Likewise.
26054         * lib/unicase/u32-casexfrm.c: Likewise.
26055         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26056         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26057         * lib/uninorm/u16-normxfrm.c: Likewise.
26058         * lib/uninorm/u32-normxfrm.c: Likewise.
26059         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26060         memxfrm.
26061         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26062         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26063         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26064         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26065         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26066         Suggested by Paul Eggert.
26067
26068 2010-08-14  Bruno Haible  <bruno@clisp.org>
26069
26070         Tests for module 'astrxfrm'.
26071         * modules/astrxfrm-tests: New file.
26072         * tests/test-astrxfrm.c: New file.
26073
26074         New module 'astrxfrm'.
26075         * lib/astrxfrm.h: New file.
26076         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26077         * modules/astrxfrm: New file.
26078
26079 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26080
26081         regex: Tweak doc.
26082         * doc/regex.texi (Overview): Don't mention regex.c.
26083         (GNU Regular Expression Compiling): Likewise.
26084         (Match-end-of-line Operator): Mention 'not_eol'.
26085
26086 2010-08-14  Brian Gough  <bjg@gnu.org>
26087             Bruno Haible  <bruno@clisp.org>
26088
26089         git-merge-changelog: add doc relating to use with bzr and hg.
26090         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26091
26092 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26093
26094         pthread: fix pthread.h creation for srcdir != builddir
26095         * modules/pthread (Makefile.am): Fix the rule to work also in a
26096         non-srcdir build.
26097
26098 2010-08-13  Karl Berry  <karl@gnu.org>
26099
26100         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26101         * doc/posix-*/*: force line break before @url of POSIX
26102         specifications.
26103         Suggested by Werner Lemberg.
26104
26105 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26106
26107         strtod: fix const diagnostic
26108         * lib/strtod.c (strtod): Don't assign const char * to char *,
26109         as this elicits a warning from GCC when warnings are enabled.
26110
26111 2010-08-10  Pádraig Brady <P@draigbrady.com>
26112         and Eric Blake  <eblake@redhat.com>
26113
26114         copy-acl: ignore ENOTSUP on HP-UX
26115         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26116         so that it is available for HP-UX.
26117         * lib/copy-acl.c (qcopy_acl): Use it.
26118         Reported by Patrick M. Callahan.
26119
26120 2010-08-10  Eric Blake  <eblake@redhat.com>
26121
26122         open, chown: relax license
26123         * modules/open (License): Change to LGPLv2+, with consent by all
26124         authors, for use in augeas.
26125         * modules/chown (License): Likewise.
26126         * modules/lchown (Likewise): Likewise.
26127         Requested by Adam Stokes.
26128
26129 2010-08-09  Karl Berry  <karl@gnu.org>
26130
26131         * build-aux/ar-lib: new file, import from Automake.
26132         * config/srclist.txt: autocheck for updates.
26133
26134 2010-08-09  Eric Blake  <eblake@redhat.com>
26135
26136         readlinkat: adjust client modules
26137         * modules/areadlinkat (Depends-on): Use readlinkat, not
26138         symlinkat.
26139         * modules/areadlinkat-with-size (Depends-on): Likewise.
26140
26141         mknod: be more vocal about danger of running tests as root
26142         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26143         root, since that is just asking for problems.
26144         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26145
26146         readlinkat: split into its own module
26147         * modules/symlinkat: Split readlinkat...
26148         * modules/readlinkat: ...into separate module.
26149         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26150         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26151         * lib/symlinkat.c (readlinkat): Move...
26152         * lib/readlinkat.c: ...into new file.
26153         * modules/symlinkat-tests: Split readlinkat test...
26154         * modules/readlinkat-tests: ...into separate module.
26155         * tests/test-symlinkat.c: Split...
26156         * tests/test-readlinkat.c: ...into new file.
26157         * NEWS: Document the split.
26158         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26159         * lib/unistd.in.h (readlinkat): Likewise.
26160         Suggested by Bruno Haible.
26161
26162 2010-08-08  Bruno Haible  <bruno@clisp.org>
26163
26164         memxfrm: Speed up.
26165         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26166         that usually only one call to strxfrm is necessary for each string
26167         part.
26168         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26169
26170 2010-08-07  Karl Berry  <karl@gnu.org>
26171
26172         * doc/posix-headers/limits.texi,
26173         * doc/posix-functions/malloc.texi,
26174         * doc/posix-functions/strsignal.texi: missing @item.
26175         * doc/ld-version-script.texi: spurious leading i.
26176         * doc/regex.texi (Interval Operators): no commas inside @var.
26177
26178 2010-08-01  Bruno Haible  <bruno@clisp.org>
26179
26180         Integrate the regex documentation.
26181         * doc/gnulib.texi: Define 'cn' index.
26182         (Regular expressions): New a chapter that includes regex.texi and
26183         regexprops-generic.texi.
26184         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26185         syntax.
26186
26187         Whitespace cleanup.
26188         * doc/regex.texi: Remove trailing spaces.
26189
26190         Add regex documentation.
26191         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26192         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26193         Written by Kathy A. Hargreaves and Karl Berry.
26194
26195 2010-08-01  Bruno Haible  <bruno@clisp.org>
26196
26197         link: Update documentation.
26198         * doc/posix-functions/link.texi: Update regarding Solaris.
26199
26200 2010-07-31  Bruno Haible  <bruno@clisp.org>
26201
26202         Update modules list.
26203         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26204         (String handling <string.h>): Add memcmp2, memxfrm.
26205         (Container data structures): Add xlist, xsublist, xoset.
26206         (Core language properties): Add alignof, unused-parameter.
26207         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26208         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26209         (Unibyte characters <ctype.h>): New section.
26210         (String handling <string.h>): New section.
26211         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26212         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26213         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26214         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26215         tan, tanh, tanl, y0, y1, yn.
26216         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26217         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26218         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26219         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26220         unlockpt, vdprintf, vdprintf-posix.
26221         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26222         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26223         xconcat-filename.
26224         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26225         getdtablesize, pipe2, pipe2-safer.
26226         (Security): New section.
26227         (Networking functions): Add accept4.
26228         (Signal handling): Add sigpipe.
26229         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26230         mbmemcasecoll.
26231         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26232         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26233         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26234         pipe-filter-ii.
26235         (Misc): Add argp-version-etc, login_tty, parse-duration.
26236
26237 2010-07-31  Bruno Haible  <bruno@clisp.org>
26238
26239         Improve doc in MODULES.html.
26240         * modules/linkat (Description): Add the word "function".
26241         * modules/mkfifo (Description): Likewise.
26242         * modules/mknod (Description): Likewise.
26243         * modules/remove (Description): Likewise.
26244         * modules/renameat (Description): Likewise.
26245         * modules/stat (Description): Likewise.
26246         * modules/symlink (Description): Likewise.
26247         * modules/unlink (Description): Likewise.
26248
26249 2010-07-31  Bruno Haible  <bruno@clisp.org>
26250
26251         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26252         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26253         option --enable/disable-c++ instead of --enable/disable-cxx.
26254         * NEWS: Mention the change.
26255
26256 2010-07-31  Bruno Haible  <bruno@clisp.org>
26257
26258         readlink, areadlink: Relax test a bit.
26259         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26260         alternative to ENOTDIR.
26261         * tests/test-areadlink.h (test_areadlink): Likewise.
26262         Reported by Rainer Tammer.
26263
26264 2010-07-31  Bruno Haible  <bruno@clisp.org>
26265
26266         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26267         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26268         character, perform the search using U_STRCHR.
26269         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26270         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26271         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26272         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26273         Suggested by Paolo Bonzini.
26274
26275 2010-07-31  Bruno Haible  <bruno@clisp.org>
26276
26277         unistr/u*-strstr: Fix dependencies.
26278         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26279         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26280         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26281
26282 2010-07-31  Bruno Haible  <bruno@clisp.org>
26283
26284         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26285         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26286         the beginning of the loop.
26287         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26288         cases in 'switch' statement.
26289
26290         unistr/u8-strchr: Fix several bugs.
26291         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26292         the string. When not found, return NULL, not a pointer near the end.
26293
26294         More tests for unistr/u8-strchr.
26295         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26296         that the function does not read past the first occurrence of the byte
26297         being searched.
26298         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26299         * tests/unistr/test-u16-strchr.c (main): New function.
26300         * tests/unistr/test-u32-strchr.c (main): New function.
26301
26302 2010-07-31  Bruno Haible  <bruno@clisp.org>
26303
26304         posix-modules: Ignore backup files of documentation files.
26305         * posix-modules: grep only through files named *.texi.
26306
26307 2010-07-31  Bruno Haible  <bruno@clisp.org>
26308
26309         symlinkat: Fix documentation.
26310         * doc/posix-functions/readlinkat.texi: Fix module name.
26311
26312 2010-07-31  Bruno Haible  <bruno@clisp.org>
26313
26314         fchownat: Replace also when chown has the trailing slash bug.
26315         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26316         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26317         introduced on 2010-04-10.
26318         Reported by Rainer Tammer.
26319
26320 2010-07-31  Bruno Haible  <bruno@clisp.org>
26321
26322         linkat: Work around AIX 7.1 bug.
26323         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26324         whether linkat handles trailing slash correctly. If not, replace linkat
26325         and define LINKAT_TRAILING_SLASH_BUG.
26326         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26327         check whether (fd1,file1) points to a directory if file1 or file2 ends
26328         in a slash. Code taken from lib/link.c.
26329         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26330         Reported by Rainer Tammer.
26331
26332 2010-07-31  Bruno Haible  <bruno@clisp.org>
26333
26334         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26335         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26336         This disables an xlc optimization that was causing wrong test results.
26337         Reported by Rainer Tammer.
26338
26339 2010-07-31  Bruno Haible  <bruno@clisp.org>
26340
26341         iconv: Work around AIX 6.1..7.1 bug.
26342         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26343         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26344         cross-compiling, guess no on all versions of AIX.
26345         Reported by Rainer Tammer.
26346
26347 2010-07-31  Bruno Haible  <bruno@clisp.org>
26348
26349         readlink: Relax test a bit.
26350         * tests/test-readlink.h (test_readlink): Allow different errno value
26351         when readlink is called with a file name that ends in / and refers to
26352         a file.
26353         Suggested by Eric Blake.
26354         Reported by Rainer Tammer.
26355
26356 2010-07-31  Bruno Haible  <bruno@clisp.org>
26357
26358         copysign: Does not require -lm on glibc systems.
26359         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26360         gl_COMMON_DOUBLE_MATHFUNC.
26361         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26362
26363 2010-07-31  Bruno Haible  <bruno@clisp.org>
26364
26365         duplocale: Work around AIX 7.1 bug.
26366         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26367         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26368         * lib/duplocale.c (rpl_duplocale): Update comment.
26369         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26370         Reported by Rainer Tammer.
26371
26372 2010-07-30  Bruno Haible  <bruno@clisp.org>
26373
26374         dirfd: Avoid link error on AIX 7.1.
26375         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26376         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26377         exist, set REPLACE_DIRFD.
26378         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26379         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26380         * doc/posix-functions/dirfd.texi: Update.
26381         Reported by Rainer Tammer.
26382
26383 2010-07-30  Eric Blake  <eblake@redhat.com>
26384
26385         strtod: next round of AIX fixes
26386         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26387         exponent.
26388         * tests/test-strtod.c (main): Enhance tests.
26389         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26390         Reported by Rainer Tammer.
26391
26392         futimens: fix configure check
26393         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26394         Reported by Bruno Haible.
26395
26396 2010-07-30  Bruno Haible  <bruno@clisp.org>
26397
26398         getline: Update regarding AIX.
26399         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26400         Reported by Rainer Tammer.
26401
26402 2010-07-30  Bruno Haible  <bruno@clisp.org>
26403
26404         wcwidth: Drop replacement on AIX 7.
26405         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26406         AIX 7.
26407         Reported by Rainer Tammer.
26408
26409 2010-07-30  Bruno Haible  <bruno@clisp.org>
26410
26411         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26412         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26413         a 'char *'.
26414         Reported by Rainer Tammer.
26415
26416 2010-07-30  Bruno Haible  <bruno@clisp.org>
26417
26418         unlink: Update regarding AIX.
26419         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26420         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26421         Reported by Rainer Tammer.
26422
26423 2010-07-30  Bruno Haible  <bruno@clisp.org>
26424
26425         symlink: Update regarding AIX.
26426         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26427         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26428         Reported by Rainer Tammer.
26429
26430 2010-07-30  Bruno Haible  <bruno@clisp.org>
26431
26432         strndup: Update regarding AIX.
26433         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26434         AIX 7.
26435         Reported by Rainer Tammer.
26436
26437 2010-07-30  Bruno Haible  <bruno@clisp.org>
26438
26439         stat: Update regarding AIX.
26440         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26441         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26442         Reported by Rainer Tammer.
26443
26444 2010-07-30  Bruno Haible  <bruno@clisp.org>
26445
26446         truncl: Fix autoconf test.
26447         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26448         whether truncl works.
26449         Reported by Rainer Tammer.
26450
26451 2010-07-30  Bruno Haible  <bruno@clisp.org>
26452
26453         round: Update regarding AIX.
26454         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26455         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26456         Reported by Rainer Tammer.
26457
26458 2010-07-30  Bruno Haible  <bruno@clisp.org>
26459
26460         rename: Update regarding AIX.
26461         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26462         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26463         Reported by Rainer Tammer.
26464
26465 2010-07-30  Bruno Haible  <bruno@clisp.org>
26466
26467         printf.m4: Update regarding AIX.
26468         * m4/printf.m4: Update comments regarding AIX.
26469         Reported by Rainer Tammer.
26470
26471 2010-07-30  Bruno Haible  <bruno@clisp.org>
26472
26473         iconv: Update regarding AIX.
26474         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26475         AIX 7.
26476         Reported by Rainer Tammer.
26477
26478 2010-07-30  Bruno Haible  <bruno@clisp.org>
26479
26480         getopt: Update regarding AIX.
26481         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26482         no on AIX.
26483         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26484         Reported by Rainer Tammer.
26485
26486 2010-07-30  Bruno Haible  <bruno@clisp.org>
26487
26488         ldexpl; Update regarding AIX.
26489         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26490         on AIX 7.
26491         Reported by Rainer Tammer.
26492
26493 2010-07-30  Bruno Haible  <bruno@clisp.org>
26494
26495         frexpl: Update regarding AIX.
26496         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26497         on AIX 7.
26498         Reported by Rainer Tammer.
26499
26500 2010-07-30  Bruno Haible  <bruno@clisp.org>
26501
26502         open, fopen: Update regarding AIX.
26503         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26504         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26505         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26506         * doc/posix-functions/fopen.texi: Likewise.
26507         Reported by Rainer Tammer.
26508
26509 2010-07-30  Bruno Haible  <bruno@clisp.org>
26510
26511         chown: Update doc regarding AIX.
26512         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26513         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26514         Reported by Rainer Tammer.
26515
26516 2010-07-30  Eric Blake  <eblake@redhat.com>
26517
26518         strtod: fix bug in replacement function on AIX
26519         * lib/strtod.c (strtod): Special case broken "0x" parse in
26520         underlying strtod.
26521         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26522         * doc/posix-functions/strtod.texi (strtod): Likewise.
26523         Reported by Rainer Tammer.
26524
26525 2010-07-30  Bruno Haible  <bruno@clisp.org>
26526
26527         mbrlen: Fix cross-compilation guess for AIX.
26528         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26529         guess. Leftover from 2008-12-22.
26530
26531 2010-07-30  Bruno Haible  <bruno@clisp.org>
26532
26533         mbrtowc: Fix cross-compilation guess for AIX.
26534         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26535         guess. Leftover from 2008-12-21.
26536
26537 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26538
26539         init.sh: work around trap limitation of some shells
26540         * tests/init.sh (setup_): Move exit trap outside of shell function.
26541
26542 2010-07-29  Eric Blake  <eblake@redhat.com>
26543
26544         strtod: aid debugging
26545         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26546         understanding why strtod is rejected.
26547
26548 2010-07-28  Bruno Haible  <bruno@clisp.org>
26549
26550         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26551         * lib/unistr/u8-chr.c: Include <string.h>.
26552         * tests/unistr/test-u8-chr.c: Likewise.
26553         * tests/unistr/test-u16-chr.c: Likewise.
26554         * tests/unistr/test-u32-chr.c: Likewise.
26555         * tests/unistr/test-u8-strchr.c: Likewise.
26556         * tests/unistr/test-u16-strchr.c: Likewise.
26557         * tests/unistr/test-u32-strchr.c: Likewise.
26558         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26559         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26560         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26561         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26562
26563 2010-07-28  Bruno Haible  <bruno@clisp.org>
26564
26565         Use spaces for indentation, not tabs.
26566         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26567
26568 2010-07-27  Bruno Haible  <bruno@clisp.org>
26569
26570         mbspcasecmp: Fix function specification.
26571         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26572         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26573         Reported by Eric Blake <eblake@redhat.com>.
26574
26575 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26576
26577         timespec: use cast and not conditional, as truncation isn't possible
26578         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26579         instead of a conditional.  Comment about the situation in more detail.
26580         This undoes most of the 2009-10-29 patch.
26581
26582 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26583
26584         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26585         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26586         * lib/unistr/u8-strchr.c: Likewise.
26587         * modules/unistr/u8-chr: Depend on memchr.
26588
26589         unistr/u*-strchr: add tests
26590         * modules/unistr/u8-strchr-tests: New file.
26591         * modules/unistr/u16-strchr-tests: New file.
26592         * modules/unistr/u32-strchr-tests: New file.
26593         * tests/unistr/test-strchr.h: New file.
26594         * tests/unistr/test-u8-strchr.c: New file.
26595         * tests/unistr/test-u16-strchr.c: New file.
26596         * tests/unistr/test-u32-strchr.c: New file.
26597
26598         unistr/u*-chr: test multibyte sequences more
26599         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26600         test vector.
26601         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26602         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26603         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26604
26605         unistr/u*-chr: test multibyte sequences
26606         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26607
26608         unistr/u*-chr: prepare for multibyte tests
26609         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26610         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26611         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26612         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26613         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26614         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26615
26616 2010-07-18  Bruno Haible  <bruno@clisp.org>
26617
26618         unistr/u8-strchr: Optimize non-ASCII argument case.
26619         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26620         because the first byte often matches anyway.
26621         Reported by Pádraig Brady <P@draigbrady.com>.
26622
26623 2010-07-15  Karl Berry  <karl@gnu.org>
26624
26625         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26626
26627 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26628
26629         getcwd: on Solaris, work better if ancestors are inaccessible
26630         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26631         buffer and size, try again with a large buffer.  This works better
26632         on Solaris, since its getcwd succeeds even if the path to the root
26633         is inaccessible, and this is helpful in common cases such as .zfs
26634         hidden directories.  Problem reported by J Chapman Flack in
26635         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26636         Use system getcwd if it's declared, not merely if it's partly
26637         working; use the partly-working test only to avoid needless effort
26638         if the system getcwd fails.
26639         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26640         comment that was already obsolete and is now even more obsolete.
26641         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26642         now might call strdup.
26643
26644 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26645
26646         pthread: Add enough so that coreutils/src/sort.c compiles.
26647         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26648         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26649         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26650         Include <sys/types.h>, in case it defines pthread_t.
26651         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26652         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26653         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26654         (pthread_rwlockattr_t, pthread_spinlock_t):
26655         New typedefs, if HAVE_PTHREAD_T is not defined.
26656         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26657         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26658         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26659         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26660         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26661         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26662         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26663         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26664         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26665         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26666         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26667         New macros.
26668         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26669         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26670         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26671         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26672         (pthread_spin_unlock): New dummy functions.
26673         (pthread_create): Return EAGAIN; don't set errno.
26674         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26675         require AC_C_INLINE.
26676         * modules/pthread (Depends-on): Add sched, time.
26677         (pthread.h): Use AM_V_GEN.
26678
26679 2010-07-13  Bruno Haible  <bruno@clisp.org>
26680
26681         striconveh: Don't malloc memory if the result buffer is sufficient.
26682         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26683         buffer if its size is sufficient.
26684         Reported by Ludovic Courtès <ludo@gnu.org>.
26685
26686 2010-07-13  Bruno Haible  <bruno@clisp.org>
26687
26688         strtod: Add safety check.
26689         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26690
26691 2010-07-12  Bruno Haible  <bruno@clisp.org>
26692
26693         Unify tests that set gl_cv_func_ldexpl_no_libm.
26694         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26695         gl_FUNC_LDEXPL.
26696         (gl_FUNC_LDEXPL): Invoke it.
26697         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26698
26699 2010-07-12  Bruno Haible  <bruno@clisp.org>
26700
26701         Unify tests that set gl_cv_func_ldexp_no_libm.
26702         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26703         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26704         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26705         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26706         * modules/strtod (Files): Add m4/ldexp.m4.
26707
26708 2010-07-12  Bruno Haible  <bruno@clisp.org>
26709
26710         Unify tests that set gl_cv_func_frexpl_no_libm.
26711         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26712         gl_FUNC_FREXPL_NO_LIBM.
26713         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26714         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26715
26716 2010-07-12  Bruno Haible  <bruno@clisp.org>
26717
26718         Unify tests that set gl_cv_func_frexp_no_libm.
26719         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26720         gl_FUNC_FREXP_NO_LIBM.
26721         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26722         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26723
26724 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26725
26726         memcoll: clarify sizes versus lengths, document better, and tweak perf
26727         * lib/memcoll.c (strcoll_loop, memcoll0):
26728         Improve quality of descriptive comments.  Name variables
26729         consistently as to whether they are lengths (which do not include
26730         terminating null) versus sizes (which do).
26731         * lib/xmemcoll.c (xmemcoll0): Likewise.
26732         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26733         returned when s1size == 0; this is easier to compile and saves
26734         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26735
26736 2010-07-12  Bruno Haible  <bruno@clisp.org>
26737
26738         Tests for module '_Exit'.
26739         * modules/_Exit-tests: New file.
26740         * tests/test-_Exit.sh: New file.
26741         * tests/test-_Exit.c: New file.
26742
26743         New module '_Exit'.
26744         * lib/stdlib.in.h (__attribute__): New macro.
26745         (_Exit): New declaration.
26746         * lib/_Exit.c: New file.
26747         * m4/_Exit.m4: New file.
26748         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26749         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26750         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26751         * modules/_Exit: New file.
26752         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26753         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26754
26755 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26756
26757         strtod: make it more-accurate typically, and don't require libm
26758         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26759         Include limits.h.  Don't include string.h.
26760         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26761         (locale_isspace): New function, so that no casts are needed to
26762         check whether *s is a space.
26763         (ldexp): Provide an unused dummy if not available.
26764         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26765         (strtod): Use them.  This implementation prefers to use the
26766         underlying strtod if available, falling back on our own code
26767         only to fix known bugs.  This is more likely to produce an
26768         accurate result.  Also, it avoids the use of libm functions.
26769         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26770         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26771         was absent, but it caused a test failure with coreutils.
26772         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26773         with libm.
26774         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26775         * modules/strtod-tests (Makefile.am): Likewise.
26776
26777 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26778             Bruno Haible  <bruno@clisp.org>
26779
26780         unistr/u8-strchr: Optimize ASCII argument case.
26781         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26782
26783 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26784
26785         (x)memcoll: minor tweaks
26786         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26787         is after the type that it qualifies.
26788         (memcoll0): Likewise.
26789         * lib/memcoll.h (memcoll0): Likewise.
26790         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26791         * lib/xmemcoll.h (xmemcoll0): Likewise.
26792         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26793         differs from memcoll in that the NUL byte is part of the argument.
26794         Omit the abort-checks, as performance is a real issue here.  Plus,
26795         the checks were wrong anyway (an off-by-one error).  Omit local
26796         variable 'diff', as it's a bit clearer that way.
26797         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26798         no longer needed.
26799
26800 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26801
26802         (x)memcoll: speedup when input is known to be NUL delimited
26803         * lib/memcoll.c: Include stdlib.
26804         (memcoll0): New function.
26805         (strcoll_loop): New function, refactored for use in both memcoll
26806         and memcoll0.
26807         * lib/memcoll.h (memcoll0): Add prototype.
26808         * lib/xmemcoll.c (xmemcoll0): New function.
26809         (collate_error): New function, refactored for use in both xmemcoll
26810         and xmemcoll0.
26811         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26812         * m4/memcoll.m4: add inline invocation.
26813
26814 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26815
26816         * build-aux/bootstrap: Remove any local translations
26817         from the translation project synchronization directory,
26818         so that local only translations are not distributed.
26819
26820 2010-07-04  Bruno Haible  <bruno@clisp.org>
26821
26822         fsusage: Clarify which code applies to which platforms.
26823         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26824         platform.
26825         * lib/fsusage.c (get_fs_usage): Likewise.
26826
26827 2010-07-04  Bruno Haible  <bruno@clisp.org>
26828
26829         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26830         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26831         Reported by Martin Lambers <marlam@marlam.de>.
26832
26833 2010-07-04  Jim Meyering  <meyering@redhat.com>
26834
26835         hash: once again explicitly disallow insertion of NULL
26836         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26837         inserting a NULL pointer cannot work with these functions.
26838         Add a comment with details.
26839         This reverts part of the 2010-07-01 commit, 5bef1a35
26840         "hash: extend module to deal with non-pointer keys".
26841
26842 2010-07-01  Bruno Haible  <bruno@clisp.org>
26843
26844         stdbool: Update doc.
26845         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26846         Info from Christian Weisgerber <naddy@mips.inka.de>.
26847
26848 2010-07-01  Jim Meyering  <meyering@redhat.com>
26849
26850         hash: extend module to deal with non-pointer keys
26851         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26852         but that allows insertion of non-pointer entries.
26853         Do not disallow an ENTRY value of NULL.
26854         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26855         * lib/hash.h (hash_insert0): Declare.
26856
26857 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26858
26859         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26860         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26861         not present (i.e. with autoconf 2.59 and when using gettextize, not
26862         gnulib), require AC_GNU_SOURCE instead.
26863
26864 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26865
26866         idpriv-drop: Fix tests.
26867         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26868         not to the test-idpriv-droptemp program.
26869
26870 2010-06-29  Bruno Haible  <bruno@clisp.org>
26871
26872         string: Fix syntax error with g++ 2.96.
26873         * lib/string.in.h (__pure__): Remove definition.
26874         (_GL_ATTRIBUTE_PURE): New macro.
26875         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26876         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26877         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26878
26879 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26880
26881         unitypes: Fix bug introduced on 2010-05-18.
26882         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26883
26884 2010-06-22  Eric Blake  <eblake@redhat.com>
26885
26886         memmem: slight optimization
26887         * lib/str-two-way.h (critical_factorization): Update comments.
26888         Reduce work during factorization phase.
26889         Reported by Carlos Bueno <carlos@bueno.org>.
26890
26891 2010-06-21  Bruno Haible  <bruno@clisp.org>
26892
26893         Fix HAVE_CALLOC_POSIX misnomer.
26894         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26895         !HAVE_CALLOC_POSIX.
26896         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26897         HAVE_CALLOC_POSIX.
26898         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26899         instead of HAVE_CALLOC_POSIX.
26900         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26901         HAVE_CALLOC_POSIX.
26902
26903         Use modern idiom for calloc() replacement.
26904         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26905         AC_FUNC_CALLOC.
26906         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26907         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26908         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26909         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26910         (gl_REPLACE_CALLOC): New macro.
26911
26912 2010-06-21  Bruno Haible  <bruno@clisp.org>
26913
26914         Fix HAVE_REALLOC_POSIX misnomer.
26915         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26916         !HAVE_REALLOC_POSIX.
26917         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26918         HAVE_REALLOC_POSIX.
26919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26920         instead of HAVE_REALLOC_POSIX.
26921         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26922         HAVE_REALLOC_POSIX.
26923
26924         Use modern idiom for realloc() replacement.
26925         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26926         AC_FUNC_REALLOC.
26927         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
26928         Autoconf's AC_FUNC_REALLOC.
26929         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26930         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
26931         (gl_REPLACE_REALLOC): New macro.
26932         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26933
26934 2010-06-21  Bruno Haible  <bruno@clisp.org>
26935
26936         Fix HAVE_MALLOC_POSIX misnomer.
26937         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
26938         !HAVE_MALLOC_POSIX.
26939         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
26940         HAVE_MALLOC_POSIX.
26941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
26942         instead of HAVE_MALLOC_POSIX.
26943         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
26944         HAVE_MALLOC_POSIX.
26945
26946         Use modern idiom for malloc() replacement.
26947         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
26948         AC_FUNC_MALLOC.
26949         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
26950         Autoconf's AC_FUNC_MALLOC.
26951         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26952         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
26953         (gl_REPLACE_MALLOC): New macro.
26954         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26955
26956 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
26957
26958         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
26959         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
26960         This macro takes 3 arguments, not 4.
26961
26962 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
26963
26964         ipv6: fix detection under mingw
26965         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
26966         in6_addr.
26967
26968 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
26969
26970         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
26971         that strtod() works when cross-compiling to a glibc version known
26972         to work.
26973
26974 2010-06-15  Bruno Haible  <bruno@clisp.org>
26975
26976         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
26977
26978 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
26979
26980         select: Correct timeout.
26981         * lib/select.c (rpl_select): Compute wait_timeout correctly.
26982
26983 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26984
26985         git-version-gen: init shell var to avoid env var influence
26986         * build-aux/git-version-gen (v): Init shell var to empty.
26987
26988 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
26989
26990         priv-set: Don't assume that priv.h exists merely because getppriv does.
26991         See Jan Andersen's bug report about AIX 5L in
26992         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
26993         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
26994         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
26995         * lib/priv-set.h: Likewise.
26996         * tests/test-priv-set.c: Likewise.
26997
26998 2010-06-13  Bruno Haible  <bruno@clisp.org>
26999
27000         relocatable: Make it easier to test whether to install wrappers.
27001         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27002         RELOCATABLE_VIA_WRAPPER.
27003
27004 2010-06-13  Bruno Haible  <bruno@clisp.org>
27005
27006         gnulib-tool: Display specified modules and dependencies differently.
27007         * gnulib-tool (func_show_module_list): New function.
27008         (func_import, func_create_testdir): Invoke it.
27009         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27010
27011 2010-06-13  Bruno Haible  <bruno@clisp.org>
27012
27013         gnulib-tool: Align code of func_import and func_create_testdir.
27014         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27015         specified_modules.
27016
27017 2010-06-12  Jim Meyering  <meyering@redhat.com>
27018
27019         test-inttostr: avoid spurious failure on Solaris 9
27020         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27021         to accept "%ju".  Reported by Bruno Haible.
27022
27023 2010-06-11  Jim Meyering  <meyering@redhat.com>
27024
27025         test-sys_socket: mark variables as used more readably
27026         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27027         as "used" explicitly via (void) statement casts.  This is more
27028         readable than using them in an artificial return expression.
27029         Suggestion from Bruno Haible.
27030
27031 2010-06-11  Bruno Haible  <bruno@clisp.org>
27032
27033         Avoid some more warnings from "gcc -Wwrite-strings".
27034         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27035         to 'const char *'.
27036         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27037         * tests/test-c-strcasestr.c (main): Likewise.
27038         * tests/test-mbscasestr1.c (main): Likewise.
27039         * tests/test-mbscasestr2.c (main): Likewise.
27040         * tests/test-memmem.c (main): Likewise.
27041         * tests/test-strstr.c (main): Likewise.
27042         * tests/test-strcasestr.c (main): Likewise.
27043
27044 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27045
27046         init.sh: change framework_failure_ to fail with status 99, not 1
27047         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27048         automake's parallel-tests rule that this is an unexpected failure,
27049         even if the test is listed in XFAIL_TESTS.
27050
27051 2010-06-11  Jim Meyering  <meyering@redhat.com>
27052
27053         test-inttostr: avoid warnings about 4-6KB literal strings
27054         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27055         Include "macros.h", for its definition of ASSERT.
27056         (CK): s/assert/ASSERT/
27057         * modules/inttostr-tests (Files): Add macros.h.
27058
27059         init.sh: don't use $ME_ or skip_ before they are defined
27060         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27061         their first uses.  Also hoist their companions: warn_, fail_,
27062         framework_failure_, $stderr_fileno.  Prompted by a patch from
27063         Stefano Lattarini.
27064
27065         test-sys_socket: avoid set-but-not-used warnings from gcc
27066         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27067         avoid warning about set-but-not-used variables.
27068
27069         test-xvasprintf: avoid 'const' discard warnings
27070         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27071         "const" when assigning from literal strings.
27072         (test_xasprintf): Add "void" in function argument list to placate
27073         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27074
27075         tests: avoid compilation warnings in argmatch and exclude tests...
27076         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27077         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27078         Since it always exits, declare with the "noreturn" attribute.
27079         * tests/test-argmatch.c: Likewise.
27080
27081         tests: avoid 'const' discard warnings in mbsstr tests
27082         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27083         * tests/test-mbsstr2.c (main): Likewise.
27084
27085         test-verify: avoid warning from gcc's -Wmissing-declarations
27086         * tests/test-verify.c (function): Declare to be static.
27087
27088         test-inttostr.c: include <string.h> for use of strcmp
27089         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27090
27091         test-linkat: avoid failed assertion on "other" architectures
27092         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27093         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27094         sparc: https://bugs.launchpad.net/bugs/591968
27095
27096 2010-06-11  Jim Meyering  <meyering@redhat.com>
27097
27098         printf.m4: avoid autoconf's "Expanded Before Required" warning
27099         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27100         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27101         autoconf warning.
27102
27103 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27104
27105         Replacement header templates are now named with ".in", not "_".
27106         * doc/gnulib-intro.texi: Correct.
27107
27108 2010-06-10  Jim Meyering  <meyering@redhat.com>
27109
27110         inttostr-tests: depend on snprintf, not snprintf-posix
27111         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27112         snprintf-posix, to avoid this aclocal failure:
27113           missing file gnulib-tests/vasnprintf.c
27114           configure.ac:45: error: expected source file, required through \
27115           AC_LIBSOURCES, not found
27116
27117 2010-06-10  Jim Meyering  <meyering@redhat.com>
27118
27119         inttostr: add a new function, inttostr, and tests
27120         The namesake function was not available.  The existence of the
27121         template file, inttostr.c makes its addition nontrivial.
27122         * lib/anytostr.c: Rename from inttostr.c.
27123         (anytostr): Rename from inttostr.
27124         * lib/inttostr.c: New file.
27125         * modules/inttostr (Files): Add anytostr.c.
27126         (Makefile.am): Set lib_SOURCES instead of ...
27127         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27128         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27129         * lib/offtostr.c: Likewise.
27130         * lib/uinttostr.c: Likewise.
27131         * lib/umaxtostr.c: Likewise.
27132         * modules/inttostr-tests: New file.
27133         * tests/test-inttostr.c: New file.  Test these functions.
27134
27135 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27136             Bruno Haible  <bruno@clisp.org>
27137
27138         Add "Extending Gnulib" chapter to manual.
27139         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27140         chapter.
27141         (Extending Gnulib): New chapter.
27142         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27143         chapter.
27144
27145 2010-06-09  Bruno Haible  <bruno@clisp.org>
27146
27147         Avoid relocwrapper link errors due to gnulib replacement functions.
27148         * lib/areadlink.c: Use the system's malloc, realloc functions.
27149         (areadlink): Set errno to ENOMEM explicitly.
27150         * modules/areadlink (Depends-on): Remove malloc-posix.
27151         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27152
27153 2010-06-09  Bruno Haible  <bruno@clisp.org>
27154
27155         Avoid relocwrapper link errors due to gnulib replacement functions.
27156         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27157         * lib/malloca.c: Likewise.
27158         * lib/relocatable.c: Likewise.
27159         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27160         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27161         * lib/setenv.c: Use the system's malloc, realloc functions.
27162         * lib/strerror.c: Use the system's sprintf function.
27163         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27164
27165 2010-06-04  Bruno Haible  <bruno@clisp.org>
27166
27167         Prefer documented low-level autoconf macro names.
27168         * m4/lib-link.m4: Use m4_translit instead of translit.
27169         * m4/environ.m4: Likewise.
27170         * m4/mathfunc.m4: Likewise.
27171         * m4/onceonly.m4: Likewise.
27172         * m4/stdint.m4: Likewise.
27173         Suggested by Eric Blake.
27174
27175 2010-06-04  Martin Lambers  <marlam@marlam.de>
27176             Bruno Haible  <bruno@clisp.org>
27177
27178         havelib: Allow library names with '+' characters.
27179         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27180         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27181
27182 2010-06-09  Bruno Haible  <bruno@clisp.org>
27183
27184         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27185         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27186         realloc failed.
27187
27188 2010-06-08  Peter Simons  <simons@cryp.to>
27189
27190         maint.mk: make the news-check rule more configurable
27191         * top/maint.mk (news-check-lines-spec): New variable.
27192         (news-check): Use "sed -n 1,10p" in place of "head".
27193
27194 2010-06-07  Jim Meyering  <meyering@redhat.com>
27195
27196         do-release-commit-and-tag: fix typo in --help
27197         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27198
27199         regex: avoid new dead-code warning with gcc-4.6.0
27200         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27201         if-block containing a while-loop.  It's been unused for at least
27202         5 years.
27203
27204 2010-06-05  Bruno Haible  <bruno@clisp.org>
27205
27206         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27207         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27208
27209 2010-06-04  Bruno Haible  <bruno@clisp.org>
27210
27211         Update to GNU gettext 0.18.1.
27212         * modules/gettext (configure.ac): Require gettext infrastructure from
27213         version 0.18.1.
27214
27215 2010-06-03  Bruno Haible  <bruno@clisp.org>
27216
27217         Don't use AC_LIBOBJ with file names in subdirectories.
27218         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27219         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27220         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27221         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27222         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27223         gl_LIBUNISTRING_LIBSOURCE.
27224         (Makefile.am): Augment lib_SOURCES here, conditionally.
27225         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27226
27227 2010-06-03  Bruno Haible  <bruno@clisp.org>
27228
27229         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27230         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27231         expansion does not end with a newline.
27232         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27233         unnecessary newline.
27234
27235 2010-06-03  Bruno Haible  <bruno@clisp.org>
27236
27237         Reduce dependencies.
27238         * tests/test-quotearg.h: New file, extracted from
27239         tests/test-quotearg.c.
27240         * tests/test-quotearg-simple.c: New file, extracted from
27241         tests/test-quotearg.c.
27242         * tests/test-quotearg.c: Don't include <ctype.h>.
27243         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27244         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27245         use_quote_double_quotes, use_quotearg_colon): Moved to
27246         tests/test-quotearg.h.
27247         (results_g, flag_results, custom_quotes, custom_results): Moved
27248         to tests/test-quotearg-simple.c.
27249         (main): Moved the part that does not depend on gettext to
27250         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27251         performed.
27252         * modules/quotearg-simple: New file.
27253         * modules/quotearg-simple-tests: New file.
27254         * modules/quotearg (Depends-on): Add quotearg-simple.
27255         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27256         (Files): Add tests/test-quotearg.h.
27257         Reported by Paolo Bonzini.
27258
27259 2010-06-03  Bruno Haible  <bruno@clisp.org>
27260
27261         Reduce dependencies.
27262         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27263
27264 2010-06-03  Bruno Haible  <bruno@clisp.org>
27265
27266         time: Undefine more broken macros.
27267         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27268         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27269         Reported by Eric Blake.
27270
27271 2010-06-03  Bruno Haible  <bruno@clisp.org>
27272
27273         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27274         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27275         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27276         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27277         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27278         Reported by Ludovic Courtès <ludo@gnu.org>.
27279
27280 2010-06-02  Eric Blake  <eblake@redhat.com>
27281
27282         time: work with mingw + pthreads-win32 library
27283         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27284         if timespec is defined only in pthread.h.
27285         * modules/time (Makefile.am): Substitute it.
27286         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27287         <pthread.h>, when needed.
27288         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27289         from the library.
27290
27291 2010-05-31  Bruno Haible  <bruno@clisp.org>
27292
27293         Avoid expanding two macros in the wrong order.
27294         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27295         gl_LIBUNISTRING if it is defined.
27296         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27297         autoconf >= 2.64.
27298         Reported by Ludovic Courtès <ludo@gnu.org>.
27299
27300 2010-05-27  Jim Meyering  <meyering@redhat.com>
27301
27302         maint.mk: also prohibit "#undef" of always-defined symbols
27303         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27304         Allow more than one space before the symbol name.
27305         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27306         the regexp uses alternation.
27307
27308 2010-05-26  Eric Blake  <eblake@redhat.com>
27309
27310         maint.mk: avoid echo -e
27311         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27312         Convert all uses of echo -* to printf.
27313         Reported by Matthias Bolte.
27314
27315 2010-05-25  Bruno Haible  <bruno@clisp.org>
27316
27317         Update to GNU gettext 0.18, part 2.
27318         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27319         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27320
27321 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27322
27323         Add missing include in test-pwrite.c.
27324         * tests/test-pwrite.c: Include string.h, for strcmp.
27325
27326 2010-05-24  Bruno Haible  <bruno@clisp.org>
27327
27328         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27329
27330 2010-05-24  Bruno Haible  <bruno@clisp.org>
27331
27332         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27333         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27334         iconveh_error argument.
27335         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27336         U_STRCONV_TO_LOCALE.
27337         * lib/unistr/u16-strcoll.c: Likewise.
27338         * lib/unistr/u32-strcoll.c: Likewise.
27339         * modules/unistr/u8-strcoll (Depends-on): Add
27340         uniconv/u8-strconv-to-enc, localcharset. Remove
27341         uniconv/u8-strconv-to-locale.
27342         (configure.ac): Bump version number.
27343         * modules/unistr/u16-strcoll (Depends-on): Add
27344         uniconv/u16-strconv-to-enc, localcharset. Remove
27345         uniconv/u16-strconv-to-locale.
27346         (configure.ac): Bump version number.
27347         * modules/unistr/u32-strcoll (Depends-on): Add
27348         uniconv/u32-strconv-to-enc, localcharset. Remove
27349         uniconv/u32-strconv-to-locale.
27350         (configure.ac): Bump version number.
27351
27352 2010-05-24  Bruno Haible  <bruno@clisp.org>
27353
27354         Avoid a test failure on NetBSD 5.0.
27355         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27356         an iconv() bug.
27357
27358 2010-05-24  Bruno Haible  <bruno@clisp.org>
27359
27360         Adjust #include directive style.
27361         * modules/regex (Includes): Recommend to write <regex.h>.
27362
27363 2010-05-24  Bruno Haible  <bruno@clisp.org>
27364
27365         regex: Don't require alloca.
27366         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27367         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27368         only inside if (0).
27369
27370 2010-05-23  Jim Meyering  <meyering@redhat.com>
27371
27372         test-renameat.c: include <sys/stat.h>
27373         * tests/test-renameat.c: Include <sys/stat.h>; required for
27374         definition of S_IS* macros.
27375
27376 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27377
27378         Update maintainer documentation for 'relocatable-prog' module.
27379         * doc/relocatable-maint.texi: Update.
27380         Comments by Bruno Haible.
27381
27382 2010-05-23  Bruno Haible  <bruno@clisp.org>
27383
27384         git-merge-changelog: Enable --split-merged-entry by default.
27385         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27386         (usage): Don't mention this option any more.
27387         Reported by Ralf Wildenhues.
27388
27389 2010-05-23  Jim Meyering  <meyering@redhat.com>
27390
27391         test-pwrite: do not leave behind a test file named "out"
27392         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27393         The trivial-looking use of init.sh is really necessary.
27394         It ensures that the temporary file, "out", is created in
27395         a temporary directory, and removed upon termination.
27396         * tests/test-pwrite.sh: Re-add file.
27397         * modules/pwrite-tests: Reference it.
27398
27399 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27400
27401         Fix output redirection buglet in init.sh.
27402         * tests/init.sh: Fix redirection of stderr.
27403
27404 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27405
27406         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27407
27408 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27409
27410         * modules/valgrind-tests: New file.
27411         * m4/valgrind-tests.m4: New file.
27412         * doc/valgrind-tests.texi: New file.
27413         * doc/gnulib.texi (Running self-tests under valgrind): New
27414         section.
27415
27416 2010-05-19  Bruno Haible  <bruno@clisp.org>
27417
27418         Clean up dead code in recent commit.
27419         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27420         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27421         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27422         Suggested by Paolo Bonzini.
27423
27424 2010-05-19  Bruno Haible  <bruno@clisp.org>
27425
27426         Avoid valgrind error reports from libunistring.
27427         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27428         * modules/libunistring (Files): Add it.
27429         * modules/libunistring-optional (Files): Likewise.
27430
27431 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27432             Bruno Haible  <bruno@clisp.org>
27433
27434         New module 'libunistring-optional'.
27435         * modules/libunistring-optional: New file.
27436         * m4/libunistring-base.m4: New file.
27437         * m4/libunistring-optional.m4: New file.
27438         * lib/unicase.in.h: Renamed from lib/unicase.h.
27439         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27440         * lib/unictype.in.h: Renamed from lib/unictype.h.
27441         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27442         * lib/uniname.in.h: Renamed from lib/uniname.h.
27443         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27444         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27445         * lib/unistr.in.h: Renamed from lib/unistr.h.
27446         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27447         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27448         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27449         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27450         gl_LIBUNISTRING. If the library was found, determine the installed
27451         version and set LIBUNISTRING_VERSION.
27452         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27453         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27454         handle a configuration option --with-included-libunistring.
27455         * modules/libunistring (Files): Add m4/absolute-header.m4.
27456         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27457         Add m4/libunistring-base.m4.
27458         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27459         (Makefile.am): Build unicase.h from unicase.in.h.
27460         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27461         Add m4/libunistring-base.m4.
27462         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27463         (Makefile.am): Build uniconv.h from uniconv.in.h.
27464         * modules/unictype/base (Files): Use unictype.in.h instead of
27465         unictype.h. Add m4/libunistring-base.m4.
27466         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27467         (Makefile.am): Build unictype.h from unictype.in.h.
27468         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27469         Add m4/libunistring-base.m4.
27470         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27471         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27472         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27473         Add m4/libunistring-base.m4.
27474         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27475         (Makefile.am): Build uniname.h from uniname.in.h.
27476         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27477         Add m4/libunistring-base.m4.
27478         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27479         (Makefile.am): Build uninorm.h from uninorm.in.h.
27480         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27481         unistdio.h. Add m4/libunistring-base.m4.
27482         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27483         (Makefile.am): Build unistdio.h from unistdio.in.h.
27484         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27485         Add m4/libunistring-base.m4.
27486         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27487         (Makefile.am): Build unistr.h from unistr.in.h.
27488         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27489         Add m4/libunistring-base.m4.
27490         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27491         (Makefile.am): Build unitypes.h from unitypes.in.h.
27492         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27493         Add m4/libunistring-base.m4.
27494         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27495         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27496         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27497         uniwidth.h. Add m4/libunistring-base.m4.
27498         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27499         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27500         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27501         instead of augmenting lib_SOURCES.
27502         * modules/unicase/empty-suffix-context: Likewise.
27503         * modules/unicase/locale-language: Likewise.
27504         * modules/unicase/tolower: Likewise.
27505         * modules/unicase/totitle: Likewise.
27506         * modules/unicase/toupper: Likewise.
27507         * modules/unicase/u8-casecmp: Likewise.
27508         * modules/unicase/u8-casecoll: Likewise.
27509         * modules/unicase/u8-casefold: Likewise.
27510         * modules/unicase/u8-casexfrm: Likewise.
27511         * modules/unicase/u8-ct-casefold: Likewise.
27512         * modules/unicase/u8-ct-tolower: Likewise.
27513         * modules/unicase/u8-ct-totitle: Likewise.
27514         * modules/unicase/u8-ct-toupper: Likewise.
27515         * modules/unicase/u8-is-cased: Likewise.
27516         * modules/unicase/u8-is-casefolded: Likewise.
27517         * modules/unicase/u8-is-lowercase: Likewise.
27518         * modules/unicase/u8-is-titlecase: Likewise.
27519         * modules/unicase/u8-is-uppercase: Likewise.
27520         * modules/unicase/u8-prefix-context: Likewise.
27521         * modules/unicase/u8-suffix-context: Likewise.
27522         * modules/unicase/u8-tolower: Likewise.
27523         * modules/unicase/u8-totitle: Likewise.
27524         * modules/unicase/u8-toupper: Likewise.
27525         * modules/unicase/u16-casecmp: Likewise.
27526         * modules/unicase/u16-casecoll: Likewise.
27527         * modules/unicase/u16-casefold: Likewise.
27528         * modules/unicase/u16-casexfrm: Likewise.
27529         * modules/unicase/u16-ct-casefold: Likewise.
27530         * modules/unicase/u16-ct-tolower: Likewise.
27531         * modules/unicase/u16-ct-totitle: Likewise.
27532         * modules/unicase/u16-ct-toupper: Likewise.
27533         * modules/unicase/u16-is-cased: Likewise.
27534         * modules/unicase/u16-is-casefolded: Likewise.
27535         * modules/unicase/u16-is-lowercase: Likewise.
27536         * modules/unicase/u16-is-titlecase: Likewise.
27537         * modules/unicase/u16-is-uppercase: Likewise.
27538         * modules/unicase/u16-prefix-context: Likewise.
27539         * modules/unicase/u16-suffix-context: Likewise.
27540         * modules/unicase/u16-tolower: Likewise.
27541         * modules/unicase/u16-totitle: Likewise.
27542         * modules/unicase/u16-toupper: Likewise.
27543         * modules/unicase/u32-casecmp: Likewise.
27544         * modules/unicase/u32-casecoll: Likewise.
27545         * modules/unicase/u32-casefold: Likewise.
27546         * modules/unicase/u32-casexfrm: Likewise.
27547         * modules/unicase/u32-ct-casefold: Likewise.
27548         * modules/unicase/u32-ct-tolower: Likewise.
27549         * modules/unicase/u32-ct-totitle: Likewise.
27550         * modules/unicase/u32-ct-toupper: Likewise.
27551         * modules/unicase/u32-is-cased: Likewise.
27552         * modules/unicase/u32-is-casefolded: Likewise.
27553         * modules/unicase/u32-is-lowercase: Likewise.
27554         * modules/unicase/u32-is-titlecase: Likewise.
27555         * modules/unicase/u32-is-uppercase: Likewise.
27556         * modules/unicase/u32-prefix-context: Likewise.
27557         * modules/unicase/u32-suffix-context: Likewise.
27558         * modules/unicase/u32-tolower: Likewise.
27559         * modules/unicase/u32-totitle: Likewise.
27560         * modules/unicase/u32-toupper: Likewise.
27561         * modules/unicase/ulc-casecmp: Likewise.
27562         * modules/unicase/ulc-casecoll: Likewise.
27563         * modules/unicase/ulc-casexfrm: Likewise.
27564         * modules/uniconv/u8-conv-from-enc: Likewise.
27565         * modules/uniconv/u8-conv-to-enc: Likewise.
27566         * modules/uniconv/u8-strconv-from-enc: Likewise.
27567         * modules/uniconv/u8-strconv-from-locale: Likewise.
27568         * modules/uniconv/u8-strconv-to-enc: Likewise.
27569         * modules/uniconv/u8-strconv-to-locale: Likewise.
27570         * modules/uniconv/u16-conv-from-enc: Likewise.
27571         * modules/uniconv/u16-conv-to-enc: Likewise.
27572         * modules/uniconv/u16-strconv-from-enc: Likewise.
27573         * modules/uniconv/u16-strconv-from-locale: Likewise.
27574         * modules/uniconv/u16-strconv-to-enc: Likewise.
27575         * modules/uniconv/u16-strconv-to-locale: Likewise.
27576         * modules/uniconv/u32-conv-from-enc: Likewise.
27577         * modules/uniconv/u32-conv-to-enc: Likewise.
27578         * modules/uniconv/u32-strconv-from-enc: Likewise.
27579         * modules/uniconv/u32-strconv-from-locale: Likewise.
27580         * modules/uniconv/u32-strconv-to-enc: Likewise.
27581         * modules/uniconv/u32-strconv-to-locale: Likewise.
27582         * modules/unictype/bidicategory-byname: Likewise.
27583         * modules/unictype/bidicategory-name: Likewise.
27584         * modules/unictype/bidicategory-of: Likewise.
27585         * modules/unictype/bidicategory-test: Likewise.
27586         * modules/unictype/block-list: Likewise.
27587         * modules/unictype/block-test: Likewise.
27588         * modules/unictype/category-C: Likewise.
27589         * modules/unictype/category-Cc: Likewise.
27590         * modules/unictype/category-Cf: Likewise.
27591         * modules/unictype/category-Cn: Likewise.
27592         * modules/unictype/category-Co: Likewise.
27593         * modules/unictype/category-Cs: Likewise.
27594         * modules/unictype/category-L: Likewise.
27595         * modules/unictype/category-Ll: Likewise.
27596         * modules/unictype/category-Lm: Likewise.
27597         * modules/unictype/category-Lo: Likewise.
27598         * modules/unictype/category-Lt: Likewise.
27599         * modules/unictype/category-Lu: Likewise.
27600         * modules/unictype/category-M: Likewise.
27601         * modules/unictype/category-Mc: Likewise.
27602         * modules/unictype/category-Me: Likewise.
27603         * modules/unictype/category-Mn: Likewise.
27604         * modules/unictype/category-N: Likewise.
27605         * modules/unictype/category-Nd: Likewise.
27606         * modules/unictype/category-Nl: Likewise.
27607         * modules/unictype/category-No: Likewise.
27608         * modules/unictype/category-P: Likewise.
27609         * modules/unictype/category-Pc: Likewise.
27610         * modules/unictype/category-Pd: Likewise.
27611         * modules/unictype/category-Pe: Likewise.
27612         * modules/unictype/category-Pf: Likewise.
27613         * modules/unictype/category-Pi: Likewise.
27614         * modules/unictype/category-Po: Likewise.
27615         * modules/unictype/category-Ps: Likewise.
27616         * modules/unictype/category-S: Likewise.
27617         * modules/unictype/category-Sc: Likewise.
27618         * modules/unictype/category-Sk: Likewise.
27619         * modules/unictype/category-Sm: Likewise.
27620         * modules/unictype/category-So: Likewise.
27621         * modules/unictype/category-Z: Likewise.
27622         * modules/unictype/category-Zl: Likewise.
27623         * modules/unictype/category-Zp: Likewise.
27624         * modules/unictype/category-Zs: Likewise.
27625         * modules/unictype/category-and: Likewise.
27626         * modules/unictype/category-and-not: Likewise.
27627         * modules/unictype/category-byname: Likewise.
27628         * modules/unictype/category-name: Likewise.
27629         * modules/unictype/category-none: Likewise.
27630         * modules/unictype/category-of: Likewise.
27631         * modules/unictype/category-or: Likewise.
27632         * modules/unictype/category-test: Likewise.
27633         * modules/unictype/combining-class: Likewise.
27634         * modules/unictype/ctype-alnum: Likewise.
27635         * modules/unictype/ctype-alpha: Likewise.
27636         * modules/unictype/ctype-blank: Likewise.
27637         * modules/unictype/ctype-cntrl: Likewise.
27638         * modules/unictype/ctype-digit: Likewise.
27639         * modules/unictype/ctype-graph: Likewise.
27640         * modules/unictype/ctype-lower: Likewise.
27641         * modules/unictype/ctype-print: Likewise.
27642         * modules/unictype/ctype-punct: Likewise.
27643         * modules/unictype/ctype-space: Likewise.
27644         * modules/unictype/ctype-upper: Likewise.
27645         * modules/unictype/ctype-xdigit: Likewise.
27646         * modules/unictype/decimal-digit: Likewise.
27647         * modules/unictype/digit: Likewise.
27648         * modules/unictype/mirror: Likewise.
27649         * modules/unictype/numeric: Likewise.
27650         * modules/unictype/property-alphabetic: Likewise.
27651         * modules/unictype/property-ascii-hex-digit: Likewise.
27652         * modules/unictype/property-bidi-arabic-digit: Likewise.
27653         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27654         * modules/unictype/property-bidi-block-separator: Likewise.
27655         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27656         * modules/unictype/property-bidi-common-separator: Likewise.
27657         * modules/unictype/property-bidi-control: Likewise.
27658         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27659         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27660         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27661         * modules/unictype/property-bidi-european-digit: Likewise.
27662         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27663         * modules/unictype/property-bidi-left-to-right: Likewise.
27664         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27665         * modules/unictype/property-bidi-other-neutral: Likewise.
27666         * modules/unictype/property-bidi-pdf: Likewise.
27667         * modules/unictype/property-bidi-segment-separator: Likewise.
27668         * modules/unictype/property-bidi-whitespace: Likewise.
27669         * modules/unictype/property-byname: Likewise.
27670         * modules/unictype/property-combining: Likewise.
27671         * modules/unictype/property-composite: Likewise.
27672         * modules/unictype/property-currency-symbol: Likewise.
27673         * modules/unictype/property-dash: Likewise.
27674         * modules/unictype/property-decimal-digit: Likewise.
27675         * modules/unictype/property-default-ignorable-code-point: Likewise.
27676         * modules/unictype/property-deprecated: Likewise.
27677         * modules/unictype/property-diacritic: Likewise.
27678         * modules/unictype/property-extender: Likewise.
27679         * modules/unictype/property-format-control: Likewise.
27680         * modules/unictype/property-grapheme-base: Likewise.
27681         * modules/unictype/property-grapheme-extend: Likewise.
27682         * modules/unictype/property-grapheme-link: Likewise.
27683         * modules/unictype/property-hex-digit: Likewise.
27684         * modules/unictype/property-hyphen: Likewise.
27685         * modules/unictype/property-id-continue: Likewise.
27686         * modules/unictype/property-id-start: Likewise.
27687         * modules/unictype/property-ideographic: Likewise.
27688         * modules/unictype/property-ids-binary-operator: Likewise.
27689         * modules/unictype/property-ids-trinary-operator: Likewise.
27690         * modules/unictype/property-ignorable-control: Likewise.
27691         * modules/unictype/property-iso-control: Likewise.
27692         * modules/unictype/property-join-control: Likewise.
27693         * modules/unictype/property-left-of-pair: Likewise.
27694         * modules/unictype/property-line-separator: Likewise.
27695         * modules/unictype/property-logical-order-exception: Likewise.
27696         * modules/unictype/property-lowercase: Likewise.
27697         * modules/unictype/property-math: Likewise.
27698         * modules/unictype/property-non-break: Likewise.
27699         * modules/unictype/property-not-a-character: Likewise.
27700         * modules/unictype/property-numeric: Likewise.
27701         * modules/unictype/property-other-alphabetic: Likewise.
27702         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27703         * modules/unictype/property-other-grapheme-extend: Likewise.
27704         * modules/unictype/property-other-id-continue: Likewise.
27705         * modules/unictype/property-other-id-start: Likewise.
27706         * modules/unictype/property-other-lowercase: Likewise.
27707         * modules/unictype/property-other-math: Likewise.
27708         * modules/unictype/property-other-uppercase: Likewise.
27709         * modules/unictype/property-paired-punctuation: Likewise.
27710         * modules/unictype/property-paragraph-separator: Likewise.
27711         * modules/unictype/property-pattern-syntax: Likewise.
27712         * modules/unictype/property-pattern-white-space: Likewise.
27713         * modules/unictype/property-private-use: Likewise.
27714         * modules/unictype/property-punctuation: Likewise.
27715         * modules/unictype/property-quotation-mark: Likewise.
27716         * modules/unictype/property-radical: Likewise.
27717         * modules/unictype/property-sentence-terminal: Likewise.
27718         * modules/unictype/property-soft-dotted: Likewise.
27719         * modules/unictype/property-space: Likewise.
27720         * modules/unictype/property-terminal-punctuation: Likewise.
27721         * modules/unictype/property-test: Likewise.
27722         * modules/unictype/property-titlecase: Likewise.
27723         * modules/unictype/property-unassigned-code-value: Likewise.
27724         * modules/unictype/property-unified-ideograph: Likewise.
27725         * modules/unictype/property-uppercase: Likewise.
27726         * modules/unictype/property-variation-selector: Likewise.
27727         * modules/unictype/property-white-space: Likewise.
27728         * modules/unictype/property-xid-continue: Likewise.
27729         * modules/unictype/property-xid-start: Likewise.
27730         * modules/unictype/property-zero-width: Likewise.
27731         * modules/unictype/scripts: Likewise.
27732         * modules/unictype/syntax-c-ident: Likewise.
27733         * modules/unictype/syntax-c-whitespace: Likewise.
27734         * modules/unictype/syntax-java-ident: Likewise.
27735         * modules/unictype/syntax-java-whitespace: Likewise.
27736         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27737         * modules/unilbrk/u8-width-linebreaks: Likewise.
27738         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27739         * modules/unilbrk/u16-width-linebreaks: Likewise.
27740         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27741         * modules/unilbrk/u32-width-linebreaks: Likewise.
27742         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27743         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27744         * modules/uniname/uniname: Likewise.
27745         * modules/uninorm/canonical-decomposition: Likewise.
27746         * modules/uninorm/composition: Likewise.
27747         * modules/uninorm/decomposing-form: Likewise.
27748         * modules/uninorm/decomposition: Likewise.
27749         * modules/uninorm/filter: Likewise.
27750         * modules/uninorm/nfc: Likewise.
27751         * modules/uninorm/nfd: Likewise.
27752         * modules/uninorm/nfkc: Likewise.
27753         * modules/uninorm/nfkd: Likewise.
27754         * modules/uninorm/u8-normalize: Likewise.
27755         * modules/uninorm/u8-normcmp: Likewise.
27756         * modules/uninorm/u8-normcoll: Likewise.
27757         * modules/uninorm/u8-normxfrm: Likewise.
27758         * modules/uninorm/u16-normalize: Likewise.
27759         * modules/uninorm/u16-normcmp: Likewise.
27760         * modules/uninorm/u16-normcoll: Likewise.
27761         * modules/uninorm/u16-normxfrm: Likewise.
27762         * modules/uninorm/u32-normalize: Likewise.
27763         * modules/uninorm/u32-normcmp: Likewise.
27764         * modules/uninorm/u32-normcoll: Likewise.
27765         * modules/uninorm/u32-normxfrm: Likewise.
27766         * modules/unistdio/u8-asnprintf: Likewise.
27767         * modules/unistdio/u8-asprintf: Likewise.
27768         * modules/unistdio/u8-snprintf: Likewise.
27769         * modules/unistdio/u8-sprintf: Likewise.
27770         * modules/unistdio/u8-u8-asnprintf: Likewise.
27771         * modules/unistdio/u8-u8-asprintf: Likewise.
27772         * modules/unistdio/u8-u8-snprintf: Likewise.
27773         * modules/unistdio/u8-u8-sprintf: Likewise.
27774         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27775         * modules/unistdio/u8-u8-vasprintf: Likewise.
27776         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27777         * modules/unistdio/u8-u8-vsprintf: Likewise.
27778         * modules/unistdio/u8-vasnprintf: Likewise.
27779         * modules/unistdio/u8-vasprintf: Likewise.
27780         * modules/unistdio/u8-vsnprintf: Likewise.
27781         * modules/unistdio/u8-vsprintf: Likewise.
27782         * modules/unistdio/u16-asnprintf: Likewise.
27783         * modules/unistdio/u16-asprintf: Likewise.
27784         * modules/unistdio/u16-snprintf: Likewise.
27785         * modules/unistdio/u16-sprintf: Likewise.
27786         * modules/unistdio/u16-u16-asnprintf: Likewise.
27787         * modules/unistdio/u16-u16-asprintf: Likewise.
27788         * modules/unistdio/u16-u16-snprintf: Likewise.
27789         * modules/unistdio/u16-u16-sprintf: Likewise.
27790         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27791         * modules/unistdio/u16-u16-vasprintf: Likewise.
27792         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27793         * modules/unistdio/u16-u16-vsprintf: Likewise.
27794         * modules/unistdio/u16-vasnprintf: Likewise.
27795         * modules/unistdio/u16-vasprintf: Likewise.
27796         * modules/unistdio/u16-vsnprintf: Likewise.
27797         * modules/unistdio/u16-vsprintf: Likewise.
27798         * modules/unistdio/u32-asnprintf: Likewise.
27799         * modules/unistdio/u32-asprintf: Likewise.
27800         * modules/unistdio/u32-snprintf: Likewise.
27801         * modules/unistdio/u32-sprintf: Likewise.
27802         * modules/unistdio/u32-u32-asnprintf: Likewise.
27803         * modules/unistdio/u32-u32-asprintf: Likewise.
27804         * modules/unistdio/u32-u32-snprintf: Likewise.
27805         * modules/unistdio/u32-u32-sprintf: Likewise.
27806         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27807         * modules/unistdio/u32-u32-vasprintf: Likewise.
27808         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27809         * modules/unistdio/u32-u32-vsprintf: Likewise.
27810         * modules/unistdio/u32-vasnprintf: Likewise.
27811         * modules/unistdio/u32-vasprintf: Likewise.
27812         * modules/unistdio/u32-vsnprintf: Likewise.
27813         * modules/unistdio/u32-vsprintf: Likewise.
27814         * modules/unistdio/ulc-asnprintf: Likewise.
27815         * modules/unistdio/ulc-asprintf: Likewise.
27816         * modules/unistdio/ulc-fprintf: Likewise.
27817         * modules/unistdio/ulc-snprintf: Likewise.
27818         * modules/unistdio/ulc-sprintf: Likewise.
27819         * modules/unistdio/ulc-vasnprintf: Likewise.
27820         * modules/unistdio/ulc-vasprintf: Likewise.
27821         * modules/unistdio/ulc-vfprintf: Likewise.
27822         * modules/unistdio/ulc-vsnprintf: Likewise.
27823         * modules/unistdio/ulc-vsprintf: Likewise.
27824         * modules/unistr/u8-check: Likewise.
27825         * modules/unistr/u8-chr: Likewise.
27826         * modules/unistr/u8-cmp: Likewise.
27827         * modules/unistr/u8-cmp2: Likewise.
27828         * modules/unistr/u8-cpy: Likewise.
27829         * modules/unistr/u8-cpy-alloc: Likewise.
27830         * modules/unistr/u8-endswith: Likewise.
27831         * modules/unistr/u8-mblen: Likewise.
27832         * modules/unistr/u8-mbsnlen: Likewise.
27833         * modules/unistr/u8-mbtouc: Likewise.
27834         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27835         * modules/unistr/u8-mbtoucr: Likewise.
27836         * modules/unistr/u8-move: Likewise.
27837         * modules/unistr/u8-next: Likewise.
27838         * modules/unistr/u8-prev: Likewise.
27839         * modules/unistr/u8-set: Likewise.
27840         * modules/unistr/u8-startswith: Likewise.
27841         * modules/unistr/u8-stpcpy: Likewise.
27842         * modules/unistr/u8-stpncpy: Likewise.
27843         * modules/unistr/u8-strcat: Likewise.
27844         * modules/unistr/u8-strchr: Likewise.
27845         * modules/unistr/u8-strcmp: Likewise.
27846         * modules/unistr/u8-strcoll: Likewise.
27847         * modules/unistr/u8-strcpy: Likewise.
27848         * modules/unistr/u8-strcspn: Likewise.
27849         * modules/unistr/u8-strdup: Likewise.
27850         * modules/unistr/u8-strlen: Likewise.
27851         * modules/unistr/u8-strmblen: Likewise.
27852         * modules/unistr/u8-strmbtouc: Likewise.
27853         * modules/unistr/u8-strncat: Likewise.
27854         * modules/unistr/u8-strncmp: Likewise.
27855         * modules/unistr/u8-strncpy: Likewise.
27856         * modules/unistr/u8-strnlen: Likewise.
27857         * modules/unistr/u8-strpbrk: Likewise.
27858         * modules/unistr/u8-strrchr: Likewise.
27859         * modules/unistr/u8-strspn: Likewise.
27860         * modules/unistr/u8-strstr: Likewise.
27861         * modules/unistr/u8-strtok: Likewise.
27862         * modules/unistr/u8-to-u16: Likewise.
27863         * modules/unistr/u8-to-u32: Likewise.
27864         * modules/unistr/u8-uctomb: Likewise.
27865         * modules/unistr/u16-check: Likewise.
27866         * modules/unistr/u16-chr: Likewise.
27867         * modules/unistr/u16-cmp: Likewise.
27868         * modules/unistr/u16-cmp2: Likewise.
27869         * modules/unistr/u16-cpy: Likewise.
27870         * modules/unistr/u16-cpy-alloc: Likewise.
27871         * modules/unistr/u16-endswith: Likewise.
27872         * modules/unistr/u16-mblen: Likewise.
27873         * modules/unistr/u16-mbsnlen: Likewise.
27874         * modules/unistr/u16-mbtouc: Likewise.
27875         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27876         * modules/unistr/u16-mbtoucr: Likewise.
27877         * modules/unistr/u16-move: Likewise.
27878         * modules/unistr/u16-next: Likewise.
27879         * modules/unistr/u16-prev: Likewise.
27880         * modules/unistr/u16-set: Likewise.
27881         * modules/unistr/u16-startswith: Likewise.
27882         * modules/unistr/u16-stpcpy: Likewise.
27883         * modules/unistr/u16-stpncpy: Likewise.
27884         * modules/unistr/u16-strcat: Likewise.
27885         * modules/unistr/u16-strchr: Likewise.
27886         * modules/unistr/u16-strcmp: Likewise.
27887         * modules/unistr/u16-strcoll: Likewise.
27888         * modules/unistr/u16-strcpy: Likewise.
27889         * modules/unistr/u16-strcspn: Likewise.
27890         * modules/unistr/u16-strdup: Likewise.
27891         * modules/unistr/u16-strlen: Likewise.
27892         * modules/unistr/u16-strmblen: Likewise.
27893         * modules/unistr/u16-strmbtouc: Likewise.
27894         * modules/unistr/u16-strncat: Likewise.
27895         * modules/unistr/u16-strncmp: Likewise.
27896         * modules/unistr/u16-strncpy: Likewise.
27897         * modules/unistr/u16-strnlen: Likewise.
27898         * modules/unistr/u16-strpbrk: Likewise.
27899         * modules/unistr/u16-strrchr: Likewise.
27900         * modules/unistr/u16-strspn: Likewise.
27901         * modules/unistr/u16-strstr: Likewise.
27902         * modules/unistr/u16-strtok: Likewise.
27903         * modules/unistr/u16-to-u32: Likewise.
27904         * modules/unistr/u16-to-u8: Likewise.
27905         * modules/unistr/u16-uctomb: Likewise.
27906         * modules/unistr/u32-check: Likewise.
27907         * modules/unistr/u32-chr: Likewise.
27908         * modules/unistr/u32-cmp: Likewise.
27909         * modules/unistr/u32-cmp2: Likewise.
27910         * modules/unistr/u32-cpy: Likewise.
27911         * modules/unistr/u32-cpy-alloc: Likewise.
27912         * modules/unistr/u32-endswith: Likewise.
27913         * modules/unistr/u32-mblen: Likewise.
27914         * modules/unistr/u32-mbsnlen: Likewise.
27915         * modules/unistr/u32-mbtouc: Likewise.
27916         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27917         * modules/unistr/u32-mbtoucr: Likewise.
27918         * modules/unistr/u32-move: Likewise.
27919         * modules/unistr/u32-next: Likewise.
27920         * modules/unistr/u32-prev: Likewise.
27921         * modules/unistr/u32-set: Likewise.
27922         * modules/unistr/u32-startswith: Likewise.
27923         * modules/unistr/u32-stpcpy: Likewise.
27924         * modules/unistr/u32-stpncpy: Likewise.
27925         * modules/unistr/u32-strcat: Likewise.
27926         * modules/unistr/u32-strchr: Likewise.
27927         * modules/unistr/u32-strcmp: Likewise.
27928         * modules/unistr/u32-strcoll: Likewise.
27929         * modules/unistr/u32-strcpy: Likewise.
27930         * modules/unistr/u32-strcspn: Likewise.
27931         * modules/unistr/u32-strdup: Likewise.
27932         * modules/unistr/u32-strlen: Likewise.
27933         * modules/unistr/u32-strmblen: Likewise.
27934         * modules/unistr/u32-strmbtouc: Likewise.
27935         * modules/unistr/u32-strncat: Likewise.
27936         * modules/unistr/u32-strncmp: Likewise.
27937         * modules/unistr/u32-strncpy: Likewise.
27938         * modules/unistr/u32-strnlen: Likewise.
27939         * modules/unistr/u32-strpbrk: Likewise.
27940         * modules/unistr/u32-strrchr: Likewise.
27941         * modules/unistr/u32-strspn: Likewise.
27942         * modules/unistr/u32-strstr: Likewise.
27943         * modules/unistr/u32-strtok: Likewise.
27944         * modules/unistr/u32-to-u16: Likewise.
27945         * modules/unistr/u32-to-u8: Likewise.
27946         * modules/unistr/u32-uctomb: Likewise.
27947         * modules/uniwbrk/u8-wordbreaks: Likewise.
27948         * modules/uniwbrk/u16-wordbreaks: Likewise.
27949         * modules/uniwbrk/u32-wordbreaks: Likewise.
27950         * modules/uniwbrk/ulc-wordbreaks: Likewise.
27951         * modules/uniwbrk/wordbreak-property: Likewise.
27952         * modules/uniwidth/u8-strwidth: Likewise.
27953         * modules/uniwidth/u8-width: Likewise.
27954         * modules/uniwidth/u16-strwidth: Likewise.
27955         * modules/uniwidth/u16-width: Likewise.
27956         * modules/uniwidth/u32-strwidth: Likewise.
27957         * modules/uniwidth/u32-width: Likewise.
27958         * modules/uniwidth/width: Likewise.
27959         * modules/unicase/cased-tests (Makefile.am): Link all test programs
27960         with $(LIBUNISTRING).
27961         * modules/unicase/ignorable-tests: Likewise.
27962         * modules/unicase/locale-language-tests: Likewise.
27963         * modules/unicase/tolower-tests: Likewise.
27964         * modules/unicase/totitle-tests: Likewise.
27965         * modules/unicase/toupper-tests: Likewise.
27966         * modules/unicase/u8-casecmp-tests: Likewise.
27967         * modules/unicase/u8-casecoll-tests: Likewise.
27968         * modules/unicase/u8-casefold-tests: Likewise.
27969         * modules/unicase/u8-is-cased-tests: Likewise.
27970         * modules/unicase/u8-is-casefolded-tests: Likewise.
27971         * modules/unicase/u8-is-lowercase-tests: Likewise.
27972         * modules/unicase/u8-is-titlecase-tests: Likewise.
27973         * modules/unicase/u8-is-uppercase-tests: Likewise.
27974         * modules/unicase/u8-tolower-tests: Likewise.
27975         * modules/unicase/u8-totitle-tests: Likewise.
27976         * modules/unicase/u8-toupper-tests: Likewise.
27977         * modules/unicase/u16-casecmp-tests: Likewise.
27978         * modules/unicase/u16-casecoll-tests: Likewise.
27979         * modules/unicase/u16-casefold-tests: Likewise.
27980         * modules/unicase/u16-is-cased-tests: Likewise.
27981         * modules/unicase/u16-is-casefolded-tests: Likewise.
27982         * modules/unicase/u16-is-lowercase-tests: Likewise.
27983         * modules/unicase/u16-is-titlecase-tests: Likewise.
27984         * modules/unicase/u16-is-uppercase-tests: Likewise.
27985         * modules/unicase/u16-tolower-tests: Likewise.
27986         * modules/unicase/u16-totitle-tests: Likewise.
27987         * modules/unicase/u16-toupper-tests: Likewise.
27988         * modules/unicase/u32-casecmp-tests: Likewise.
27989         * modules/unicase/u32-casecoll-tests: Likewise.
27990         * modules/unicase/u32-casefold-tests: Likewise.
27991         * modules/unicase/u32-is-cased-tests: Likewise.
27992         * modules/unicase/u32-is-casefolded-tests: Likewise.
27993         * modules/unicase/u32-is-lowercase-tests: Likewise.
27994         * modules/unicase/u32-is-titlecase-tests: Likewise.
27995         * modules/unicase/u32-is-uppercase-tests: Likewise.
27996         * modules/unicase/u32-tolower-tests: Likewise.
27997         * modules/unicase/u32-totitle-tests: Likewise.
27998         * modules/unicase/u32-toupper-tests: Likewise.
27999         * modules/unicase/ulc-casecmp-tests: Likewise.
28000         * modules/unicase/ulc-casecoll-tests: Likewise.
28001         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28002         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28003         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28004         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28005         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28006         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28007         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28008         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28009         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28010         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28011         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28012         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28013         * modules/unictype/bidicategory-byname-tests: Likewise.
28014         * modules/unictype/bidicategory-name-tests: Likewise.
28015         * modules/unictype/bidicategory-of-tests: Likewise.
28016         * modules/unictype/bidicategory-test-tests: Likewise.
28017         * modules/unictype/block-list-tests: Likewise.
28018         * modules/unictype/block-of-tests: Likewise.
28019         * modules/unictype/block-test-tests: Likewise.
28020         * modules/unictype/category-C-tests: Likewise.
28021         * modules/unictype/category-Cc-tests: Likewise.
28022         * modules/unictype/category-Cf-tests: Likewise.
28023         * modules/unictype/category-Cn-tests: Likewise.
28024         * modules/unictype/category-Co-tests: Likewise.
28025         * modules/unictype/category-Cs-tests: Likewise.
28026         * modules/unictype/category-L-tests: Likewise.
28027         * modules/unictype/category-Ll-tests: Likewise.
28028         * modules/unictype/category-Lm-tests: Likewise.
28029         * modules/unictype/category-Lo-tests: Likewise.
28030         * modules/unictype/category-Lt-tests: Likewise.
28031         * modules/unictype/category-Lu-tests: Likewise.
28032         * modules/unictype/category-M-tests: Likewise.
28033         * modules/unictype/category-Mc-tests: Likewise.
28034         * modules/unictype/category-Me-tests: Likewise.
28035         * modules/unictype/category-Mn-tests: Likewise.
28036         * modules/unictype/category-N-tests: Likewise.
28037         * modules/unictype/category-Nd-tests: Likewise.
28038         * modules/unictype/category-Nl-tests: Likewise.
28039         * modules/unictype/category-No-tests: Likewise.
28040         * modules/unictype/category-P-tests: Likewise.
28041         * modules/unictype/category-Pc-tests: Likewise.
28042         * modules/unictype/category-Pd-tests: Likewise.
28043         * modules/unictype/category-Pe-tests: Likewise.
28044         * modules/unictype/category-Pf-tests: Likewise.
28045         * modules/unictype/category-Pi-tests: Likewise.
28046         * modules/unictype/category-Po-tests: Likewise.
28047         * modules/unictype/category-Ps-tests: Likewise.
28048         * modules/unictype/category-S-tests: Likewise.
28049         * modules/unictype/category-Sc-tests: Likewise.
28050         * modules/unictype/category-Sk-tests: Likewise.
28051         * modules/unictype/category-Sm-tests: Likewise.
28052         * modules/unictype/category-So-tests: Likewise.
28053         * modules/unictype/category-Z-tests: Likewise.
28054         * modules/unictype/category-Zl-tests: Likewise.
28055         * modules/unictype/category-Zp-tests: Likewise.
28056         * modules/unictype/category-Zs-tests: Likewise.
28057         * modules/unictype/category-and-not-tests: Likewise.
28058         * modules/unictype/category-and-tests: Likewise.
28059         * modules/unictype/category-byname-tests: Likewise.
28060         * modules/unictype/category-name-tests: Likewise.
28061         * modules/unictype/category-none-tests: Likewise.
28062         * modules/unictype/category-of-tests: Likewise.
28063         * modules/unictype/category-or-tests: Likewise.
28064         * modules/unictype/category-test-withtable-tests: Likewise.
28065         * modules/unictype/combining-class-tests: Likewise.
28066         * modules/unictype/ctype-alnum-tests: Likewise.
28067         * modules/unictype/ctype-alpha-tests: Likewise.
28068         * modules/unictype/ctype-blank-tests: Likewise.
28069         * modules/unictype/ctype-cntrl-tests: Likewise.
28070         * modules/unictype/ctype-digit-tests: Likewise.
28071         * modules/unictype/ctype-graph-tests: Likewise.
28072         * modules/unictype/ctype-lower-tests: Likewise.
28073         * modules/unictype/ctype-print-tests: Likewise.
28074         * modules/unictype/ctype-punct-tests: Likewise.
28075         * modules/unictype/ctype-space-tests: Likewise.
28076         * modules/unictype/ctype-upper-tests: Likewise.
28077         * modules/unictype/ctype-xdigit-tests: Likewise.
28078         * modules/unictype/decimal-digit-tests: Likewise.
28079         * modules/unictype/digit-tests: Likewise.
28080         * modules/unictype/mirror-tests: Likewise.
28081         * modules/unictype/numeric-tests: Likewise.
28082         * modules/unictype/property-alphabetic-tests: Likewise.
28083         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28084         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28085         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28086         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28087         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28088         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28089         * modules/unictype/property-bidi-control-tests: Likewise.
28090         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28091         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28092         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28093         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28094         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28095         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28096         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28097         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28098         * modules/unictype/property-bidi-pdf-tests: Likewise.
28099         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28100         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28101         * modules/unictype/property-byname-tests: Likewise.
28102         * modules/unictype/property-combining-tests: Likewise.
28103         * modules/unictype/property-composite-tests: Likewise.
28104         * modules/unictype/property-currency-symbol-tests: Likewise.
28105         * modules/unictype/property-dash-tests: Likewise.
28106         * modules/unictype/property-decimal-digit-tests: Likewise.
28107         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28108         * modules/unictype/property-deprecated-tests: Likewise.
28109         * modules/unictype/property-diacritic-tests: Likewise.
28110         * modules/unictype/property-extender-tests: Likewise.
28111         * modules/unictype/property-format-control-tests: Likewise.
28112         * modules/unictype/property-grapheme-base-tests: Likewise.
28113         * modules/unictype/property-grapheme-extend-tests: Likewise.
28114         * modules/unictype/property-grapheme-link-tests: Likewise.
28115         * modules/unictype/property-hex-digit-tests: Likewise.
28116         * modules/unictype/property-hyphen-tests: Likewise.
28117         * modules/unictype/property-id-continue-tests: Likewise.
28118         * modules/unictype/property-id-start-tests: Likewise.
28119         * modules/unictype/property-ideographic-tests: Likewise.
28120         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28121         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28122         * modules/unictype/property-ignorable-control-tests: Likewise.
28123         * modules/unictype/property-iso-control-tests: Likewise.
28124         * modules/unictype/property-join-control-tests: Likewise.
28125         * modules/unictype/property-left-of-pair-tests: Likewise.
28126         * modules/unictype/property-line-separator-tests: Likewise.
28127         * modules/unictype/property-logical-order-exception-tests: Likewise.
28128         * modules/unictype/property-lowercase-tests: Likewise.
28129         * modules/unictype/property-math-tests: Likewise.
28130         * modules/unictype/property-non-break-tests: Likewise.
28131         * modules/unictype/property-not-a-character-tests: Likewise.
28132         * modules/unictype/property-numeric-tests: Likewise.
28133         * modules/unictype/property-other-alphabetic-tests: Likewise.
28134         * modules/unictype/property-other-default-ignorable-code-point-tests:
28135         Likewise.
28136         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28137         * modules/unictype/property-other-id-continue-tests: Likewise.
28138         * modules/unictype/property-other-id-start-tests: Likewise.
28139         * modules/unictype/property-other-lowercase-tests: Likewise.
28140         * modules/unictype/property-other-math-tests: Likewise.
28141         * modules/unictype/property-other-uppercase-tests: Likewise.
28142         * modules/unictype/property-paired-punctuation-tests: Likewise.
28143         * modules/unictype/property-paragraph-separator-tests: Likewise.
28144         * modules/unictype/property-pattern-syntax-tests: Likewise.
28145         * modules/unictype/property-pattern-white-space-tests: Likewise.
28146         * modules/unictype/property-private-use-tests: Likewise.
28147         * modules/unictype/property-punctuation-tests: Likewise.
28148         * modules/unictype/property-quotation-mark-tests: Likewise.
28149         * modules/unictype/property-radical-tests: Likewise.
28150         * modules/unictype/property-sentence-terminal-tests: Likewise.
28151         * modules/unictype/property-soft-dotted-tests: Likewise.
28152         * modules/unictype/property-space-tests: Likewise.
28153         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28154         * modules/unictype/property-test-tests: Likewise.
28155         * modules/unictype/property-titlecase-tests: Likewise.
28156         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28157         * modules/unictype/property-unified-ideograph-tests: Likewise.
28158         * modules/unictype/property-uppercase-tests: Likewise.
28159         * modules/unictype/property-variation-selector-tests: Likewise.
28160         * modules/unictype/property-white-space-tests: Likewise.
28161         * modules/unictype/property-xid-continue-tests: Likewise.
28162         * modules/unictype/property-xid-start-tests: Likewise.
28163         * modules/unictype/property-zero-width-tests: Likewise.
28164         * modules/unictype/scripts-tests: Likewise.
28165         * modules/unictype/syntax-c-ident-tests: Likewise.
28166         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28167         * modules/unictype/syntax-java-ident-tests: Likewise.
28168         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28169         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28170         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28171         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28172         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28173         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28174         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28175         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28176         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28177         * modules/uniname/uniname-tests: Likewise.
28178         * modules/uninorm/canonical-decomposition-tests: Likewise.
28179         * modules/uninorm/compat-decomposition-tests: Likewise.
28180         * modules/uninorm/composition-tests: Likewise.
28181         * modules/uninorm/decomposing-form-tests: Likewise.
28182         * modules/uninorm/decomposition-tests: Likewise.
28183         * modules/uninorm/filter-tests: Likewise.
28184         * modules/uninorm/nfc-tests: Likewise.
28185         * modules/uninorm/nfd-tests: Likewise.
28186         * modules/uninorm/nfkc-tests: Likewise.
28187         * modules/uninorm/nfkd-tests: Likewise.
28188         * modules/uninorm/u8-normcmp-tests: Likewise.
28189         * modules/uninorm/u8-normcoll-tests: Likewise.
28190         * modules/uninorm/u16-normcmp-tests: Likewise.
28191         * modules/uninorm/u16-normcoll-tests: Likewise.
28192         * modules/uninorm/u32-normcmp-tests: Likewise.
28193         * modules/uninorm/u32-normcoll-tests: Likewise.
28194         * modules/unistdio/u8-asnprintf-tests: Likewise.
28195         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28196         * modules/unistdio/u8-vasprintf-tests: Likewise.
28197         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28198         * modules/unistdio/u8-vsprintf-tests: Likewise.
28199         * modules/unistdio/u16-asnprintf-tests: Likewise.
28200         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28201         * modules/unistdio/u16-vasprintf-tests: Likewise.
28202         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28203         * modules/unistdio/u16-vsprintf-tests: Likewise.
28204         * modules/unistdio/u32-asnprintf-tests: Likewise.
28205         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28206         * modules/unistdio/u32-vasprintf-tests: Likewise.
28207         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28208         * modules/unistdio/u32-vsprintf-tests: Likewise.
28209         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28210         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28211         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28212         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28213         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28214         * modules/unistr/u8-check-tests: Likewise.
28215         * modules/unistr/u8-chr-tests: Likewise.
28216         * modules/unistr/u8-cmp-tests: Likewise.
28217         * modules/unistr/u8-cmp2-tests: Likewise.
28218         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28219         * modules/unistr/u8-cpy-tests: Likewise.
28220         * modules/unistr/u8-mblen-tests: Likewise.
28221         * modules/unistr/u8-mbsnlen-tests: Likewise.
28222         * modules/unistr/u8-mbtouc-tests: Likewise.
28223         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28224         * modules/unistr/u8-mbtoucr-tests: Likewise.
28225         * modules/unistr/u8-move-tests: Likewise.
28226         * modules/unistr/u8-next-tests: Likewise.
28227         * modules/unistr/u8-prev-tests: Likewise.
28228         * modules/unistr/u8-set-tests: Likewise.
28229         * modules/unistr/u8-stpcpy-tests: Likewise.
28230         * modules/unistr/u8-stpncpy-tests: Likewise.
28231         * modules/unistr/u8-strcat-tests: Likewise.
28232         * modules/unistr/u8-strcmp-tests: Likewise.
28233         * modules/unistr/u8-strcoll-tests: Likewise.
28234         * modules/unistr/u8-strcpy-tests: Likewise.
28235         * modules/unistr/u8-strdup-tests: Likewise.
28236         * modules/unistr/u8-strlen-tests: Likewise.
28237         * modules/unistr/u8-strmblen-tests: Likewise.
28238         * modules/unistr/u8-strmbtouc-tests: Likewise.
28239         * modules/unistr/u8-strncat-tests: Likewise.
28240         * modules/unistr/u8-strncmp-tests: Likewise.
28241         * modules/unistr/u8-strncpy-tests: Likewise.
28242         * modules/unistr/u8-strnlen-tests: Likewise.
28243         * modules/unistr/u8-to-u16-tests: Likewise.
28244         * modules/unistr/u8-to-u32-tests: Likewise.
28245         * modules/unistr/u8-uctomb-tests: Likewise.
28246         * modules/unistr/u16-check-tests: Likewise.
28247         * modules/unistr/u16-chr-tests: Likewise.
28248         * modules/unistr/u16-cmp-tests: Likewise.
28249         * modules/unistr/u16-cmp2-tests: Likewise.
28250         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28251         * modules/unistr/u16-cpy-tests: Likewise.
28252         * modules/unistr/u16-mblen-tests: Likewise.
28253         * modules/unistr/u16-mbsnlen-tests: Likewise.
28254         * modules/unistr/u16-mbtouc-tests: Likewise.
28255         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28256         * modules/unistr/u16-mbtoucr-tests: Likewise.
28257         * modules/unistr/u16-move-tests: Likewise.
28258         * modules/unistr/u16-next-tests: Likewise.
28259         * modules/unistr/u16-prev-tests: Likewise.
28260         * modules/unistr/u16-set-tests: Likewise.
28261         * modules/unistr/u16-stpcpy-tests: Likewise.
28262         * modules/unistr/u16-stpncpy-tests: Likewise.
28263         * modules/unistr/u16-strcat-tests: Likewise.
28264         * modules/unistr/u16-strcmp-tests: Likewise.
28265         * modules/unistr/u16-strcoll-tests: Likewise.
28266         * modules/unistr/u16-strcpy-tests: Likewise.
28267         * modules/unistr/u16-strdup-tests: Likewise.
28268         * modules/unistr/u16-strlen-tests: Likewise.
28269         * modules/unistr/u16-strmblen-tests: Likewise.
28270         * modules/unistr/u16-strmbtouc-tests: Likewise.
28271         * modules/unistr/u16-strncat-tests: Likewise.
28272         * modules/unistr/u16-strncmp-tests: Likewise.
28273         * modules/unistr/u16-strncpy-tests: Likewise.
28274         * modules/unistr/u16-strnlen-tests: Likewise.
28275         * modules/unistr/u16-to-u32-tests: Likewise.
28276         * modules/unistr/u16-to-u8-tests: Likewise.
28277         * modules/unistr/u16-uctomb-tests: Likewise.
28278         * modules/unistr/u32-check-tests: Likewise.
28279         * modules/unistr/u32-chr-tests: Likewise.
28280         * modules/unistr/u32-cmp-tests: Likewise.
28281         * modules/unistr/u32-cmp2-tests: Likewise.
28282         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28283         * modules/unistr/u32-cpy-tests: Likewise.
28284         * modules/unistr/u32-mblen-tests: Likewise.
28285         * modules/unistr/u32-mbsnlen-tests: Likewise.
28286         * modules/unistr/u32-mbtouc-tests: Likewise.
28287         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28288         * modules/unistr/u32-mbtoucr-tests: Likewise.
28289         * modules/unistr/u32-move-tests: Likewise.
28290         * modules/unistr/u32-next-tests: Likewise.
28291         * modules/unistr/u32-prev-tests: Likewise.
28292         * modules/unistr/u32-set-tests: Likewise.
28293         * modules/unistr/u32-stpcpy-tests: Likewise.
28294         * modules/unistr/u32-stpncpy-tests: Likewise.
28295         * modules/unistr/u32-strcat-tests: Likewise.
28296         * modules/unistr/u32-strcmp-tests: Likewise.
28297         * modules/unistr/u32-strcoll-tests: Likewise.
28298         * modules/unistr/u32-strcpy-tests: Likewise.
28299         * modules/unistr/u32-strdup-tests: Likewise.
28300         * modules/unistr/u32-strlen-tests: Likewise.
28301         * modules/unistr/u32-strmblen-tests: Likewise.
28302         * modules/unistr/u32-strmbtouc-tests: Likewise.
28303         * modules/unistr/u32-strncat-tests: Likewise.
28304         * modules/unistr/u32-strncmp-tests: Likewise.
28305         * modules/unistr/u32-strncpy-tests: Likewise.
28306         * modules/unistr/u32-strnlen-tests: Likewise.
28307         * modules/unistr/u32-to-u16-tests: Likewise.
28308         * modules/unistr/u32-to-u8-tests: Likewise.
28309         * modules/unistr/u32-uctomb-tests: Likewise.
28310         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28311         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28312         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28313         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28314         * modules/uniwidth/u8-strwidth-tests: Likewise.
28315         * modules/uniwidth/u8-width-tests: Likewise.
28316         * modules/uniwidth/u16-strwidth-tests: Likewise.
28317         * modules/uniwidth/u16-width-tests: Likewise.
28318         * modules/uniwidth/u32-strwidth-tests: Likewise.
28319         * modules/uniwidth/u32-width-tests: Likewise.
28320         * modules/uniwidth/width-tests: Likewise.
28321
28322 2010-05-18  Richard Jones  <rjones@redhat.com>
28323
28324         doc: users.txt: list hivex
28325         * users.txt: Add hivex.
28326
28327 2010-05-18  Richard Jones  <rjones@redhat.com>
28328
28329         doc: users.txt: list febootstrap
28330         * users.txt: Add febootstrap.
28331
28332 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28333
28334         bootstrap: fix an error when gnulib is not used as a git submodule
28335         * build-aux/bootstrap (gnulib_path): If its length is zero then
28336         assign "gnulib" to it.
28337         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28338
28339 2010-05-16  Bruno Haible  <bruno@clisp.org>
28340
28341         Avoid autoconf warnings about AM_ICONV.
28342         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28343         2.64.
28344
28345 2010-05-16  Bruno Haible  <bruno@clisp.org>
28346
28347         absolute-header: Make the macro usable in more situations.
28348         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28349         from gl_ABSOLUTE_HEADER.
28350         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28351
28352 2010-05-16  James Youngman  <jay@gnu.org>
28353
28354         doc: update users.txt
28355         * users.txt: Add CSSC.
28356
28357 2010-05-16  Jim Meyering  <meyering@redhat.com>
28358
28359         init.sh: fix an error in the previous change; add more comments
28360         * tests/init.sh: Compare exit code in loop against 9, not 2.
28361         Patch by Bruno Haible.
28362         Make the two tests more similar by adding an empty "then" clause.
28363         Add comments.
28364
28365         init.sh: avoid unnecessary shell re-exec
28366         * tests/init.sh: Improve the re-exec-required check to first test the
28367         current shell.  If it passes the test, do not search for a shell that
28368         does pass, and do not re-exec.  This test is particularly contorted to
28369         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28370         of $(...) evokes a syntax error and causes immediate shell exit with
28371         status 2.  Bruno Haible reported that the re-exec made it impossible
28372         to single-step through any init.sh-using script.
28373
28374 2010-05-16  Bruno Haible  <bruno@clisp.org>
28375
28376         Fix collision between gnulib's and libintl's printf replacements.
28377         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28378         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28379         (printf): When using GNU C, map the __printf__ function to rpl_printf
28380         via __asm__. When not using GNU C, define rpl_printf instead of
28381         __printf__.
28382         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28383         commit.
28384         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28385         commit.
28386         * m4/asm-underscore.m4: New file.
28387         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28388         * modules/stdio (Files): Add m4/asm-underscore.m4.
28389         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28390         Reported by Ben Pfaff.
28391
28392 2010-05-16  Bruno Haible  <bruno@clisp.org>
28393
28394         verify: Avoid skipping the test on openSUSE 11.0.
28395         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28396
28397 2010-05-13  Bruno Haible  <bruno@clisp.org>
28398
28399         Avoid useless warnings from G++.
28400         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28401         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28402         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28403
28404 2010-05-11  Jim Meyering  <meyering@redhat.com>
28405
28406         maint.mk: tweak preceding change
28407         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28408         regexps tighter by anchoring at EOL, and make the new group "shy"
28409         for slightly decreased overhead.
28410
28411 2010-05-11  Eric Blake  <eblake@redhat.com>
28412
28413         maint.mk: gnulib doesn't guarantee NSIG
28414         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28415
28416 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28417
28418         test-pwrite.c: Remove unused variable declaration.
28419         * tests/test-pwrite.c (main): Remove read_buf declaration.
28420
28421         Remove useless test-pwrite.sh file.
28422         * tests/test-pwrite.sh: Delete file.
28423         * modules/pwrite-tests: Remove references.
28424         Reported by Bruno Haible.
28425
28426 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28427
28428         init.sh: fix a typo
28429         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28430
28431 2010-05-10  Jim Meyering  <meyering@redhat.com>
28432
28433         maint.mk: avoid using a temporary file in the always-defined-macros check
28434         * top/maint.mk (.re-defmac): Remove rule.
28435         (gl_trap_): Remove definition.
28436         (sc_prohibit_always-defined_macros): Rewrite not to create and
28437         depend on a temporary file.  Instead, depend on GNU grep's ability
28438         to read a list of regular expressions from stdin when given "-f -".
28439
28440 2010-05-09  Bruno Haible  <bruno@clisp.org>
28441
28442         Update to GNU gettext 0.18, part 1.
28443         * m4/gettext.m4: Update to GNU gettext 0.18.
28444         * m4/intl.m4: Likewise.
28445         * m4/po.m4: Likewise.
28446         * modules/gettext (Files): Add m4/fcntl-o.m4.
28447         (configure.ac): Require gettext infrastructure from version 0.18.
28448
28449 2010-05-09  Jim Meyering  <meyering@redhat.com>
28450
28451         init.sh: enable MALLOC_PERTURB_
28452         * tests/init.sh: Enable glibc's malloc-perturbing option.
28453
28454         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28455         With my recent change in init.sh from the two-line form:
28456             -#   : ${srcdir=.}
28457             -#   . "$srcdir/init.sh"; path_prepend_ .
28458             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28459         I noticed that using the one-line form would cause this test
28460         to fail with a false-positive, or to stop working altogether,
28461         depending on whether help-version changed or all the tests did.
28462         * top/maint.mk (_hv_regex): Remove this definition.
28463         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28464         (_hv_regex_strong): Use a stronger regex to check for conformance.
28465         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28466         Give a separate diagnostic for lack of conforming use.
28467
28468         maint.mk: prohibit definition of symbols defined by gnulib
28469         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28470         definition of symbols defined by gnulib.
28471
28472 2010-05-09  Bruno Haible  <bruno@clisp.org>
28473
28474         acl: Avoid test failure on Cygwin-hosted mingw.
28475         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28476
28477 2010-05-09  Bruno Haible  <bruno@clisp.org>
28478
28479         error: Use system's fcntl function.
28480         * lib/error.c (fcntl): Undefine.
28481
28482 2010-05-09  Jim Meyering  <meyering@redhat.com>
28483
28484         verify: adjust formatting to be more consistent
28485         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28486         argument-list '('s, and after one comma.
28487
28488 2010-05-09  Bruno Haible  <bruno@clisp.org>
28489
28490         error: More reliable output on mingw.
28491         * lib/error.c: Include <windows.h>.
28492         (is_open): New function.
28493         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28494         defined.
28495
28496 2010-05-09  Bruno Haible  <bruno@clisp.org>
28497
28498         vasnprintf: Fix syntax errors in libintl build on mingw.
28499         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28500         pad_ourselves and prec_ourselves after use.
28501
28502 2010-05-08  Bruno Haible  <bruno@clisp.org>
28503
28504         * lib/config.charset: Update comments for Cygwin 1.7.
28505         * lib/localcharset.c: Likewise.
28506
28507 2010-05-07  Jim Meyering  <meyering@redhat.com>
28508
28509         init.sh: improve comments
28510         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28511         . "${srcdir=.}/init.sh"; path_prepend_ .
28512         Add a note about path_prepend_ and the alternative of using
28513         TESTS_ENVIRONMENT.
28514
28515 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28516
28517         exclude: Unescape hashed patterns in wildcard mode.
28518         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28519         to the hash list.
28520         * tests/test-exclude8.sh: New test case.
28521         * modules/exclude-tests: Add new test.
28522
28523 2010-05-05  Eric Blake  <eblake@redhat.com>
28524
28525         verify: automate tests
28526         * modules/verify-tests: New module.
28527         * tests/test-verify.sh: New file.
28528         * tests/test-verify.c: Guard each negative test with a unique id.
28529         Also avoid warning about unused left hand of comma expressions.
28530
28531 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28532
28533         Further improvements to verify.h, suggested by Eric Blake.
28534         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28535         the GL_* versions, to avoid collision with OpenGL.
28536         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28537         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28538         than testing merely whether it's defined.
28539
28540         Modify verify.h to pacify gcc -Wredundant_decls.
28541         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28542         These use the prefix "GL_" since they're likely to be useful elsewhere.
28543         We may need to break them out into a different .h file.
28544         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28545         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28546         of verify_function__.
28547
28548 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28549
28550         Tests for module pwrite.
28551         * modules/pwrite-tests: New file.
28552         * tests/test-pwrite.sh: New file.
28553         * tests/test-pwrite.c: New file.
28554
28555         New module pwrite.
28556         * lib/unistd.in.h (pwrite): New declaration.
28557         * lib/pwrite.c: New file, from glibc with modifications.
28558         * m4/pwrite.m4: New file.
28559         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28560         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28561         REPLACE_PWRITE.
28562         * modules/pwrite: New file.
28563         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28564         REPLACE_PWRITE.
28565         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28566         * doc/posix-functions/pwrite.texi: Mention the new module.
28567
28568 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28569
28570         pread: Update documentation.
28571         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28572
28573 2010-05-04  Eric Blake  <eblake@redhat.com>
28574
28575         docs: update cygwin progress
28576         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28577         this bug.
28578         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28579         Added in cygwin 1.7.2.
28580         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28581         Likewise.
28582         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28583         Likewise.
28584         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28585         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28586         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28587         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28588         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28589         Mention nproc module.
28590         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28591         bug in cygwin 1.7.5 addition.
28592         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28593         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28594         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28595         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28596         1.7.5.
28597         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28598         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28599         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28600         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28601         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28602         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28603         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28604         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28605         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28606         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28607         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28608         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28609         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28610         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28611         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28612         Likewise.
28613         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28614         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28615         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28616         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28617         Likewise.
28618         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28619         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28620         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28621         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28622         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28623         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28624         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28625         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28626         Likewise.
28627         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28628         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28629         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28630         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28631         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28632         Likewise.
28633         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28634         Likewise.
28635         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28636         Likewise.
28637         * doc/glibc-functions/xdrrec_endofrecord.texi
28638         (xdrrec_endofrecord): Likewise.
28639         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28640         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28641         Likewise.
28642         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28643         Likewise.
28644
28645 2010-05-04  Jim Meyering  <meyering@redhat.com>
28646
28647         gendocs.sh: make its "-s FILE" option more useful
28648         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28649         $PACKAGE to reflect the probably-different basename of "FILE".
28650
28651 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28652
28653         bootstrap: don't ignore download_po_files failure
28654         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28655         failure.
28656
28657 2010-05-03  Jim Meyering  <meyering@redhat.com>
28658
28659         maint.mk: allow to pass options to gendocs.sh
28660         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28661         (gendocs_options_): New overridable variable.
28662
28663         gnu-web-doc-update: don't ignore configure or build failure
28664         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28665
28666         announce-gen: backslash-escape '@'s in --help output
28667         * build-aux/announce-gen: Fix syntax errors.
28668
28669         maint.mk, announce-gen: allow project-specific announcement mail headers
28670         * top/maint.mk (translation_project_): Define default.
28671         (announcement_Cc_, announcement_mail_headers_): Likewise.
28672         (announcement): Invoke announce-gen with new --mail-headers option.
28673         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28674
28675         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28676         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28677         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28678         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28679         line in the "err2" output file when running "make check" in verbose
28680         mode (i.e., with set -x enabled).
28681
28682 2010-05-03  Bruno Haible  <bruno@clisp.org>
28683
28684         wctob: Fix for weird platforms.
28685         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28686         argument value.
28687
28688 2010-05-03  Jim Meyering  <meyering@redhat.com>
28689
28690         maint.mk: prohibit unwarranted use of <strings.h>
28691         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28692         strings.h in a file that does not also use strcasecmp, strncasecmp,
28693         ffs or ffsll.
28694
28695         maint.mk: remove obsolete comments
28696         * top/maint.mk: Remove stale, commented-out rules.
28697
28698 2010-05-02  Bruno Haible  <bruno@clisp.org>
28699
28700         wcwidth: Declare also when it's aliased.
28701         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28702         macro.
28703
28704 2010-05-02  Bruno Haible  <bruno@clisp.org>
28705
28706         Fix regression from 2010-04-25.
28707         * gnulib-tool (func_modules_transitive_closure): Check the status of
28708         all modules, not only of the tests that are of the form foo-tests where
28709         foo is a module.
28710
28711 2010-05-02  Bruno Haible  <bruno@clisp.org>
28712
28713         wctob: Work around nasty Cygwin 1.7.2 bug.
28714         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28715         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28716
28717 2010-05-01  Bruno Haible  <bruno@clisp.org>
28718
28719         fpurge: Sharper test.
28720         * tests/test-fpurge.c (main): Add one more ftell check.
28721         * modules/fpurge-tests (Depends-on): Add ftell.
28722         Suggested by Eric Blake.
28723
28724 2010-05-01  Bruno Haible  <bruno@clisp.org>
28725
28726         ftello: Another test.
28727         * tests/test-ftello3.c: New file.
28728         * modules/ftello-tests (Files): Add it.
28729         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28730         MOSTLYCLEANFILES.
28731
28732         ftell: Another test.
28733         * tests/test-ftell3.c: New file.
28734         * modules/ftell-tests (Files): Add it.
28735         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28736         MOSTLYCLEANFILES.
28737
28738 2010-05-01  Bruno Haible  <bruno@clisp.org>
28739
28740         ftell, ftello: Work around Solaris bug.
28741         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28742         * lib/ftello.c: Include stdio-impl.h.
28743         (ftello): On Solaris, when _IOWRT is set, compute the result without
28744         looking at _IOREAD.
28745         * modules/ftello (Files): Add lib/stdio-impl.h.
28746         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28747         * doc/posix-functions/ftello.texi: Likewise.
28748         Reported by Eric Blake.
28749
28750 2010-05-01  Bruno Haible  <bruno@clisp.org>
28751
28752         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28753         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28754         the _IOWRT flag is also set.
28755
28756 2010-05-01  Bruno Haible  <bruno@clisp.org>
28757
28758         Fix doc about a HP-UX stdio bug.
28759         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28760         * doc/posix-functions/ftello.texi: Likewise.
28761
28762 2010-05-01  Bruno Haible  <bruno@clisp.org>
28763
28764         lseek test: Fix failure on Solaris.
28765         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28766         output.
28767
28768 2010-04-30  Jim Meyering  <meyering@redhat.com>
28769
28770         bootstrap: don't ignore failure to generate po*/Makevars
28771         * build-aux/bootstrap (with_gettext): Don't ignore failure
28772         to create po/Makevars or runtime-po/Makevars.
28773
28774 2010-04-29  Eric Blake  <eblake@redhat.com>
28775
28776         headers: relax license to LGPLv2+
28777         * modules/fcntl-h (License): Relax license.
28778         * modules/getopt-posix (License): Likewise.
28779         * modules/locale (License): Likewise.
28780         * modules/math (License): Likewise.
28781         * modules/pty (License): Likewise.
28782         * modules/sched (License): Likewise.
28783         * modules/search (License): Likewise.
28784         * modules/spawn (License): Likewise.
28785         * modules/stdarg (License): Likewise.
28786         * modules/sysexits (License): Likewise.
28787
28788 2010-04-29  Jim Meyering  <meyering@redhat.com>
28789
28790         inttypes: relax license to LGPLv2+
28791         * modules/inttypes (License): Relax license.
28792
28793 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28794
28795         * top/maint.mk (indent): Run twice to produce idempotent results.
28796
28797 2010-04-28  Bruno Haible  <bruno@clisp.org>
28798
28799         getdate: Generate getdate.c in the source directory.
28800         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28801         MOSTLYCLEANFILES.
28802         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28803
28804 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28805
28806         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28807         is not declared as a const *; avoid warnings in that case.
28808
28809 2010-04-28  Eric Blake  <eblake@redhat.com>
28810
28811         canonicalize-lgpl: avoid compiler warning
28812         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28813         declaration' / 'extraneous semicolon' warning with some compilers.
28814         Reported by Andreas Gruenbacher.
28815
28816 2010-04-28  Jim Meyering  <meyering@redhat.com>
28817
28818         init.sh: ensure a more reliable exit status when exiting via trap
28819         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28820         Inspired by patches from Dmitry V. Levin.
28821         Also trap on signal 3 (SIGQUIT).
28822
28823 2010-04-27  Bruno Haible  <bruno@clisp.org>
28824
28825         Update doc about utimes().
28826         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28827         'utimens' module.
28828         Reported by Andreas Gruenbacher <agruen@suse.de>.
28829
28830 2010-04-27  Eric Blake  <eblake@redhat.com>
28831
28832         full-read, full-write: relax license
28833         * modules/full-read (License): Drop to LGPLv2+.
28834         * modules/full-write (License): Likewise.
28835         * modules/safe-read (License): Likewise.
28836         * modules/safe-write (License): Likewise.
28837
28838         pthread: mention library for linking
28839         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28840
28841 2010-04-27  Jim Meyering  <meyering@redhat.com>
28842
28843         maint.mk: fix a bug introduced in last change
28844         * top/maint.mk (gl_assured_headers_): Now that all names are on
28845         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28846         is not anchored to end of word, it should be adequate.
28847
28848         maint.mk: avoid side-effect in latest syntax-check
28849         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28850         to run commands via $(shell...), and hence to incur cost only when
28851         the new rule is actually run.
28852
28853         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28854         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28855         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28856         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28857         (gl_assured_headers_, az_, AZ_): Define.
28858         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28859
28860 2010-04-26  Jim Meyering  <jim@meyering.net>
28861             Bruno Haible  <bruno@clisp.org>
28862
28863         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28864         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28865         Prompted by an exchange with Gilles Espinasse.
28866
28867 2010-04-26  Jim Meyering  <meyering@redhat.com>
28868
28869         git-version-gen: aesthetic tweak
28870         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28871         so that the command remains on a single line.
28872
28873 2010-04-26  Eric Blake  <eblake@redhat.com>
28874
28875         git-version-gen: allow use on EBCDIC hosts
28876         * build-aux/git-version-gen (dirty): Use literal rather than tying
28877         ourselves to ascii.
28878         Reported by Steve Goetze.
28879
28880 2010-04-25  Bruno Haible  <bruno@clisp.org>
28881
28882         netdb: Add support for GNULIB_POSIXCHECK.
28883         * lib/netdb.in.h: Include warn-on-use.h.
28884         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28885         functions are used when GNULIB_POSIXCHECK is defined and the
28886         getaddrinfo module is not in use.
28887         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28888         freeaddrinfo, gai_strerror, getnameinfo are declared.
28889         * modules/netdb (Depends-on): Add warn-on-use.
28890         (Makefile.am): Include warn-on-use.h in netdb.h.
28891
28892 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28893
28894         build: avoid "make check" failure without .git/ directory
28895         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28896         there is no .git/ directory.
28897
28898 2010-04-25  Bruno Haible  <bruno@clisp.org>
28899
28900         ptsname: Fix misuse of ttyname_r.
28901         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28902         of errno.
28903
28904 2010-04-25  Bruno Haible  <bruno@clisp.org>
28905
28906         ttyname_r: Make it work on Solaris 10.
28907         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28908         if the system function has the POSIX declaration. Test whether the
28909         function fails if the buffer is less than 128 bytes large.
28910         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28911         system's ttyname_r function. Provide a reasonably large buffer.
28912         * modules/ttyname_r (Depends-on): Add extensions.
28913         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28914
28915 2010-04-25  Bruno Haible  <bruno@clisp.org>
28916
28917         Use the 'extensions' module for some more functions on Solaris.
28918         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28919         module.
28920         * doc/posix-functions/ctime_r.texi: Likewise.
28921         * doc/posix-functions/getgrgid_r.texi: Likewise.
28922         * doc/posix-functions/getgrnam_r.texi: Likewise.
28923         * doc/posix-functions/getpwnam_r.texi: Likewise.
28924         * doc/posix-functions/getpwuid_r.texi: Likewise.
28925         * doc/posix-functions/readdir_r.texi: Likewise.
28926         * doc/posix-functions/sigwait.texi: Likewise.
28927         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
28928         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
28929
28930 2010-04-25  Bruno Haible  <bruno@clisp.org>
28931
28932         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
28933         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
28934         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
28935         * lib/ttyname_r.c: Include <limits.h>.
28936         (ttyname_r): Define using the system's ttyname_r function, if it exists
28937         and not on Solaris.
28938         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
28939         set.
28940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
28941         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
28942         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
28943         Reported by Simon Josefsson.
28944
28945 2010-04-25  Bruno Haible  <bruno@clisp.org>
28946
28947         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
28948         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
28949         * doc/posix-functions/ctime_r.texi: Likewise.
28950         * doc/posix-functions/getgrgid_r.texi: Likewise.
28951         * doc/posix-functions/getgrnam_r.texi: Likewise.
28952         * doc/posix-functions/getlogin_r.texi: Likewise.
28953         * doc/posix-functions/getpwnam_r.texi: Likewise.
28954         * doc/posix-functions/getpwuid_r.texi: Likewise.
28955         * doc/posix-functions/readdir_r.texi: Likewise.
28956         * doc/posix-functions/sigwait.texi: Likewise.
28957         * doc/posix-functions/ttyname_r.texi: Likewise.
28958         Reported by Simon Josefsson.
28959
28960 2010-04-25  Bruno Haible  <bruno@clisp.org>
28961
28962         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
28963         * gnulib-tool (func_usage): Document that --with-*-tests options apply
28964         also to --create-testdir.
28965         (func_acceptable): Don't consider the status of *-tests modules here.
28966         (func_modules_transitive_closure): Consider it here, before including a
28967         test module.
28968         (func_import, func_create_testdir): Set inc_all_direct_tests,
28969         inc_all_indirect_tests.
28970         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
28971         --create-testdir and --create-megatestdir.
28972
28973 2010-04-25  Bruno Haible  <bruno@clisp.org>
28974
28975         gnulib-tool: Add --without-*-tests options.
28976         * gnulib-tool (func_usage): Document the --without-*-tests options.
28977         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
28978         excl_unportable_tests): New variables.
28979         Fail if they are specified with --import or --update.
28980         (func_acceptable): Respect the excl_*_tests variables.
28981         (func_import): Set the excl_*_tests variables to empty.
28982
28983 2010-04-25  Simon Josefsson  <simon@josefsson.org>
28984             Bruno Haible  <bruno@clisp.org>
28985
28986         Work around a MacOS X 10.4 bug with openpty.
28987         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
28988         * tests/test-openpty.c (main): Close the master side explicitly.
28989
28990 2010-04-25  Bruno Haible  <bruno@clisp.org>
28991
28992         strnlen: Fix a C++ test error on MacOS X and Solaris.
28993         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
28994         the function is not declared.
28995         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
28996         Simon Josefsson.
28997
28998 2010-04-24  Bruno Haible  <bruno@clisp.org>
28999
29000         Avoid a gcc warning.
29001         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29002         of correct type for %08lx directive.
29003         Reported by Eric Blake.
29004
29005 2010-04-24  Bruno Haible  <bruno@clisp.org>
29006
29007         vasnprintf: Correct errno value in case of out-of-memory.
29008         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29009         or sprintf. Use the errno value from SNPRINTF or sprintf.
29010         Reported by Ian Beckwith <ianb@erislabs.net>.
29011
29012 2010-04-24  Bruno Haible  <bruno@clisp.org>
29013
29014         ansi-c++-opt: Find correct compiler when cross-compiling.
29015         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29016         AC_CHECK_PROGS.
29017         Reported by Simon Josefsson.
29018
29019 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29020
29021         vc-list-files: Add support for subversion
29022         * build-aux/vc-list-files: Use "svn list" to generate the list of
29023         files controlled by subversion.
29024
29025 2010-04-23  Jim Meyering  <meyering@redhat.com>
29026
29027         vc-list-files tests: convert to use init.sh
29028         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29029         path_prepend_.
29030         Use Exit, not exit.
29031         Use skip_ rather than open coding it.
29032         Remove trap set-up and compare definitions.
29033         * tests/test-vc-list-files-git.sh: Likewise.
29034         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29035
29036 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29037
29038         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29039         backup files.
29040
29041 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29042
29043         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29044
29045 2010-04-20  Eric Blake  <eblake@redhat.com>
29046
29047         tests: be robust to ignored SIGPIPE
29048         * tests/test-select-in.sh: Consume all output.
29049         * tests/test-lseek.sh: Check correct exit status, while avoiding
29050         EPIPE.
29051
29052 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29053             Bruno Haible  <bruno@clisp.org>
29054
29055         visibility: Don't use -fvisibility if it leads to a warning.
29056         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29057         yes, don't pretend that visibility works if it leads to a warning.
29058         Reported by Mike Gran <spk121@yahoo.com>.
29059
29060 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29061
29062         * build-aux/bootstrap: Use "git -h" for testing for supported options
29063         instead of "git --help".  The short-form option only shows a summary,
29064         and doesn't layout the full man page.  Grep for the full option name
29065         in the summary, too.
29066
29067 2010-04-19  Bruno Haible  <bruno@clisp.org>
29068
29069         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29070         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29071         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29072         mention of RELOCATABLE_STRIP.
29073         Reported by Sylvain Beucler <beuc@beuc.net>.
29074
29075 2010-04-19  Bruno Haible  <bruno@clisp.org>
29076
29077         * lib/diffseq.h: Fix typo in comment.
29078         Reported by Eric Blake.
29079
29080 2010-04-19  Bruno Haible  <bruno@clisp.org>
29081
29082         ioctl: Move autoconf macro to a .m4 file.
29083         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29084         * modules/ioctl (Files): Add it.
29085         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29086         Reported by Ian Beckwith <ianb@erislabs.net>.
29087
29088 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29089             Bruno Haible  <bruno@clisp.org>
29090
29091         diffseq: Accommodate use-case with abstract arrays.
29092         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29093         is not defined.
29094         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29095         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29096
29097 2010-04-18  Bruno Haible  <bruno@clisp.org>
29098
29099         * doc/posix-headers/stdbool.texi: More precise wording.
29100
29101 2010-04-17  Jim Meyering  <meyering@redhat.com>
29102
29103         maint.mk: use gnu-style indentation in an embedded perl script
29104         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29105         Rename variable: s/two/last_two_bytes/
29106
29107 2010-04-16  Eric Blake  <eblake@redhat.com>
29108
29109         test-stdbool: skip test that fails with Solaris CC
29110         * tests/test-stdbool.c (f): Skip test that causes compilation
29111         error under buggy C++ compiler.
29112         * lib/stdbool.in.h: Document the limitation.
29113         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29114
29115         setenv: allow compilation with C++
29116         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29117         register keyword.
29118
29119         stdint: allow test to pass with C++
29120         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29121
29122         getopt: allow compilation with C++
29123         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29124         struct.
29125         * lib/getopt.c (_getopt_internal_r): Use correct type.
29126         Reported by Dagobert Michelson, via Joel E. Denny.
29127
29128 2010-04-16  Bruno Haible  <bruno@clisp.org>
29129
29130         Override netdb.h always.
29131         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29132         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29133         Reported by Ludovic Courtès <ludo@gnu.org>.
29134
29135 2010-04-15  Bruno Haible  <bruno@clisp.org>
29136
29137         openpty: Fix mistake from 2010-03-21.
29138         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29139         Reported by Simon Josefsson.
29140
29141 2010-04-15  Eric Blake  <eblake@redhat.com>
29142
29143         test-forkpty: fix expected signature
29144         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29145         Reported by Simon Josefsson.
29146
29147 2010-04-15  Jim Meyering  <meyering@redhat.com>
29148
29149         maint.mk: texinfo_suffix_re_: correct the default regexp
29150         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29151
29152         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29153         make it configurable via texinfo_suffix_re_.
29154
29155 2010-04-14  Eric Blake  <eblake@redhat.com>
29156
29157         strtok_r: relax license to LGPLv2+
29158         * modules/strtok_r (License): Relax license.
29159         Reported by Matthias Bolte.
29160
29161 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29162
29163         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29164         version 1.4.4 by default instead of requiring the libgcrypt
29165         version used during build.  This makes it possible to use the
29166         application with older but still binary compatible libgcrypt
29167         versions.
29168
29169 2010-04-13  Eric Blake  <eblake@redhat.com>
29170
29171         getopt-gnu: match recent glibc fixes and posix ruling
29172         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29173         '+' handling, when requesting extensions.
29174         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29175         'W;' handling.
29176         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29177         * doc/posix-functions/getopt.texi (getopt): Document this.
29178         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29179         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29180         Likewise.
29181
29182         getopt: merge bug fixes from glibc
29183         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29184         diagnostics.  Honor '+:' correctly.  Reject ';'.
29185
29186         getopt-posix: detect MacOS bug
29187         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29188         optind when missing a required argument.
29189         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29190         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29191         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29192         Likewise.
29193
29194         getopt-posix: avoid spurious failure on Solaris
29195         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29196         an indicator that setting optind=1 is sufficient for reset.
29197
29198         getopt-posix: avoid spurious failure on FreeBSD
29199         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29200         in POSIX mode, since the m4 test uses it.
29201
29202         gnulib-tool: silence warning on BSD sh
29203         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29204
29205 2010-04-13  Jim Meyering  <meyering@redhat.com>
29206
29207         doc: users.txt: GNU patch now uses gnulib
29208         * users.txt: Add patch.
29209
29210 2010-04-12  Jim Meyering  <meyering@redhat.com>
29211
29212         maint.mk: generate more concise timing data for syntax-check rules
29213         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29214         " done" from each line that reports a syntax-check test duration.
29215
29216 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29217
29218         git-version-gen: use "git update-index..." rather than "git status"
29219         * build-aux/git-version-gen: Use git update-index --refresh, not
29220         "git status".  With some versions of git, "git status" would fail
29221         to update the index and result in an unwarranted "-dirty" suffix.
29222
29223 2010-04-11  Jim Meyering  <meyering@redhat.com>
29224
29225         openat: correct formatting (no semantic change)
29226         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29227         Suggested by Bruno Haible.
29228
29229 2010-04-11  Bruno Haible  <bruno@clisp.org>
29230
29231         Stricter declaration checking in testdirs.
29232         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29233         If for_tests is true, augment AM_CPPFLAGS to define
29234         GNULIB_STRICT_CHECKING.
29235         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29236         GNULIB_STRICT_CHECKING is defined, verify that the function is
29237         declared.
29238
29239 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29240             Bruno Haible  <bruno@clisp.org>
29241
29242         libunistring: Improve configure output.
29243         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29244         Don't say "consider installing GNU libunistring" when checking again
29245         with libiconv.
29246
29247 2010-04-11  Bruno Haible  <bruno@clisp.org>
29248
29249         libunistring: Correct value of $LTLIBUNISTRING.
29250         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29251         correct the value of $LTLIBUNISTRING.
29252
29253 2010-04-11  Bruno Haible  <bruno@clisp.org>
29254
29255         havelib: Add static libraries to LIBS in the right order.
29256         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29257         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29258
29259 2010-04-11  Bruno Haible  <bruno@clisp.org>
29260
29261         libunistring: Detect libunistring also when it depends on libiconv.
29262         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29263         the second AC_LIB_HAVE_LINKFLAGS invocation.
29264
29265 2010-04-11  James Youngman  <jay@gnu.org>
29266
29267         close-stream: declare local scalars to be "const"
29268         * lib/close-stream.c (close_stream): Make boolean variables const
29269         to document the fact that we set but do not change them.
29270
29271 2010-04-11  Bruno Haible  <bruno@clisp.org>
29272
29273         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29274
29275 2010-04-11  Jim Meyering  <meyering@redhat.com>
29276
29277         maint.mk: don't include dist-check.mk
29278         * top/maint.mk: Remove bogus include directive.
29279
29280         maint.mk: improve empty-line-at-EOF check
29281         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29282         solution, rather than tail+Perl-based one.  The latter would read
29283         a few kilobytes from the end of each file, and did not handle empty
29284         files properly.
29285
29286         maint.mk: print the elapsed time for each syntax-check rule
29287         * top/maint.mk (sc_m_rules_): Save start time in a file.
29288         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29289         (local-check): Interpose the .z rules
29290
29291 2010-04-11  Jim Meyering  <meyering@redhat.com>
29292
29293         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29294         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29295         empty file with one that ends in an empty line.
29296
29297 2010-04-10  Bruno Haible  <bruno@clisp.org>
29298
29299         mkdir: Make it work on mingw64.
29300         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29301         * lib/mkdir.c: Update comment.
29302         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29303
29304 2010-04-10  Bruno Haible  <bruno@clisp.org>
29305
29306         Don't override improved macro from newer autoconf.
29307         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29308         autoconf >= 2.62.
29309         Reported by Joel E. Denny <jdenny@clemson.edu>.
29310
29311 2010-04-10  Jim Meyering  <meyering@redhat.com>
29312
29313         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29314         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29315
29316         maint.mk: correct a diagnostic
29317         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29318         in diagnostic; now use $prohibit.
29319
29320 2010-04-10  Bruno Haible  <address@hidden>
29321
29322         fchownat: Fix a C++ test error on Solaris 8.
29323         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29324         the function does not exist.
29325
29326 2010-04-10  Bruno Haible  <bruno@clisp.org>
29327
29328         vasnprintf: Add more tests.
29329         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29330         (test_function): Test converting an invalid wide string.
29331
29332         vasnprintf: Correct handling of unconvertible wide string arguments.
29333         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29334         VASNPRINTF.
29335         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29336         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29337         smaller than the expected maximum need for the directive. Set errno to
29338         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29339         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29340         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29341         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29342         * modules/vasnprintf (Files): Add m4/printf.m4.
29343         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29344
29345 2010-04-10  Bruno Haible  <bruno@clisp.org>
29346
29347         vasnprintf: Fix crash in %ls directive.
29348         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29349         string is passed as argument to %ls, with no precision and no width.
29350         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29351
29352 2010-04-10  Bruno Haible  <bruno@clisp.org>
29353
29354         vasnprintf: Fix multiple test failures on mingw.
29355         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29356         _snprintf, or snwprintf, not _snwprintf.
29357
29358 2010-04-10  Bruno Haible  <bruno@clisp.org>
29359
29360         write: Fix a C++ test error on mingw.
29361         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29362
29363 2010-04-10  Bruno Haible  <bruno@clisp.org>
29364
29365         vasnprintf test: Reduce code duplication.
29366         * tests/test-vasnprintf.c (test_function): New function, extracted from
29367         test_vasnprintf.
29368         (test_vasnprintf, test_asnprintf): Invoke it.
29369
29370 2010-04-10  Bruno Haible  <bruno@clisp.org>
29371
29372         strnlen: Fix warning in C++ mode on MacOS X.
29373         * lib/string.in.h (strnlen): Use the modern idiom.
29374         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29375         defining strnlen as a macro already in <config.h>.
29376         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29377         REPLACE_STRNLEN.
29378         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29379         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29380
29381 2010-04-08  James Youngman  <jay@gnu.org>
29382
29383         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29384         the example.
29385
29386 2010-04-09  Jim Meyering  <meyering@redhat.com>
29387
29388         maint.mk: print better diagnostic when there is no $(_hv_file)
29389         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29390         announce that when $(_hv_file) (aka help-version) does not exist.
29391
29392         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29393         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29394         not try to interpret its random input bytes.  Jarno Rajahalme reported
29395         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29396         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29397         (mktempd_): Likewise, just in case.
29398
29399         ftruncate: add two years to projected module removal date: 2012
29400         * m4/ftruncate.m4: Adjust comments.
29401
29402         ftruncate: mark module as obsolete; even MinGW provides it, now
29403         * modules/ftruncate (Status): Obsolete.
29404         (Notice): Say that.
29405         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29406         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29407
29408 2010-04-08  Bruno Haible  <bruno@clisp.org>
29409
29410         Fix side effects from tests-related modules.
29411         * modules/dprintf-posix (Comment): New section.
29412         * modules/fprintf-posix (Comment): Likewise.
29413         * modules/obstack-printf-posix (Comment): Likewise.
29414         * modules/printf-posix (Comment): Likewise.
29415         * modules/snprintf-posix (Comment): Likewise.
29416         * modules/sprintf-posix (Comment): Likewise.
29417         * modules/vasnprintf-posix (Comment): Likewise.
29418         * modules/vasprintf-posix (Comment): Likewise.
29419         * modules/vdprintf-posix (Comment): Likewise.
29420         * modules/vfprintf-posix (Comment): Likewise.
29421         * modules/vprintf-posix (Comment): Likewise.
29422         * modules/vsnprintf-posix (Comment): Likewise.
29423         * modules/vsprintf-posix (Comment): Likewise.
29424         * modules/xprintf-posix (Comment): Likewise.
29425         * modules/xvasprintf-posix (Comment): Likewise.
29426         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29427         * modules/floorf-tests (Depends-on): Likewise.
29428         * modules/round-tests (Depends-on): Likewise.
29429         * modules/roundf-tests (Depends-on): Likewise.
29430         * modules/trunc-tests (Depends-on): Likewise.
29431         * modules/truncf-tests (Depends-on): Likewise.
29432         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29433         'fprintf-posix' module is not present.
29434         * tests/test-floorf2.c (check): Likewise.
29435         * tests/test-trunc2.c (check): Likewise.
29436         * tests/test-truncf2.c (check): Likewise.
29437         * tests/test-round2.c (equal): Likewise.
29438         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29439
29440 2010-04-07  Karl Berry  <karl@gnu.org>
29441
29442         * config/srclist.txt,
29443         * config/srclistvars.sh,
29444         * config/srclist-update: doc fixes.
29445
29446 2010-04-07  Jim Meyering  <meyering@redhat.com>
29447
29448         maint.mk: add a PATH crosschecking syntax-check rule
29449         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29450         Useful if you use a test like the one in help-version (coreutils,
29451         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29452         printed by prog --version.
29453
29454 2010-04-06  Bruno Haible  <bruno@clisp.org>
29455
29456         Fix link error on mingw.
29457         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29458         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29459
29460 2010-04-06  Bruno Haible  <bruno@clisp.org>
29461
29462         Assume rmdir exists.
29463         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29464
29465 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29466
29467         doc: update users.txt
29468         * users.txt: Add gcal.
29469
29470 2010-04-06  Jim Meyering  <meyering@redhat.com>
29471
29472         init.sh: simply unset TMPDIR rather than risking env -i
29473         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29474         although it probably works fine on all Unix-based systems, some
29475         systems (Cygwin?) cannot tolerate a totally cleared environment.
29476         Suggestion from Eric Blake.
29477
29478 2010-04-06  Jim Meyering  <meyering@redhat.com>
29479
29480         init.sh: portability fix: use env's POSIX-specified -i option not -u
29481         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29482         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29483
29484 2010-04-05  Bruno Haible  <bruno@clisp.org>
29485
29486         btowc: Work around Cygwin 1.7.2 bug.
29487         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29488         does not map NUL to 0.
29489         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29490
29491 2010-04-05  Bruno Haible  <bruno@clisp.org>
29492
29493         Make the multithread modules work on Cygwin 1.7.2.
29494         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29495         imported symbols can be declared weak, so that it returns "no" on
29496         Cygwin 1.7.2.
29497
29498 2010-04-05  Bruno Haible  <bruno@clisp.org>
29499
29500         Use the module 'strncat'.
29501         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29502
29503         Tests for module 'strncat'.
29504         * modules/strncat-tests: New file.
29505         * tests/test-strncat.c: New file.
29506
29507         New module 'strncat'.
29508         * lib/string.in.h (strncat): New declaration.
29509         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29510         * m4/strncat.m4: New file, based on m4/memchr.m4.
29511         * modules/strncat: New file.
29512         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29513         is declared.
29514         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29515         REPLACE_STRNCAT.
29516         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29517         REPLACE_STRNCAT.
29518         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29519         module.
29520         * tests/test-string-c++.cc: Check signature of strncat.
29521
29522 2010-04-05  Jim Meyering  <meyering@redhat.com>
29523
29524         xstrtoumax-tests: convert to use init.sh
29525         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29526         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29527         Use Exit, not exit.
29528         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29529
29530         xstrtoimax-tests: convert to use init.sh
29531         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29532         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29533         Use Exit, not exit.
29534         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29535
29536 2010-04-05  Bruno Haible  <bruno@clisp.org>
29537
29538         sys_socket: Avoid #define replacements in C++ mode.
29539         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29540         warning to the function if possible, rather than #defining the symbol
29541         to a dysfunctional alias.
29542
29543 2010-04-05  Bruno Haible  <bruno@clisp.org>
29544
29545         fseeko: Fix C++ test error on mingw.
29546         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29547         gl_FUNC_FSEEKO.
29548         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29549         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29550         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29551         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29552
29553 2010-04-05  Bruno Haible  <bruno@clisp.org>
29554
29555         duplocale: Improve test output.
29556         * tests/test-duplocale.c (main): Print reason for skipped test.
29557
29558 2010-04-05  Bruno Haible  <bruno@clisp.org>
29559
29560         Assume rmdir exists.
29561         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29562         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29563
29564 2010-04-05  Bruno Haible  <bruno@clisp.org>
29565
29566         Fix link error on Solaris 8 with cc.
29567         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29568
29569 2010-04-05  Bruno Haible  <bruno@clisp.org>
29570
29571         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29572         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29573
29574 2010-04-05  Bruno Haible  <bruno@clisp.org>
29575
29576         vasprintf: Update documentation.
29577         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29578
29579 2010-04-05  Bruno Haible  <bruno@clisp.org>
29580
29581         ptsname: Improve test.
29582         * tests/test-ptsname.c (main): Also try the various master names of BSD
29583         systems.
29584
29585 2010-04-05  Bruno Haible  <bruno@clisp.org>
29586
29587         memchr: Avoid a possible C++ test error.
29588         * lib/string.in.h (memchr): Provide declaration if function is missing.
29589         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29590         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29591         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29592         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29593
29594 2010-04-05  Bruno Haible  <bruno@clisp.org>
29595
29596         strtok_r: Improve idiom.
29597         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29598         AC_LIBOBJ is used.
29599
29600 2010-04-05  Bruno Haible  <bruno@clisp.org>
29601
29602         strdup: Improve idiom.
29603         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29604         AC_LIBOBJ is used.
29605         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29606         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29607         when AC_LIBOBJ is used.
29608
29609 2010-04-05  Bruno Haible  <bruno@clisp.org>
29610
29611         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29612         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29613         don't set REPLACE_MBSINIT to 1.
29614         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29615         don't set REPLACE_MBRTOWC to 1.
29616         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29617         exist, don't set REPLACE_MBSRTOWCS to 1.
29618         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29619         exist, don't set REPLACE_MBSNRTOWCS to 1.
29620         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29621         don't set REPLACE_WCRTOMB to 1.
29622         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29623         exist, don't set REPLACE_WCSRTOMBS to 1.
29624         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29625         exist, don't set REPLACE_WCSNRTOMBS to 1.
29626
29627 2010-04-05  Bruno Haible  <bruno@clisp.org>
29628
29629         ldexpl: Improve idiom.
29630         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29631         make sure to set HAVE_DECL_LDEXPL to 0.
29632
29633 2010-04-05  Jim Meyering  <meyering@redhat.com>
29634
29635         xstrtol-tests: convert to use init.sh
29636         * modules/xstrtol-tests (Files): Add tests/init.sh.
29637         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29638         Use Exit, not exit.
29639         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29640
29641         atexit-tests: convert to use init.sh
29642         * modules/atexit-tests (Files): Add tests/init.sh.
29643         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29644         Use Exit, not exit.
29645         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29646
29647         init.sh: fix typo
29648         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29649
29650         init.sh: make it easier for a test script to write to the tty, ...
29651         when using automake's parallel-tests mode.
29652         * tests/init.sh (stderr_fileno_): Define overridable variable.
29653         (warn_): New function, to use it.
29654         (fail_, skip_, framework_failure_): Use warn_.
29655
29656 2010-04-04  Bruno Haible  <bruno@clisp.org>
29657
29658         btowc: Avoid warning.
29659         * lib/btowc.c: Include <stdlib.h>.
29660         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29661
29662 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29663             Bruno Haible  <bruno@clisp.org>
29664
29665         wchar: Port to NetBSD 1.5.
29666         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29667         * lib/wctype.in.h (WEOF): Likewise.
29668
29669 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29670             Bruno Haible  <bruno@clisp.org>
29671
29672         Port extended stdio to NetBSD 1.5.
29673         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29674         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29675         older.
29676
29677 2010-04-04  Bruno Haible  <bruno@clisp.org>
29678
29679         string: Remove unused substitution.
29680         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29681         HAVE_DECL_STRERROR.
29682         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29683
29684 2010-04-04  Bruno Haible  <bruno@clisp.org>
29685
29686         strtod: Avoid a possible C++ test error.
29687         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29688         set REPLACE_STRTOD.
29689
29690 2010-04-04  Bruno Haible  <bruno@clisp.org>
29691
29692         strerror: Update documentation.
29693         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29694
29695 2010-04-04  Bruno Haible  <bruno@clisp.org>
29696
29697         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29698         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29699         _GL_CXXALIAS_SYS_CAST.
29700
29701 2010-04-04  Bruno Haible  <bruno@clisp.org>
29702
29703         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29704         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29705         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29706         REPLACE_FREXPL to 1.
29707         * doc/posix-functions/frexpl.texi: Update documentation.
29708
29709 2010-04-04  Bruno Haible  <bruno@clisp.org>
29710
29711         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29712         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29713
29714 2010-04-04  Bruno Haible  <bruno@clisp.org>
29715
29716         Implement nanosleep for native Windows.
29717         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29718
29719 2010-04-04  Bruno Haible  <bruno@clisp.org>
29720
29721         math: Fix some C++ test errors on Solaris 8.
29722         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29723
29724 2010-04-04  Bruno Haible  <bruno@clisp.org>
29725
29726         math: Fix some C++ test errors on Cygwin.
29727         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29728         truncl): Provide declaration if the system does not have it.
29729         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29730         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29731         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29732         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29733         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29734         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29735         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29736         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29737         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29738         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29739         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29740         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29741         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29742         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29743         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29744         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29746         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29747         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29748         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29749         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29750         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29751
29752 2010-04-04  Bruno Haible  <bruno@clisp.org>
29753
29754         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29755         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29756         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29757         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29758         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29759         * m4/isinf.m4 (gl_ISINF): Likewise.
29760         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29761
29762 2010-04-04  Bruno Haible  <bruno@clisp.org>
29763
29764         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29765         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29766
29767 2010-04-04  Bruno Haible  <bruno@clisp.org>
29768
29769         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29770         * modules/tmpfile (configure.ac): Update.
29771
29772         tmpfile: Fix C++ test error on mingw.
29773         * lib/stdio.in.h (tmpfile): New declaration.
29774         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29775         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29776         * modules/tmpfile (Depends-on): Add stdio.
29777         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29778         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29779         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29780         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29781         REPLACE_TMPFILE.
29782         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29783
29784 2010-04-04  Bruno Haible  <bruno@clisp.org>
29785
29786         ioctl: Fix C++ test error on mingw.
29787         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29788         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29789         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29790
29791 2010-04-03  Bruno Haible  <bruno@clisp.org>
29792
29793         wcwidth: Fix C++ test error on mingw.
29794         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29796         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29797
29798 2010-04-03  Bruno Haible  <bruno@clisp.org>
29799
29800         nanosleep: Fix C++ test error on mingw.
29801         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29802         * lib/time.in.h (nanosleep): Use modern idiom.
29803         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29804         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29805         REPLACE_NANOSLEEP to 1.
29806         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29807         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29808
29809 2010-04-03  Bruno Haible  <bruno@clisp.org>
29810
29811         strptime: Fix C++ test error on mingw.
29812         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29813         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29814         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29815         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29816         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29817         not REPLACE_STRPTIME.
29818         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29819         REPLACE_STRPTIME.
29820
29821 2010-04-03  Bruno Haible  <bruno@clisp.org>
29822
29823         timegm: Fix C++ test error on mingw.
29824         * lib/time.in.h (timegm): Use modern idiom.
29825         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29826         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29827         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29828         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29829
29830 2010-04-03  Bruno Haible  <bruno@clisp.org>
29831
29832         timegm: Assume declaration if function exists.
29833         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29834         if it exists. Don't clobber ac_cv_func_timegm.
29835
29836 2010-04-03  Bruno Haible  <bruno@clisp.org>
29837
29838         time_r: Fix C++ test error on mingw.
29839         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29840         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29841         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29842         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29843         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29844
29845 2010-04-03  Bruno Haible  <bruno@clisp.org>
29846
29847         time_r: Minor updates.
29848         * modules/time_r (Description): Mention the provided functions.
29849         * lib/time_r.c: Don't include <string.h>.
29850         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29851         * doc/posix-functions/localtime_r.texi: Likewise.
29852
29853 2010-04-03  Bruno Haible  <bruno@clisp.org>
29854
29855         time: Fix regression introduced on 2010-03-08.
29856         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29857         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29858
29859 2010-04-03  Jim Meyering  <meyering@redhat.com>
29860
29861         maint.mk: don't silently disable project-specific syntax-check rules
29862         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29863         that they need to convert their project-specific syntax-check rules
29864         to use the new _sc_search_regexp.
29865
29866 2010-04-03  Bruno Haible  <bruno@clisp.org>
29867
29868         fchdir: Fix regression introduced on 2010-03-08.
29869         * lib/unistd.in.h (fchdir): Fix declaration.
29870         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29872         REPLACE_FCHDIR.
29873         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29874         REPLACE_FCHDIR.
29875
29876 2010-04-03  Bruno Haible  <bruno@clisp.org>
29877
29878         getpagesize: Fix C++ test error on mingw.
29879         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29880         system does not declare the function.
29881         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29882         declared.
29883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29884         HAVE_DECL_GETPAGESIZE.
29885         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29886
29887 2010-04-03  Bruno Haible  <bruno@clisp.org>
29888
29889         stdio: Make C++ tests work on mingw.
29890         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29891         does not declare the function.
29892
29893 2010-04-03  Bruno Haible  <bruno@clisp.org>
29894
29895         ftello: Fix C++ test error on mingw.
29896         * lib/stdio.in.h (ftello): Use modern idiom.
29897         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29898         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29899         is missing and that it needs to be replaced.
29900         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29902         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29903
29904 2010-04-03  Bruno Haible  <bruno@clisp.org>
29905
29906         fseeko: Fix C++ test error on mingw.
29907         * lib/stdio.in.h (fseeko): Use modern idiom.
29908         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29909         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29910         is missing and that it needs to be replaced.
29911         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29913         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29914
29915 2010-04-03  Bruno Haible  <bruno@clisp.org>
29916
29917         mkstemp: Fix C++ test error on mingw.
29918         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29919         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29920         function is missing and that it needs to be replaced.
29921         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29922         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29923
29924 2010-04-03  Bruno Haible  <bruno@clisp.org>
29925
29926         stpncpy: Fix C++ test error on mingw.
29927         * lib/string.in.h (stpncpy): Use modern idiom.
29928         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
29929         function is missing and that it needs to be replaced.
29930         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29931         REPLACE_STPNCPY.
29932         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
29933
29934 2010-04-03  Bruno Haible  <bruno@clisp.org>
29935
29936         sys_stat: Fix C++ test error on mingw.
29937         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
29938         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
29939
29940 2010-04-03  Bruno Haible  <bruno@clisp.org>
29941
29942         pty: Update doc.
29943         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
29944
29945 2010-04-03  Bruno Haible  <bruno@clisp.org>
29946
29947         unistd: Fix C++ test error on mingw.
29948         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
29949
29950 2010-04-03  Bruno Haible  <bruno@clisp.org>
29951
29952         Update doc regarding mingw.
29953         * doc/glibc-functions/openpty.texi: Update regarding mingw.
29954         * doc/glibc-functions/login_tty.texi: Likewise.
29955         * doc/glibc-functions/forkpty.texi: Likewise.
29956
29957 2010-04-03  Bruno Haible  <bruno@clisp.org>
29958
29959         stdlib: Avoid compilation failure of c-strtold on mingw.
29960         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
29961
29962 2010-04-03  Bruno Haible  <bruno@clisp.org>
29963
29964         locale: Make C++ tests work on Cygwin and mingw.
29965         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
29966         cannot provide the function.
29967         Reported by Simon Josefsson.
29968
29969 2010-04-03  Bruno Haible  <bruno@clisp.org>
29970
29971         localename: Port to MacOS X 10.6.
29972         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
29973         memory layout of the locales in MacOS X 10.6 as well.
29974         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
29975
29976 2010-04-02  Bruno Haible  <bruno@clisp.org>
29977
29978         gnulib-tool: Ensure that long-running tests are executed last.
29979         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
29980         running tests after the one for the other tests.
29981
29982 2010-04-02  Bruno Haible  <bruno@clisp.org>
29983
29984         gnulib-tool: Ensure the tests in the main directory are executed first.
29985         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
29986         start with the current directory.
29987
29988 2010-04-02  Bruno Haible  <bruno@clisp.org>
29989
29990         Tests for module 'havelib', moved here from GNU gettext.
29991         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
29992         modifications.
29993         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
29994         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
29995         with modifications.
29996         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
29997         modifications.
29998         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
29999         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30000         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30001         with modifications.
30002         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30003         with modifications.
30004         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30005         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30006         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30007         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30008         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30009         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30010         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30011         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30012         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30013         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30014         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30015         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30016         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30017         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30018         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30019         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30020         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30021         with modifications.
30022         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30023         with modifications.
30024         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30025         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30026         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30027         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30028         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30029         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30030         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30031         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30032         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30033         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30034         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30035         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30036         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30037         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30038         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30039         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30040         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30041         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30042         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30043         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30044         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30045         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30046         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30047         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30048         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30049         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30050         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30051         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30052         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30053         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30054         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30055         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30056         * tests/havelib/rpathx/rpathx.c: New file, from
30057         gettext/autoconf-lib-link.
30058         * tests/havelib/rpathx/Makefile.am: New file, from
30059         gettext/autoconf-lib-link.
30060         * tests/havelib/rpathx/configure.ac: New file, from
30061         gettext/autoconf-lib-link with modifications.
30062         * tests/havelib/rpathy/rpathy.c: New file, from
30063         gettext/autoconf-lib-link.
30064         * tests/havelib/rpathy/Makefile.am: New file, from
30065         gettext/autoconf-lib-link.
30066         * tests/havelib/rpathy/configure.ac: New file, from
30067         gettext/autoconf-lib-link with modifications.
30068         * tests/havelib/rpathz/rpathz.c: New file, from
30069         gettext/autoconf-lib-link.
30070         * tests/havelib/rpathz/Makefile.am: New file, from
30071         gettext/autoconf-lib-link.
30072         * tests/havelib/rpathz/configure.ac: New file, from
30073         gettext/autoconf-lib-link with modifications.
30074         * tests/havelib/rpathlx/usex.c: New file, from
30075         gettext/autoconf-lib-link.
30076         * tests/havelib/rpathlx/Makefile.am: New file, from
30077         gettext/autoconf-lib-link.
30078         * tests/havelib/rpathlx/configure.ac: New file, from
30079         gettext/autoconf-lib-link with modifications.
30080         * tests/havelib/rpathly/usey.c: New file, from
30081         gettext/autoconf-lib-link.
30082         * tests/havelib/rpathly/Makefile.am: New file, from
30083         gettext/autoconf-lib-link.
30084         * tests/havelib/rpathly/configure.ac: New file, from
30085         gettext/autoconf-lib-link with modifications.
30086         * tests/havelib/rpathlz/usez.c: New file, from
30087         gettext/autoconf-lib-link.
30088         * tests/havelib/rpathlz/Makefile.am: New file, from
30089         gettext/autoconf-lib-link.
30090         * tests/havelib/rpathlz/configure.ac: New file, from
30091         gettext/autoconf-lib-link with modifications.
30092         * tests/havelib/rpathlyx/usey.c: New file, from
30093         gettext/autoconf-lib-link.
30094         * tests/havelib/rpathlyx/Makefile.am: New file, from
30095         gettext/autoconf-lib-link.
30096         * tests/havelib/rpathlyx/configure.ac: New file, from
30097         gettext/autoconf-lib-link with modifications.
30098         * tests/havelib/rpathlzyx/usez.c: New file, from
30099         gettext/autoconf-lib-link.
30100         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30101         gettext/autoconf-lib-link.
30102         * tests/havelib/rpathlzyx/configure.ac: New file, from
30103         gettext/autoconf-lib-link with modifications.
30104         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30105         with modifications.
30106
30107 2010-04-02  Bruno Haible  <bruno@clisp.org>
30108
30109         gnulib-tool: Create distributed built sources also for the tests.
30110         * gnulib-tool (func_create_testdir): Also generate distributed built
30111         sources in the tests directory.
30112
30113 2010-04-02  Bruno Haible  <bruno@clisp.org>
30114
30115         gnulib-tool: Obey user's environment variables.
30116         * gnulib-tool (func_create_testdir): When creating built sources,
30117         respect the environment variables for autoconf, automake, etc. given by
30118         the user.
30119
30120 2010-04-02  Bruno Haible  <bruno@clisp.org>
30121
30122         gnulib-tool: Provide the value of --m4-base to modules.
30123         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30124         of gl_m4_base.
30125
30126 2010-04-02  Eric Blake  <eblake@redhat.com>
30127
30128         maint.mk: fix some fallout
30129         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30130         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30131
30132 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30133
30134         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30135         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30136         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30137         (sc_cast_of_x_alloc_return_value): Likewise.
30138         (sc_cast_of_alloca_return_value): Likewise.
30139         (sc_space_tab): Likewise.
30140         (sc_prohibit_atoi_atof): Likewise.
30141         (sc_prohibit_magic_number_exit): Likewise.
30142         (sc_error_exit_success): Likewise.
30143         (sc_file_system): Likewise.
30144         (sc_prohibit_have_config_h): Likewise.
30145         (sc_require_config_h): Likewise.
30146         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30147         (sc_obsolete_symbols): Likewise.
30148         (sc_changelog): Likewise.
30149         (sc_program_name): Likewise.
30150         (sc_the_the): Likewise.
30151         (sc_trailing_blank): Likewise.
30152         (sc_two_space_separator_in_usage): Likewise.
30153         (sc_useless_cpp_parens): Likewise.
30154         (sc_GPL_version): Likewise.
30155         (sc_GFDL_version): Likewise.
30156         (sc_texinfo_acronym): Likewise.
30157         (sc_prohibit_cvs_keyword): Likewise.
30158         (sc_prohibit_stat_st_blocks): Likewise.
30159         (sc_prohibit_S_IS_definition): Likewise.
30160         (sc_redundant_const): Likewise.
30161         (sc_makefile_TAB_only_indentation): Likewise.
30162         (sc_m4_quote_check): Likewise.
30163         (sc_makefile_path_separator_check): Likewise.
30164         (sc_copyright_check): Likewise.
30165         (sc_Wundef_boolean): Likewise.
30166         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30167
30168         maint.mk: match 0 or more whitespace-before-function-call '('
30169         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30170         that have zero or two-and-more spaces between the function name
30171         and the open parenthesis.
30172         (sc_error_message_warn_fatal): Likewise.
30173         (sc_error_message_uppercase): Likewise.
30174         (sc_error_message_period): Likewise.
30175
30176 2010-03-31  Eric Blake  <eblake@redhat.com>
30177
30178         maint.mk: check for [ as well as test
30179         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30180         Based on a libvirt report by Matthias Bolte.
30181
30182         gnumakefile: don't squelch _version output
30183         * top/GNUmakefile (_version): Create one-shot dependency rather
30184         than using $(shell) when version must be regenerated.
30185         (_autoreconf): Run verbosely, by default.
30186
30187         sys_time: avoid compiler warnings
30188         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30189         unconditional, fixing regression from 2010-03-29.
30190         Reported by Simon Josefsson.
30191
30192 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30193
30194         maint.mk: s/_header_without_use/_sc_header_without_use/
30195         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30196         (sc_prohibit_assert_without_use): Use the new name.
30197         (sc_prohibit_close_stream_without_use): Likewise.
30198         (sc_prohibit_getopt_without_use): Likewise.
30199         (sc_prohibit_quotearg_without_use): Likewise.
30200         (sc_prohibit_quote_without_use): Likewise.
30201         (sc_prohibit_long_options_without_use): Likewise.
30202         (sc_prohibit_inttostr_without_use): Likewise.
30203         (sc_prohibit_ignore_value_without_use): Likewise.
30204         (sc_prohibit_error_without_use): Likewise.
30205         (sc_prohibit_xalloc_without_use): Likewise.
30206         (sc_prohibit_hash_without_use): Likewise.
30207         (sc_prohibit_hash_pjw_without_use): Likewise.
30208         (sc_prohibit_safe_read_without_use): Likewise.
30209         (sc_prohibit_argmatch_without_use): Likewise.
30210         (sc_prohibit_canonicalize_without_use): Likewise.
30211         (sc_prohibit_root_dev_ino_without_use): Likewise.
30212         (sc_prohibit_openat_without_use): Likewise.
30213         (sc_prohibit_c_ctype_without_use): Likewise.
30214         (sc_prohibit_signal_without_use): Likewise.
30215         (sc_prohibit_intprops_without_use): Likewise.
30216
30217 2010-03-30  Eric Blake  <eblake@redhat.com>
30218
30219         maint: improve module indicators
30220         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30221         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30222         columns, and avoid extra macro expansion.
30223
30224         fdopendir: work around FreeBSD bug
30225         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30226         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30227         * modules/dirent (Makefile.am): Substitute it.
30228         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30229         declaration.
30230         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30231         fix.
30232         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30233
30234 2010-03-29  Bruno Haible  <bruno@clisp.org>
30235
30236         Emit #pragma system_header after the inclusion guard, not before.
30237         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30238         guard that spans the entire file, not before. This enables an
30239         optimization in GCC's preprocessor.
30240         * lib/ctype.in.h: Likewise.
30241         * lib/dirent.in.h: Likewise.
30242         * lib/errno.in.h: Likewise.
30243         * lib/float.in.h: Likewise.
30244         * lib/getopt.in.h: Likewise.
30245         * lib/iconv.in.h: Likewise.
30246         * lib/langinfo.in.h: Likewise.
30247         * lib/locale.in.h: Likewise.
30248         * lib/math.in.h: Likewise.
30249         * lib/netdb.in.h: Likewise.
30250         * lib/netinet_in.in.h: Likewise.
30251         * lib/pty.in.h: Likewise.
30252         * lib/sched.in.h: Likewise.
30253         * lib/se-selinux.in.h: Likewise.
30254         * lib/search.in.h: Likewise.
30255         * lib/spawn.in.h: Likewise.
30256         * lib/stdarg.in.h: Likewise.
30257         * lib/stdint.in.h: Likewise.
30258         * lib/string.in.h: Likewise.
30259         * lib/strings.in.h: Likewise.
30260         * lib/sys_file.in.h: Likewise.
30261         * lib/sys_ioctl.in.h: Likewise.
30262         * lib/sys_time.in.h: Likewise.
30263         * lib/sys_times.in.h: Likewise.
30264         * lib/sys_utsname.in.h: Likewise.
30265         * lib/sys_wait.in.h: Likewise.
30266         * lib/sysexits.in.h: Likewise.
30267         * lib/wctype.in.h: Likewise.
30268
30269 2010-03-28  James Youngman  <jay@gnu.org>
30270
30271         save-cwd: don't leak a file descriptor when the caller execs.
30272         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30273         saved file descriptor.
30274         * modules/save-cwd (Depends-on): Depend on cloexec.
30275
30276 2010-03-29  Bruno Haible  <bruno@clisp.org>
30277
30278         Remove vestiges of fts-lgpl module.
30279         * lib/fts_.h: Assume GNULIB_FTS is 1.
30280         * lib/fts.c: Likewise.
30281         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30282
30283 2010-03-28  Bruno Haible  <bruno@clisp.org>
30284
30285         Fix definition of tests witness macro.
30286         * gnulib-tool (func_import): Fix definition of witness macro.
30287
30288 2010-03-28  Bruno Haible  <bruno@clisp.org>
30289
30290         Fix ioctl's protoype on glibc systems.
30291         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30292         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30293         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30294         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30295         signature. If not, arrange to replace the ioctl function.
30296         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30297         REPLACE_IOCTL.
30298         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30299         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30300         Reported by Ludovic Courtès <ludo@gnu.org>.
30301
30302 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30303
30304         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30305         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30306         made it so grep -r --include=GLOB* ... did not work.
30307
30308 2010-03-26  Jim Meyering  <meyering@redhat.com>
30309             Eric Blake  <eblake@redhat.com>
30310
30311         maint.mk: prohibit use of test's -o and -a operators
30312         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30313
30314 2010-03-28  Bruno Haible  <bruno@clisp.org>
30315
30316         Remove unused GNULIB_XYZ macro definitions.
30317         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30318         invocation.
30319
30320 2010-03-28  Bruno Haible  <bruno@clisp.org>
30321
30322         Mark privileged tests modules.
30323         * modules/idpriv-drop-tests (Status): New section.
30324         * modules/idpriv-droptemp-tests (Status): New section.
30325
30326 2010-03-28  Bruno Haible  <bruno@clisp.org>
30327
30328         Split C++ tests into separate tests modules.
30329         * modules/dirent-c++-tests: New file, extracted from
30330         modules/dirent-tests.
30331         * modules/dirent-tests: Depend on it.
30332         * modules/fcntl-h-c++-tests: New file, extracted from
30333         modules/fcntl-h-tests.
30334         * modules/fcntl-h-tests: Depend on it.
30335         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30336         * modules/glob-tests: Depend on it.
30337         * modules/iconv-h-c++-tests: New file, extracted from
30338         modules/iconv-h-tests.
30339         * modules/iconv-h-tests: Depend on it.
30340         * modules/langinfo-c++-tests: New file, extracted from
30341         modules/langinfo-tests.
30342         * modules/langinfo-tests: Depend on it.
30343         * modules/locale-c++-tests: New file, extracted from
30344         modules/locale-tests.
30345         * modules/locale-tests: Depend on it.
30346         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30347         * modules/math-tests: Depend on it.
30348         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30349         * modules/pty-tests: Depend on it.
30350         * modules/search-c++-tests: New file, extracted from
30351         modules/search-tests.
30352         * modules/search-tests: Depend on it.
30353         * modules/signal-c++-tests: New file, extracted from
30354         modules/signal-tests.
30355         * modules/signal-tests: Depend on it.
30356         * modules/spawn-c++-tests: New file, extracted from
30357         modules/spawn-tests.
30358         * modules/spawn-tests: Depend on it.
30359         * modules/stdio-c++-tests: New file, extracted from
30360         modules/stdio-tests.
30361         * modules/stdio-tests: Depend on it.
30362         * modules/stdlib-c++-tests: New file, extracted from
30363         modules/stdlib-tests.
30364         * modules/stdlib-tests: Depend on it.
30365         * modules/string-c++-tests: New file, extracted from
30366         modules/string-tests.
30367         * modules/string-tests: Depend on it.
30368         * modules/sys_ioctl-c++-tests: New file, extracted from
30369         modules/sys_ioctl-tests.
30370         * modules/sys_ioctl-tests: Depend on it.
30371         * modules/sys_select-c++-tests: New file, extracted from
30372         modules/sys_select-tests.
30373         * modules/sys_select-tests: Depend on it.
30374         * modules/sys_socket-c++-tests: New file, extracted from
30375         modules/sys_socket-tests.
30376         * modules/sys_socket-tests: Depend on it.
30377         * modules/sys_stat-c++-tests: New file, extracted from
30378         modules/sys_stat-tests.
30379         * modules/sys_stat-tests: Depend on it.
30380         * modules/sys_time-c++-tests: New file, extracted from
30381         modules/sys_time-tests.
30382         * modules/sys_time-tests: Depend on it.
30383         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30384         * modules/time-tests: Depend on it.
30385         * modules/unistd-c++-tests: New file, extracted from
30386         modules/unistd-tests.
30387         * modules/unistd-tests: Depend on it.
30388         * modules/wchar-c++-tests: New file, extracted from
30389         modules/wchar-tests.
30390         * modules/wchar-tests: Depend on it.
30391         * modules/wctype-c++-tests: New file, extracted from
30392         modules/wctype-tests.
30393         * modules/wctype-tests: Depend on it.
30394         Reported by Simon Josefsson.
30395
30396 2010-03-28  Bruno Haible  <bruno@clisp.org>
30397
30398         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30399         * gnulib-tool (func_exists_module): New function, extracted from
30400         func_verify_module.
30401         (func_verify_module): Use it.
30402         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30403         'foo' only if 'foo' exists.
30404         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30405         module.
30406
30407 2010-03-28  Bruno Haible  <bruno@clisp.org>
30408
30409         gnulib-tool: Add support for special categories of tests.
30410         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30411         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30412         (func_usage): Document them.
30413         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30414         inc_unportable_tests, inc_all_tests): New variables.
30415         (func_acceptable): Consider these variables.
30416         (func_modules_transitive_closure): Make it work when the 'Status' field
30417         consists of multiple words.
30418         (func_import): Store and restore the values of inc_cxx_tests,
30419         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30420         inc_all_tests in gnulib-comp.m4.
30421         (func_create_testdir): Set inc_all_tests to true.
30422         * doc/gnulib.texi (Extra tests modules): New section.
30423         Suggested by Jim Meyering.
30424
30425 2010-03-28  Bruno Haible  <bruno@clisp.org>
30426
30427         ansi-c++-opt: Allow turning off the C++ build by default.
30428         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30429         gl_CXX_CHOICE_DEFAULT_NO is defined.
30430         Requested by Eric Blake.
30431
30432 2010-03-28  Bruno Haible  <bruno@clisp.org>
30433
30434         unistd: Avoid #define replacements in C++ mode.
30435         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30436         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30437         setsockopt, shutdown, select): In C++, attach a warning to the function
30438         if possible, rather than #defining the symbol to a dysfunctional alias.
30439         Reported by John W. Eaton <jwe@gnu.org>.
30440
30441 2010-03-28  Bruno Haible  <bruno@clisp.org>
30442
30443         Fix link errors on mingw.
30444         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30445         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30446         $(LIBSOCKET).
30447         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30448         $(LIBSOCKET).
30449
30450 2010-03-28  Bruno Haible  <bruno@clisp.org>
30451             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30452
30453         lib-ignore: Determine different options for different compilers.
30454         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30455         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30456         Add comments.
30457         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30458         * NEWS: Mention the change.
30459
30460 2010-03-27  Bruno Haible  <bruno@clisp.org>
30461
30462         Remove unused GNULIB_XYZ macro definitions.
30463         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30464         * modules/fseek (configure.ac): Likewise.
30465         * modules/ioctl (configure.ac): Likewise.
30466         * modules/open (configure.ac): Likewise.
30467         * modules/stdlib-safer (configure.ac): Likewise.
30468
30469 2010-03-27  Bruno Haible  <bruno@clisp.org>
30470
30471         Add a remark about certain modules.
30472         * modules/malloc (Comment): New section.
30473         * modules/realloc (Comment): Likewise.
30474         * modules/sigpipe (Comment): Likewise.
30475
30476 2010-03-27  Bruno Haible  <bruno@clisp.org>
30477
30478         Resolve conflict between the two kinds of module indicators.
30479         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30480         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30481         * modules/canonicalize (configure.ac): Invoke
30482         gl_MODULE_INDICATOR_FOR_TESTS.
30483         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30484         GNULIB_XYZ.
30485         * tests/test-dirent-c++.cc: Likewise.
30486         * tests/test-dirent-safer.c: Likewise.
30487         * tests/test-dup2.c: Likewise.
30488         * tests/test-fchdir.c: Likewise.
30489         * tests/test-fcntl-h-c++.cc: Likewise.
30490         * tests/test-getopt.c: Likewise.
30491         * tests/test-getopt.h: Likewise.
30492         * tests/test-langinfo-c++.cc: Likewise.
30493         * tests/test-locale-c++.cc: Likewise.
30494         * tests/test-math-c++.cc: Likewise.
30495         * tests/test-pty-c++.cc: Likewise.
30496         * tests/test-search-c++.cc: Likewise.
30497         * tests/test-signal-c++.cc: Likewise.
30498         * tests/test-spawn-c++.cc: Likewise.
30499         * tests/test-stdio-c++.cc: Likewise.
30500         * tests/test-stdlib-c++.cc: Likewise.
30501         * tests/test-string-c++.cc: Likewise.
30502         * tests/test-sys_ioctl-c++.cc: Likewise.
30503         * tests/test-sys_select-c++.cc: Likewise.
30504         * tests/test-sys_socket-c++.cc: Likewise.
30505         * tests/test-sys_stat-c++.cc: Likewise.
30506         * tests/test-sys_time-c++.cc: Likewise.
30507         * tests/test-time-c++.cc: Likewise.
30508         * tests/test-unistd-c++.cc: Likewise.
30509         * tests/test-wchar-c++.cc: Likewise.
30510         * tests/uninorm/test-u8-nfc.c: Likewise.
30511         * tests/uninorm/test-u8-nfd.c: Likewise.
30512         * tests/uninorm/test-u8-nfkc.c: Likewise.
30513         * tests/uninorm/test-u8-nfkd.c: Likewise.
30514         * tests/uninorm/test-u16-nfc.c: Likewise.
30515         * tests/uninorm/test-u16-nfd.c: Likewise.
30516         * tests/uninorm/test-u16-nfkc.c: Likewise.
30517         * tests/uninorm/test-u16-nfkd.c: Likewise.
30518         * tests/uninorm/test-u32-nfc.c: Likewise.
30519         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30520         * tests/uninorm/test-u32-nfd.c: Likewise.
30521         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30522         * tests/uninorm/test-u32-nfkc.c: Likewise.
30523         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30524         * tests/uninorm/test-u32-nfkd.c: Likewise.
30525         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30526         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30527
30528 2010-03-27  Bruno Haible  <bruno@clisp.org>
30529
30530         Distinguish two kinds of module indicators.
30531         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30532         gl_MODULE_INDICATOR.
30533         (gl_MODULE_INDICATOR): New macro.
30534         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30535         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30536         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30537         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30538         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30539         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30540         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30541         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30542         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30543         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30544         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30545         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30546         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30547         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30548         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30549         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30550         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30551         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30552         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30553         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30554         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30555         * modules/cloexec (configure.ac): Likewise.
30556         * modules/getopt-gnu (configure.ac): Likewise.
30557         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30558         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30559         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30560         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30561
30562 2010-03-27  Bruno Haible  <bruno@clisp.org>
30563
30564         New module description field 'Comment'.
30565         * gnulib-tool: New option --extract-comment.
30566         (func_usage): Document it.
30567         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30568         (func_get_comment): New function.
30569         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30570
30571 2010-03-27  Bruno Haible  <bruno@clisp.org>
30572
30573         Addendum to 2010-02-07 commit.
30574         * gnulib-tool (func_usage): Document --extract-applicability option.
30575
30576 2010-03-27  Bruno Haible  <bruno@clisp.org>
30577
30578         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30579         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30580         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30581         rather than link errors.
30582
30583 2010-03-27  Bruno Haible  <bruno@clisp.org>
30584
30585         Avoid side effects from tests-related modules on the compilation of lib.
30586         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30587         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30588         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30589         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30590         macro.
30591         (func_import): Define a witness macro. Assign it a value that depends
30592         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30593         tests-related modules.
30594         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30595         Reported by Jim Meyering.
30596
30597 2010-03-27  Bruno Haible  <bruno@clisp.org>
30598
30599         Factorize common .m4 code.
30600         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30601         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30602         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30603         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30604         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30605         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30606         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30607         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30608         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30609         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30610         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30611         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30612         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30613         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30614         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30615         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30616         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30617         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30618         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30619         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30620         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30621         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30622         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30623         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30624         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30625         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30626         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30627         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30628         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30629         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30630         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30631         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30632
30633 2010-03-27  Bruno Haible  <bruno@clisp.org>
30634
30635         Fix a compilation error on Cygwin with g++ >= 4.3.
30636         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30637         if it is undefined or if we alias it to chmod.
30638         (lstat): Don't warn about the use of this function if it is undefined
30639         or if we alias it to stat.
30640         Reported by Simon Josefsson.
30641
30642 2010-03-27  Bruno Haible  <bruno@clisp.org>
30643
30644         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30645         * modules/getlogin (configure.ac): Update.
30646
30647         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30648         * modules/getlogin_r (configure.ac): Update.
30649
30650         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30651         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30652         * modules/inet_ntop (configure.ac): Update.
30653
30654         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30655         * modules/inet_pton (configure.ac): Update.
30656
30657         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30658         * modules/mbslen (configure.ac): Update.
30659
30660         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30661         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30662         * modules/forkpty (configure.ac): Update.
30663         * modules/openpty (configure.ac): Update.
30664
30665 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30666
30667         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30668         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30669
30670 2010-03-25  Eric Blake  <eblake@redhat.com>
30671
30672         maint: use pragma consistently across replacement headers
30673         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30674         * lib/dirent.in.h (system_header): Likewise.
30675         * lib/errno.in.h (system_header): Likewise.
30676         * lib/float.in.h (system_header): Likewise.
30677         * lib/getopt.in.h (system_header): Likewise.
30678         * lib/iconv.in.h (system_header): Likewise.
30679         * lib/inttypes.in.h (system_header): Likewise.
30680         * lib/langinfo.in.h (system_header): Likewise.
30681         * lib/locale.in.h (system_header): Likewise.
30682         * lib/math.in.h (system_header): Likewise.
30683         * lib/netdb.in.h (system_header): Likewise.
30684         * lib/netinet_in.in.h (system_header): Likewise.
30685         * lib/pty.in.h (system_header): Likewise.
30686         * lib/sched.in.h (system_header): Likewise.
30687         * lib/se-selinux.in.h (system_header): Likewise.
30688         * lib/search.in.h (system_header): Likewise.
30689         * lib/spawn.in.h (system_header): Likewise.
30690         * lib/stdarg.in.h (system_header): Likewise.
30691         * lib/stdint.in.h (system_header): Likewise.
30692         * lib/string.in.h (system_header): Likewise.
30693         * lib/strings.in.h (system_header): Likewise.
30694         * lib/sys_file.in.h (system_header): Likewise.
30695         * lib/sys_ioctl.in.h (system_header): Likewise.
30696         * lib/sys_socket.in.h (system_header): Likewise.
30697         * lib/sys_times.in.h (system_header): Likewise.
30698         * lib/sys_utsname.in.h (system_header): Likewise.
30699         * lib/sys_wait.in.h (system_header): Likewise.
30700         * lib/sysexits.in.h (system_header): Likewise.
30701         * lib/unistd.in.h (system_header): Likewise.
30702         * lib/wctype.in.h (system_header): Likewise.
30703
30704         arpa/inet: fix mingw compilation warning
30705         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30706         Reported by Matthew Bolte.
30707
30708 2010-03-25  Bruno Haible  <bruno@clisp.org>
30709
30710         Avoid collision between gnulib wrapper and libintl wrapper.
30711         * lib/printf.c (printf): Don't define if a printf wrapper is already
30712         defined in intl/printf.c.
30713         Reported by Michel Boaventura <michel@michelboaventura.com>.
30714
30715 2010-03-25  Bruno Haible  <bruno@clisp.org>
30716
30717         Use ANSI C.
30718         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30719
30720 2010-03-25  Bruno Haible  <bruno@clisp.org>
30721
30722         Minor formatting changes.
30723         * lib/acosl.c: Insert space before function argument list.
30724         * lib/argz.c: Likewise.
30725         * lib/asinl.c: Likewise.
30726         * lib/expl.c: Likewise.
30727         * lib/gen-uni-tables.c: Likewise.
30728         * lib/gettext.h: Likewise.
30729         * lib/glthread/lock.h: Likewise.
30730         * lib/tanl.c: Likewise.
30731         * lib/uniname/uniname.c: Likewise.
30732         * tests/test-idpriv-drop.c: Likewise.
30733         * tests/test-idpriv-droptemp.c: Likewise.
30734         * tests/test-lock.c: Likewise.
30735         * tests/test-tls.c: Likewise.
30736         * lib/argp-help.c: Insert space before function-like macro argument
30737         list.
30738         * lib/memcmp.c: Likewise.
30739         * tests/test-base64.c: Likewise.
30740         * lib/localename.c: Insert space before sizeof's argument list.
30741         * lib/safe-alloc.h: Likewise.
30742         * lib/file-set.h: Insert space before macro argument list.
30743         * tests/test-argp.c: Likewise.
30744         * lib/argp-namefrob.h: Insert space before function parameter list.
30745         * lib/getaddrinfo.c: Likewise.
30746         * lib/netdb.in.h: Likewise.
30747         * lib/parse-duration.h: Likewise.
30748         * lib/parse-duration.c: Likewise.
30749         * lib/poll.c: Likewise.
30750         * lib/select.c: Likewise.
30751         * lib/trim.h: Likewise.
30752         * tests/test-usleep.c: Likewise.
30753         * lib/ldexpl.c: Insert space before function parameter list and before
30754         function argument list.
30755         * lib/logl.c: Likewise.
30756         * lib/sqrtl.c: Likewise.
30757         * lib/trim.c: Likewise.
30758         * lib/cosl.c: Use GNU style indentation. Insert space before function
30759         argument list.
30760         * lib/sinl.c: Likewise.
30761         * lib/tsearch.c: Insert space after 'for'.
30762         Reported by Jim Meyering.
30763
30764 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30765
30766         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30767         config header before grepping, as it's not present before
30768         autoreconf/configure are run.  Reported by Simon Josefsson.
30769
30770 2010-03-23  Bruno Haible  <bruno@clisp.org>
30771
30772         pt_chown: Make it work with automake < 1.11.
30773         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30774         Reported by Simon Josefsson.
30775
30776 2010-03-23  Bruno Haible  <bruno@clisp.org>
30777
30778         pt_chown: Don't depend on GPLed modules.
30779         * lib/pt_chown.c: Don't include idpriv.h.
30780         (main): Don't drop privileges.
30781         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30782         Reported by Simon Josefsson.
30783
30784 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30785
30786         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30787         suggestions from karl@freefriends.org (Karl Berry).
30788
30789 2010-03-22  Eric Blake  <eblake@redhat.com>
30790
30791         gethostname: further tweaks
30792         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30793         are overriding gethostname.
30794         Suggested by Bruno Haible.
30795
30796 2010-03-21  Bruno Haible  <bruno@clisp.org>
30797
30798         Fix comments.
30799         * lib/forkpty.c (rpl_forkpty): Fix comment.
30800         * lib/openpty.c (rpl_openpty): Likewise.
30801         Reported by Eric Blake.
30802
30803 2010-03-22  Eric Blake  <eblake@redhat.com>
30804
30805         gethostname: fix build on mingw
30806         * lib/unistd.in.h (includes): Work around fact that mingw
30807         <winsock2.h> re-includes <unistd.h>, by avoiding any
30808         redeclarations if we are being included by <winsock2.h>.
30809         Reported by Matthias Bolte.
30810
30811 2010-03-21  Bruno Haible  <bruno@clisp.org>
30812
30813         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30814         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30815         modifications.
30816         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30817         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30818         provide the replacement.
30819         * modules/forkpty (Depends-on): Add openpty, login_tty.
30820         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30821         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30822         * doc/glibc-functions/forkpty.texi: More supported platforms.
30823         * config/srclist.txt: Add forkpty.c (commented).
30824
30825 2010-03-21  Bruno Haible  <bruno@clisp.org>
30826
30827         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30828         (Makefile.am): Verify that PTY_LIB is defined.
30829
30830         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30831
30832 2010-03-21  Bruno Haible  <bruno@clisp.org>
30833
30834         Tests for module 'login_tty'.
30835         * modules/login_tty-tests: New file.
30836         * tests/test-login_tty.c: New file.
30837
30838         New module 'login_tty'.
30839         * lib/login_tty.c: New file.
30840         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30841         * modules/login_tty: New file.
30842         * doc/glibc-functions/login_tty.texi: Mention the new module.
30843
30844 2010-03-21  Bruno Haible  <bruno@clisp.org>
30845
30846         login_tty: Documentation.
30847         * doc/glibc-functions/login_tty.texi: New file.
30848         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30849
30850 2010-03-21  Bruno Haible  <bruno@clisp.org>
30851
30852         pty: Consistent macro naming.
30853         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30854         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30855         * modules/pty (configure.ac): Update.
30856
30857 2010-03-21  Bruno Haible  <bruno@clisp.org>
30858
30859         Tests for openpty: Make stricter.
30860         * tests/test-openpty.c (main): Add test of canonical processing and
30861         erase.
30862         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30863
30864         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30865         * lib/openpty.c (openpty): New replacement function.
30866         * lib/pty.in.h: Include <termios.h>.
30867         (openpty): Update declaration. Add comments.
30868         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30869         is not declared, arrange to provide the replacement. Check for _getpty
30870         and posix_openpt.
30871         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30872         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30873         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30874         * modules/pty-tests (test_pty_c___LDADD): New variable.
30875         * doc/glibc-functions/openpty.texi: More supported platforms.
30876
30877 2010-03-21  Bruno Haible  <bruno@clisp.org>
30878
30879         setenv: Tweaks.
30880         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30881         the test program.
30882         * doc/posix-functions/setenv.texi: Update platforms list.
30883
30884 2010-03-21  Bruno Haible  <bruno@clisp.org>
30885
30886         New module 'unlockpt'.
30887         * lib/unlockpt.c: New file, from glibc with modifications.
30888         * m4/unlockpt.m4: New file.
30889         * modules/unlockpt: New file.
30890         * lib/stdlib.in.h (unlockpt): New declaration.
30891         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30892         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30893         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30894         HAVE_UNLOCKPT.
30895         * doc/posix-functions/unlockpt.texi: Mention the new module.
30896         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30897         * config/srclist.txt: Add unlockpt.c (commented).
30898
30899 2010-03-21  Jim Meyering  <meyering@redhat.com>
30900
30901         maint.mk: prohibit inclusion of "intprops.h" without use
30902         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30903
30904 2010-03-21  Bruno Haible  <bruno@clisp.org>
30905
30906         New module 'grantpt'.
30907         * lib/grantpt.c: New file, from glibc with modifications.
30908         * m4/grantpt.m4: New file.
30909         * modules/grantpt: New file.
30910         * lib/stdlib.in.h (grantpt): New declaration.
30911         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30912         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30913         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30914         HAVE_GRANTPT.
30915         * doc/posix-functions/grantpt.texi: Mention the new module.
30916         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30917         * config/srclist.txt: Add grantpt.c (commented).
30918
30919 2010-03-21  Bruno Haible  <bruno@clisp.org>
30920
30921         New module 'pt_chown'.
30922         * lib/pt_chown.c: New file, from glibc with modifications.
30923         * lib/pty-private.h: New file, from glibc with modifications.
30924         * modules/pt_chown: New file.
30925         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30926
30927 2010-03-21  Bruno Haible  <bruno@clisp.org>
30928
30929         Tests for module 'ptsname'.
30930         * modules/ptsname-tests: New file.
30931         * tests/test-ptsname.c: New file.
30932
30933         New module 'ptsname'.
30934         * lib/ptsname.c: New file, from glibc with modifications.
30935         * m4/ptsname.m4: New file.
30936         * modules/ptsname: New file.
30937         * lib/stdlib.in.h (ptsname): New declaration.
30938         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
30939         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
30940         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
30941         HAVE_PTSNAME.
30942         * doc/posix-functions/ptsname.texi: Mention the new module.
30943         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
30944         * config/srclist.txt: Add ptsname.c (commented).
30945
30946 2010-03-21  Bruno Haible  <bruno@clisp.org>
30947
30948         Tests for module 'ttyname_r'.
30949         * modules/ttyname_r-tests: New file.
30950         * tests/test-ttyname_r.c: New file.
30951
30952         New module 'ttyname_r'.
30953         * lib/ttyname_r.c: New file.
30954         * m4/ttyname_r.m4: New file.
30955         * modules/ttyname_r: New file.
30956         * lib/unistd.in.h (ttyname_r): New declaration.
30957         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
30958         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
30959         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
30960         HAVE_TTYNAME_R.
30961         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
30962         * doc/posix-functions/ttyname_r.texi: Mention the new module.
30963
30964 2010-03-20  Bruno Haible  <bruno@clisp.org>
30965
30966         signal: Undefine macro definitions in C++ mode.
30967         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
30968         sigfillset): Undefine macro definitions from the system header in C++
30969         mode.
30970         Reported by John W. Eaton <jwe@gnu.org>.
30971
30972 2010-03-20  Bruno Haible  <bruno@clisp.org>
30973
30974         Ensure no #include statements inside extern "C" { ... }.
30975         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
30976         contain #include statements.
30977         * lib/time.in.h: Likewise.
30978
30979 2010-03-20  Bruno Haible  <bruno@clisp.org>
30980
30981         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
30982         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
30983         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
30984         Reported by John W. Eaton <jwe@gnu.org>.
30985
30986 2010-03-20  Bruno Haible  <bruno@clisp.org>
30987
30988         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
30989         Reported by Jim Meyering.
30990
30991 2010-03-20  Bruno Haible  <bruno@clisp.org>
30992
30993         pipe: Set errno upon failure.
30994         * lib/pipe.h: Specify that when -1 is returned, errno is set.
30995         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
30996         errno value in error message.
30997
30998 2010-03-20  Bruno Haible  <bruno@clisp.org>
30999             Jim Meyering  <meyering@redhat.com>
31000
31001         lchown: Avoid "unused variable" warning.
31002         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31003
31004 2010-03-20  Bruno Haible  <bruno@clisp.org>
31005
31006         Work around unlink() bug on MacOS X 10.5.6.
31007         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31008         attempting to unlink a parent directory.
31009         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31010         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31011         activate for the replacement function.
31012         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31013
31014 2010-03-20  Bruno Haible  <bruno@clisp.org>
31015
31016         Fix link errors on Solaris 8.
31017         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31018         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31019
31020 2010-03-19  Jim Meyering  <meyering@redhat.com>
31021
31022         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31023         The _LIBC implementation of build_range_exp correctly honors the
31024         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31025         However, the non-_LIBC implementation would ignore that syntax-bit
31026         flag and return REG_ERANGE unconditionally.
31027         This change makes it honor that flag.
31028         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31029         Make two pointer parameters "const".
31030         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31031         (parse_bracket_exp): Update caller.
31032
31033         regex.m4: correct the reversed range endpoint ([b-a]) test
31034         * m4/regex.m4: When requiring that [b-a] evoke failure,
31035         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31036         test pass once again for x86-based systems.
31037
31038 2010-03-19  Bruno Haible  <bruno@clisp.org>
31039
31040         scandir: Fix link error on Solaris 8.
31041         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31042         macros.
31043
31044 2010-03-19  Bruno Haible  <bruno@clisp.org>
31045
31046         getusershell: Fix documentation.
31047         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31048         module.
31049         * doc/glibc-functions/setusershell.texi: Likewise.
31050
31051         getusershell: Provide declaration, missing on Solaris 9.
31052         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31053         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31054         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31055         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31057         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31058         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31059         HAVE_GETUSERSHELL.
31060         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31061
31062 2010-03-19  Bruno Haible  <bruno@clisp.org>
31063
31064         wctype: Provide iswblank function.
31065         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31066         exists and is fine.
31067         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31068         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31069         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31070         * doc/posix-functions/iswblank.texi: Update.
31071
31072 2010-03-19  Bruno Haible  <bruno@clisp.org>
31073
31074         Tests of module 'pty' in C++ mode.
31075         * modules/pty-tests: New file.
31076         * tests/test-pty-c++.cc: New file.
31077         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31078
31079 2010-03-19  Eric Blake  <eblake@redhat.com>
31080
31081         logb: fix documentation
31082         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31083         1.5 declaration bug.
31084
31085         forkpty, openpty: prefer glibc's const-safe prototype
31086         * lib/forkpty.c (rpl_forkpty): New file.
31087         * lib/openpty.c (rpl_openpty): Likewise.
31088         * modules/forkpty (Files): Distribute it.
31089         * modules/openpty (Files): Likewise.
31090         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31091         check...
31092         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31093         replacement for for non-const BSD signature.
31094         * modules/pty (Makefile.am): Substitute witnesses.
31095         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31096         * tests/test-forkpty.c: Update signature check.
31097         * tests/test-openpty.c: Likewise.
31098         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31099         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31100
31101         forkpty, openpty: split functions into new modules
31102         * modules/pty (Makefile.am): Substitute new witnesses.
31103         (Libraries): Move library detection...
31104         * modules/forkpty: ...into new module.
31105         * modules/openpty: Another new module.
31106         * modules/pty-tests: Rename and split...
31107         * modules/forkpty-tests: ...to this...
31108         * modules/openpty-tests: ...and this.
31109         * tests/test-pty.c: Rename and split...
31110         * tests/test-forkpty.c: ...to this...
31111         * tests/test-openpty.c: ...and this.
31112         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31113         (gl_PTY): Split library searching...
31114         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31115         (gl_FORKPTY, gl_OPENPTY): New macros.
31116         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31117         * NEWS: Mention the split.
31118         * MODULES.html.sh (Misc): Document the modules.
31119         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31120         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31121
31122         pty: improve replacement header
31123         * lib/pty.in.h: New file.
31124         * modules/pty (Files): Ship it.
31125         (Makefile.am): Always build replacement.
31126         * m4/pty.m4: Rename...
31127         * m4/pty_h.m4: ...to this.
31128         (gl_PTY): Modernize setting of witness macros; update check of
31129         forkpty to take proper advantage of cache.
31130         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31131
31132         getopt: avoid compiler warning
31133         * lib/getopt.c (attribute_hidden): Remove unused macro.
31134
31135 2010-03-18  Bruno Haible  <bruno@clisp.org>
31136
31137         Fix link errors on Solaris 8.
31138         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31139         * modules/search-tests (test_search_c___LDADD): Likewise.
31140         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31141         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31142         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31143         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31144         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31145         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31146         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31147
31148 2010-03-18  Bruno Haible  <bruno@clisp.org>
31149
31150         Fix bug introduced on 2010-03-14.
31151         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31152         (gl_SPAWN_H): Require it.
31153         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31154         Reported by Simon Josefsson.
31155
31156 2010-03-18  Bruno Haible  <bruno@clisp.org>
31157
31158         Fix typo introduced on 2009-12-31.
31159         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31160         posix_spawn_file_actions_adddup2.
31161
31162 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31163         and Eric Blake  <eblake@redhat.com>
31164
31165         test-vc-list-files-git: make more robust
31166         * tests/test-vc-list-files-git.sh: Unset problematic environment
31167         variables.  Chain commands together.
31168
31169 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31170
31171         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31172         `AC_CHECK_DECL' invocation.
31173
31174 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31175
31176         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31177         appears before executable statements. Suggested by Petr Sumbera
31178         <Petr.Sumbera@Sun.COM>.
31179
31180 2010-03-14  Bruno Haible  <bruno@clisp.org>
31181
31182         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31183         portability problems. Instead use a simpler test.
31184         (main): Check that invalid arguments are rejected only on Linux.
31185
31186 2010-03-14  Bruno Haible  <bruno@clisp.org>
31187
31188         Fix bug introduced on 2009-12-31.
31189         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31190         gl_PREREQ_SYS_H_WINSOCK2 always.
31191         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31192         SYS_SOCKET_H variable.
31193         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31194         Update comments.
31195         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31196         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31197         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31198         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31199         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31200
31201 2010-03-14  Bruno Haible  <bruno@clisp.org>
31202
31203         Fix values returned by sinl, cosl.
31204         * lib/trigl.h: Add specification comments.
31205         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31206         that combines the values from the precomputed table with the values of
31207         the Chebyshev polynomials.
31208
31209 2010-03-14  Bruno Haible  <bruno@clisp.org>
31210
31211         Fix compilation error when modules 'posix_spawn[p]' are not used.
31212         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31213         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31214
31215 2010-03-14  Bruno Haible  <bruno@clisp.org>
31216
31217         Fix compilation error on mingw when module 'time_r' is not used.
31218         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31219         is 1.
31220         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31221         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31222         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31223         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31224
31225 2010-03-14  Bruno Haible  <bruno@clisp.org>
31226
31227         Fix compilation error with Sun C.
31228         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31229         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31230         instead of GCC specific ULONG_LONG_MAX.
31231         * lib/xstrtoll.c: Likewise.
31232         * lib/xstrtoull.c: Likewise.
31233
31234 2010-03-13  Bruno Haible  <bruno@clisp.org>
31235
31236         Allow the user to disable C++ code and tests.
31237         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31238         (gl_PROG_ANSI_CXX): Require it.
31239
31240 2010-03-13  Bruno Haible  <bruno@clisp.org>
31241
31242         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31243         cases.
31244
31245 2010-03-13  Bruno Haible  <bruno@clisp.org>
31246
31247         Test that gnulib does not break the standard C++ headers.
31248         * tests/test-locale-c++2.cc: New file.
31249         * modules/locale-tests (Files): Add it.
31250         (Makefile.am): Compile it for test-locale-c++.
31251         * tests/test-math-c++2.cc: New file.
31252         * modules/math-tests (Files): Add it.
31253         (Makefile.am): Compile it for test-math-c++.
31254         * tests/test-signal-c++2.cc: New file.
31255         * modules/signal-tests (Files): Add it.
31256         (Makefile.am): Compile it for test-signal-c++.
31257         * tests/test-stdio-c++2.cc: New file.
31258         * modules/stdio-tests (Files): Add it.
31259         (Makefile.am): Compile it for test-stdio-c++.
31260         * tests/test-stdlib-c++2.cc: New file.
31261         * modules/stdlib-tests (Files): Add it.
31262         (Makefile.am): Compile it for test-stdlib-c++.
31263         * tests/test-string-c++2.cc: New file.
31264         * modules/string-tests (Files): Add it.
31265         (Makefile.am): Compile it for test-string-c++.
31266         * tests/test-time-c++2.cc: New file.
31267         * modules/time-tests (Files): Add it.
31268         (Makefile.am): Compile it for test-time-c++.
31269         Reported by John W. Eaton <jwe@gnu.org>.
31270
31271 2010-03-13  Bruno Haible  <bruno@clisp.org>
31272
31273         * gnulib-tool (func_usage): Clarify which options are available for
31274         --create-testdir and --create-megatestdir.
31275
31276 2010-03-13  Bruno Haible  <bruno@clisp.org>
31277
31278         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31279         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31280         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31281         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31282         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31283         when appropriate.
31284         Reported by Jim Meyering.
31285
31286 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31287
31288         * gnulib-tool (func_import): Explain origin of code.
31289
31290 2010-03-12  Bruno Haible  <bruno@clisp.org>
31291
31292         Fix problem with automake's definition of CXXLINK.
31293         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31294         Reported by Simon Josefsson and Ludovic Courtès.
31295
31296 2010-03-12  Bruno Haible  <bruno@clisp.org>
31297
31298         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31299         stable releases.
31300
31301 2010-03-11  Bruno Haible  <bruno@clisp.org>
31302
31303         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31304         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31305         whether the system provides one variant or multiple variants of the
31306         function.
31307         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31308         C++ compilers.
31309         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31310         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31311         Reported by Jim Meyering.
31312
31313 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31314
31315         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31316
31317 2010-03-08  Bruno Haible  <bruno@clisp.org>
31318
31319         gnulib-tool: Add support for --libtool in --create-testdir.
31320         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31321         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31322
31323 2010-03-08  Eric Blake  <eblake@redhat.com>
31324
31325         gnulib-tool.texi: mention possibility of git submodule
31326         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31327         submodules.
31328         * doc/.gitignore: Ignore another generated file.
31329
31330 2010-03-08  Karl Berry  <karl@gnu.org>
31331
31332         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31333         of committing gnulib files while skipping others.
31334
31335 2010-03-07  Bruno Haible  <bruno@clisp.org>
31336
31337         Tests of module 'wctype' in C++ mode.
31338         * tests/test-wctype-c++.cc: New file.
31339         * modules/wctype-tests (Files): Add it and tests/signature.h.
31340         (Depends-on): Add ansi-c++-opt.
31341         (Makefile.am): Arrange to compile and run test-wctype-c++.
31342
31343         Tests of module 'wchar' in C++ mode.
31344         * tests/test-wchar-c++.cc: New file.
31345         * modules/wchar-tests (Files): Add it and tests/signature.h.
31346         (Depends-on): Add ansi-c++-opt.
31347         (Makefile.am): Arrange to compile and run test-wchar-c++.
31348         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31349         gl_MODULE_INDICATOR.
31350
31351         Tests of module 'unistd' in C++ mode.
31352         * tests/test-unistd-c++.cc: New file.
31353         * modules/unistd-tests (Files): Add it and tests/signature.h.
31354         (Depends-on): Add ansi-c++-opt.
31355         (Makefile.am): Arrange to compile and run test-unistd-c++.
31356         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31357         gl_MODULE_INDICATOR.
31358
31359         Tests of module 'time' in C++ mode.
31360         * tests/test-time-c++.cc: New file.
31361         * modules/time-tests (Files): Add it and tests/signature.h.
31362         (Depends-on): Add ansi-c++-opt.
31363         (Makefile.am): Arrange to compile and run test-time-c++.
31364         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31365
31366         Tests of module 'sys_time' in C++ mode.
31367         * tests/test-sys_time-c++.cc: New file.
31368         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31369         (Depends-on): Add ansi-c++-opt.
31370         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31371         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31372         gl_MODULE_INDICATOR.
31373
31374         Tests of module 'sys_stat' in C++ mode.
31375         * tests/test-sys_stat-c++.cc: New file.
31376         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31377         (Depends-on): Add ansi-c++-opt.
31378         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31379         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31380         gl_MODULE_INDICATOR.
31381
31382         Tests of module 'sys_socket' in C++ mode.
31383         * tests/test-sys_socket-c++.cc: New file.
31384         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31385         (Depends-on): Add ansi-c++-opt.
31386         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31387         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31388         gl_MODULE_INDICATOR.
31389
31390         Tests of module 'sys_select' in C++ mode.
31391         * tests/test-sys_select-c++.cc: New file.
31392         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31393         (Depends-on): Add ansi-c++-opt.
31394         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31395         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31396         gl_MODULE_INDICATOR.
31397
31398         Tests of module 'sys_ioctl' in C++ mode.
31399         * tests/test-sys_ioctl-c++.cc: New file.
31400         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31401         (Depends-on): Add ansi-c++-opt.
31402         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31403         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31404         gl_MODULE_INDICATOR.
31405
31406         Tests of module 'string' in C++ mode.
31407         * tests/test-string-c++.cc: New file.
31408         * modules/string-tests (Files): Add it and tests/signature.h.
31409         (Depends-on): Add ansi-c++-opt.
31410         (Makefile.am): Arrange to compile and run test-string-c++.
31411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31412         gl_MODULE_INDICATOR.
31413
31414         Tests of module 'stdlib' in C++ mode.
31415         * tests/test-stdlib-c++.cc: New file.
31416         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31417         (Depends-on): Add ansi-c++-opt.
31418         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31419         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31420         gl_MODULE_INDICATOR.
31421
31422         Tests of module 'stdio' in C++ mode.
31423         * tests/test-stdio-c++.cc: New file.
31424         * modules/stdio-tests (Files): Add it and tests/signature.h.
31425         (Depends-on): Add ansi-c++-opt.
31426         (Makefile.am): Arrange to compile and run test-stdio-c++.
31427         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31428         gl_MODULE_INDICATOR.
31429
31430         Tests of module 'spawn' in C++ mode.
31431         * tests/test-spawn-c++.cc: New file.
31432         * modules/spawn-tests (Files): Add it and tests/signature.h.
31433         (Depends-on): Add ansi-c++-opt.
31434         (Makefile.am): Arrange to compile and run test-spawn-c++.
31435         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31436         gl_MODULE_INDICATOR.
31437
31438         Tests of module 'signal' in C++ mode.
31439         * tests/test-signal-c++.cc: New file.
31440         * modules/signal-tests (Files): Add it and tests/signature.h.
31441         (Depends-on): Add ansi-c++-opt.
31442         (Makefile.am): Arrange to compile and run test-signal-c++.
31443         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31444         gl_MODULE_INDICATOR.
31445
31446         Tests of module 'search' in C++ mode.
31447         * tests/test-search-c++.cc: New file.
31448         * modules/search-tests (Files): Add it and tests/signature.h.
31449         (Depends-on): Add ansi-c++-opt.
31450         (Makefile.am): Arrange to compile and run test-search-c++.
31451         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31452         gl_MODULE_INDICATOR.
31453
31454         Tests of module 'math' in C++ mode.
31455         * tests/test-math-c++.cc: New file.
31456         * modules/math-tests (Files): Add it and tests/signature.h.
31457         (Depends-on): Add ansi-c++-opt.
31458         (Makefile.am): Arrange to compile and run test-math-c++.
31459         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31460
31461         Tests of module 'locale' in C++ mode.
31462         * tests/test-locale-c++.cc: New file.
31463         * modules/locale-tests (Files): Add it and tests/signature.h.
31464         (Depends-on): Add ansi-c++-opt.
31465         (Makefile.am): Arrange to compile and run test-locale-c++.
31466         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31467         gl_MODULE_INDICATOR.
31468
31469         Tests of module 'langinfo' in C++ mode.
31470         * tests/test-langinfo-c++.cc: New file.
31471         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31472         (Depends-on): Add ansi-c++-opt.
31473         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31474         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31475         gl_MODULE_INDICATOR.
31476
31477         Tests of module 'iconv-h' in C++ mode.
31478         * tests/test-iconv-h-c++.cc: New file.
31479         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31480         (Depends-on): Add ansi-c++-opt.
31481         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31482
31483         Tests of module 'glob' in C++ mode.
31484         * tests/test-glob-c++.cc: New file.
31485         * modules/glob-tests (Files): Add it.
31486         (Depends-on): Add ansi-c++-opt.
31487         (Makefile.am): Arrange to compile and run test-glob-c++.
31488
31489         Tests of module 'fcntl-h' in C++ mode.
31490         * tests/test-fcntl-h-c++.cc: New file.
31491         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31492         (Depends-on): Add ansi-c++-opt.
31493         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31494         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31495         gl_MODULE_INDICATOR.
31496
31497         Tests of module 'dirent' in C++ mode.
31498         * tests/test-dirent-c++.cc: New file.
31499         * modules/dirent-tests (Files): Add it and tests/signature.h.
31500         (Depends-on): Add ansi-c++-opt.
31501         (Makefile.am): Arrange to compile and run test-dirent-c++.
31502         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31503         gl_MODULE_INDICATOR.
31504
31505         New module 'ansi-c++-opt'.
31506         * modules/ansi-c++-opt: New file.
31507         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31508
31509         Document C++ namespace mode.
31510         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31511
31512         wctype: Avoid #define replacements in C++ mode.
31513         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31514         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31515         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31516         In C++, define a namespaced alias symbol.
31517         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31518         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31519         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31520         rule.
31521
31522         wchar: Avoid #define replacements in C++ mode.
31523         * lib/wchar.in.h: Include c++defs.h.
31524         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31525         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31526         symbol.
31527         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31528         * modules/wchar (Depends-on): Add c++defs.
31529         (Makefile.am): Update wchar.h rule.
31530
31531         unistd: Avoid #define replacements in C++ mode.
31532         * lib/unistd.in.h: Include c++defs.h.
31533         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31534         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31535         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31536         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31537         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31538         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31539         symbol.
31540         (environ): Update.
31541         * modules/unistd (Depends-on): Add c++defs.
31542         (Makefile.am): Update unistd.h rule.
31543
31544         time: Avoid #define replacements in C++ mode.
31545         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31546         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31547         define a namespaced alias symbol.
31548         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31549         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31550         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31551         * modules/time (Depends-on): Add c++defs, warn-on-use.
31552         (Makefile.am): Update time.h rule.
31553         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31554         * modules/nanosleep (configure.ac): Likewise.
31555         * modules/strptime (configure.ac): Likewise.
31556         * modules/timegm (configure.ac): Likewise.
31557
31558         sys_time: Avoid #define replacements in C++ mode.
31559         * lib/sys_time.in.h: Include c++defs.h.
31560         (gettimeofday): In C++, define a namespaced alias symbol.
31561         * modules/sys_time (Depends-on): Add c++defs.
31562         (Makefile.am): Update sys/time.h rule.
31563
31564         sys_stat: Avoid #define replacements in C++ mode.
31565         * lib/sys_stat.in.h: Include c++defs.h.
31566         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31567         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31568         namespaced alias symbol.
31569         In C++, define a namespaced alias symbol.
31570         * modules/sys_stat (Depends-on): Add c++defs.
31571         (Makefile.am): Update sys/stat.h rule.
31572
31573         sys_socket: Avoid #define replacements in C++ mode.
31574         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31575         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31576         definitions also when the system has a <sys/socket.h>.
31577         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31578         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31579         In C++, define a namespaced alias symbol.
31580         * modules/sys_socket (Depends-on): Add c++defs.
31581         (Makefile.am): Update sys/socket.h rule.
31582
31583         sys_select: Avoid #define replacements in C++ mode.
31584         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31585         definitions also when the system has a <sys/select.h>.
31586         (select): In C++, define a namespaced alias symbol.
31587         * modules/sys_select (Depends-on): Add c++defs.
31588         (Makefile.am): Update sys/select.h rule.
31589
31590         sys_ioctl: Avoid #define replacements in C++ mode.
31591         * lib/sys_ioctl.in.h: Include c++defs.h.
31592         (ioctl): In C++, define a namespaced alias symbol.
31593         * modules/sys_ioctl (Depends-on): Add c++defs.
31594         (Makefile.am): Update sys/ioctl.h rule.
31595
31596         string: Avoid #define replacements in C++ mode.
31597         * lib/string.in.h: Include c++defs.h.
31598         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31599         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31600         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31601         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31602         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31603         * modules/string (Depends-on): Add c++defs.
31604         (Makefile.am): Update string.h rule.
31605
31606         stdlib: Avoid #define replacements in C++ mode.
31607         * lib/stdlib.in.h: Include c++defs.h.
31608         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31609         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31610         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31611         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31612         symbol.
31613         * modules/stdlib (Depends-on): Add c++defs.
31614         (Makefile.am): Update stdlib.h rule.
31615
31616         stdio: Avoid #define replacements in C++ mode.
31617         * lib/stdio.in.h: Include c++defs.h.
31618         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31619         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31620         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31621         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31622         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31623         namespaced alias symbol.
31624         * modules/stdio (Depends-on): Add c++defs.
31625         (Makefile.am): Update stdio.h rule.
31626
31627         spawn: Avoid #define replacements in C++ mode.
31628         * lib/spawn.in.h: Include c++defs.h.
31629         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31630         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31631         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31632         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31633         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31634         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31635         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31636         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31637         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31638         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31639         In C++, define a namespaced alias symbol.
31640         * modules/spawn (Depends-on): Add c++defs.
31641         (Makefile.am): Update spawn.h rule.
31642
31643         signal: Avoid #define replacements in C++ mode.
31644         * lib/signal.in.h: Include c++defs.h.
31645         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31646         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31647         namespaced alias symbol.
31648         * modules/signal (Depends-on): Add c++defs.
31649         (Makefile.am): Update signal.h rule.
31650
31651         search: Avoid #define replacements in C++ mode.
31652         * lib/search.in.h: Include c++defs.h.
31653         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31654         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31655         symbol.
31656         * modules/search (Depends-on): Add c++defs.
31657         (Makefile.am): Update search.h rule.
31658
31659         math: Avoid #define replacements in C++ mode.
31660         * lib/math.in.h: Include c++defs.h.
31661         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31662         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31663         trunc, truncl): In C++, define a namespaced alias symbol.
31664         * modules/math (Depends-on): Add c++defs.
31665         (Makefile.am): Update math.h rule.
31666
31667         locale: Avoid #define replacements in C++ mode.
31668         * lib/locale.in.h: Include c++defs.h.
31669         (duplocale): In C++, define a namespaced alias symbol.
31670         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31671         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31672         * modules/locale (Depends-on): Add c++defs.
31673         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31674
31675         langinfo: Avoid #define replacements in C++ mode.
31676         * lib/langinfo.in.h: Include c++defs.h.
31677         (nl_langinfo): In C++, define a namespaced alias symbol.
31678         * modules/langinfo (Depends-on): Add c++defs.
31679         (Makefile.am): Update langinfo.h rule.
31680
31681         iconv-h: Avoid #define replacements in C++ mode.
31682         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31683         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31684         symbol.
31685         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31686         whenever iconv is present.
31687         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31688         (Makefile.am): Update iconv.h rule.
31689
31690         glob: Avoid #define replacements in C++ mode.
31691         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31692         (_gl_glob_errfunc_fn): New type.
31693         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31694         symbol.
31695         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31696         (Makefile.am): Update glob.h rule.
31697
31698         fcntl-h: Avoid #define replacements in C++ mode.
31699         * lib/fcntl.in.h: Include c++defs.h.
31700         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31701         * modules/fcntl-h (Depends-on): Add c++defs.
31702         (Makefile.am): Update fcntl.h rule.
31703
31704         dirent: Avoid #define replacements in C++ mode.
31705         * lib/dirent.in.h: Include c++defs.h.
31706         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31707         namespaced alias symbol.
31708         (dirfd): Update declaration.
31709         * modules/dirent (Depends-on): Add c++defs.
31710         (Makefile.am): Update dirent.h rule.
31711
31712         ctype: Make it usable in C++ code.
31713         * lib/ctype.in.h: Include c++defs.h.
31714         (isblank): Declare as extern "C".
31715         * modules/ctype (Depends-on): Add c++defs.
31716         (Makefile.am): Update ctype.h rule.
31717
31718         New module 'c++defs'.
31719         * modules/c++defs: New file.
31720         * build-aux/c++defs.h: New file.
31721         Reported by John W. Eaton <jwe@gnu.org>.
31722
31723 2010-03-07  Bruno Haible  <bruno@clisp.org>
31724
31725         logb: Provide missing declaration for Cygwin.
31726         * lib/math.in.h (logb): New declaration.
31727         * m4/logb.m4: New file.
31728         * modules/logb (Files): Add m4/logb.m4.
31729         (Depends-on): Add math.
31730         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31731         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31732         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31733         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31734         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31735
31736 2010-03-07  Bruno Haible  <bruno@clisp.org>
31737
31738         Fix test-cond link error.
31739         * tests/test-cond.c: Include <stdio.h>.
31740
31741 2010-03-07  Bruno Haible  <bruno@clisp.org>
31742
31743         Fix test-dirent-safer link error.
31744         * modules/dirent-safer-tests (Makefile.am): Define
31745         test_dirent_safer_LDADD.
31746
31747 2010-03-07  Bruno Haible  <bruno@clisp.org>
31748
31749         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31750         among default module list.
31751
31752 2010-03-07  Bruno Haible  <bruno@clisp.org>
31753
31754         Fix link error on platforms with GNU libiconv.
31755         * modules/unistr/u8-strcoll-tests (Makefile): Define
31756         test_u8_strcoll_LDADD.
31757         * modules/unistr/u16-strcoll-tests (Makefile): Define
31758         test_u16_strcoll_LDADD.
31759         * modules/unistr/u32-strcoll-tests (Makefile): Define
31760         test_u32_strcoll_LDADD.
31761
31762 2010-03-07  Bruno Haible  <bruno@clisp.org>
31763
31764         Use POSIX declarations for socket functions.
31765         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31766         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31767         rpl_sendto): Change declaration to match POSIX.
31768         * lib/connect.c (rpl_connect): Likewise.
31769         * lib/accept.c (rpl_accept): Likewise.
31770         * lib/bind.c (rpl_bind): Likewise.
31771         * lib/getpeername.c (rpl_getpeername): Likewise.
31772         * lib/getsockname.c (rpl_getsockname): Likewise.
31773         * lib/recv.c (rpl_recv): Likewise.
31774         * lib/send.c (rpl_send): Likewise.
31775         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31776         * lib/sendto.c (rpl_sendto): Likewise.
31777
31778 2010-03-06  Bruno Haible  <bruno@clisp.org>
31779
31780         Clarify access, euidaccess, faccessat.
31781         * doc/posix-functions/faccessat.texi: Mention security problem under
31782         "Other problems", not "Portability problems".
31783         * doc/posix-functions/access.texi: Likewise. Mention a related security
31784         problem.
31785         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31786         * lib/euidaccess.c: Add comments about platforms.
31787         * lib/unistd.in.h (access, euidaccess): Add warnings.
31788
31789 2010-03-07  Bruno Haible  <bruno@clisp.org>
31790
31791         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31792         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31793         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31794         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31795         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31796         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31797         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31798         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31799         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31800         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31801         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31802         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31803         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31804         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31805         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31806         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31807         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31808         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31809         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31810         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31811         Likewise.
31812         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31813         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31814         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31815         Likewise.
31816         * tests/test-spawn.c (main): Make it work when
31817         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31818
31819 2010-03-07  Bruno Haible  <bruno@clisp.org>
31820
31821         Fix incorrect Makefile.am generation in German locale.
31822         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31823         Execute sed command with character range in C locale.
31824
31825 2010-03-06  Bruno Haible  <bruno@clisp.org>
31826
31827         Tests for module 'iconv-h'.
31828         * modules/iconv-h-tests: New file.
31829         * tests/test-iconv-h.c: New file.
31830
31831         New module 'iconv-h'.
31832         * modules/iconv-h: New file.
31833         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31834         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31835         (configure.ac): Remove gl_ICONV_H.
31836         (Makefile.am): Remove rule for iconv.h.
31837
31838 2010-03-06  Bruno Haible  <bruno@clisp.org>
31839
31840         More consistent naming of *.m4 files.
31841         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31842         * modules/wctype (Files): Update.
31843
31844         More consistent naming of *.m4 files.
31845         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31846         * modules/wchar (Files): Update.
31847
31848 2010-03-06  Jim Meyering  <meyering@redhat.com>
31849
31850         euidaccess: relax license to LGPLv2+
31851         * modules/euidaccess (License): Relax to LGPLv2+.
31852
31853 2010-03-06  Bruno Haible  <bruno@clisp.org>
31854
31855         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31856         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31857         (Makefile.am): Augment lib_SOURCES instead.
31858
31859 2010-03-04  Jim Meyering  <meyering@redhat.com>
31860
31861         utime: remove obsolete module
31862         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31863         unnecessary for years, and has been marked as obsolete for 10 months.
31864         * modules/utime: Remove file.
31865         * lib/utime.c: Remove file.
31866         * m4/utime.m4: Remove file.
31867         * m4/utimes-null.m4: Remove file.
31868         * doc/posix-functions/utime.texi (utime): Remove reference to
31869         the module.  Move the sole "fixed by gnulib" item into the
31870         "problems not fixed by Gnulib" list.
31871         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31872
31873 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31874
31875         * modules/exit (License): Relax license to LGPLv2+.
31876         (Status): Mark as obsolete.
31877         * NEWS: Mention deprecated 'exit' module.
31878         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31879         of now obsolete 'exit'.
31880
31881 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31882
31883         fts-lgpl: remove unused module
31884         * modules/fts-lgpl: Remove.
31885         * MODULES.html.sh (func_all_modules): Adjust.
31886         * check-module (find_included_lib_files): Adjust.
31887         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31888
31889 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31890
31891         copy-acl: enhance Solaris ACL error handling
31892         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31893         * lib/set-mode-acl.c (qset_acl): Likewise.
31894
31895 2010-03-02  Bruno Haible  <bruno@clisp.org>
31896
31897         spawn: Don't override the system defined values on FreeBSD 8.
31898         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31899         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31900         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31901         if HAVE_POSIX_SPAWN is 1.
31902         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31903
31904 2010-03-01  Bruno Haible  <bruno@clisp.org>
31905
31906         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31907         regarding Automake.
31908
31909 2010-02-25  Bruno Haible  <bruno@clisp.org>
31910
31911         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31912         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31913         setting, not afterwards.
31914         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31915
31916 2010-02-24  Eric Blake  <eblake@redhat.com>
31917
31918         bootstrap, git-version-gen: use timestamp
31919         * build-aux/git-version-gen (scriptversion): Force UTC.
31920         * build-aux/bootstrap (scriptversion): New variable.
31921
31922         bootstrap: allow older git
31923         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31924         older than 1.6.4.  Requested by the libvirt project.
31925
31926 2010-02-23  Eric Blake  <eblake@redhat.com>
31927
31928         warn-on-use: work with old autoconf
31929         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
31930         AS_VAR semantics of autoconf 2.60.
31931         Reported by Bruno Haible.
31932
31933         bootstrap: improve some comments
31934         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
31935         clarification comments.
31936
31937         gettimeofday: provide correct function
31938         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
31939         when replacement is declared, otherwise provide gettimeofday.
31940         Reported by Michael Goffioul.
31941
31942 2010-02-23  Jim Meyering  <meyering@redhat.com>
31943
31944         lib-ignore: relax license to "unlimited", not LGPLv2+
31945         * modules/lib-ignore (License): Relax to "unlimited".
31946
31947 2010-02-23  Jim Meyering  <meyering@redhat.com>
31948
31949         lib-ignore: relax license to LGPLv2+
31950         * modules/lib-ignore (License): Relax to LGPLv2+.
31951
31952 2010-02-22  Eric Blake  <eblake@redhat.com>
31953
31954         lseek: avoid bash 3.2 broken pipe bug
31955         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
31956         warning from bash 3.2.
31957         Reported by Ben Pfaff, with analysis from Bruno Haible.
31958
31959         bootstrap: support non-FSF copyright holder
31960         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
31961         bootstrap.conf override of COPYRIGHT_HOLDER.
31962         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
31963
31964         bootstrap: interoperate with gettext 0.14.1
31965         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
31966
31967         bootstrap: allow for alternate submodule location
31968         * build-aux/bootstrap (gnulib_path): New variable; use instead of
31969         hardcoding submodule location.
31970         (gnulib_mk): Allow direct use of Makefile.am.
31971
31972         bootstrap: use GNULIB_SRCDIR to reduce disk usage
31973         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
31974         rather than reconfiguring where the submodule points.
31975
31976         gettimeofday: restore support for platforms that lack function
31977         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
31978         replacement if function is missing.
31979         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
31980         * modules/sys_time (Makefile.am): Substitute it.
31981         * lib/sys_time.in.h (gettimeofday): Check it.
31982         Reported by Michael Goffioul.
31983
31984 2010-02-21  Bruno Haible  <bruno@clisp.org>
31985
31986         * lib/stdio.in.h (obstack_printf): Fix typo.
31987
31988 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
31989
31990         vc-list-files: use bzr ls's -R option
31991         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
31992         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
31993
31994 2010-02-21  Jim Meyering  <meyering@redhat.com>
31995
31996         init.sh: fix EXEEXT shims to work also for names like test-prog
31997         * tests/init.sh: Re-exec a better shell, when needed.
31998         If the current shell lacks support for posix $(...), an init.sh-using
31999         test will now try to find a shell that supports that.  If EXEEXT is
32000         nonempty, we also require support for hyphen-in-alias-name and shell
32001         substitutions like ${var#glob}.  Failure to find such a shell results
32002         in a skipped test.
32003
32004 2010-02-21  Bruno Haible  <bruno@clisp.org>
32005
32006         Really work around around "broken pipe" error message from bash 3.2.
32007         * gnulib-tool (func_reset_sigpipe): Remove function.
32008         (echo): In bash 3.2, define to a function that uses printf.
32009         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32010
32011 2010-02-20  Bruno Haible  <bruno@clisp.org>
32012
32013         Restore support for automake 1.9.6 with autoconf 2.61.
32014         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32015         Reported by James Youngman <jay@gnu.org>.
32016
32017 2010-02-20  Bruno Haible  <bruno@clisp.org>
32018
32019         Improve *printf warning condition.
32020         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32021         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32022         and the function is overridden due to SIGPIPE emulation.
32023
32024 2010-02-20  Bruno Haible  <bruno@clisp.org>
32025
32026         * lib/stdio.in.h: Tweak comments.
32027
32028 2010-02-19  Bruno Haible  <bruno@clisp.org>
32029
32030         Make it easier to find modules. New gnulib-tool option '--find'.
32031         * gnulib-tool: New option --find.
32032         (func_usage): Document it.
32033         (func_sanitize_modulelist): New function, extracted from
32034         func_all_modules.
32035         (func_all_modules): Invoke it.
32036         * doc/gnulib-tool.texi (Which modules?): New node.
32037
32038 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32039
32040         * lib/sys_select.in.h: Provide select replacement even if
32041         sys/select.h exists on a system, for Interix.
32042
32043 2010-02-18  Jim Meyering  <meyering@redhat.com>
32044
32045         init.sh: don't use $(...) just yet
32046         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32047         to accommodate e.g., Solaris' /bin/sh.
32048
32049 2010-02-17  Bruno Haible  <bruno@clisp.org>
32050
32051         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32052         Reported by Ludovic Courtès <ludo@gnu.org>.
32053
32054 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32055
32056         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32057         linking with -lintl.
32058
32059 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32060
32061         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32062         if not provided by the system's netdb.h.  Reported by
32063         ludo@gnu.org (Ludovic Courtès).
32064
32065 2010-02-15  Jim Meyering  <meyering@redhat.com>
32066
32067         init.sh: improve portability and efficiency
32068         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32069         "dummy" in a for loop.
32070         Use '!', not '^' to select the complement of a character set used
32071         in a "case" statement.
32072         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32073         Suggestions from Eric Blake.
32074
32075         init.sh: automatically accommodate programs with the .exe suffix
32076         Automatically arrange for an invocation of "prog" to execute the
32077         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32078         may use the simpler "prog", yet still work when built on a system
32079         that requires specifying the added suffix.
32080         Do this by constructing a function named "prog" that invokes
32081         "prog.exe" for each .exe file in selected directories.
32082         * tests/init.sh (find_exe_basenames_): New function.
32083         (create_exe_shim_functions_): New function.
32084         (path_prepend_): Use it.
32085
32086         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32087         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32088         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32089
32090 2010-02-14  Jim Meyering  <meyering@redhat.com>
32091
32092         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32093         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32094         (sc_prohibit_hash_pjw_without_use): New rule.
32095
32096         maint.mk: allow the default upload destination dir to be overridden
32097         * top/maint.mk (upload_dest_dir_): Define with a default that
32098         preserves the status quo.
32099         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32100         Reported by Peter Simons.
32101
32102         maint.mk: prohibit inclusion of "hash.h" without_use
32103         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32104
32105 2010-02-10  Jim Meyering  <meyering@redhat.com>
32106
32107         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32108         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32109
32110 2010-02-09  Eric Blake  <ebb9@byu.net>
32111         and Bruno Haible  <bruno@clisp.org>
32112
32113         obstack-printf-posix: ensure declaration
32114         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32115         extracted from gl_FUNC_OBSTACK_PRINTF.
32116         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32117         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32118         Likewise.
32119         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32120         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32121         0.
32122
32123 2010-02-08  Bruno Haible  <bruno@clisp.org>
32124
32125         gnulib-tool: Fix typo in 2010-02-07 commit.
32126         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32127         Reported by Eric Blake.
32128
32129 2010-02-07  Bruno Haible  <bruno@clisp.org>
32130
32131         gnulib-tool: Fix up caching patches.
32132         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32133         option --no-cache. Use associative arrays when supported by the shell.
32134         (sed_comments): New variable.
32135         (modcache): Renamed from do_cache.
32136         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32137         abbreviate unnecessarily.
32138         (have_associative): New variable.
32139         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32140         way also for ksh and zsh.
32141         (func_init_sed_convert_to_cache_statements): New function, extracted
32142         from func_cache_lookup_module. Add support for associative arrays.
32143         Don't set the c_MODULE_cached variable here. Ignore all lines before
32144         the first field header. Remove only the final newline, not all trailing
32145         newlines. Support empty fields correctly. Limit the use of 'eval' to
32146         assignments.
32147         (func_get_description, func_get_status, func_get_notice,
32148         func_get_applicability, func_get_filelist, func_get_dependencies,
32149         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32150         func_get_automake_snippet, func_get_include_directive,
32151         func_get_link_directive, func_get_license, func_get_maintainer):
32152         Update documentation. List the unoptimized code first. Add support for
32153         associative arrays. Limit the use of 'eval' to assignments.
32154         (func_get_applicability): Undo stylistic pessimisations.
32155         (func_get_automake_snippet, func_get_include_directive): Reduce code
32156         duplication.
32157         (func_modules_transitive_closure, func_modules_add_dummy,
32158         func_modules_notice, func_modules_to_filelist, func_add_file,
32159         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32160         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32161         func_create_testdir, func_create_megatestdir): Update documentation.
32162
32163 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32164
32165         * gnulib-tool (func_cache_lookup_module): Store the module name
32166         belonging to the cache variable; error out if two different
32167         module names map to the same cache variable name.
32168
32169 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32170
32171         gnulib-tool: Make caching optional.
32172         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32173         Update matching short versions of --no-changelog.
32174         (func_usage): Update.
32175         (sed_extract_cache_prog): Renamed from ...
32176         (sed_extract_prog): ... this; revert to old extraction script.
32177         (func_get_description, func_get_status)
32178         (func_get_notice, func_get_applicability, func_get_filelist)
32179         (func_get_dependencies, func_get_autoconf_early_snippet)
32180         (func_get_autoconf_snippet, func_get_automake_snippet)
32181         (func_get_include_directive, func_get_link_directive)
32182         (func_get_license, func_get_maintainer): If $do_cache is false,
32183         use old, non-caching extraction scripts.
32184         Suggestion by Bruno Haible.
32185
32186 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32187
32188         gnulib-tool: cache module metainformation.
32189         * gnulib-tool (sed_extract_prog): Match newline before each
32190         header, and rewrite header to a shell variable suffix.
32191         (func_cache_var, func_cache_lookup_module): New functions,
32192         to turn a module name into a cache variable prefix, and to
32193         look up and cache module metainformation.
32194         (func_get_description, func_get_status)
32195         (func_get_notice, func_get_applicability, func_get_filelist)
32196         (func_get_dependencies, func_get_autoconf_early_snippet)
32197         (func_get_autoconf_snippet, func_get_automake_snippet)
32198         (func_get_include_directive, func_get_link_directive)
32199         (func_get_license, func_get_maintainer): Use
32200         func_cache_lookup_module.
32201
32202 2010-02-07  Bruno Haible  <bruno@clisp.org>
32203
32204         fnctl: Fix missing dependency.
32205         * modules/fcntl (Depends-on): Add getdtablesize.
32206         Reported by John W. Eaton <jwe@gnu.org>.
32207
32208 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32209
32210         Argp: fix recognition of short alias options.
32211
32212         * lib/argp-parse.c (convert_options): Fix improper use of
32213         `|' between character values.
32214         * tests/test-argp.c (group1_option): New alias option
32215         --read (-r).
32216         (group1_parser): Special handling for 'r'.
32217         (test15): New test case.
32218         (test_fun): Add test15.
32219         * tests/test-argp-2.sh: Update expected --help and --usage
32220         outputs.
32221
32222 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32223
32224         * tests/test-argp.c: Fix indentation.
32225
32226 2010-02-04  Eric Blake  <ebb9@byu.net>
32227
32228         gettimeofday: expose type of second argument
32229         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32230         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32231         * tests/test-gettimeofday.c: Use it to silence warning.
32232         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32233         the issue.
32234
32235 2010-02-03  Jim Meyering  <meyering@redhat.com>
32236
32237         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32238         * lib/regcomp.c (TYPE_SIGNED): Define.
32239         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32240
32241         regcomp.c: avoid a new -Wshadow warning
32242         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32243
32244 2010-02-01  Jim Meyering  <meyering@redhat.com>
32245
32246         removing useless parentheses in cpp #define directives
32247         For motivation, see commit c0221df4, "define STREQ(a,b)
32248         consistently, removing useless parentheses"
32249         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32250         * lib/mountlist.c (MNT_IGNORE): Likewise.
32251         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32252
32253 2010-02-01  Eric Blake  <ebb9@byu.net>
32254
32255         sys_time: use link-warning
32256         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32257         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32258         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32259         * modules/sys_time (Depends-on): Add warn-on-use.
32260         (Makefile.am): Always build replacement.
32261         (configure.ac): Update substitutions.
32262         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32263         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32264         bother with SYS_TIME_H.
32265         * modules/gettimeofday (configure.ac): Declare indicator.
32266         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32267         in use.
32268
32269         closein-tests: silence compiler warning
32270         * tests/test-closein.c (main): Ignore fread result.
32271         * modules/closein-tests (Depends-on): Add ignore-value.
32272
32273         tests: silence warning about system return
32274         * tests/test-areadlink-with-size.c (main): Ignore system result.
32275         * tests/test-areadlink.c (main): Likewise.
32276         * tests/test-areadlinkat-with-size.c (main): Likewise.
32277         * tests/test-areadlinkat.c (main): Likewise.
32278         * tests/test-canonicalize-lgpl.c (main): Likewise.
32279         * tests/test-canonicalize.c (main): Likewise.
32280         * tests/test-chown.c (main): Likewise.
32281         * tests/test-fchownat.c (main): Likewise.
32282         * tests/test-fdutimensat.c (main): Likewise.
32283         * tests/test-fstatat.c (main): Likewise.
32284         * tests/test-futimens.c (main): Likewise.
32285         * tests/test-lchown.c (main): Likewise.
32286         * tests/test-link.c (main): Likewise.
32287         * tests/test-linkat.c (main): Likewise.
32288         * tests/test-lstat.c (main): Likewise.
32289         * tests/test-mkdir.c (main): Likewise.
32290         * tests/test-mkdirat.c (main): Likewise.
32291         * tests/test-mkfifo.c (main): Likewise.
32292         * tests/test-mkfifoat.c (main): Likewise.
32293         * tests/test-mknod.c (main): Likewise.
32294         * tests/test-readlink.c (main): Likewise.
32295         * tests/test-remove.c (main): Likewise.
32296         * tests/test-rename.c (main): Likewise.
32297         * tests/test-renameat.c (main): Likewise.
32298         * tests/test-rmdir.c (main): Likewise.
32299         * tests/test-symlink.c (main): Likewise.
32300         * tests/test-symlinkat.c (main): Likewise.
32301         * tests/test-unlink.c (main): Likewise.
32302         * tests/test-unlinkat.c (main): Likewise.
32303         * tests/test-utimens.c (main): Likewise.
32304         * tests/test-utimensat.c (main): Likewise.
32305         * modules/areadlink-tests (Depends-on): Add ignore-value.
32306         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32307         * modules/areadlinkat-tests (Depends-on): Likewise.
32308         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32309         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32310         * modules/canonicalize-tests (Depends-on): Likewise.
32311         * modules/chown-tests (Depends-on): Likewise.
32312         * modules/fdutimensat-tests (Depends-on): Likewise.
32313         * modules/futimens-tests (Depends-on): Likewise.
32314         * modules/lchown-tests (Depends-on): Likewise.
32315         * modules/link-tests (Depends-on): Likewise.
32316         * modules/linkat-tests (Depends-on): Likewise.
32317         * modules/lstat-tests (Depends-on): Likewise.
32318         * modules/mkdir-tests (Depends-on): Likewise.
32319         * modules/mkfifo-tests (Depends-on): Likewise.
32320         * modules/mkfifoat-tests (Depends-on): Likewise.
32321         * modules/mknod-tests (Depends-on): Likewise.
32322         * modules/openat-tests (Depends-on): Likewise.
32323         * modules/readlink-tests (Depends-on): Likewise.
32324         * modules/remove-tests (Depends-on): Likewise.
32325         * modules/rename-tests (Depends-on): Likewise.
32326         * modules/renameat-tests (Depends-on): Likewise.
32327         * modules/rmdir-tests (Depends-on): Likewise.
32328         * modules/symlink-tests (Depends-on): Likewise.
32329         * modules/symlinkat-tests (Depends-on): Likewise.
32330         * modules/unlink-tests (Depends-on): Likewise.
32331         * modules/utimens-tests (Depends-on): Likewise.
32332         * modules/utimensat-tests (Depends-on): Likewise.
32333
32334 2010-01-31  Bruno Haible  <bruno@clisp.org>
32335
32336         Perform the same test for many <math.h> functions.
32337         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32338         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32339         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32340         of gl_MATHFUNC.
32341         * modules/acos (configure.ac): Likewise.
32342         * modules/asin (configure.ac): Likewise.
32343         * modules/atan (configure.ac): Likewise.
32344         * modules/atan2 (configure.ac): Likewise.
32345         * modules/cbrt (configure.ac): Likewise.
32346         * modules/copysign (configure.ac): Likewise.
32347         * modules/cos (configure.ac): Likewise.
32348         * modules/cosh (configure.ac): Likewise.
32349         * modules/erf (configure.ac): Likewise.
32350         * modules/erfc (configure.ac): Likewise.
32351         * modules/exp (configure.ac): Likewise.
32352         * modules/fmod (configure.ac): Likewise.
32353         * modules/hypot (configure.ac): Likewise.
32354         * modules/j0 (configure.ac): Likewise.
32355         * modules/j1 (configure.ac): Likewise.
32356         * modules/jn (configure.ac): Likewise.
32357         * modules/lgamma (configure.ac): Likewise.
32358         * modules/log (configure.ac): Likewise.
32359         * modules/log10 (configure.ac): Likewise.
32360         * modules/log1p (configure.ac): Likewise.
32361         * modules/pow (configure.ac): Likewise.
32362         * modules/remainder (configure.ac): Likewise.
32363         * modules/sin (configure.ac): Likewise.
32364         * modules/sinh (configure.ac): Likewise.
32365         * modules/tan (configure.ac): Likewise.
32366         * modules/tanh (configure.ac): Likewise.
32367         * modules/y0 (configure.ac): Likewise.
32368         * modules/y1 (configure.ac): Likewise.
32369         * modules/yn (configure.ac): Likewise.
32370         Suggested by Paolo Bonzini.
32371
32372 2010-01-31  Bruno Haible  <bruno@clisp.org>
32373
32374         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32375
32376 2010-01-31  Bruno Haible  <bruno@clisp.org>
32377
32378         Work around getdelim() bug on FreeBSD 8.0.
32379         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32380         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32381         not work.
32382         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32383         is 1.
32384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32385         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32386         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32387         a non-zero size.
32388         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32389
32390 2010-01-31  Bruno Haible  <bruno@clisp.org>
32391
32392         Work around getline() bug on FreeBSD 8.0.
32393         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32394         and a non-zero size.
32395         * tests/test-getline.c (main): Likewise.
32396         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32397         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32398
32399 2010-01-28  Eric Blake  <ebb9@byu.net>
32400
32401         regex: fix build failure
32402         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32403         platforms.
32404
32405 2010-01-28  Jim Meyering  <meyering@redhat.com>
32406
32407         regex: do not ignore memory allocation failure
32408         * lib/regex_internal.c (create_cd_newstate): Detect
32409         re_node_set_init_copy failure.   Extracted from glibc commit
32410         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32411
32412         regex: sync more white-space changes from libc
32413         * lib/regex_internal.c: White-space only changes.
32414         * lib/regexec.c: Likewise.
32415
32416         regex: add many uses of __attribute_warn_unused_result__
32417         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32418         * lib/regexec.c: Likewise.
32419         Extracted from a messy glibc commit.
32420
32421         regcomp.c: spelling and merge-artifact from glibc
32422         * lib/regcomp.c: Merge remainder of glibc's
32423         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32424
32425         regcomp.c: sync white-space changes from glibc
32426         * lib/regcomp.c: Merge to accommodate white space
32427         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32428
32429         regcomp.c: do not ignore internal return values
32430         * lib/regcomp.c: Do not ignore internal return values.
32431         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32432         but without its white-space changes and spelling fixes.
32433
32434         regex_internal.h: define __attribute_warn_unused_result__
32435         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32436
32437         maint: add a syntax-check rule to check for vulnerable Makefile.in
32438         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32439
32440 2010-01-27  Jim Meyering  <meyering@redhat.com>
32441
32442         ncftpput-ftp: clean up spaces
32443         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32444         Remove trailing blanks.
32445
32446 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32447
32448         * build-aux/git-version-gen: Fix copyright statement.
32449         * build-aux/gnupload: Likewise.
32450         * tests/test-arcfour.c: Likewise.
32451         * tests/test-arctwo.c: Likewise.
32452         * tests/test-count-one-bits.c: Likewise.
32453         * tests/test-crc.c: Likewise.
32454         * tests/test-des.c: Likewise.
32455         * tests/test-gc-arcfour.c: Likewise.
32456         * tests/test-gc-arctwo.c: Likewise.
32457         * tests/test-gc-des.c: Likewise.
32458         * tests/test-gc-hmac-md5.c: Likewise.
32459         * tests/test-gc-hmac-sha1.c: Likewise.
32460         * tests/test-gc-md2.c: Likewise.
32461         * tests/test-gc-md4.c: Likewise.
32462         * tests/test-gc-md5.c: Likewise.
32463         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32464         * tests/test-gc-rijndael.c: Likewise.
32465         * tests/test-gc-sha1.c: Likewise.
32466         * tests/test-gc.c: Likewise.
32467         * tests/test-gethostname.c: Likewise.
32468         * tests/test-gettimeofday.c: Likewise.
32469         * tests/test-hash.c: Likewise.
32470         * tests/test-hmac-md5.c: Likewise.
32471         * tests/test-hmac-sha1.c: Likewise.
32472         * tests/test-md2.c: Likewise.
32473         * tests/test-md4.c: Likewise.
32474         * tests/test-md5.c: Likewise.
32475         * tests/test-memchr.c: Likewise.
32476         * tests/test-memchr2.c: Likewise.
32477         * tests/test-memcmp.c: Likewise.
32478         * tests/test-memmem.c: Likewise.
32479         * tests/test-memrchr.c: Likewise.
32480         * tests/test-rawmemchr.c: Likewise.
32481         * tests/test-read-file.c: Likewise.
32482         * tests/test-rijndael.c: Likewise.
32483         * tests/test-sockets.c: Likewise.
32484         * tests/test-strchrnul.c: Likewise.
32485         * tests/test-strstr.c: Likewise.
32486         * tests/test-strtod.c: Likewise.
32487         * build-aux/ncftpput-ftp: Likewise.
32488
32489 2010-01-26  Eric Blake  <ebb9@byu.net>
32490
32491         ignore-value: update recommended header name
32492         * modules/ignore-value (Include): Only use <> for headers that
32493         exist in glibc.
32494
32495 2010-01-26  Jim Meyering  <meyering@redhat.com>
32496
32497         test-userspec.c: avoid compiler warnings
32498         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32499         and "initialization discards qualifiers..." warnings.
32500         Put the first "uid" in its own scope, and make char* members "const".
32501
32502 2010-01-25  Bruno Haible  <bruno@clisp.org>
32503
32504         gnulib-tool: Make warning diagnostics consistent.
32505         * gnulib-tool (func_warning): New function.
32506         Use it everywhere where gnulib-tool produces output to stderr and it is
32507         not a fatal error.
32508
32509 2010-01-25  Bruno Haible  <bruno@clisp.org>
32510
32511         Fix test dependencies.
32512         * modules/xstrtol-tests (Depends-on): Add inttypes.
32513         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32514
32515 2010-01-25 Pádraig Brady <P@draigBrady.com>
32516
32517         syntax-check: detect incorrect boolean macro values in config.h
32518         * modules/maintainer-makefile (configure.ac): Parameterize the location
32519         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32520         The logic is from Eric Blake and the location indicated by Jim Meyering.
32521         Note the more natural CONFIG_HEADER name is prohibited by automake
32522         for backwards compatibility reasons.
32523         * top/maint.mk (sc_Wundef_boolean): New rule.
32524
32525 2010-01-25  Jim Meyering  <meyering@redhat.com>
32526
32527         bootstrap: detect MacOS 10.6's shasum, too
32528         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32529         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32530
32531 2010-01-23  Jim Meyering  <meyering@redhat.com>
32532
32533         xstrtoll: new module
32534         * modules/xstrtoll: New file.
32535         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32536         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32537         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32538         ./configure fails if you use this module and lack "long long".
32539         * modules/xstrtoll-tests: New module.
32540         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32541         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32542         new init.sh-based test framework.
32543
32544 2010-01-24  Bruno Haible  <bruno@clisp.org>
32545
32546         Tests for module 'yn'.
32547         * modules/yn-tests: New file.
32548         * tests/test-yn.c: New file.
32549
32550         Tests for module 'y1'.
32551         * modules/y1-tests: New file.
32552         * tests/test-y1.c: New file.
32553
32554         Tests for module 'y0'.
32555         * modules/y0-tests: New file.
32556         * tests/test-y0.c: New file.
32557
32558         Tests for module 'tanh'.
32559         * modules/tanh-tests: New file.
32560         * tests/test-tanh.c: New file.
32561
32562         Tests for module 'tan'.
32563         * modules/tan-tests: New file.
32564         * tests/test-tan.c: New file.
32565
32566         Tests for module 'sqrt'.
32567         * modules/sqrt-tests: New file.
32568         * tests/test-sqrt.c: New file.
32569
32570         Tests for module 'sinh'.
32571         * modules/sinh-tests: New file.
32572         * tests/test-sinh.c: New file.
32573
32574         Tests for module 'sin'.
32575         * modules/sin-tests: New file.
32576         * tests/test-sin.c: New file.
32577
32578         Tests for module 'rint'.
32579         * modules/rint-tests: New file.
32580         * tests/test-rint.c: New file.
32581
32582         Tests for module 'remainder'.
32583         * modules/remainder-tests: New file.
32584         * tests/test-remainder.c: New file.
32585
32586         Tests for module 'pow'.
32587         * modules/pow-tests: New file.
32588         * tests/test-pow.c: New file.
32589
32590         Tests for module 'nextafter'.
32591         * modules/nextafter-tests: New file.
32592         * tests/test-nextafter.c: New file.
32593
32594         Tests for module 'modf'.
32595         * modules/modf-tests: New file.
32596         * tests/test-modf.c: New file.
32597
32598         Tests for module 'logb'.
32599         * modules/logb-tests: New file.
32600         * tests/test-logb.c: New file.
32601
32602         Tests for module 'log1p'.
32603         * modules/log1p-tests: New file.
32604         * tests/test-log1p.c: New file.
32605
32606         Tests for module 'log10'.
32607         * modules/log10-tests: New file.
32608         * tests/test-log10.c: New file.
32609
32610         Tests for module 'log'.
32611         * modules/log-tests: New file.
32612         * tests/test-log.c: New file.
32613
32614         Tests for module 'lgamma'.
32615         * modules/lgamma-tests: New file.
32616         * tests/test-lgamma.c: New file.
32617
32618         Tests for module 'ldexp'.
32619         * modules/ldexp-tests: New file.
32620         * tests/test-ldexp.c: New file.
32621
32622         Tests for module 'jn'.
32623         * modules/jn-tests: New file.
32624         * tests/test-jn.c: New file.
32625
32626         Tests for module 'j1'.
32627         * modules/j1-tests: New file.
32628         * tests/test-j1.c: New file.
32629
32630         Tests for module 'j0'.
32631         * modules/j0-tests: New file.
32632         * tests/test-j0.c: New file.
32633
32634         Tests for module 'hypot'.
32635         * modules/hypot-tests: New file.
32636         * tests/test-hypot.c: New file.
32637
32638         Tests for module 'fmod'.
32639         * modules/fmod-tests: New file.
32640         * tests/test-fmod.c: New file.
32641
32642         Tests for module 'fabs'.
32643         * modules/fabs-tests: New file.
32644         * tests/test-fabs.c: New file.
32645
32646         Tests for module 'exp'.
32647         * modules/exp-tests: New file.
32648         * tests/test-exp.c: New file.
32649
32650         Tests for module 'erfc'.
32651         * modules/erfc-tests: New file.
32652         * tests/test-erfc.c: New file.
32653
32654         Tests for module 'erf'.
32655         * modules/erf-tests: New file.
32656         * tests/test-erf.c: New file.
32657
32658         Tests for module 'cosh'.
32659         * modules/cosh-tests: New file.
32660         * tests/test-cosh.c: New file.
32661
32662         Tests for module 'cos'.
32663         * modules/cos-tests: New file.
32664         * tests/test-cos.c: New file.
32665
32666         Tests for module 'copysign'.
32667         * modules/copysign-tests: New file.
32668         * tests/test-copysign.c: New file.
32669
32670         Tests for module 'cbrt'.
32671         * modules/cbrt-tests: New file.
32672         * tests/test-cbrt.c: New file.
32673
32674         Tests for module 'atan2'.
32675         * modules/atan2-tests: New file.
32676         * tests/test-atan2.c: New file.
32677
32678         Tests for module 'atan'.
32679         * modules/atan-tests: New file.
32680         * tests/test-atan.c: New file.
32681
32682         Tests for module 'asin'.
32683         * modules/asin-tests: New file.
32684         * tests/test-asin.c: New file.
32685
32686         Tests for module 'acos'.
32687         * modules/acos-tests: New file.
32688         * tests/test-acos.c: New file.
32689
32690 2010-01-24  Bruno Haible  <bruno@clisp.org>
32691
32692         Fix tests for common <math.h> functions.
32693         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32694         code snippet that references the function pointer, rather than merely
32695         calling the function. Substitute the FUNC_LIBM variable.
32696         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32697         * modules/acos (configure.ac): Likewise.
32698         * modules/asin (configure.ac): Likewise.
32699         * modules/atan (configure.ac): Likewise.
32700         * modules/atan2 (configure.ac): Likewise.
32701         * modules/cbrt (configure.ac): Likewise.
32702         * modules/copysign (configure.ac): Likewise.
32703         * modules/cos (configure.ac): Likewise.
32704         * modules/cosh (configure.ac): Likewise.
32705         * modules/erf (configure.ac): Likewise.
32706         * modules/erfc (configure.ac): Likewise.
32707         * modules/exp (configure.ac): Likewise.
32708         * modules/fabs (configure.ac): Likewise.
32709         * modules/fmod (configure.ac): Likewise.
32710         * modules/hypot (configure.ac): Likewise.
32711         * modules/j0 (configure.ac): Likewise.
32712         * modules/j1 (configure.ac): Likewise.
32713         * modules/jn (configure.ac): Likewise.
32714         * modules/ldexp (configure.ac): Likewise.
32715         * modules/lgamma (configure.ac): Likewise.
32716         * modules/log (configure.ac): Likewise.
32717         * modules/log10 (configure.ac): Likewise.
32718         * modules/log1p (configure.ac): Likewise.
32719         * modules/logb (configure.ac): Likewise.
32720         * modules/modf (configure.ac): Likewise.
32721         * modules/nextafter (configure.ac): Likewise.
32722         * modules/pow (configure.ac): Likewise.
32723         * modules/remainder (configure.ac): Likewise.
32724         * modules/rint (configure.ac): Likewise.
32725         * modules/sin (configure.ac): Likewise.
32726         * modules/sinh (configure.ac): Likewise.
32727         * modules/tan (configure.ac): Likewise.
32728         * modules/tanh (configure.ac): Likewise.
32729         * modules/y0 (configure.ac): Likewise.
32730         * modules/y1 (configure.ac): Likewise.
32731         * modules/yn (configure.ac): Likewise.
32732
32733 2010-01-24  Bruno Haible  <bruno@clisp.org>
32734
32735         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32736         * tests/test-acosl.c (x): New variable.
32737         (main): Store argument in x and fetch it from x.
32738         * tests/test-asinl.c (x): New variable.
32739         (main): Store argument in x and fetch it from x.
32740         * tests/test-atanl.c (x): New variable.
32741         (main): Store argument in x and fetch it from x.
32742         * tests/test-cosl.c (x): New variable.
32743         (main): Store argument in x and fetch it from x.
32744         * tests/test-expl.c (x): New variable.
32745         (main): Store argument in x and fetch it from x.
32746         * tests/test-logl.c (x): New variable.
32747         (main): Store argument in x and fetch it from x.
32748         * tests/test-sinl.c (x): New variable.
32749         (main): Store argument in x and fetch it from x.
32750         * tests/test-sqrtl.c (x): New variable.
32751         (main): Store argument in x and fetch it from x.
32752         * tests/test-tanl.c (x): New variable.
32753         (main): Store argument in x and fetch it from x.
32754
32755 2010-01-24  Bruno Haible  <bruno@clisp.org>
32756
32757         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32758         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32759         assignments to the initial TESTS_ENVIRONMENT.
32760         * doc/gnulib.texi (Unit test modules): Document it.
32761         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32762         TESTS_ENVIRONMENT.
32763         * modules/btowc-tests (Makefile.am): Likewise.
32764         * modules/c-stack-tests (Makefile.am): Likewise.
32765         * modules/c-strcase-tests (Makefile.am): Likewise.
32766         * modules/copy-file-tests (Makefile.am): Likewise.
32767         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32768         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32769         * modules/mbrtowc-tests (Makefile.am): Likewise.
32770         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32771         * modules/mbscasestr-tests (Makefile.am): Likewise.
32772         * modules/mbschr-tests (Makefile.am): Likewise.
32773         * modules/mbscspn-tests (Makefile.am): Likewise.
32774         * modules/mbsinit-tests (Makefile.am): Likewise.
32775         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32776         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32777         * modules/mbspbrk-tests (Makefile.am): Likewise.
32778         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32779         * modules/mbsrchr-tests (Makefile.am): Likewise.
32780         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32781         * modules/mbsspn-tests (Makefile.am): Likewise.
32782         * modules/mbsstr-tests (Makefile.am): Likewise.
32783         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32784         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32785         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32786         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32787         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32788         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32789         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32790         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32791         * modules/wcrtomb-tests (Makefile.am): Likewise.
32792         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32793         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32794         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32795         assignments from TESTS_ENVIRONMENT.
32796         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32797         augmentation.
32798         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32799         * modules/atexit-tests (Makefile.am): Likewise.
32800         * modules/binary-io-tests (Makefile.am): Likewise.
32801         * modules/closein-tests (Makefile.am): Likewise.
32802         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32803         * modules/exclude-tests (Makefile.am): Likewise.
32804         * modules/fflush-tests (Makefile.am): Likewise.
32805         * modules/fpending-tests (Makefile.am): Likewise.
32806         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32807         * modules/freadahead-tests (Makefile.am): Likewise.
32808         * modules/freadptr-tests (Makefile.am): Likewise.
32809         * modules/freadseek-tests (Makefile.am): Likewise.
32810         * modules/fseek-tests (Makefile.am): Likewise.
32811         * modules/fseeko-tests (Makefile.am): Likewise.
32812         * modules/ftell-tests (Makefile.am): Likewise.
32813         * modules/ftello-tests (Makefile.am): Likewise.
32814         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32815         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32816         * modules/lseek-tests (Makefile.am): Likewise.
32817         * modules/parse-duration-tests (Makefile.am): Likewise.
32818         * modules/perror-tests (Makefile.am): Likewise.
32819         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32820         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32821         * modules/pipe-tests (Makefile.am): Likewise.
32822         * modules/pread-tests (Makefile.am): Likewise.
32823         * modules/printf-posix-tests (Makefile.am): Likewise.
32824         * modules/select-tests (Makefile.am): Likewise.
32825         * modules/sigpipe-tests (Makefile.am): Likewise.
32826         * modules/tsearch-tests (Makefile.am): Likewise.
32827         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32828         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32829         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32830         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32831         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32832         * modules/version-etc-tests (Makefile.am): Likewise.
32833         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32834         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32835         * modules/xalloc-die-tests (Makefile.am): Likewise.
32836         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32837         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32838         * modules/xstrtol-tests (Makefile.am): Likewise.
32839         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32840         * modules/yesno-tests (Makefile.am): Likewise.
32841         Suggested by Jim Meyering.
32842
32843 2010-01-24  Bruno Haible  <bruno@clisp.org>
32844
32845         More documentation.
32846         * doc/gnulib.texi (Writing modules): New chapter.
32847         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32848         the new chapter.
32849
32850 2010-01-24  Jim Meyering  <meyering@redhat.com>
32851
32852         maint.mk: do not prepend "./" after filtering
32853         * top/maint.mk (_prepend_srcdir_prefix): New variable
32854         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32855         "./" when $(srcdir) is ".".
32856
32857         define STREQ(a,b) consistently, removing useless parentheses
32858         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32859         since the only risk is that "a" or "b" contains an unparenthesized
32860         comma, but if either did that, STREQ would have 3 or more arguments.
32861         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32862         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32863         * lib/hash-triple.c (STREQ): Likewise.
32864         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32865         * lib/getugroups.c (STREQ): Likewise.
32866
32867 2010-01-23  Jim Meyering  <meyering@redhat.com>
32868
32869         maint.mk: fix syntax-check in a non-srcdir build directory
32870         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32871         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32872
32873 2010-01-22  Jim Meyering  <meyering@redhat.com>
32874
32875         userspec: add unit tests
32876         * tests/test-userspec.c: New file.
32877         * modules/userspec-tests: Likewise.
32878
32879 2010-01-21  Jim Meyering  <meyering@redhat.com>
32880
32881         maint.mk: handle source file names containing "." robustly
32882         * top/maint.mk (_dot_escaped_srcdir): Define.
32883         (VC_LIST): Use it in LHS of sed substitution.
32884
32885 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32886
32887         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32888         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32889         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32890         from a non-srcdir build.
32891
32892 2010-01-20  Eric Blake  <ebb9@byu.net>
32893
32894         warn-on-use: use instead of link-warning
32895         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32896         * modules/unistd (Depends-on, Makefile.am): Likewise.
32897         * modules/arpa_inet (Depends-on): Replace link-warning with
32898         warn-on-use.
32899         (Makefile.am): Update rules accordingly.
32900         * modules/ctype (Depends-on, Makefile.am): Likewise.
32901         * modules/dirent (Depends-on, Makefile.am): Likewise.
32902         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32903         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32904         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32905         * modules/locale (Depends-on, Makefile.am): Likewise.
32906         * modules/math (Depends-on, Makefile.am): Likewise.
32907         * modules/search (Depends-on, Makefile.am): Likewise.
32908         * modules/signal (Depends-on, Makefile.am): Likewise.
32909         * modules/spawn (Depends-on, Makefile.am): Likewise.
32910         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32911         * modules/string (Depends-on, Makefile.am): Likewise.
32912         * modules/strings (Depends-on, Makefile.am): Likewise.
32913         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32914         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32915         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32916         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32917         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32918         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32919         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32920         * modules/wchar (Depends-on, Makefile.am): Likewise.
32921         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32922         should be poisoned.
32923         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32924         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32925         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32926         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32927         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32928         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32929         * m4/math_h.m4 (gl_MATH_H): Likewise.
32930         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32931         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32932         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32933         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32934         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32935         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32936         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32937         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
32938         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
32939         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32940         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32941         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32942         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32943         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32944         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32945         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32946         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
32947         GL_LINK_WARNING.
32948         * lib/ctype.in.h: Likewise.
32949         * lib/dirent.in.h: Likewise.
32950         * lib/fcntl.in.h: Likewise.
32951         * lib/inttypes.in.h: Likewise.
32952         * lib/langinfo.in.h: Likewise.
32953         * lib/locale.in.h: Likewise.
32954         * lib/math.in.h: Likewise.
32955         * lib/search.in.h: Likewise.
32956         * lib/signal.in.h: Likewise.
32957         * lib/spawn.in.h: Likewise.
32958         * lib/stdio.in.h: Likewise.
32959         * lib/stdlib.in.h: Likewise.
32960         * lib/string.in.h: Likewise.
32961         * lib/strings.in.h: Likewise.
32962         * lib/sys_file.in.h: Likewise.
32963         * lib/sys_ioctl.in.h: Likewise.
32964         * lib/sys_select.in.h: Likewise.
32965         * lib/sys_socket.in.h: Likewise.
32966         * lib/sys_stat.in.h: Likewise.
32967         * lib/sys_times.in.h: Likewise.
32968         * lib/sys_utsname.in.h: Likewise.
32969         * lib/unistd.in.h: Likewise.
32970         * lib/wchar.in.h: Likewise.
32971
32972 2010-01-20  Bruno Haible  <bruno@clisp.org>
32973
32974         Avoid duplicate -lm.
32975         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
32976         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
32977         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
32978         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
32979         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
32980         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
32981         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
32982         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
32983         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
32984         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
32985         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
32986         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32987         Reported by Paolo Bonzini.
32988
32989 2010-01-19  Bruno Haible  <bruno@clisp.org>
32990
32991         langinfo, nl_langinfo: Relicense under LGPLv2+.
32992         * modules/langinfo (License): Change to LGPLv2+.
32993         * modules/nl_langinfo (License): Likewise.
32994         Patch by David Lutterkort <lutter@redhat.com>.
32995
32996 2010-01-19  Bruno Haible  <bruno@clisp.org>
32997
32998         Avoid compilation error with cc on OSF/1 5.1.
32999         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33000         statement, not before.
33001         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33002
33003 2010-01-18  Bruno Haible  <bruno@clisp.org>
33004
33005         Avoid a link error due to the __printf__ symbol.
33006         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33007         and 2.6.x.
33008         (__format__, __printf__): Remove definitions.
33009         * lib/argp-fmtstream.h: Likewise.
33010         * lib/argp.h: Likewise.
33011         * lib/error.h: Likewise.
33012         * lib/vasnprintf.h: Likewise.
33013         * lib/xprintf.h: Likewise.
33014         * lib/xvasprintf.h: Likewise.
33015         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33016
33017 2010-01-18  Bruno Haible  <bruno@clisp.org>
33018
33019         Tests for module 'tanl'.
33020         * modules/tanl-tests: New file.
33021         * tests/test-tanl.c: New file.
33022
33023         Tests for module 'sqrtl'.
33024         * modules/sqrtl-tests: New file.
33025         * tests/test-sqrtl.c: New file.
33026
33027         Tests for module 'sinl'.
33028         * modules/sinl-tests: New file.
33029         * tests/test-sinl.c: New file.
33030
33031         Tests for module 'logl'.
33032         * modules/logl-tests: New file.
33033         * tests/test-logl.c: New file.
33034
33035         Tests for module 'expl'.
33036         * modules/expl-tests: New file.
33037         * tests/test-expl.c: New file.
33038
33039         Tests for module 'cosl'.
33040         * modules/cosl-tests: New file.
33041         * tests/test-cosl.c: New file.
33042
33043         Tests for module 'atanl'.
33044         * modules/atanl-tests: New file.
33045         * tests/test-atanl.c: New file.
33046
33047         Tests for module 'asinl'.
33048         * modules/asinl-tests: New file.
33049         * tests/test-asinl.c: New file.
33050
33051         Tests for module 'acosl'.
33052         * modules/acosl-tests: New file.
33053         * tests/test-acosl.c: New file.
33054
33055         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33056         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33057         tanl): Use the standard gnulib idiom.
33058         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33059         * lib/sinl.c: Likewise.
33060         * lib/tanl.c: Don't include trigl.c.
33061         (kernel_tanl): Make static.
33062         * lib/sincosl.c: Include trigl.h first.
33063         * lib/trigl.c: Likewise.
33064         * m4/acosl.m4: New file.
33065         * m4/asinl.m4: New file.
33066         * m4/atanl.m4: New file.
33067         * m4/cosl.m4: New file.
33068         * m4/expl.m4: New file.
33069         * m4/logl.m4: New file.
33070         * m4/sinl.m4: New file.
33071         * m4/sqrtl.m4: New file.
33072         * m4/tanl.m4: New file.
33073         * m4/mathl.m4: Remove file.
33074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33075         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33076         Don't initialize GNULIB_MATHL.
33077         * modules/acosl: New file.
33078         * modules/asinl: New file.
33079         * modules/atanl: New file.
33080         * modules/cosl: New file.
33081         * modules/expl: New file.
33082         * modules/logl: New file.
33083         * modules/sinl: New file.
33084         * modules/sqrtl: New file.
33085         * modules/tanl: New file.
33086         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33087         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33088         substitute GNULIB_MATHL.
33089         * modules/mathl: Rewritten.
33090         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33091         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33092         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33093         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33094         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33095         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33096         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33097         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33098         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33099
33100 2010-01-18  Bruno Haible  <bruno@clisp.org>
33101
33102         sqrt: Make gl_FUNC_SQRT requirable.
33103         * m4/sqrt.m4: New file.
33104         * modules/sqrt (Files): Add it.
33105         (configure.ac): Invoke gl_FUNC_SQRT.
33106
33107 2010-01-18  Bruno Haible  <bruno@clisp.org>
33108
33109         New modules for common <math.h> functions.
33110         * m4/mathfunc.m4: New file.
33111         * modules/acos: New file.
33112         * modules/asin: New file.
33113         * modules/atan: New file.
33114         * modules/atan2: New file.
33115         * modules/cbrt: New file.
33116         * modules/copysign: New file.
33117         * modules/cos: New file.
33118         * modules/cosh: New file.
33119         * modules/erf: New file.
33120         * modules/erfc: New file.
33121         * modules/exp: New file.
33122         * modules/fabs: New file.
33123         * modules/fmod: New file.
33124         * modules/hypot: New file.
33125         * modules/j0: New file.
33126         * modules/j1: New file.
33127         * modules/jn: New file.
33128         * modules/ldexp: New file.
33129         * modules/lgamma: New file.
33130         * modules/log: New file.
33131         * modules/log10: New file.
33132         * modules/log1p: New file.
33133         * modules/logb: New file.
33134         * modules/modf: New file.
33135         * modules/nextafter: New file.
33136         * modules/pow: New file.
33137         * modules/remainder: New file.
33138         * modules/rint: New file.
33139         * modules/sin: New file.
33140         * modules/sinh: New file.
33141         * modules/sqrt: New file.
33142         * modules/tan: New file.
33143         * modules/tanh: New file.
33144         * modules/y0: New file.
33145         * modules/y1: New file.
33146         * modules/yn: New file.
33147         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33148         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33149         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33150         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33151         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33152         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33153         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33154         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33155         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33156         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33157         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33158         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33159         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33160         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33161         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33162         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33163         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33164         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33165         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33166         * doc/posix-functions/log.texi: Mention the 'log' module.
33167         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33168         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33169         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33170         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33171         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33172         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33173         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33174         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33175         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33176         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33177         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33178         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33179         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33180         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33181         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33182         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33183
33184 2010-01-18  Jim Meyering  <meyering@redhat.com>
33185
33186         ignore-value: relax license to LGPLv2+
33187         * modules/ignore-value (License): Relax to LGPLv2+.
33188
33189         getdate: don't leak when TZ contains two or more '"'s
33190         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33191         double quote in TZ after the first one.
33192
33193         readtokens: do not leak internal token_lengths buffer
33194         * lib/readtokens.c (readtokens): Free the local, lengths,
33195         when the supplied "token_lengths" parameter is NULL.
33196
33197 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33198
33199         Fix a couple of missing LIBTHREAD link failures on AIX.
33200         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33201         $(LIBTHREAD).
33202         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33203
33204         Link test-poll against INET_PTON_LIB.
33205         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33206         for inet_pton on Solaris 10.
33207
33208 2010-01-17  Bruno Haible  <bruno@clisp.org>
33209
33210         unistdio/*-sprintf: Fix typo in module description.
33211         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33212         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33213         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33214         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33215         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33216         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33217         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33218         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33219
33220 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33221
33222         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33223         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33224         variables in shell case patterns, for AIX and HP-UX ksh.
33225
33226         Split large sed scripts, for HP-UX sed.
33227         * modules/stdio: Split sed scripts around 50 sed commands,
33228         to avoid HP-UX limit of 99 commands, in the near future.
33229         * modules/string: Likewise.
33230         * modules/unistd: Likewise.
33231
33232         gnulib-tool: avoid writing in the current directory.
33233         * gnulib-tool (func_emit_lib_Makefile_am)
33234         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33235         not in the current directory, so concurrent gnulib-tool
33236         instances do not interfere.
33237
33238 2010-01-16  Jim Meyering  <meyering@redhat.com>
33239
33240         doc: update users.txt
33241         * users.txt: Add grep.
33242         (diffutils, gzip): Update URLs.
33243
33244 2010-01-12  Bruno Haible  <bruno@clisp.org>
33245
33246         posix_spawn: Avoid test failure on Cygwin.
33247         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33248         characters.
33249         Reported by Simon Josefsson.
33250
33251 2010-01-12  Bruno Haible  <bruno@clisp.org>
33252
33253         * tests/test-cond.c (main): When skipping the test, show the reason.
33254
33255 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33256
33257         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33258
33259 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33260
33261         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33262         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33263
33264 2010-01-12  Eric Blake  <ebb9@byu.net>
33265
33266         build: guarantee AS_VAR_IF
33267         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33268         (gl_AS_VAR_IF): Move...
33269         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33270         Reported by Simon Josefsson.
33271
33272 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33273
33274         * lib/stdio.in.h: Fix typo.
33275
33276 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33277
33278         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33279         libgpg-error.
33280
33281 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33282
33283         * tests/test-xalloc-die.sh: Use $EXEEXT.
33284
33285 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33286             Bruno Haible  <bruno@clisp.org>
33287
33288         getlogin, getlogin_r: Avoid test failure.
33289         * tests/test-getlogin.c: Include <stdio.h>.
33290         (main): Skip the test when the function fails because stdin is not a
33291         tty.
33292         * tests/test-getlogin_r.c: Include <stdio.h>.
33293         (main): Skip the test when the function fails because stdin is not a
33294         tty.
33295
33296 2010-01-11  Eric Blake  <ebb9@byu.net>
33297
33298         tests: avoid more large file warnings
33299         * tests/test-fflush.c: Avoid warning about ftell use.
33300         * tests/test-fseek.c: Avoid warning about fseek use.
33301
33302 2010-01-10  Bruno Haible  <bruno@clisp.org>
33303
33304         nproc: Work better on Linux when /proc and /sys are not mounted.
33305         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33306         as lower bound when, on glibc/Linux systems,
33307         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33308         Suggested by Pádraig Brady <P@draigbrady.com>.
33309         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33310
33311         nproc: Refactor.
33312         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33313         extracted from num_processors.
33314         (num_processors): Call it.
33315
33316 2010-01-11  Jim Meyering  <meyering@redhat.com>
33317
33318         utimecmp: avoid new warning from upcoming gcc-4.5.0
33319         * lib/utimecmp.c (BILLION): Define using #define rather than an
33320         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33321
33322 2010-01-11  Eric Blake  <ebb9@byu.net>
33323
33324         math: add portability warnings for classification macros
33325         * modules/math (Depends-on): Add warn-on-use.
33326         (Makefile.am): Provide new substitutions.
33327         * m4/math_h.m4 (gl_MATH_H): Require inline.
33328         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33329         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33330         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33331         implement warnings.
33332
33333         unistd: warn on use of environ without module
33334         * modules/unistd (Depends-on): Add warn-on-use.
33335         (Makefile.am): Provide new substitutions.
33336         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33337         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33338
33339         stdio: warn on suspicious uses
33340         * modules/stdio (Depends-on): Add warn-on-use.
33341         (Makefile.am): Provide new substitutions.
33342         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33343         fseeko.
33344         * lib/stdio.in.h (gets): Always warn on use.
33345         (fseek, ftell): Adjust when warnings are issued, and honor
33346         _GL_NO_LARGE_FILES as a way to silence the warning.
33347         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33348         any warning about large file offsets.
33349         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33350         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33351         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33352         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33353         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33354         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33355         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33356         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33357
33358         warn-on-use: new module
33359         * modules/warn-on-use: New file.
33360         * build-aux/warn-on-use.h: Likewise.
33361         * m4/warn-on-use.m4: Likewise.
33362         * MODULES.html.sh (Support for building): Mention it.
33363
33364 2010-01-10  Bruno Haible  <bruno@clisp.org>
33365
33366         Tests for module 'unistr/u32-strdup'.
33367         * modules/unistr/u32-strdup-tests: New file.
33368         * tests/unistr/test-u32-strdup.c: New file.
33369
33370         Tests for module 'unistr/u16-strdup'.
33371         * modules/unistr/u16-strdup-tests: New file.
33372         * tests/unistr/test-u16-strdup.c: New file.
33373
33374         Tests for module 'unistr/u8-strdup'.
33375         * modules/unistr/u8-strdup-tests: New file.
33376         * tests/unistr/test-u8-strdup.c: New file.
33377         * tests/unistr/test-strdup.h: New file.
33378
33379         Tests for module 'unistr/u32-strncmp'.
33380         * modules/unistr/u32-strncmp-tests: New file.
33381         * tests/unistr/test-u32-strncmp.c: New file.
33382
33383         Tests for module 'unistr/u16-strncmp'.
33384         * modules/unistr/u16-strncmp-tests: New file.
33385         * tests/unistr/test-u16-strncmp.c: New file.
33386
33387         Tests for module 'unistr/u8-strncmp'.
33388         * modules/unistr/u8-strncmp-tests: New file.
33389         * tests/unistr/test-u8-strncmp.c: New file.
33390         * tests/unistr/test-strncmp.h: New file.
33391
33392         Tests for module 'unistr/u32-strcoll'.
33393         * modules/unistr/u32-strcoll-tests: New file.
33394         * tests/unistr/test-u32-strcoll.c: New file.
33395
33396         Tests for module 'unistr/u16-strcoll'.
33397         * modules/unistr/u16-strcoll-tests: New file.
33398         * tests/unistr/test-u16-strcoll.c: New file.
33399
33400         Tests for module 'unistr/u8-strcoll'.
33401         * modules/unistr/u8-strcoll-tests: New file.
33402         * tests/unistr/test-u8-strcoll.c: New file.
33403
33404         Tests for module 'unistr/u32-strcmp'.
33405         * modules/unistr/u32-strcmp-tests: New file.
33406         * tests/unistr/test-u32-strcmp.c: New file.
33407         * tests/unistr/test-u32-strcmp.h: New file.
33408
33409         Tests for module 'unistr/u16-strcmp'.
33410         * modules/unistr/u16-strcmp-tests: New file.
33411         * tests/unistr/test-u16-strcmp.c: New file.
33412         * tests/unistr/test-u16-strcmp.h: New file.
33413
33414         Tests for module 'unistr/u8-strcmp'.
33415         * modules/unistr/u8-strcmp-tests: New file.
33416         * tests/unistr/test-u8-strcmp.c: New file.
33417         * tests/unistr/test-u8-strcmp.h: New file.
33418         * tests/unistr/test-strcmp.h: New file.
33419
33420         Tests for module 'unistr/u32-strncat'.
33421         * modules/unistr/u32-strncat-tests: New file.
33422         * tests/unistr/test-u32-strncat.c: New file.
33423
33424         Tests for module 'unistr/u16-strncat'.
33425         * modules/unistr/u16-strncat-tests: New file.
33426         * tests/unistr/test-u16-strncat.c: New file.
33427
33428         Tests for module 'unistr/u8-strncat'.
33429         * modules/unistr/u8-strncat-tests: New file.
33430         * tests/unistr/test-u8-strncat.c: New file.
33431         * tests/unistr/test-strncat.h: New file.
33432
33433         Tests for module 'unistr/u32-strcat'.
33434         * modules/unistr/u32-strcat-tests: New file.
33435         * tests/unistr/test-u32-strcat.c: New file.
33436
33437         Tests for module 'unistr/u16-strcat'.
33438         * modules/unistr/u16-strcat-tests: New file.
33439         * tests/unistr/test-u16-strcat.c: New file.
33440
33441         Tests for module 'unistr/u8-strcat'.
33442         * modules/unistr/u8-strcat-tests: New file.
33443         * tests/unistr/test-u8-strcat.c: New file.
33444         * tests/unistr/test-strcat.h: New file.
33445
33446         Tests for module 'unistr/u32-stpncpy'.
33447         * modules/unistr/u32-stpncpy-tests: New file.
33448         * tests/unistr/test-u32-stpncpy.c: New file.
33449
33450         Tests for module 'unistr/u16-stpncpy'.
33451         * modules/unistr/u16-stpncpy-tests: New file.
33452         * tests/unistr/test-u16-stpncpy.c: New file.
33453
33454         Tests for module 'unistr/u8-stpncpy'.
33455         * modules/unistr/u8-stpncpy-tests: New file.
33456         * tests/unistr/test-u8-stpncpy.c: New file.
33457         * tests/unistr/test-stpncpy.h: New file.
33458
33459         Tests for module 'unistr/u32-strncpy'.
33460         * modules/unistr/u32-strncpy-tests: New file.
33461         * tests/unistr/test-u32-strncpy.c: New file.
33462
33463         Tests for module 'unistr/u16-strncpy'.
33464         * modules/unistr/u16-strncpy-tests: New file.
33465         * tests/unistr/test-u16-strncpy.c: New file.
33466
33467         Tests for module 'unistr/u8-strncpy'.
33468         * modules/unistr/u8-strncpy-tests: New file.
33469         * tests/unistr/test-u8-strncpy.c: New file.
33470         * tests/unistr/test-strncpy.h: New file.
33471
33472         Tests for module 'unistr/u32-stpcpy'.
33473         * modules/unistr/u32-stpcpy-tests: New file.
33474         * tests/unistr/test-u32-stpcpy.c: New file.
33475
33476         Tests for module 'unistr/u16-stpcpy'.
33477         * modules/unistr/u16-stpcpy-tests: New file.
33478         * tests/unistr/test-u16-stpcpy.c: New file.
33479
33480         Tests for module 'unistr/u8-stpcpy'.
33481         * modules/unistr/u8-stpcpy-tests: New file.
33482         * tests/unistr/test-u8-stpcpy.c: New file.
33483         * tests/unistr/test-stpcpy.h: New file.
33484
33485         Tests for module 'unistr/u32-strcpy'.
33486         * modules/unistr/u32-strcpy-tests: New file.
33487         * tests/unistr/test-u32-strcpy.c: New file.
33488
33489         Tests for module 'unistr/u16-strcpy'.
33490         * modules/unistr/u16-strcpy-tests: New file.
33491         * tests/unistr/test-u16-strcpy.c: New file.
33492
33493         Tests for module 'unistr/u8-strcpy'.
33494         * modules/unistr/u8-strcpy-tests: New file.
33495         * tests/unistr/test-u8-strcpy.c: New file.
33496         * tests/unistr/test-strcpy.h: New file.
33497
33498         Tests for module 'unistr/u32-strnlen'.
33499         * modules/unistr/u32-strnlen-tests: New file.
33500         * tests/unistr/test-u32-strnlen.c: New file.
33501
33502         Tests for module 'unistr/u16-strnlen'.
33503         * modules/unistr/u16-strnlen-tests: New file.
33504         * tests/unistr/test-u16-strnlen.c: New file.
33505
33506         Tests for module 'unistr/u8-strnlen'.
33507         * modules/unistr/u8-strnlen-tests: New file.
33508         * tests/unistr/test-u8-strnlen.c: New file.
33509         * tests/unistr/test-strnlen.h: New file.
33510
33511         Tests for module 'unistr/u32-strlen'.
33512         * modules/unistr/u32-strlen-tests: New file.
33513         * tests/unistr/test-u32-strlen.c: New file.
33514
33515         Tests for module 'unistr/u16-strlen'.
33516         * modules/unistr/u16-strlen-tests: New file.
33517         * tests/unistr/test-u16-strlen.c: New file.
33518
33519         Tests for module 'unistr/u8-strlen'.
33520         * modules/unistr/u8-strlen-tests: New file.
33521         * tests/unistr/test-u8-strlen.c: New file.
33522
33523         Tests for module 'unistr/u32-prev'.
33524         * modules/unistr/u32-prev-tests: New file.
33525         * tests/unistr/test-u32-prev.c: New file.
33526
33527         Tests for module 'unistr/u16-prev'.
33528         * modules/unistr/u16-prev-tests: New file.
33529         * tests/unistr/test-u16-prev.c: New file.
33530
33531         Tests for module 'unistr/u8-prev'.
33532         * modules/unistr/u8-prev-tests: New file.
33533         * tests/unistr/test-u8-prev.c: New file.
33534
33535         Tests for module 'unistr/u32-next'.
33536         * modules/unistr/u32-next-tests: New file.
33537         * tests/unistr/test-u32-next.c: New file.
33538
33539         Tests for module 'unistr/u16-next'.
33540         * modules/unistr/u16-next-tests: New file.
33541         * tests/unistr/test-u16-next.c: New file.
33542
33543         Tests for module 'unistr/u8-next'.
33544         * modules/unistr/u8-next-tests: New file.
33545         * tests/unistr/test-u8-next.c: New file.
33546
33547         Tests for module 'unistr/u32-strmbtouc'.
33548         * modules/unistr/u32-strmbtouc-tests: New file.
33549         * tests/unistr/test-u32-strmbtouc.c: New file.
33550
33551         Tests for module 'unistr/u16-strmbtouc'.
33552         * modules/unistr/u16-strmbtouc-tests: New file.
33553         * tests/unistr/test-u16-strmbtouc.c: New file.
33554
33555         Tests for module 'unistr/u8-strmbtouc'.
33556         * modules/unistr/u8-strmbtouc-tests: New file.
33557         * tests/unistr/test-u8-strmbtouc.c: New file.
33558
33559         Tests for module 'unistr/u32-strmblen'.
33560         * modules/unistr/u32-strmblen-tests: New file.
33561         * tests/unistr/test-u32-strmblen.c: New file.
33562
33563         Tests for module 'unistr/u16-strmblen'.
33564         * modules/unistr/u16-strmblen-tests: New file.
33565         * tests/unistr/test-u16-strmblen.c: New file.
33566
33567         Tests for module 'unistr/u8-strmblen'.
33568         * modules/unistr/u8-strmblen-tests: New file.
33569         * tests/unistr/test-u8-strmblen.c: New file.
33570
33571         Tests for module 'unistr/u32-cpy-alloc'.
33572         * modules/unistr/u32-cpy-alloc-tests: New file.
33573         * tests/unistr/test-u32-cpy-alloc.c: New file.
33574
33575         Tests for module 'unistr/u16-cpy-alloc'.
33576         * modules/unistr/u16-cpy-alloc-tests: New file.
33577         * tests/unistr/test-u16-cpy-alloc.c: New file.
33578
33579         Tests for module 'unistr/u8-cpy-alloc'.
33580         * modules/unistr/u8-cpy-alloc-tests: New file.
33581         * tests/unistr/test-u8-cpy-alloc.c: New file.
33582         * tests/unistr/test-cpy-alloc.h: New file.
33583
33584         Tests for module 'unistr/u32-mbsnlen'.
33585         * modules/unistr/u32-mbsnlen-tests: New file.
33586         * tests/unistr/test-u32-mbsnlen.c: New file.
33587
33588         Tests for module 'unistr/u16-mbsnlen'.
33589         * modules/unistr/u16-mbsnlen-tests: New file.
33590         * tests/unistr/test-u16-mbsnlen.c: New file.
33591
33592         Tests for module 'unistr/u8-mbsnlen'.
33593         * modules/unistr/u8-mbsnlen-tests: New file.
33594         * tests/unistr/test-u8-mbsnlen.c: New file.
33595
33596         Tests for module 'unistr/u32-chr'.
33597         * modules/unistr/u32-chr-tests: New file.
33598         * tests/unistr/test-u32-chr.c: New file.
33599
33600         Tests for module 'unistr/u16-chr'.
33601         * modules/unistr/u16-chr-tests: New file.
33602         * tests/unistr/test-u16-chr.c: New file.
33603
33604         Tests for module 'unistr/u8-chr'.
33605         * modules/unistr/u8-chr-tests: New file.
33606         * tests/unistr/test-u8-chr.c: New file.
33607         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33608
33609         Tests for module 'unistr/u32-cmp2'.
33610         * modules/unistr/u32-cmp2-tests: New file.
33611         * tests/unistr/test-u32-cmp2.c: New file.
33612
33613         Tests for module 'unistr/u16-cmp2'.
33614         * modules/unistr/u16-cmp2-tests: New file.
33615         * tests/unistr/test-u16-cmp2.c: New file.
33616
33617         Tests for module 'unistr/u8-cmp2'.
33618         * modules/unistr/u8-cmp2-tests: New file.
33619         * tests/unistr/test-u8-cmp2.c: New file.
33620         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33621
33622         Tests for module 'unistr/u32-cmp'.
33623         * modules/unistr/u32-cmp-tests: New file.
33624         * tests/unistr/test-u32-cmp.c: New file.
33625
33626         Tests for module 'unistr/u16-cmp'.
33627         * modules/unistr/u16-cmp-tests: New file.
33628         * tests/unistr/test-u16-cmp.c: New file.
33629
33630         Tests for module 'unistr/u8-cmp'.
33631         * modules/unistr/u8-cmp-tests: New file.
33632         * tests/unistr/test-u8-cmp.c: New file.
33633         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33634
33635         Tests for module 'unistr/u32-set'.
33636         * modules/unistr/u32-set-tests: New file.
33637         * tests/unistr/test-u32-set.c: New file.
33638
33639         Tests for module 'unistr/u16-set'.
33640         * modules/unistr/u16-set-tests: New file.
33641         * tests/unistr/test-u16-set.c: New file.
33642
33643         Tests for module 'unistr/u8-set'.
33644         * modules/unistr/u8-set-tests: New file.
33645         * tests/unistr/test-u8-set.c: New file.
33646         * tests/unistr/test-set.h: New file.
33647
33648         Tests for module 'unistr/u32-move'.
33649         * modules/unistr/u32-move-tests: New file.
33650         * tests/unistr/test-u32-move.c: New file.
33651
33652         Tests for module 'unistr/u16-move'.
33653         * modules/unistr/u16-move-tests: New file.
33654         * tests/unistr/test-u16-move.c: New file.
33655
33656         Tests for module 'unistr/u8-move'.
33657         * modules/unistr/u8-move-tests: New file.
33658         * tests/unistr/test-u8-move.c: New file.
33659         * tests/unistr/test-move.h: New file.
33660
33661         Tests for module 'unistr/u32-cpy'.
33662         * modules/unistr/u32-cpy-tests: New file.
33663         * tests/unistr/test-u32-cpy.c: New file.
33664
33665         Tests for module 'unistr/u16-cpy'.
33666         * modules/unistr/u16-cpy-tests: New file.
33667         * tests/unistr/test-u16-cpy.c: New file.
33668
33669         Tests for module 'unistr/u8-cpy'.
33670         * modules/unistr/u8-cpy-tests: New file.
33671         * tests/unistr/test-u8-cpy.c: New file.
33672         * tests/unistr/test-cpy.h: New file.
33673
33674 2010-01-09  Bruno Haible  <bruno@clisp.org>
33675
33676         Tests for module 'unistr/u32-uctomb'.
33677         * modules/unistr/u32-uctomb-tests: New file.
33678         * tests/unistr/test-u32-uctomb.c: New file.
33679
33680         Tests for module 'unistr/u16-uctomb'.
33681         * modules/unistr/u16-uctomb-tests: New file.
33682         * tests/unistr/test-u16-uctomb.c: New file.
33683
33684         Tests for module 'unistr/u8-uctomb'.
33685         * modules/unistr/u8-uctomb-tests: New file.
33686         * tests/unistr/test-u8-uctomb.c: New file.
33687
33688         Tests for module 'unistr/u32-mbtoucr'.
33689         * modules/unistr/u32-mbtoucr-tests: New file.
33690         * tests/unistr/test-u32-mbtoucr.c: New file.
33691
33692         Tests for module 'unistr/u16-mbtoucr'.
33693         * modules/unistr/u16-mbtoucr-tests: New file.
33694         * tests/unistr/test-u16-mbtoucr.c: New file.
33695
33696         Tests for module 'unistr/u8-mbtoucr'.
33697         * modules/unistr/u8-mbtoucr-tests: New file.
33698         * tests/unistr/test-u8-mbtoucr.c: New file.
33699
33700         Tests for module 'unistr/u32-mbtouc'.
33701         * modules/unistr/u32-mbtouc-tests: New file.
33702         * tests/unistr/test-u32-mbtouc.c: New file.
33703
33704         Tests for module 'unistr/u16-mbtouc'.
33705         * modules/unistr/u16-mbtouc-tests: New file.
33706         * tests/unistr/test-u16-mbtouc.c: New file.
33707
33708         Tests for module 'unistr/u8-mbtouc'.
33709         * modules/unistr/u8-mbtouc-tests: New file.
33710         * tests/unistr/test-u8-mbtouc.c: New file.
33711
33712         Tests for module 'unistr/u32-mbtouc-unsafe'.
33713         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33714         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33715         * tests/unistr/test-u32-mbtouc.h: New file.
33716
33717         Tests for module 'unistr/u16-mbtouc-unsafe'.
33718         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33719         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33720         * tests/unistr/test-u16-mbtouc.h: New file.
33721
33722         Tests for module 'unistr/u8-mbtouc-unsafe'.
33723         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33724         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33725         * tests/unistr/test-u8-mbtouc.h: New file.
33726
33727         Tests for module 'unistr/u32-mblen'.
33728         * modules/unistr/u32-mblen-tests: New file.
33729         * tests/unistr/test-u32-mblen.c: New file.
33730
33731         Tests for module 'unistr/u16-mblen'.
33732         * modules/unistr/u16-mblen-tests: New file.
33733         * tests/unistr/test-u16-mblen.c: New file.
33734
33735         Tests for module 'unistr/u8-mblen'.
33736         * modules/unistr/u8-mblen-tests: New file.
33737         * tests/unistr/test-u8-mblen.c: New file.
33738
33739         Tests for module 'unistr/u32-to-u16'.
33740         * modules/unistr/u32-to-u16-tests: New file.
33741         * tests/unistr/test-u32-to-u16.c: New file.
33742
33743         Tests for module 'unistr/u32-to-u8'.
33744         * modules/unistr/u32-to-u8-tests: New file.
33745         * tests/unistr/test-u32-to-u8.c: New file.
33746
33747         Tests for module 'unistr/u16-to-u32'.
33748         * modules/unistr/u16-to-u32-tests: New file.
33749         * tests/unistr/test-u16-to-u32.c: New file.
33750
33751         Tests for module 'unistr/u16-to-u8'.
33752         * modules/unistr/u16-to-u8-tests: New file.
33753         * tests/unistr/test-u16-to-u8.c: New file.
33754
33755         Tests for module 'unistr/u8-to-u32'.
33756         * modules/unistr/u8-to-u32-tests: New file.
33757         * tests/unistr/test-u8-to-u32.c: New file.
33758
33759         Tests for module 'unistr/u8-to-u16'.
33760         * modules/unistr/u8-to-u16-tests: New file.
33761         * tests/unistr/test-u8-to-u16.c: New file.
33762
33763         Tests for module 'unistr/u32-check'.
33764         * modules/unistr/u32-check-tests: New file.
33765         * tests/unistr/test-u32-check.c: New file.
33766
33767         Tests for module 'unistr/u16-check'.
33768         * modules/unistr/u16-check-tests: New file.
33769         * tests/unistr/test-u16-check.c: New file.
33770
33771         Tests for module 'unistr/u8-check'.
33772         * modules/unistr/u8-check-tests: New file.
33773         * tests/unistr/test-u8-check.c: New file.
33774
33775         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33776         (category_equals): New function.
33777         (main): Add more tests.
33778         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33779
33780         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33781
33782 2010-01-10  Bruno Haible  <bruno@clisp.org>
33783
33784         unistr/u*-strcoll: Try harder to distinguish different strings.
33785         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33786         compare s1 and s2 to see if they are different.
33787
33788 2010-01-10  Bruno Haible  <bruno@clisp.org>
33789
33790         unistr/u*-stpncpy: Fix the return value.
33791         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33792         description of the return value consistent with stpncpy in glibc.
33793         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33794         written non-NUL unit.
33795
33796 2010-01-10  Bruno Haible  <bruno@clisp.org>
33797
33798         unistr/u*-next: Add missing dependencies.
33799         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33800         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33801         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33802
33803 2010-01-10  Bruno Haible  <bruno@clisp.org>
33804
33805         unistr/u8-mbsnlen: Fix return value for incomplete character.
33806         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33807         u8_mblen.
33808         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33809         Remove unistr/u8-mblen.
33810         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33811         u16_mblen.
33812         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33813         Remove unistr/u16-mblen.
33814
33815 2010-01-10  Bruno Haible  <bruno@clisp.org>
33816
33817         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33818         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33819         Reported by Brian Gough <bjg@gnu.org> and
33820         Chris Clayton <chris2553@googlemail.com> via
33821         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33822
33823 2010-01-09  Bruno Haible  <bruno@clisp.org>
33824
33825         unistr/u16-to-u32: Reject invalid input.
33826         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33827         u16_mbtouc.
33828         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33829         Remove unistr/u16-mbtouc.
33830
33831         unistr/u16-to-u8: Reject invalid input.
33832         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33833         u16_mbtouc.
33834         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33835         Remove unistr/u16-mbtouc.
33836
33837         unistr/u8-to-u32: Reject invalid input.
33838         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33839         u8_mbtouc.
33840         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33841         Remove unistr/u8-mbtouc.
33842
33843         unistr/u8-to-u16: Reject invalid input.
33844         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33845         u8_mbtouc.
33846         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33847         Remove unistr/u8-mbtouc.
33848
33849 2010-01-09  Bruno Haible  <bruno@clisp.org>
33850
33851         Tests for module 'getlogin'.
33852         * modules/getlogin-tests: New file.
33853         * tests/test-getlogin.c: New file.
33854
33855         New module 'getlogin'.
33856         * lib/unistd.in.h (getlogin): New declaration.
33857         * lib/getlogin.c: New file.
33858         * m4/getlogin.m4: New file.
33859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33860         HAVE_GETLOGIN.
33861         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33862         HAVE_GETLOGIN.
33863         * modules/getlogin: New file.
33864         * doc/posix-functions/getlogin.texi: Mention the new module.
33865         Reported by John W. Eaton <jwe@gnu.org>.
33866
33867 2010-01-09  Bruno Haible  <bruno@clisp.org>
33868
33869         getlogin_r: Support for native Windows.
33870         * lib/getlogin_r.c: Include <windows.h>
33871         (getlogin_r): Implement for native Windows.
33872         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33873         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33874         via John W. Eaton <jwe@gnu.org>.
33875
33876 2010-01-09  Bruno Haible  <bruno@clisp.org>
33877
33878         getlogin_r: Small fixes.
33879         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33880         succeeds.
33881         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33882         before testing whether getlogin_r is declared. No need to set
33883         HAVE_DECL_GETLOGIN_R to 1.
33884         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33885
33886 2010-01-09  Bruno Haible  <bruno@clisp.org>
33887
33888         * lib/unistd.in.h (getlogin_r): Add comment.
33889
33890 2010-01-09  Bruno Haible  <bruno@clisp.org>
33891
33892         Tests for module 'getlogin_r'.
33893         * modules/getlogin_r-tests: New file.
33894         * tests/test-getlogin_r.c: New file.
33895
33896 2010-01-09  Jim Meyering  <meyering@redhat.com>
33897
33898         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33899         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33900         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33901
33902 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33903
33904         * lib/dup2.c (rpl_dup2): Improve comment.
33905
33906 2010-01-08  Eric Blake  <ebb9@byu.net>
33907
33908         maint.mk: allow packages to add makefile @@ exceptions
33909         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33910         (sc_makefile_check): Rename...
33911         (sc_makefile_at_at_check): ...to this, and use hook.
33912
33913         dup2: work around mingw bug
33914         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33915         Reported by Simon Josefsson.
33916
33917 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33918
33919         glob: Fix C++ compilation.
33920         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33921         C++.
33922
33923 2010-01-07  Bruno Haible  <bruno@clisp.org>
33924
33925         Fix indentation of wctype.in.h, broken since 2007-01-06.
33926         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33927
33928 2010-01-07  Bruno Haible  <bruno@clisp.org>
33929
33930         mbslen: Avoid collision with system function.
33931         * lib/string.in.h [MirBSD]: Include <wchar.h>.
33932         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
33933         * m4/mbslen.m4: New file.
33934         * modules/mbslen (Files): Add it.
33935         (configure.ac): Invoke gl_MBSLEN.
33936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
33937         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
33938         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
33939         via Ian Beckwith <ianb@erislabs.net>.
33940
33941 2010-01-07  Bruno Haible  <bruno@clisp.org>
33942
33943         dirent: Document the last fix.
33944         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
33945
33946 2010-01-07  Bruno Haible  <bruno@clisp.org>
33947
33948         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
33949         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
33950         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
33951         va_list are defined.
33952         * doc/posix-headers/stdio.texi: Document the bug of missing types.
33953         Reported by Eric Blake.
33954
33955 2010-01-07  Bruno Haible  <bruno@clisp.org>
33956
33957         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
33958         * modules/xlist (Depends-on): Add 'list',
33959         * modules/xoset (Depends-on): Add 'oset'.
33960         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33961
33962 2010-01-07  Bruno Haible  <bruno@clisp.org>
33963
33964         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
33965         * doc/posix-functions/strncasecmp.texi: Likewise.
33966
33967 2010-01-07  Bruno Haible  <bruno@clisp.org>
33968
33969         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
33970
33971 2010-01-07  John W. Eaton  <jwe@octave.org>
33972
33973         wctype: allow C++ use
33974         * lib/wctype.in.h: Add extern "C" block for C++.
33975
33976 2010-01-06  Eric Blake  <ebb9@byu.net>
33977
33978         maint.mk: detect incorrect GFDL usage
33979         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
33980
33981 2010-01-06  Jim Meyering  <meyering@redhat.com>
33982         and Eric Blake  <ebb9@byu.net>
33983
33984         maint.mk: ignore multi-line copyright in NEWS
33985         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
33986
33987 2010-01-06  Eric Blake  <ebb9@byu.net>
33988
33989         select: add missing dependency
33990         * modules/select-tests (Depends-on): Move sockets dependency...
33991         * modules/select (Depends-on): ...here.
33992         Reported by Ian Beckwith.
33993
33994         doc: regenerate INSTALL
33995         * doc/INSTALL: Reflect recent autoconf update.
33996         * doc/INSTALL.ISO: Likewise.
33997         * doc/INSTALL.UTF-8: Likewise.
33998
33999         pread: fix compilation on glibc
34000         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34001         Reported by Ralf Wildenhues.
34002
34003         dirent: fix test failure
34004         * lib/dirent.in.h (includes): Guarantee ino_t.
34005         Reported by Ralf Wildenhues.
34006
34007 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34008
34009         linkat, renameat: avoid bad free
34010         * lib/at-func2.c (at_func2): Fix typo.
34011         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34012
34013 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34014
34015         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34016         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34017         to avoid failure of symlink test later.
34018
34019 2010-01-06  Eric Blake  <ebb9@byu.net>
34020
34021         stdio, unistd: guarantee ssize_t
34022         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34023         2008 are exposed when needed.
34024         * lib/stdio.in.h (includes): Likewise.
34025         Reported by Ralf Wildenhues.
34026
34027 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34028
34029         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34030         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34031         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34032
34033 2010-01-06  Jim Meyering  <meyering@redhat.com>
34034
34035         readtokens: this module *does* require xalloc.h
34036         It uses only functions that were omitted by the old syntax-check rule.
34037         * lib/readtokens.c: Include "xalloc.h" once again.
34038         * modules/readtokens (Depends-on): Add xalloc.
34039         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34040
34041 2010-01-05  Eric Blake  <ebb9@byu.net>
34042
34043         maint: support 'make announcement' from a VPATH build
34044         * top/maint.mk (announcement): Look for correct NEWS file.
34045
34046 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34047
34048         utimens (fdutimens): ignore a negative FD, per contract
34049         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34050         when we have a valid file descriptor.  Otherwise, using a brand
34051         new glibc (with just-patched futimens that now fails with EBADF)
34052         would cause this function to fail with ENOSYS.
34053         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34054         See also http://bugzilla.redhat.com/552320.
34055
34056 2010-01-05  Eric Blake  <ebb9@byu.net>
34057
34058         strcase: document what it provides
34059         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34060         gnulib module.
34061         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34062         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34063
34064 2010-01-05  Jim Meyering  <meyering@redhat.com>
34065
34066         maint: remove useless inclusions of "xalloc.h"
34067         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34068         * lib/readtokens.c: Likewise.
34069         * lib/same.c: Likewise.
34070         * modules/getloadavg (Depends-on): Remove xalloc.
34071         * modules/readtokens: Likewise.
34072         * modules/same: Likewise.
34073
34074         maint.mk: include 4 more function names in alloca.h-checking regexp
34075         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34076         regexp.  Before, we would give a false-positive (saying alloca.h
34077         is included unnecessarily) when the only uses involved omitted symbols.
34078
34079         xalloc.h: use consistent formatting
34080         * lib/xalloc.h: Move declarations to start in the first column.
34081
34082 2010-01-05  Eric Blake  <ebb9@byu.net>
34083
34084         mkdir: avoid xalloc
34085         * lib/mkdir.c (includes): Drop unused header.
34086         Reported by John W. Eaton.
34087
34088 2010-01-04  Jim Meyering  <meyering@redhat.com>
34089
34090         nl_langinfo: avoid configure-time syntax error
34091         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34092         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34093         the empty string.  Don't let that provoke a shell syntax error.
34094
34095         regcomp, regexec, fnmatch: avoid array bounds read error
34096         * lib/regcomp.c (build_equiv_class): From glibc:
34097         Use only the low 24 bits of a findidx return value as an index
34098         into the weights array.  Patch by Ulrich Drepper:
34099         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34100         * lib/regexec.c (check_node_accept_bytes): Likewise.
34101         * lib/fnmatch_loop.c (FCT): Likewise.
34102
34103         regcomp: skip collseq lookup when there are no rules
34104         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34105         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34106
34107         regcomp: recognize ill-formed { } expressions
34108         * lib/regcomp.c (parse_dup_op): From glibc:
34109         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34110
34111         regcomp: fix typo in comment
34112         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34113         s/satisfy/satisfies/.
34114
34115         regcomp: sync from glibc: remove dead store
34116         * lib/regcomp.c (duplicate_node_closure): Remove useless
34117         search_duplicated_node call and dead store.
34118
34119         regcomp: sync from glibc; always use nl_langinfo
34120         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34121         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34122         * modules/regex (Depends-on): Add nl_langinfo.
34123
34124 2010-01-04  Eric Blake  <ebb9@byu.net>
34125
34126         fdopendir: fix configure test
34127         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34128
34129 2010-01-01  Bruno Haible  <bruno@clisp.org>
34130
34131         wchar: Remove unused configure check.
34132         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34133
34134 2010-01-01  Eric Blake  <ebb9@byu.net>
34135
34136         headers: make check of system header explicit
34137         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34138         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34139         ourselves.
34140         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34141         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34142         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34143         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34144         internals.
34145         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34146         missing.
34147         Suggested by Bruno Haible.
34148
34149 2010-01-01  Jim Meyering  <meyering@redhat.com>
34150
34151         ChangeLog: tweak to eliminate unnecessary copyright line
34152         * ChangeLog: Remove a copyright line that was mistakenly updated
34153         by today's update-copyright run.  Reported by Eric Blake.
34154
34155         test-update-copyright: don't let envvar setting cause test failure
34156         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34157
34158 2010-01-01  Bruno Haible  <bruno@clisp.org>
34159
34160         localename: Avoid gcc warning.
34161         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34162         function if it is not used.
34163
34164 2010-01-01  Jim Meyering  <meyering@redhat.com>
34165
34166         update nearly all FSF copyright year lists to include 2010
34167         Use the same procedure as for 2009, outlined in
34168         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34169
34170         version-etc: set COPYRIGHT_YEAR to 2010
34171         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34172
34173 2009-12-31  Eric Blake  <ebb9@byu.net>
34174
34175         doc: correct availability of cygwin 1.5.x getopt
34176         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34177         variables.
34178         * doc/posix-functions/opterr.texi (opterr): Likewise.
34179         * doc/posix-functions/optind.texi (optind): Likewise.
34180         * doc/posix-functions/optopt.texi (optopt): Likewise.
34181         * doc/posix-functions/tzname.texi (tzname): Likewise.
34182
34183         openat: update maintainer
34184         * modules/openat (Maintainer): Add myself.
34185
34186         utimens: avoid shadowing warning
34187         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34188         buffers into one, to avoid shadowing, as well as avoiding a
34189         redundant stat.
34190         Reported by Jim Meyering.
34191
34192         test-dup2: avoid compiler warning
34193         * tests/test-dup2.c (is_inheritable): Only define if used.
34194
34195 2010-01-01  Bruno Haible  <bruno@clisp.org>
34196
34197         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34198         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34199         defined, use wctomb instead of wcrtomb.
34200
34201 2010-01-01  Bruno Haible  <bruno@clisp.org>
34202
34203         iconv: Reject native Solaris iconv.
34204         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34205         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34206
34207 2009-12-31  Bruno Haible  <bruno@clisp.org>
34208
34209         * tests/test-signal.c (main): Remove test of 'SIG'.
34210
34211 2009-12-31  Bruno Haible  <bruno@clisp.org>
34212
34213         spawn: Fix incomplete fix.
34214         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34215         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34216         warnings for GNULIB_POSIXCHECK again.
34217         Reported by Eric Blake.
34218
34219 2009-12-31  Bruno Haible  <bruno@clisp.org>
34220
34221         Avoid namespace pollution on glibc systems.
34222         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34223         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34224         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34225         glibc systems.
34226
34227 2009-12-31  Bruno Haible  <bruno@clisp.org>
34228
34229         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34230         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34231         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34232         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34233         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34234         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34235         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34236
34237 2009-12-31  Bruno Haible  <bruno@clisp.org>
34238
34239         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34240         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34241         afterwards.
34242
34243 2009-12-31  Bruno Haible  <bruno@clisp.org>
34244
34245         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34246         SYS_UTSNAME_H.
34247
34248 2009-12-31  Bruno Haible  <bruno@clisp.org>
34249
34250         spawn: Fix misapplied patch.
34251         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34252         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34253         warnings for GNULIB_POSIXCHECK.
34254
34255 2009-12-31  Bruno Haible  <bruno@clisp.org>
34256
34257         times: Update after sys_times changed.
34258         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34259         * modules/times (Files): Add it.
34260         (configure.ac): Invoke gl_FUNC_TIMES.
34261
34262 2009-12-31  Bruno Haible  <bruno@clisp.org>
34263
34264         Use AC_C_INLINE where necessary.
34265         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34266         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34267         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34268         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34269         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34270         * m4/mbiter.m4 (gl_MBITER): Likewise.
34271         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34272         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34273         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34274         * modules/u64 (configure.ac): Likewise.
34275
34276 2009-12-31  Bruno Haible  <bruno@clisp.org>
34277
34278         Use AC_C_INLINE instead of module 'inline' where possible.
34279         * modules/inline (Description): Clarify purpose.
34280         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34281         * modules/count-one-bits (Depends-on): Remove inline.
34282         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34283         * modules/openat (Depends-on): Remove inline.
34284         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34285         instead of depending on module 'inline'.
34286         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34287         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34288         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34289         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34290         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34291         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34292         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34293         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34294         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34295         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34296         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34297         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34298         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34299         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34300         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34301         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34302         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34303         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34304         Likewise.
34305         * modules/unictype/property-ascii-hex-digit (Depends-on,
34306         configure.ac): Likewise.
34307         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34308         configure.ac): Likewise.
34309         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34310         configure.ac): Likewise.
34311         * modules/unictype/property-bidi-block-separator (Depends-on,
34312         configure.ac): Likewise.
34313         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34314         configure.ac): Likewise.
34315         * modules/unictype/property-bidi-common-separator (Depends-on,
34316         configure.ac): Likewise.
34317         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34318         Likewise.
34319         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34320         configure.ac): Likewise.
34321         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34322         configure.ac): Likewise.
34323         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34324         configure.ac): Likewise.
34325         * modules/unictype/property-bidi-european-digit (Depends-on,
34326         configure.ac): Likewise.
34327         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34328         configure.ac): Likewise.
34329         * modules/unictype/property-bidi-left-to-right (Depends-on,
34330         configure.ac): Likewise.
34331         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34332         configure.ac): Likewise.
34333         * modules/unictype/property-bidi-other-neutral (Depends-on,
34334         configure.ac): Likewise.
34335         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34336         Likewise.
34337         * modules/unictype/property-bidi-segment-separator (Depends-on,
34338         configure.ac): Likewise.
34339         * modules/unictype/property-bidi-whitespace (Depends-on,
34340         configure.ac): Likewise.
34341         * modules/unictype/property-combining (Depends-on, configure.ac):
34342         Likewise.
34343         * modules/unictype/property-composite (Depends-on, configure.ac):
34344         Likewise.
34345         * modules/unictype/property-currency-symbol (Depends-on,
34346         configure.ac): Likewise.
34347         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34348         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34349         Likewise.
34350         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34351         configure.ac): Likewise.
34352         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34353         Likewise.
34354         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34355         Likewise.
34356         * modules/unictype/property-extender (Depends-on, configure.ac):
34357         Likewise.
34358         * modules/unictype/property-format-control (Depends-on, configure.ac):
34359         Likewise.
34360         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34361         Likewise.
34362         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34363         Likewise.
34364         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34365         Likewise.
34366         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34367         Likewise.
34368         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34369         Likewise.
34370         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34371         Likewise.
34372         * modules/unictype/property-id-start (Depends-on, configure.ac):
34373         Likewise.
34374         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34375         Likewise.
34376         * modules/unictype/property-ids-binary-operator (Depends-on,
34377         configure.ac): Likewise.
34378         * modules/unictype/property-ids-trinary-operator (Depends-on,
34379         configure.ac): Likewise.
34380         * modules/unictype/property-ignorable-control (Depends-on,
34381         configure.ac): Likewise.
34382         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34383         Likewise.
34384         * modules/unictype/property-join-control (Depends-on, configure.ac):
34385         Likewise.
34386         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34387         Likewise.
34388         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34389         Likewise.
34390         * modules/unictype/property-logical-order-exception (Depends-on,
34391         configure.ac): Likewise.
34392         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34393         Likewise.
34394         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34395         * modules/unictype/property-non-break (Depends-on, configure.ac):
34396         Likewise.
34397         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34398         Likewise.
34399         * modules/unictype/property-numeric (Depends-on, configure.ac):
34400         Likewise.
34401         * modules/unictype/property-other-alphabetic (Depends-on,
34402         configure.ac): Likewise.
34403         * modules/unictype/property-other-default-ignorable-code-point
34404         (Depends-on, configure.ac): Likewise.
34405         * modules/unictype/property-other-grapheme-extend (Depends-on,
34406         configure.ac): Likewise.
34407         * modules/unictype/property-other-id-continue (Depends-on,
34408         configure.ac): Likewise.
34409         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34410         Likewise.
34411         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34412         Likewise.
34413         * modules/unictype/property-other-math (Depends-on, configure.ac):
34414         Likewise.
34415         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34416         Likewise.
34417         * modules/unictype/property-paired-punctuation (Depends-on,
34418         configure.ac): Likewise.
34419         * modules/unictype/property-paragraph-separator (Depends-on,
34420         configure.ac): Likewise.
34421         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34422         Likewise.
34423         * modules/unictype/property-pattern-white-space (Depends-on,
34424         configure.ac): Likewise.
34425         * modules/unictype/property-private-use (Depends-on, configure.ac):
34426         Likewise.
34427         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34428         Likewise.
34429         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34430         Likewise.
34431         * modules/unictype/property-radical (Depends-on, configure.ac):
34432         Likewise.
34433         * modules/unictype/property-sentence-terminal (Depends-on,
34434         configure.ac): Likewise.
34435         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34436         Likewise.
34437         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34438         * modules/unictype/property-terminal-punctuation (Depends-on,
34439         configure.ac): Likewise.
34440         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34441         Likewise.
34442         * modules/unictype/property-unassigned-code-value (Depends-on,
34443         configure.ac): Likewise.
34444         * modules/unictype/property-unified-ideograph (Depends-on,
34445         configure.ac): Likewise.
34446         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34447         Likewise.
34448         * modules/unictype/property-variation-selector (Depends-on,
34449         configure.ac): Likewise.
34450         * modules/unictype/property-white-space (Depends-on, configure.ac):
34451         Likewise.
34452         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34453         Likewise.
34454         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34455         Likewise.
34456         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34457         Likewise.
34458         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34459         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34460         Likewise.
34461
34462 2009-12-31  Bruno Haible  <bruno@clisp.org>
34463
34464         Remove unnecessary AC_C_INLINE invocation.
34465         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34466         since 2009-08-21.
34467
34468 2009-12-31  Jim Meyering  <meyering@redhat.com>
34469
34470         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34471         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34472         With this change, we can all remove the gpg_key_ID = ... definition
34473         from our respective cfg.mk files.
34474
34475         maint.mk: create announcement template in ~/, not in /tmp
34476         * top/maint.mk (emit_upload_commands): Adjust.
34477         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34478         Remove temporary file, .ci-msg.
34479
34480 2009-12-31  Eric Blake  <ebb9@byu.net>
34481
34482         link-warning: always build headers with link warnings
34483         * modules/arpa_inet (Makefile.am): Always build replacement
34484         header.
34485         * modules/ctype (Makefile.am): Likewise.
34486         * modules/dirent (Makefile.am): Likewise.
34487         * modules/inttypes (Makefile.am): Likewise.
34488         * modules/langinfo (Makefile.am): Likewise.
34489         * modules/locale (Makefile.am): Likewise.
34490         * modules/spawn (Makefile.am): Likewise.
34491         * modules/sys_file (Makefile.am): Likewise.
34492         * modules/sys_ioctl (Makefile.am): Likewise.
34493         * modules/sys_select (Makefile.am): Likewise.
34494         * modules/sys_socket (Makefile.am): Likewise.
34495         * modules/sys_times (Makefile.am): Likewise.
34496         * modules/sys_utsname (Makefile.am): Likewise.
34497         * modules/sys_wait (Makefile.am): Likewise.
34498         * modules/wchar (Makefile.am): Likewise.
34499         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34500         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34501         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34502         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34503         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34504         Likewise.
34505         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34506         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34507         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34508         Likewise.
34509         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34510         Likewise.
34511         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34512         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34513         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34514         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34515         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34516         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34517         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34518         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34519         (gl_WCHAR_H_DEFAULTS): Likewise.
34520
34521 2009-12-31  Eric Blake  <ebb9@byu.net>
34522
34523         signal, spawn: use link warnings
34524         * lib/signal.in.h (sigset_t): Make unconditional.
34525         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34526         (sigpending, sigprocmask, sigaction): Add link warnings.
34527         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34528         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34529         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34530         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34531         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34532         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34533         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34534         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34535         (posix_spawn_file_actions_destroy)
34536         (posix_spawn_file_actions_addopen)
34537         (posix_spawn_file_actions_addclose)
34538         (posix_spawn_file_actions_adddup2): Likewise.
34539         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34540         * tests/test-signal.c (main): Enhance test.
34541
34542         spawn: improve wrapper support
34543         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34544         (gl_SPAWN_H_DEFAULTS): New defaults.
34545         * modules/spawn (Makefile.am): Substitute them.
34546         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34547         Only declare if missing or broken.
34548
34549         sys_times, sys_utsname: use include_next
34550         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34551         header.
34552         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34553         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34554         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34555         * modules/sys_times (Depends-on): Add include_next.
34556         (Makefile.am): Substitute additional values.
34557         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34558         * lib/sys_times.in.h (includes): Include native header, if
34559         available.
34560         * lib/sys_utsname.in.h (includes): Likewise.
34561         * tests/test-sys_times.c (main): Enhance test.
34562
34563         fdutimensat: revert prior patch
34564         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34565         utimens.h.
34566         Reported by Bruno Haible.
34567
34568 2009-12-30  Eric Blake  <ebb9@byu.net>
34569
34570         sys_wait: drop link-warning dependency
34571         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34572         link-warning efforts.
34573         * lib/sys_wait.in.h: Likewise.
34574
34575         fdutimensat: remove bogus dependency
34576         * modules/fdutimensat (Depends-on): Drop inline.
34577
34578         unistd: fix typo
34579         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34580
34581 2009-12-30  Bruno Haible  <bruno@clisp.org>
34582
34583         Fix compilation error with Solaris cc.
34584         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34585         * lib/unicase/u16-is-invariant.c: Likewise.
34586         * lib/unicase/u32-is-invariant.c: Likewise.
34587         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34588
34589 2009-12-30  Bruno Haible  <bruno@clisp.org>
34590
34591         Fix test crash.
34592         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34593         locales.
34594         Reported by Simon Josefsson <simon@josefsson.org>.
34595
34596 2009-12-30  Bruno Haible  <bruno@clisp.org>
34597
34598         Fix compilation error on most platforms.
34599         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34600         Reported by Simon Josefsson <simon@josefsson.org>
34601         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34602
34603 2009-12-30  Eric Blake  <ebb9@byu.net>
34604
34605         futimens, utimensat: work around ntfs-3g bug
34606         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34607         a ctime bug is present, and expand workaround to cover ntfs-3g.
34608         * lib/utimens.c (fdutimens, lutimens): Likewise.
34609         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34610         (validate_timespec): Adjust return value.
34611         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34612         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34613         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34614
34615 2009-12-29  Eric Blake  <ebb9@byu.net>
34616
34617         link-warning: make usage consistent
34618         * modules/ctype (Depends-on): Add link-warning.
34619         (Makefile.am): Update rules accordingly.
34620         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34621         * modules/locale (Depends-on, Makefile.am): Likewise.
34622         * modules/sys_file (Makefile.am): Likewise.
34623         * modules/getopt-posix (Makefile.am): Delete unused link warning
34624         efforts.
34625         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34626         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34627         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34628         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34629
34630         stdio: remove unused variables
34631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34632         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34633         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34634
34635         tests: test more substitute headers
34636         * modules/ctype-tests: New file.
34637         * modules/dirent-tests: Likewise.
34638         * modules/spawn-tests: Likewise.
34639         * modules/sys_file-tests: Likewise.
34640         * modules/sys_ioctl-tests: Likewise.
34641         * modules/sys_wait-tests: Likewise.
34642         * tests/test-ctype.c: Likewise.
34643         * tests/test-dirent.c: Likewise.
34644         * tests/test-spawn.c: Likewise.
34645         * tests/test-sys_file.c: Likewise.
34646         * tests/test-sys_ioctl.c: Likewise.
34647         * tests/test-sys_wait.c: Likewise.
34648         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34649         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34650         whether or not flock is in use.
34651
34652         tests: remove License section from module
34653         * modules/arpa_inet-tests: Remove unneeded section.
34654         * modules/byteswap-tests: Likewise.
34655         * modules/ceilf-tests: Likewise.
34656         * modules/ceill-tests: Likewise.
34657         * modules/crypto/des-tests: Likewise.
34658         * modules/crypto/gc-arcfour-tests: Likewise.
34659         * modules/crypto/gc-arctwo-tests: Likewise.
34660         * modules/crypto/gc-des-tests: Likewise.
34661         * modules/crypto/gc-hmac-md5-tests: Likewise.
34662         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34663         * modules/crypto/gc-md2-tests: Likewise.
34664         * modules/crypto/gc-md4-tests: Likewise.
34665         * modules/crypto/gc-md5-tests: Likewise.
34666         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34667         * modules/crypto/gc-rijndael-tests: Likewise.
34668         * modules/crypto/gc-sha1-tests: Likewise.
34669         * modules/crypto/gc-tests: Likewise.
34670         * modules/crypto/md2-tests: Likewise.
34671         * modules/crypto/md4-tests: Likewise.
34672         * modules/fcntl-h-tests: Likewise.
34673         * modules/floorf-tests: Likewise.
34674         * modules/floorl-tests: Likewise.
34675         * modules/frexp-nolibm-tests: Likewise.
34676         * modules/frexp-tests: Likewise.
34677         * modules/frexpl-nolibm-tests: Likewise.
34678         * modules/frexpl-tests: Likewise.
34679         * modules/getaddrinfo-tests: Likewise.
34680         * modules/inttypes-tests: Likewise.
34681         * modules/isfinite-tests: Likewise.
34682         * modules/isinf-tests: Likewise.
34683         * modules/ldexpl-tests: Likewise.
34684         * modules/locale-tests: Likewise.
34685         * modules/math-tests: Likewise.
34686         * modules/netdb-tests: Likewise.
34687         * modules/netinet_in-tests: Likewise.
34688         * modules/printf-frexp-tests: Likewise.
34689         * modules/printf-frexpl-tests: Likewise.
34690         * modules/priv-set-tests: Likewise.
34691         * modules/random_r-tests: Likewise.
34692         * modules/round-tests: Likewise.
34693         * modules/roundf-tests: Likewise.
34694         * modules/roundl-tests: Likewise.
34695         * modules/search-tests: Likewise.
34696         * modules/select-tests: Likewise.
34697         * modules/signal-tests: Likewise.
34698         * modules/stdbool-tests: Likewise.
34699         * modules/stddef-tests: Likewise.
34700         * modules/stdint-tests: Likewise.
34701         * modules/stdio-tests: Likewise.
34702         * modules/stdlib-tests: Likewise.
34703         * modules/string-tests: Likewise.
34704         * modules/strings-tests: Likewise.
34705         * modules/sys_select-tests: Likewise.
34706         * modules/sys_socket-tests: Likewise.
34707         * modules/sys_stat-tests: Likewise.
34708         * modules/sys_time-tests: Likewise.
34709         * modules/sys_utsname-tests: Likewise.
34710         * modules/sysexits-tests: Likewise.
34711         * modules/time-tests: Likewise.
34712         * modules/trunc-tests: Likewise.
34713         * modules/truncf-tests: Likewise.
34714         * modules/truncl-tests: Likewise.
34715         * modules/tsearch-tests: Likewise.
34716         * modules/unistd-tests: Likewise.
34717         * modules/wchar-tests: Likewise.
34718         * modules/wctype-tests: Likewise.
34719
34720         tests: fix license on several tests
34721         * tests/test-des.c: Update to GPLv3+.
34722         * tests/test-flock.c: Likewise.
34723         * tests/test-fsync.c: Likewise.
34724         * tests/test-futimens.h: Likewise.
34725         * tests/test-gc-arcfour.c: Likewise.
34726         * tests/test-gc-arctwo.c: Likewise.
34727         * tests/test-gc-des.c: Likewise.
34728         * tests/test-gc-hmac-md5.c: Likewise.
34729         * tests/test-gc-hmac-sha1.c: Likewise.
34730         * tests/test-gc-md2.c: Likewise.
34731         * tests/test-gc-md4.c: Likewise.
34732         * tests/test-gc-md5.c: Likewise.
34733         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34734         * tests/test-gc-rijndael.c: Likewise.
34735         * tests/test-gc-sha1.c: Likewise.
34736         * tests/test-gc.c: Likewise.
34737         * tests/test-getcwd.c: Likewise.
34738         * tests/test-link.c: Likewise.
34739         * tests/test-link.h: Likewise.
34740         * tests/test-lutimens.h: Likewise.
34741         * tests/test-md2.c: Likewise.
34742         * tests/test-md4.c: Likewise.
34743         * tests/test-mkdir.h: Likewise.
34744         * tests/test-rename.c: Likewise.
34745         * tests/test-rename.h: Likewise.
34746         * tests/test-safe-alloc.c: Likewise.
34747         * tests/test-utimens-common.h: Likewise.
34748         * tests/test-utimens.h: Likewise.
34749
34750         maint: sync license texts
34751         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34752         * doc/gpl-3.0.texi: Revert copyright year update.
34753         * doc/lgpl-3.0.texi: Likewise.
34754
34755 2009-12-29  Jim Meyering  <meyering@redhat.com>
34756
34757         update nearly all FSF copyright year lists to include 2009
34758         The files named by the following are exempted:
34759             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34760               test -f "$dst" && { echo "$dst"; continue; }
34761               test -d "$dst" || continue
34762               echo "$dst"/$(basename "$src")
34763             done > exempt
34764             git ls-files tests/unictype >> exempt
34765         In the remaining files, convert to all-interval notation if
34766         - there is already at least one year interval like 2000-2003
34767         - the file is maintained by me
34768         - the file is in lib/uni*/, where that style already prevails
34769         Otherwise, use update-copyright's default.
34770
34771 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34772         and Eric Blake  <ebb9@byu.net>
34773
34774         tests: don't require debug system() to pass
34775         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34776         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34777         * tests/test-unlink.h (test_unlink_func): Likewise.
34778         * tests/test-fstatat.c (main): ...into callers.
34779         * tests/test-lstat.c (main): Likewise.
34780         * tests/test-rmdir.c (main): Likewise.
34781         * tests/test-unlink.c (main): Likewise.
34782         * tests/test-unlinkat.c (main): Likewise.
34783         * tests/test-areadlink-with-size.c (main): Don't require a
34784         debug-only system call to pass, aiding cross-testing to mingw.
34785         * tests/test-areadlink.c (main): Likewise.
34786         * tests/test-areadlinkat-with-size.c (main): Likewise.
34787         * tests/test-areadlinkat.c (main): Likewise.
34788         * tests/test-canonicalize-lgpl.c (main): Likewise.
34789         * tests/test-canonicalize.c (main): Likewise.
34790         * tests/test-chown.c (main): Likewise.
34791         * tests/test-fchownat.c (main): Likewise.
34792         * tests/test-lchown.c (main): Likewise.
34793         * tests/test-fdutimensat.c (main): Likewise.
34794         * tests/test-futimens.c (main): Likewise.
34795         * tests/test-link.c (main): Likewise.
34796         * tests/test-linkat.c (main): Likewise.
34797         * tests/test-mkdir.c (main): Likewise.
34798         * tests/test-mkdirat.c (main): Likewise.
34799         * tests/test-mkfifo.c (main): Likewise.
34800         * tests/test-mkfifoat.c (main): Likewise.
34801         * tests/test-mknod.c (main): Likewise.
34802         * tests/test-readlink.c (main): Likewise.
34803         * tests/test-remove.c (main): Likewise.
34804         * tests/test-rename.c (main): Likewise.
34805         * tests/test-renameat.c (main): Likewise.
34806         * tests/test-symlink.c (main): Likewise.
34807         * tests/test-symlinkat.c (main): Likewise.
34808         * tests/test-utimens.c (main): Likewise.
34809         * tests/test-utimensat.c (main): Likewise.
34810
34811 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34812
34813         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34814         on $(UNUSED_PARAMETER_H) to avoid build failure.
34815
34816 2009-12-28  Jim Meyering  <meyering@redhat.com>
34817
34818         update-copyright: you may specify a max. line length other than 72
34819         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34820
34821         maint: use consistent FSF copyright line syntax
34822         * lib/posixtm.c: Add missing comma in FSF copyright line.
34823         * lib/posixtm.h: Likewise.
34824         * lib/getugroups.c: Add missing ", Inc.".
34825
34826         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34827         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34828         FSF copyright line.  Remove trailing blanks.
34829
34830 2009-12-28  Eric Blake  <ebb9@byu.net>
34831
34832         test-dup2: reduce dependencies
34833         * modules/cloexec (Configure.ac): Set witness.
34834         * modules/dup2-tests (Depends-on): Drop cloexec.
34835         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34836         not present.
34837         Suggested by Bruno Haible.
34838
34839 2009-12-26  Bruno Haible  <bruno@clisp.org>
34840
34841         Remove an unneeded dependency.
34842         * modules/fseterr (Depends-on): Remove dup2.
34843
34844 2009-12-26  Eric Blake  <ebb9@byu.net>
34845
34846         tests: use macros.h in more places
34847         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34848         (ASSERT_STREAM): Provide default of stderr.
34849         * tests/test-dirent-safer.c: Include macros.h, using alternate
34850         stream for assertions.
34851         * tests/test-dup-safer.c: Likewise.
34852         * tests/test-freopen-safer.c: Likewise.
34853         * tests/test-getopt.c: Likewise.
34854         * tests/test-openat-safer.c: Likewise.
34855         * tests/test-pipe.c: Likewise.
34856         * tests/test-popen-safer.c: Likewise.
34857         * modules/dirent-safer-tests (Files): Include macros.h.
34858         * modules/unistd-safer-tests (Files): Likewise.
34859         * modules/freopen-safer-tests (Files): Likewise.
34860         * modules/getopt-posix-tests (Files): Likewise.
34861         * modules/openat-safer-tests (Files): Likewise.
34862         * modules/pipe-tests (Files): Likewise.
34863
34864 2009-12-26  Bruno Haible  <bruno@clisp.org>
34865
34866         javacomp: Portability fix.
34867         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34868         that it also works on Solaris.
34869
34870 2009-12-26  Bruno Haible  <bruno@clisp.org>
34871
34872         localename: Fix storage allocation of gl_locale_name_thread's result.
34873         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34874         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34875         all platforms that have 'uselocale'.
34876         (gl_locale_name_thread_unsafe): New function, extracted from
34877         gl_locale_name_thread.
34878         (gl_locale_name_thread): Call struniq on all platforms that have
34879         'uselocale'.
34880         * tests/test-localename.c (test_locale_name_thread): Check that the
34881         resulting strings are permanently allocated.
34882         * modules/localename-tests (Depends-on): Add strdup.
34883
34884 2009-12-26  Bruno Haible  <bruno@clisp.org>
34885
34886         * tests/test-localename.c (categories): Fill in the strings.
34887
34888 2009-12-26  Jim Meyering  <meyering@redhat.com>
34889
34890         isdir: complete the removal of m4/isdir.m4
34891         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34892
34893         isdir: clean up, since at least grep still uses it
34894         * lib/isdir.c: Include "isdir.h".
34895         (S_ISDIR): Remove now-unneeded definition.
34896         * modules/isdir (Files): Add lib/isdir.h.
34897         * lib/isdir.h: New file, with declaration.
34898         * m4/isdir.m4: Remove file -- unneeded.
34899
34900 2009-12-25  Bruno Haible  <bruno@clisp.org>
34901
34902         selinux-h: Make generated .h files standalone.
34903         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34904         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34905         * lib/se-selinux.in.h: Likewise.
34906         * modules/selinux-h (Depends-on): Add unused-parameter.
34907         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34908         selinux/selinux.h and selinux/context.h.
34909         Suggested by Eric Blake.
34910
34911 2009-12-25  Bruno Haible  <bruno@clisp.org>
34912
34913         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34914         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34915         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34916         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34917         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34918
34919 2009-12-24  Bruno Haible  <bruno@clisp.org>
34920
34921         openat: Fix warning.
34922         * lib/openat-proc.c: Include <unistd.h>.
34923
34924 2009-12-24  Bruno Haible  <bruno@clisp.org>
34925
34926         New module 'unused-parameter'.
34927         * build-aux/unused-parameter.h: New file, extracted from earlier
34928         gnulib-common.m4.
34929         * modules/unused-parameter: New file.
34930         * lib/unistr.h: Include unused-parameter.h.
34931         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
34932         _GL_UNUSED.
34933         * modules/unistr/base (Depends-on): Add unused-parameter.
34934
34935 2009-12-24  Bruno Haible  <bruno@clisp.org>
34936
34937         Add missing dependencies to 'extensions' module.
34938         * m4/extensions.m4: Add comment.
34939         * modules/accept4 (Depends-on): Add extensions.
34940         * modules/dup3 (Depends-on): Likewise.
34941         * modules/fcntl (Depends-on): Likewise.
34942         * modules/futimens (Depends-on): Likewise.
34943         * modules/mknod (Depends-on): Likewise.
34944         * modules/pipe2 (Depends-on): Likewise.
34945         * modules/stat-time (Depends-on): Likewise.
34946         * modules/strcasestr-simple (Depends-on): Likewise.
34947         * modules/strsignal (Depends-on): Likewise.
34948         * modules/utimensat (Depends-on): Likewise.
34949         * modules/localcharset (Depends-on): Likewise. Needed because of
34950         gl_FCNTL_O_FLAGS.
34951         * modules/wcrtomb (Depends-on): Likewise. Needed because of
34952         AC_TYPE_MBSTATE_T.
34953         * modules/wcsnrtombs (Depends-on): Likewise.
34954         * modules/wcsrtombs (Depends-on): Likewise.
34955
34956 2009-12-24  Bruno Haible  <bruno@clisp.org>
34957
34958         binary-io: Avoid gcc warning due to SET_BINARY.
34959         * lib/binary-io.h (SET_BINARY): Cast the result to void.
34960         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
34961
34962 2009-12-24  Bruno Haible  <bruno@clisp.org>
34963
34964         Avoid future namespace pollution on glibc systems.
34965         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
34966         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
34967         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
34968         glibc systems.
34969
34970 2009-12-24  Bruno Haible  <bruno@clisp.org>
34971
34972         Refactor common macros used in tests.
34973         * tests/macros.h: New file.
34974         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
34975         and/or <stdlib.h>, if appropriate.
34976         (ASSERT, SIZEOF): Remove macros.
34977         * tests/test-areadlink-with-size.c: Likewise.
34978         * tests/test-areadlinkat.c: Likewise.
34979         * tests/test-areadlinkat-with-size.c: Likewise.
34980         * tests/test-argmatch.c: Likewise.
34981         * tests/test-argv-iter.c: Likewise.
34982         * tests/test-array-mergesort.c: Likewise.
34983         * tests/test-array_list.c: Likewise.
34984         * tests/test-array_oset.c: Likewise.
34985         * tests/test-avltree_list.c: Likewise.
34986         * tests/test-avltree_oset.c: Likewise.
34987         * tests/test-avltreehash_list.c: Likewise.
34988         * tests/test-base64.c: Likewise.
34989         * tests/test-binary-io.c: Likewise.
34990         * tests/test-bitrotate.c: Likewise.
34991         * tests/test-btowc.c: Likewise.
34992         * tests/test-byteswap.c: Likewise.
34993         * tests/test-c-ctype.c: Likewise.
34994         * tests/test-c-stack.c: Likewise.
34995         * tests/test-c-strcasecmp.c: Likewise.
34996         * tests/test-c-strcasestr.c: Likewise.
34997         * tests/test-c-strncasecmp.c: Likewise.
34998         * tests/test-c-strstr.c: Likewise.
34999         * tests/test-canonicalize-lgpl.c: Likewise.
35000         * tests/test-canonicalize.c: Likewise.
35001         * tests/test-carray_list.c: Likewise.
35002         * tests/test-ceilf1.c: Likewise.
35003         * tests/test-ceilf2.c: Likewise.
35004         * tests/test-ceill.c: Likewise.
35005         * tests/test-chown.c: Likewise.
35006         * tests/test-cloexec.c: Likewise.
35007         * tests/test-copy-acl.c: Likewise.
35008         * tests/test-copy-file.c: Likewise.
35009         * tests/test-count-one-bits.c: Likewise.
35010         * tests/test-dprintf-posix.c: Likewise.
35011         * tests/test-dup2.c: Likewise.
35012         * tests/test-dup3.c: Likewise.
35013         * tests/test-duplocale.c: Likewise.
35014         * tests/test-fbufmode.c: Likewise.
35015         * tests/test-fchdir.c: Likewise.
35016         * tests/test-fchownat.c: Likewise.
35017         * tests/test-fcntl-safer.c: Likewise.
35018         * tests/test-fcntl.c: Likewise.
35019         * tests/test-fdopendir.c: Likewise.
35020         * tests/test-fdutimensat.c: Likewise.
35021         * tests/test-fflush2.c: Likewise.
35022         * tests/test-file-has-acl.c: Likewise.
35023         * tests/test-filevercmp.c: Likewise.
35024         * tests/test-flock.c: Likewise.
35025         * tests/test-floorf1.c: Likewise.
35026         * tests/test-floorf2.c: Likewise.
35027         * tests/test-floorl.c: Likewise.
35028         * tests/test-fnmatch.c: Likewise.
35029         * tests/test-fopen.h: Likewise.
35030         * tests/test-fpending.c: Likewise.
35031         * tests/test-fprintf-posix.c: Likewise.
35032         * tests/test-fpurge.c: Likewise.
35033         * tests/test-freadable.c: Likewise.
35034         * tests/test-freadahead.c: Likewise.
35035         * tests/test-freading.c: Likewise.
35036         * tests/test-freadptr.c: Likewise.
35037         * tests/test-freadptr2.c: Likewise.
35038         * tests/test-freadseek.c: Likewise.
35039         * tests/test-freopen.c: Likewise.
35040         * tests/test-frexp.c: Likewise.
35041         * tests/test-frexpl.c: Likewise.
35042         * tests/test-fseek.c: Likewise.
35043         * tests/test-fseeko.c: Likewise.
35044         * tests/test-fstatat.c: Likewise.
35045         * tests/test-fstrcmp.c: Likewise.
35046         * tests/test-fsync.c: Likewise.
35047         * tests/test-ftell.c: Likewise.
35048         * tests/test-ftello.c: Likewise.
35049         * tests/test-func.c: Likewise.
35050         * tests/test-futimens.c: Likewise.
35051         * tests/test-fwritable.c: Likewise.
35052         * tests/test-fwriting.c: Likewise.
35053         * tests/test-getcwd.c: Likewise.
35054         * tests/test-getdate.c: Likewise.
35055         * tests/test-getdelim.c: Likewise.
35056         * tests/test-getdtablesize.c: Likewise.
35057         * tests/test-getgroups.c: Likewise.
35058         * tests/test-getline.c: Likewise.
35059         * tests/test-getndelim2.c: Likewise.
35060         * tests/test-glob.c: Likewise.
35061         * tests/test-hash.c: Likewise.
35062         * tests/test-i-ring.c: Likewise.
35063         * tests/test-iconv-utf.c: Likewise.
35064         * tests/test-iconv.c: Likewise.
35065         * tests/test-idpriv-drop.c: Likewise.
35066         * tests/test-idpriv-droptemp.c: Likewise.
35067         * tests/test-inet_ntop.c: Likewise.
35068         * tests/test-inet_pton.c: Likewise.
35069         * tests/test-isblank.c: Likewise.
35070         * tests/test-isfinite.c: Likewise.
35071         * tests/test-isinf.c: Likewise.
35072         * tests/test-isnan.c: Likewise.
35073         * tests/test-isnand.h: Likewise.
35074         * tests/test-isnanf.h: Likewise.
35075         * tests/test-isnanl.h: Likewise.
35076         * tests/test-lchown.c: Likewise.
35077         * tests/test-ldexpl.c: Likewise.
35078         * tests/test-link.c: Likewise.
35079         * tests/test-linkat.c: Likewise.
35080         * tests/test-linked_list.c: Likewise.
35081         * tests/test-linkedhash_list.c: Likewise.
35082         * tests/test-localename.c: Likewise.
35083         * tests/test-lseek.c: Likewise.
35084         * tests/test-lstat.c: Likewise.
35085         * tests/test-mbmemcasecmp.c: Likewise.
35086         * tests/test-mbmemcasecoll.c: Likewise.
35087         * tests/test-mbrtowc.c: Likewise.
35088         * tests/test-mbscasecmp.c: Likewise.
35089         * tests/test-mbscasestr1.c: Likewise.
35090         * tests/test-mbscasestr2.c: Likewise.
35091         * tests/test-mbscasestr3.c: Likewise.
35092         * tests/test-mbscasestr4.c: Likewise.
35093         * tests/test-mbschr.c: Likewise.
35094         * tests/test-mbscspn.c: Likewise.
35095         * tests/test-mbsinit.c: Likewise.
35096         * tests/test-mbsncasecmp.c: Likewise.
35097         * tests/test-mbsnrtowcs.c: Likewise.
35098         * tests/test-mbspbrk.c: Likewise.
35099         * tests/test-mbspcasecmp.c: Likewise.
35100         * tests/test-mbsrchr.c: Likewise.
35101         * tests/test-mbsrtowcs.c: Likewise.
35102         * tests/test-mbsspn.c: Likewise.
35103         * tests/test-mbsstr1.c: Likewise.
35104         * tests/test-mbsstr2.c: Likewise.
35105         * tests/test-mbsstr3.c: Likewise.
35106         * tests/test-memchr.c: Likewise.
35107         * tests/test-memchr2.c: Likewise.
35108         * tests/test-memcmp.c: Likewise.
35109         * tests/test-memmem.c: Likewise.
35110         * tests/test-memrchr.c: Likewise.
35111         * tests/test-mkdir.c: Likewise.
35112         * tests/test-mkdirat.c: Likewise.
35113         * tests/test-mkfifo.c: Likewise.
35114         * tests/test-mkfifoat.c: Likewise.
35115         * tests/test-mknod.c: Likewise.
35116         * tests/test-nanosleep.c: Likewise.
35117         * tests/test-nl_langinfo.c: Likewise.
35118         * tests/test-obstack-printf.c: Likewise.
35119         * tests/test-open.c: Likewise.
35120         * tests/test-openat.c: Likewise.
35121         * tests/test-pipe-filter-gi1.c: Likewise.
35122         * tests/test-pipe-filter-gi2-main.c: Likewise.
35123         * tests/test-pipe-filter-ii1.c: Likewise.
35124         * tests/test-pipe-filter-ii2-main.c: Likewise.
35125         * tests/test-pipe2.c: Likewise.
35126         * tests/test-popen.h: Likewise.
35127         * tests/test-posixtm.c: Likewise.
35128         * tests/test-pread.c: Likewise.
35129         * tests/test-printf-frexp.c: Likewise.
35130         * tests/test-printf-frexpl.c: Likewise.
35131         * tests/test-printf-posix.c: Likewise.
35132         * tests/test-priv-set.c: Likewise.
35133         * tests/test-quotearg.c: Likewise.
35134         * tests/test-random_r.c: Likewise.
35135         * tests/test-rawmemchr.c: Likewise.
35136         * tests/test-rbtree_list.c: Likewise.
35137         * tests/test-rbtree_oset.c: Likewise.
35138         * tests/test-rbtreehash_list.c: Likewise.
35139         * tests/test-readlink.c: Likewise.
35140         * tests/test-remove.c: Likewise.
35141         * tests/test-rename.c: Likewise.
35142         * tests/test-renameat.c: Likewise.
35143         * tests/test-rmdir.c: Likewise.
35144         * tests/test-round1.c: Likewise.
35145         * tests/test-roundf1.c: Likewise.
35146         * tests/test-roundl.c: Likewise.
35147         * tests/test-safe-alloc.c: Likewise.
35148         * tests/test-sameacls.c: Likewise.
35149         * tests/test-set-mode-acl.c: Likewise.
35150         * tests/test-setenv.c: Likewise.
35151         * tests/test-sigaction.c: Likewise.
35152         * tests/test-signbit.c: Likewise.
35153         * tests/test-sleep.c: Likewise.
35154         * tests/test-snprintf-posix.c: Likewise.
35155         * tests/test-snprintf.c: Likewise.
35156         * tests/test-sprintf-posix.c: Likewise.
35157         * tests/test-stat-time.c: Likewise.
35158         * tests/test-stat.c: Likewise.
35159         * tests/test-strcasestr.c: Likewise.
35160         * tests/test-strchrnul.c: Likewise.
35161         * tests/test-strerror.c: Likewise.
35162         * tests/test-striconv.c: Likewise.
35163         * tests/test-striconveh.c: Likewise.
35164         * tests/test-striconveha.c: Likewise.
35165         * tests/test-strsignal.c: Likewise.
35166         * tests/test-strstr.c: Likewise.
35167         * tests/test-strtod.c: Likewise.
35168         * tests/test-strverscmp.c: Likewise.
35169         * tests/test-symlink.c: Likewise.
35170         * tests/test-symlinkat.c: Likewise.
35171         * tests/test-trunc1.c: Likewise.
35172         * tests/test-trunc2.c: Likewise.
35173         * tests/test-truncf1.c: Likewise.
35174         * tests/test-truncf2.c: Likewise.
35175         * tests/test-truncl.c: Likewise.
35176         * tests/test-uname.c: Likewise.
35177         * tests/test-unlink.c: Likewise.
35178         * tests/test-unlinkat.c: Likewise.
35179         * tests/test-unsetenv.c: Likewise.
35180         * tests/test-usleep.c: Likewise.
35181         * tests/test-utimens.c: Likewise.
35182         * tests/test-utimensat.c: Likewise.
35183         * tests/test-vasnprintf-posix.c: Likewise.
35184         * tests/test-vasnprintf-posix2.c: Likewise.
35185         * tests/test-vasnprintf.c: Likewise.
35186         * tests/test-vasprintf-posix.c: Likewise.
35187         * tests/test-vasprintf.c: Likewise.
35188         * tests/test-vdprintf-posix.c: Likewise.
35189         * tests/test-vfprintf-posix.c: Likewise.
35190         * tests/test-vprintf-posix.c: Likewise.
35191         * tests/test-vsnprintf-posix.c: Likewise.
35192         * tests/test-vsnprintf.c: Likewise.
35193         * tests/test-vsprintf-posix.c: Likewise.
35194         * tests/test-wcrtomb.c: Likewise.
35195         * tests/test-wcsnrtombs.c: Likewise.
35196         * tests/test-wcsrtombs.c: Likewise.
35197         * tests/test-wctype.c: Likewise.
35198         * tests/test-wcwidth.c: Likewise.
35199         * tests/test-xfprintf-posix.c: Likewise.
35200         * tests/test-xmemdup0.c: Likewise.
35201         * tests/test-xprintf-posix.c: Likewise.
35202         * tests/test-xvasprintf.c: Likewise.
35203         * tests/unicase/test-locale-language.c: Likewise.
35204         * tests/unicase/test-mapping-part1.h: Likewise.
35205         * tests/unicase/test-predicate-part1.h: Likewise.
35206         * tests/unicase/test-u8-casecmp.c: Likewise.
35207         * tests/unicase/test-u8-casecoll.c: Likewise.
35208         * tests/unicase/test-u8-casefold.c: Likewise.
35209         * tests/unicase/test-u8-is-cased.c: Likewise.
35210         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35211         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35212         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35213         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35214         * tests/unicase/test-u8-tolower.c: Likewise.
35215         * tests/unicase/test-u8-totitle.c: Likewise.
35216         * tests/unicase/test-u8-toupper.c: Likewise.
35217         * tests/unicase/test-u16-casecmp.c: Likewise.
35218         * tests/unicase/test-u16-casecoll.c: Likewise.
35219         * tests/unicase/test-u16-casefold.c: Likewise.
35220         * tests/unicase/test-u16-is-cased.c: Likewise.
35221         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35222         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35223         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35224         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35225         * tests/unicase/test-u16-tolower.c: Likewise.
35226         * tests/unicase/test-u16-totitle.c: Likewise.
35227         * tests/unicase/test-u16-toupper.c: Likewise.
35228         * tests/unicase/test-u32-casecmp.c: Likewise.
35229         * tests/unicase/test-u32-casecoll.c: Likewise.
35230         * tests/unicase/test-u32-casefold.c: Likewise.
35231         * tests/unicase/test-u32-is-cased.c: Likewise.
35232         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35233         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35234         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35235         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35236         * tests/unicase/test-u32-tolower.c: Likewise.
35237         * tests/unicase/test-u32-totitle.c: Likewise.
35238         * tests/unicase/test-u32-toupper.c: Likewise.
35239         * tests/unicase/test-ulc-casecmp.c: Likewise.
35240         * tests/unicase/test-ulc-casecoll.c: Likewise.
35241         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35242         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35243         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35244         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35245         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35246         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35247         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35248         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35249         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35250         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35251         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35252         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35253         * tests/unictype/test-bidi_byname.c: Likewise.
35254         * tests/unictype/test-bidi_name.c: Likewise.
35255         * tests/unictype/test-bidi_of.c: Likewise.
35256         * tests/unictype/test-bidi_test.c: Likewise.
35257         * tests/unictype/test-block_list.c: Likewise.
35258         * tests/unictype/test-block_of.c: Likewise.
35259         * tests/unictype/test-block_test.c: Likewise.
35260         * tests/unictype/test-categ_and.c: Likewise.
35261         * tests/unictype/test-categ_and_not.c: Likewise.
35262         * tests/unictype/test-categ_byname.c: Likewise.
35263         * tests/unictype/test-categ_name.c: Likewise.
35264         * tests/unictype/test-categ_none.c: Likewise.
35265         * tests/unictype/test-categ_of.c: Likewise.
35266         * tests/unictype/test-categ_or.c: Likewise.
35267         * tests/unictype/test-categ_test_withtable.c: Likewise.
35268         * tests/unictype/test-combining.c: Likewise.
35269         * tests/unictype/test-decdigit.c: Likewise.
35270         * tests/unictype/test-digit.c: Likewise.
35271         * tests/unictype/test-mirror.c: Likewise.
35272         * tests/unictype/test-numeric.c: Likewise.
35273         * tests/unictype/test-pr_byname.c: Likewise.
35274         * tests/unictype/test-pr_test.c: Likewise.
35275         * tests/unictype/test-predicate-part1.h: Likewise.
35276         * tests/unictype/test-scripts.c: Likewise.
35277         * tests/unictype/test-sy_c_ident.c: Likewise.
35278         * tests/unictype/test-sy_java_ident.c: Likewise.
35279         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35280         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35281         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35282         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35283         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35284         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35285         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35286         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35287         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35288         * tests/uninorm/test-compat-decomposition.c: Likewise.
35289         * tests/uninorm/test-composition.c: Likewise.
35290         * tests/uninorm/test-decomposing-form.c: Likewise.
35291         * tests/uninorm/test-decomposition.c: Likewise.
35292         * tests/uninorm/test-u8-nfc.c: Likewise.
35293         * tests/uninorm/test-u8-nfd.c: Likewise.
35294         * tests/uninorm/test-u8-nfkc.c: Likewise.
35295         * tests/uninorm/test-u8-nfkd.c: Likewise.
35296         * tests/uninorm/test-u8-normcmp.c: Likewise.
35297         * tests/uninorm/test-u8-normcoll.c: Likewise.
35298         * tests/uninorm/test-u16-nfc.c: Likewise.
35299         * tests/uninorm/test-u16-nfd.c: Likewise.
35300         * tests/uninorm/test-u16-nfkc.c: Likewise.
35301         * tests/uninorm/test-u16-nfkd.c: Likewise.
35302         * tests/uninorm/test-u16-normcmp.c: Likewise.
35303         * tests/uninorm/test-u16-normcoll.c: Likewise.
35304         * tests/uninorm/test-u32-nfc.c: Likewise.
35305         * tests/uninorm/test-u32-nfd.c: Likewise.
35306         * tests/uninorm/test-u32-nfkc.c: Likewise.
35307         * tests/uninorm/test-u32-nfkd.c: Likewise.
35308         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35309         * tests/uninorm/test-u32-normcmp.c: Likewise.
35310         * tests/uninorm/test-u32-normcoll.c: Likewise.
35311         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35312         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35313         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35314         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35315         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35316         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35317         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35318         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35319         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35320         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35321         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35322         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35323         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35324         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35325         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35326         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35327         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35328         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35329         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35330         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35331         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35332         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35333         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35334         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35335         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35336         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35337         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35338         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35339         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35340         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35341         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35342         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35343         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35344         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35345         * tests/uniwidth/test-u8-width.c: Likewise.
35346         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35347         * tests/uniwidth/test-u16-width.c: Likewise.
35348         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35349         * tests/uniwidth/test-u32-width.c: Likewise.
35350         * tests/uniwidth/test-uc_width.c: Likewise.
35351         * tests/uniwidth/test-uc_width2.c: Likewise.
35352         * modules/acl-tests (Files): Add tests/macros.h.
35353         * modules/areadlink-tests (Files): Likewise.
35354         * modules/areadlink-with-size-tests (Files): Likewise.
35355         * modules/areadlinkat-tests (Files): Likewise.
35356         * modules/areadlinkat-with-size-tests (Files): Likewise.
35357         * modules/argmatch-tests (Files): Likewise.
35358         * modules/argv-iter-tests (Files): Likewise.
35359         * modules/array-list-tests (Files): Likewise.
35360         * modules/array-mergesort-tests (Files): Likewise.
35361         * modules/array-oset-tests (Files): Likewise.
35362         * modules/avltree-list-tests (Files): Likewise.
35363         * modules/avltree-oset-tests (Files): Likewise.
35364         * modules/avltreehash-list-tests (Files): Likewise.
35365         * modules/base64-tests (Files): Likewise.
35366         * modules/binary-io-tests (Files): Likewise.
35367         * modules/bitrotate-tests (Files): Likewise.
35368         * modules/btowc-tests (Files): Likewise.
35369         * modules/byteswap-tests (Files): Likewise.
35370         * modules/c-ctype-tests (Files): Likewise.
35371         * modules/c-stack-tests (Files): Likewise.
35372         * modules/c-strcase-tests (Files): Likewise.
35373         * modules/c-strcasestr-tests (Files): Likewise.
35374         * modules/c-strstr-tests (Files): Likewise.
35375         * modules/canonicalize-lgpl-tests (Files): Likewise.
35376         * modules/canonicalize-tests (Files): Likewise.
35377         * modules/carray-list-tests (Files): Likewise.
35378         * modules/ceilf-tests (Files): Likewise.
35379         * modules/ceill-tests (Files): Likewise.
35380         * modules/chown-tests (Files): Likewise.
35381         * modules/cloexec-tests (Files): Likewise.
35382         * modules/copy-file-tests (Files): Likewise.
35383         * modules/count-one-bits-tests (Files): Likewise.
35384         * modules/dprintf-posix-tests (Files): Likewise.
35385         * modules/dup2-tests (Files): Likewise.
35386         * modules/dup3-tests (Files): Likewise.
35387         * modules/duplocale-tests (Files): Likewise.
35388         * modules/fbufmode-tests (Files): Likewise.
35389         * modules/fchdir-tests (Files): Likewise.
35390         * modules/fcntl-safer-tests (Files): Likewise.
35391         * modules/fcntl-tests (Files): Likewise.
35392         * modules/fdopendir-tests (Files): Likewise.
35393         * modules/fdutimensat-tests (Files): Likewise.
35394         * modules/fflush-tests (Files): Likewise.
35395         * modules/filevercmp-tests (Files): Likewise.
35396         * modules/flock-tests (Files): Likewise.
35397         * modules/floorf-tests (Files): Likewise.
35398         * modules/floorl-tests (Files): Likewise.
35399         * modules/fnmatch-tests (Files): Likewise.
35400         * modules/fopen-safer-tests (Files): Likewise.
35401         * modules/fopen-tests (Files): Likewise.
35402         * modules/fpending-tests (Files): Likewise.
35403         * modules/fprintf-posix-tests (Files): Likewise.
35404         * modules/fpurge-tests (Files): Likewise.
35405         * modules/freadable-tests (Files): Likewise.
35406         * modules/freadahead-tests (Files): Likewise.
35407         * modules/freading-tests (Files): Likewise.
35408         * modules/freadptr-tests (Files): Likewise.
35409         * modules/freadseek-tests (Files): Likewise.
35410         * modules/freopen-tests (Files): Likewise.
35411         * modules/frexp-nolibm-tests (Files): Likewise.
35412         * modules/frexp-tests (Files): Likewise.
35413         * modules/frexpl-nolibm-tests (Files): Likewise.
35414         * modules/frexpl-tests (Files): Likewise.
35415         * modules/fseek-tests (Files): Likewise.
35416         * modules/fseeko-tests (Files): Likewise.
35417         * modules/fstrcmp-tests (Files): Likewise.
35418         * modules/fsync-tests (Files): Likewise.
35419         * modules/ftell-tests (Files): Likewise.
35420         * modules/ftello-tests (Files): Likewise.
35421         * modules/func-tests (Files): Likewise.
35422         * modules/futimens-tests (Files): Likewise.
35423         * modules/fwritable-tests (Files): Likewise.
35424         * modules/fwriting-tests (Files): Likewise.
35425         * modules/getcwd-tests (Files): Likewise.
35426         * modules/getdate-tests (Files): Likewise.
35427         * modules/getdelim-tests (Files): Likewise.
35428         * modules/getdtablesize-tests (Files): Likewise.
35429         * modules/getgroups-tests (Files): Likewise.
35430         * modules/getline-tests (Files): Likewise.
35431         * modules/getndelim2-tests (Files): Likewise.
35432         * modules/glob-tests (Files): Likewise.
35433         * modules/hash-tests (Files): Likewise.
35434         * modules/i-ring-tests (Files): Likewise.
35435         * modules/iconv-tests (Files): Likewise.
35436         * modules/iconv_open-utf-tests (Files): Likewise.
35437         * modules/idpriv-drop-tests (Files): Likewise.
35438         * modules/idpriv-droptemp-tests (Files): Likewise.
35439         * modules/inet_ntop-tests (Files): Likewise.
35440         * modules/inet_pton-tests (Files): Likewise.
35441         * modules/isblank-tests (Files): Likewise.
35442         * modules/isfinite-tests (Files): Likewise.
35443         * modules/isinf-tests (Files): Likewise.
35444         * modules/isnan-tests (Files): Likewise.
35445         * modules/isnand-nolibm-tests (Files): Likewise.
35446         * modules/isnand-tests (Files): Likewise.
35447         * modules/isnanf-nolibm-tests (Files): Likewise.
35448         * modules/isnanf-tests (Files): Likewise.
35449         * modules/isnanl-nolibm-tests (Files): Likewise.
35450         * modules/isnanl-tests (Files): Likewise.
35451         * modules/lchown-tests (Files): Likewise.
35452         * modules/ldexpl-tests (Files): Likewise.
35453         * modules/link-tests (Files): Likewise.
35454         * modules/linkat-tests (Files): Likewise.
35455         * modules/linked-list-tests (Files): Likewise.
35456         * modules/linkedhash-list-tests (Files): Likewise.
35457         * modules/localename-tests (Files): Likewise.
35458         * modules/lseek-tests (Files): Likewise.
35459         * modules/lstat-tests (Files): Likewise.
35460         * modules/mbmemcasecmp-tests (Files): Likewise.
35461         * modules/mbmemcasecoll-tests (Files): Likewise.
35462         * modules/mbrtowc-tests (Files): Likewise.
35463         * modules/mbscasecmp-tests (Files): Likewise.
35464         * modules/mbscasestr-tests (Files): Likewise.
35465         * modules/mbschr-tests (Files): Likewise.
35466         * modules/mbscspn-tests (Files): Likewise.
35467         * modules/mbsinit-tests (Files): Likewise.
35468         * modules/mbsncasecmp-tests (Files): Likewise.
35469         * modules/mbsnrtowcs-tests (Files): Likewise.
35470         * modules/mbspbrk-tests (Files): Likewise.
35471         * modules/mbspcasecmp-tests (Files): Likewise.
35472         * modules/mbsrchr-tests (Files): Likewise.
35473         * modules/mbsrtowcs-tests (Files): Likewise.
35474         * modules/mbsspn-tests (Files): Likewise.
35475         * modules/mbsstr-tests (Files): Likewise.
35476         * modules/memchr-tests (Files): Likewise.
35477         * modules/memchr2-tests (Files): Likewise.
35478         * modules/memcmp-tests (Files): Likewise.
35479         * modules/memmem-tests (Files): Likewise.
35480         * modules/memrchr-tests (Files): Likewise.
35481         * modules/mkdir-tests (Files): Likewise.
35482         * modules/mkfifo-tests (Files): Likewise.
35483         * modules/mkfifoat-tests (Files): Likewise.
35484         * modules/mknod-tests (Files): Likewise.
35485         * modules/nanosleep-tests (Files): Likewise.
35486         * modules/nl_langinfo-tests (Files): Likewise.
35487         * modules/obstack-printf-tests (Files): Likewise.
35488         * modules/open-tests (Files): Likewise.
35489         * modules/openat-tests (Files): Likewise.
35490         * modules/pipe-filter-gi-tests (Files): Likewise.
35491         * modules/pipe-filter-ii-tests (Files): Likewise.
35492         * modules/pipe2-tests (Files): Likewise.
35493         * modules/popen-safer-tests (Files): Likewise.
35494         * modules/popen-tests (Files): Likewise.
35495         * modules/posixtm-tests (Files): Likewise.
35496         * modules/pread-tests (Files): Likewise.
35497         * modules/printf-frexp-tests (Files): Likewise.
35498         * modules/printf-frexpl-tests (Files): Likewise.
35499         * modules/printf-posix-tests (Files): Likewise.
35500         * modules/priv-set-tests (Files): Likewise.
35501         * modules/quotearg-tests (Files): Likewise.
35502         * modules/random_r-tests (Files): Likewise.
35503         * modules/rawmemchr-tests (Files): Likewise.
35504         * modules/rbtree-list-tests (Files): Likewise.
35505         * modules/rbtree-oset-tests (Files): Likewise.
35506         * modules/rbtreehash-list-tests (Files): Likewise.
35507         * modules/readlink-tests (Files): Likewise.
35508         * modules/remove-tests (Files): Likewise.
35509         * modules/rename-tests (Files): Likewise.
35510         * modules/renameat-tests (Files): Likewise.
35511         * modules/rmdir-tests (Files): Likewise.
35512         * modules/round-tests (Files): Likewise.
35513         * modules/roundf-tests (Files): Likewise.
35514         * modules/roundl-tests (Files): Likewise.
35515         * modules/safe-alloc-tests (Files): Likewise.
35516         * modules/setenv-tests (Files): Likewise.
35517         * modules/sigaction-tests (Files): Likewise.
35518         * modules/signbit-tests (Files): Likewise.
35519         * modules/sleep-tests (Files): Likewise.
35520         * modules/snprintf-posix-tests (Files): Likewise.
35521         * modules/snprintf-tests (Files): Likewise.
35522         * modules/sprintf-posix-tests (Files): Likewise.
35523         * modules/stat-tests (Files): Likewise.
35524         * modules/stat-time-tests (Files): Likewise.
35525         * modules/strcasestr-tests (Files): Likewise.
35526         * modules/strchrnul-tests (Files): Likewise.
35527         * modules/strerror-tests (Files): Likewise.
35528         * modules/striconv-tests (Files): Likewise.
35529         * modules/striconveh-tests (Files): Likewise.
35530         * modules/striconveha-tests (Files): Likewise.
35531         * modules/strsignal-tests (Files): Likewise.
35532         * modules/strstr-tests (Files): Likewise.
35533         * modules/strtod-tests (Files): Likewise.
35534         * modules/strverscmp-tests (Files): Likewise.
35535         * modules/symlink-tests (Files): Likewise.
35536         * modules/symlinkat-tests (Files): Likewise.
35537         * modules/trunc-tests (Files): Likewise.
35538         * modules/truncf-tests (Files): Likewise.
35539         * modules/truncl-tests (Files): Likewise.
35540         * modules/uname-tests (Files): Likewise.
35541         * modules/unicase/cased-tests (Files): Likewise.
35542         * modules/unicase/ignorable-tests (Files): Likewise.
35543         * modules/unicase/locale-language-tests (Files): Likewise.
35544         * modules/unicase/tolower-tests (Files): Likewise.
35545         * modules/unicase/totitle-tests (Files): Likewise.
35546         * modules/unicase/toupper-tests (Files): Likewise.
35547         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35548         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35549         * modules/unicase/u8-casefold-tests (Files): Likewise.
35550         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35551         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35552         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35553         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35554         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35555         * modules/unicase/u8-tolower-tests (Files): Likewise.
35556         * modules/unicase/u8-totitle-tests (Files): Likewise.
35557         * modules/unicase/u8-toupper-tests (Files): Likewise.
35558         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35559         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35560         * modules/unicase/u16-casefold-tests (Files): Likewise.
35561         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35562         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35563         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35564         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35565         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35566         * modules/unicase/u16-tolower-tests (Files): Likewise.
35567         * modules/unicase/u16-totitle-tests (Files): Likewise.
35568         * modules/unicase/u16-toupper-tests (Files): Likewise.
35569         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35570         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35571         * modules/unicase/u32-casefold-tests (Files): Likewise.
35572         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35573         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35574         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35575         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35576         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35577         * modules/unicase/u32-tolower-tests (Files): Likewise.
35578         * modules/unicase/u32-totitle-tests (Files): Likewise.
35579         * modules/unicase/u32-toupper-tests (Files): Likewise.
35580         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35581         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35582         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35583         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35584         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35585         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35586         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35587         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35588         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35589         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35590         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35591         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35592         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35593         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35594         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35595         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35596         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35597         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35598         * modules/unictype/block-list-tests (Files): Likewise.
35599         * modules/unictype/block-of-tests (Files): Likewise.
35600         * modules/unictype/block-test-tests (Files): Likewise.
35601         * modules/unictype/category-C-tests (Files): Likewise.
35602         * modules/unictype/category-Cc-tests (Files): Likewise.
35603         * modules/unictype/category-Cf-tests (Files): Likewise.
35604         * modules/unictype/category-Cn-tests (Files): Likewise.
35605         * modules/unictype/category-Co-tests (Files): Likewise.
35606         * modules/unictype/category-Cs-tests (Files): Likewise.
35607         * modules/unictype/category-L-tests (Files): Likewise.
35608         * modules/unictype/category-Ll-tests (Files): Likewise.
35609         * modules/unictype/category-Lm-tests (Files): Likewise.
35610         * modules/unictype/category-Lo-tests (Files): Likewise.
35611         * modules/unictype/category-Lt-tests (Files): Likewise.
35612         * modules/unictype/category-Lu-tests (Files): Likewise.
35613         * modules/unictype/category-M-tests (Files): Likewise.
35614         * modules/unictype/category-Mc-tests (Files): Likewise.
35615         * modules/unictype/category-Me-tests (Files): Likewise.
35616         * modules/unictype/category-Mn-tests (Files): Likewise.
35617         * modules/unictype/category-N-tests (Files): Likewise.
35618         * modules/unictype/category-Nd-tests (Files): Likewise.
35619         * modules/unictype/category-Nl-tests (Files): Likewise.
35620         * modules/unictype/category-No-tests (Files): Likewise.
35621         * modules/unictype/category-P-tests (Files): Likewise.
35622         * modules/unictype/category-Pc-tests (Files): Likewise.
35623         * modules/unictype/category-Pd-tests (Files): Likewise.
35624         * modules/unictype/category-Pe-tests (Files): Likewise.
35625         * modules/unictype/category-Pf-tests (Files): Likewise.
35626         * modules/unictype/category-Pi-tests (Files): Likewise.
35627         * modules/unictype/category-Po-tests (Files): Likewise.
35628         * modules/unictype/category-Ps-tests (Files): Likewise.
35629         * modules/unictype/category-S-tests (Files): Likewise.
35630         * modules/unictype/category-Sc-tests (Files): Likewise.
35631         * modules/unictype/category-Sk-tests (Files): Likewise.
35632         * modules/unictype/category-Sm-tests (Files): Likewise.
35633         * modules/unictype/category-So-tests (Files): Likewise.
35634         * modules/unictype/category-Z-tests (Files): Likewise.
35635         * modules/unictype/category-Zl-tests (Files): Likewise.
35636         * modules/unictype/category-Zp-tests (Files): Likewise.
35637         * modules/unictype/category-Zs-tests (Files): Likewise.
35638         * modules/unictype/category-and-not-tests (Files): Likewise.
35639         * modules/unictype/category-and-tests (Files): Likewise.
35640         * modules/unictype/category-byname-tests (Files): Likewise.
35641         * modules/unictype/category-name-tests (Files): Likewise.
35642         * modules/unictype/category-none-tests (Files): Likewise.
35643         * modules/unictype/category-of-tests (Files): Likewise.
35644         * modules/unictype/category-or-tests (Files): Likewise.
35645         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35646         * modules/unictype/combining-class-tests (Files): Likewise.
35647         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35648         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35649         * modules/unictype/ctype-blank-tests (Files): Likewise.
35650         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35651         * modules/unictype/ctype-digit-tests (Files): Likewise.
35652         * modules/unictype/ctype-graph-tests (Files): Likewise.
35653         * modules/unictype/ctype-lower-tests (Files): Likewise.
35654         * modules/unictype/ctype-print-tests (Files): Likewise.
35655         * modules/unictype/ctype-punct-tests (Files): Likewise.
35656         * modules/unictype/ctype-space-tests (Files): Likewise.
35657         * modules/unictype/ctype-upper-tests (Files): Likewise.
35658         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35659         * modules/unictype/decimal-digit-tests (Files): Likewise.
35660         * modules/unictype/digit-tests (Files): Likewise.
35661         * modules/unictype/mirror-tests (Files): Likewise.
35662         * modules/unictype/numeric-tests (Files): Likewise.
35663         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35664         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35665         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35666         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35667         Likewise.
35668         * modules/unictype/property-bidi-block-separator-tests (Files):
35669         Likewise.
35670         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35671         Likewise.
35672         * modules/unictype/property-bidi-common-separator-tests (Files):
35673         Likewise.
35674         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35675         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35676         Likewise.
35677         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35678         Likewise.
35679         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35680         Likewise.
35681         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35682         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35683         Likewise.
35684         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35685         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35686         Likewise.
35687         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35688         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35689         * modules/unictype/property-bidi-segment-separator-tests (Files):
35690         Likewise.
35691         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35692         * modules/unictype/property-byname-tests (Files): Likewise.
35693         * modules/unictype/property-combining-tests (Files): Likewise.
35694         * modules/unictype/property-composite-tests (Files): Likewise.
35695         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35696         * modules/unictype/property-dash-tests (Files): Likewise.
35697         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35698         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35699         Likewise.
35700         * modules/unictype/property-deprecated-tests (Files): Likewise.
35701         * modules/unictype/property-diacritic-tests (Files): Likewise.
35702         * modules/unictype/property-extender-tests (Files): Likewise.
35703         * modules/unictype/property-format-control-tests (Files): Likewise.
35704         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35705         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35706         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35707         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35708         * modules/unictype/property-hyphen-tests (Files): Likewise.
35709         * modules/unictype/property-id-continue-tests (Files): Likewise.
35710         * modules/unictype/property-id-start-tests (Files): Likewise.
35711         * modules/unictype/property-ideographic-tests (Files): Likewise.
35712         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35713         * modules/unictype/property-ids-trinary-operator-tests (Files):
35714         Likewise.
35715         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35716         * modules/unictype/property-iso-control-tests (Files): Likewise.
35717         * modules/unictype/property-join-control-tests (Files): Likewise.
35718         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35719         * modules/unictype/property-line-separator-tests (Files): Likewise.
35720         * modules/unictype/property-logical-order-exception-tests (Files):
35721         Likewise.
35722         * modules/unictype/property-lowercase-tests (Files): Likewise.
35723         * modules/unictype/property-math-tests (Files): Likewise.
35724         * modules/unictype/property-non-break-tests (Files): Likewise.
35725         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35726         * modules/unictype/property-numeric-tests (Files): Likewise.
35727         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35728         * modules/unictype/property-other-default-ignorable-code-point-tests
35729         (Files): Likewise.
35730         * modules/unictype/property-other-grapheme-extend-tests (Files):
35731         Likewise.
35732         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35733         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35734         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35735         * modules/unictype/property-other-math-tests (Files): Likewise.
35736         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35737         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35738         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35739         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35740         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35741         * modules/unictype/property-private-use-tests (Files): Likewise.
35742         * modules/unictype/property-punctuation-tests (Files): Likewise.
35743         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35744         * modules/unictype/property-radical-tests (Files): Likewise.
35745         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35746         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35747         * modules/unictype/property-space-tests (Files): Likewise.
35748         * modules/unictype/property-terminal-punctuation-tests (Files):
35749         Likewise.
35750         * modules/unictype/property-test-tests (Files): Likewise.
35751         * modules/unictype/property-titlecase-tests (Files): Likewise.
35752         * modules/unictype/property-unassigned-code-value-tests (Files):
35753         Likewise.
35754         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35755         * modules/unictype/property-uppercase-tests (Files): Likewise.
35756         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35757         * modules/unictype/property-white-space-tests (Files): Likewise.
35758         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35759         * modules/unictype/property-xid-start-tests (Files): Likewise.
35760         * modules/unictype/property-zero-width-tests (Files): Likewise.
35761         * modules/unictype/scripts-tests (Files): Likewise.
35762         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35763         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35764         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35765         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35766         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35767         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35768         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35769         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35770         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35771         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35772         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35773         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35774         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35775         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35776         * modules/uninorm/composition-tests (Files): Likewise.
35777         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35778         * modules/uninorm/decomposition-tests (Files): Likewise.
35779         * modules/uninorm/filter-tests (Files): Likewise.
35780         * modules/uninorm/nfc-tests (Files): Likewise.
35781         * modules/uninorm/nfd-tests (Files): Likewise.
35782         * modules/uninorm/nfkc-tests (Files): Likewise.
35783         * modules/uninorm/nfkd-tests (Files): Likewise.
35784         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35785         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35786         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35787         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35788         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35789         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35790         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35791         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35792         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35793         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35794         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35795         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35796         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35797         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35798         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35799         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35800         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35801         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35802         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35803         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35804         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35805         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35806         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35807         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35808         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35809         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35810         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35811         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35812         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35813         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35814         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35815         * modules/uniwidth/u8-width-tests (Files): Likewise.
35816         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35817         * modules/uniwidth/u16-width-tests (Files): Likewise.
35818         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35819         * modules/uniwidth/u32-width-tests (Files): Likewise.
35820         * modules/uniwidth/width-tests (Files): Likewise.
35821         * modules/unlink-tests (Files): Likewise.
35822         * modules/unsetenv-tests (Files): Likewise.
35823         * modules/usleep-tests (Files): Likewise.
35824         * modules/utimens-tests (Files): Likewise.
35825         * modules/utimensat-tests (Files): Likewise.
35826         * modules/vasnprintf-posix-tests (Files): Likewise.
35827         * modules/vasnprintf-tests (Files): Likewise.
35828         * modules/vasprintf-posix-tests (Files): Likewise.
35829         * modules/vasprintf-tests (Files): Likewise.
35830         * modules/vdprintf-posix-tests (Files): Likewise.
35831         * modules/vfprintf-posix-tests (Files): Likewise.
35832         * modules/vprintf-posix-tests (Files): Likewise.
35833         * modules/vsnprintf-posix-tests (Files): Likewise.
35834         * modules/vsnprintf-tests (Files): Likewise.
35835         * modules/vsprintf-posix-tests (Files): Likewise.
35836         * modules/wcrtomb-tests (Files): Likewise.
35837         * modules/wcsnrtombs-tests (Files): Likewise.
35838         * modules/wcsrtombs-tests (Files): Likewise.
35839         * modules/wctype-tests (Files): Likewise.
35840         * modules/wcwidth-tests (Files): Likewise.
35841         * modules/xmemdup0-tests (Files): Likewise.
35842         * modules/xprintf-posix-tests (Files): Likewise.
35843         * modules/xvasprintf-tests (Files): Likewise.
35844
35845 2009-12-24  Eric Blake  <ebb9@byu.net>
35846
35847         test-nanosleep: fix typo
35848         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35849         patch.
35850         Reported by Bruno Haible.
35851
35852 2009-12-24  Bruno Haible  <bruno@clisp.org>
35853
35854         Reduce namespace pollution on glibc systems.
35855         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35856         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35857         systems.
35858         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35859         <getopt.h> on glibc systems.
35860         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35861         systems.
35862         * lib/fcntl.c: Include <unistd.h> here instead.
35863
35864 2009-12-24  Bruno Haible  <bruno@clisp.org>
35865
35866         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35867
35868 2009-12-24  Eric Blake  <ebb9@byu.net>
35869
35870         tests: add signature checks
35871         * tests/signature.h (SIGNATURE_CHECK): New file.
35872         * modules/atexit-tests (Files): Use it.
35873         * modules/btowc-tests (Files): Likewise.
35874         * modules/canonicalize-lgpl-tests (Files): Likewise.
35875         * modules/ceilf-tests (Files): Likewise.
35876         * modules/ceill-tests (Files): Likewise.
35877         * modules/chown-tests (Files): Likewise.
35878         * modules/dprintf-posix-tests (Files): Likewise.
35879         * modules/dup2-tests (Files): Likewise.
35880         * modules/dup3-tests (Files): Likewise.
35881         * modules/duplocale-tests (Files): Likewise.
35882         * modules/fchdir-tests (Files): Likewise.
35883         * modules/fcntl-tests (Files): Likewise.
35884         * modules/fdopendir-tests (Files): Likewise.
35885         * modules/fflush-tests (Files): Likewise.
35886         * modules/flock-tests (Files): Likewise.
35887         * modules/floorf-tests (Files): Likewise.
35888         * modules/floorl-tests (Files): Likewise.
35889         * modules/fnmatch-tests (Files): Likewise.
35890         * modules/fopen-tests (Files): Likewise.
35891         * modules/fprintf-posix-tests (Files): Likewise.
35892         * modules/freopen-tests (Files): Likewise.
35893         * modules/frexp-nolibm-tests (Files): Likewise.
35894         * modules/frexp-tests (Files): Likewise.
35895         * modules/frexpl-nolibm-tests (Files): Likewise.
35896         * modules/frexpl-tests (Files): Likewise.
35897         * modules/fseek-tests (Files): Likewise.
35898         * modules/fseeko-tests (Files): Likewise.
35899         * modules/fsync-tests (Files): Likewise.
35900         * modules/ftell-tests (Files): Likewise.
35901         * modules/ftello-tests (Files): Likewise.
35902         * modules/futimens-tests (Files): Likewise.
35903         * modules/getaddrinfo-tests (Files): Likewise.
35904         * modules/getcwd-tests (Files): Likewise.
35905         * modules/getdelim-tests (Files): Likewise.
35906         * modules/getdtablesize-tests (Files): Likewise.
35907         * modules/getgroups-tests (Files): Likewise.
35908         * modules/gethostname-tests (Files): Likewise.
35909         * modules/getline-tests (Files): Likewise.
35910         * modules/getopt-posix-tests (Files): Likewise.
35911         * modules/gettimeofday-tests (Files): Likewise.
35912         * modules/glob-tests (Files): Likewise.
35913         * modules/iconv-tests (Files): Likewise.
35914         * modules/inet_ntop-tests (Files): Likewise.
35915         * modules/inet_pton-tests (Files): Likewise.
35916         * modules/isblank-tests (Files): Likewise.
35917         * modules/lchown-tests (Files): Likewise.
35918         * modules/ldexpl-tests (Files): Likewise.
35919         * modules/link-tests (Files): Likewise.
35920         * modules/linkat-tests (Files): Likewise.
35921         * modules/lseek-tests (Files): Likewise.
35922         * modules/lstat-tests (Files): Likewise.
35923         * modules/mbrtowc-tests (Files): Likewise.
35924         * modules/mbsinit-tests (Files): Likewise.
35925         * modules/mbsnrtowcs-tests (Files): Likewise.
35926         * modules/mbsrtowcs-tests (Files): Likewise.
35927         * modules/memchr-tests (Files): Likewise.
35928         * modules/memcmp-tests (Files): Likewise.
35929         * modules/memmem-tests (Files): Likewise.
35930         * modules/memrchr-tests (Files): Likewise.
35931         * modules/mkdir-tests (Files): Likewise.
35932         * modules/mkfifo-tests (Files): Likewise.
35933         * modules/mkfifoat-tests (Files): Likewise.
35934         * modules/mknod-tests (Files): Likewise.
35935         * modules/nanosleep-tests (Files): Likewise.
35936         * modules/nl_langinfo-tests (Files): Likewise.
35937         * modules/obstack-printf-tests (Files): Likewise.
35938         * modules/open-tests (Files): Likewise.
35939         * modules/openat-tests (Files): Likewise.
35940         * modules/perror-tests (Files): Likewise.
35941         * modules/pipe2-tests (Files): Likewise.
35942         * modules/poll-tests (Files): Likewise.
35943         * modules/popen-tests (Files): Likewise.
35944         * modules/posix_spawn-tests (Files): Likewise.
35945         * modules/posix_spawnp-tests (Files): Likewise.
35946         * modules/pread-tests (Files): Likewise.
35947         * modules/printf-posix-tests (Files): Likewise.
35948         * modules/pty-tests (Files): Likewise.
35949         * modules/random_r-tests (Files): Likewise.
35950         * modules/rawmemchr-tests (Files): Likewise.
35951         * modules/readlink-tests (Files): Likewise.
35952         * modules/remove-tests (Files): Likewise.
35953         * modules/rename-tests (Files): Likewise.
35954         * modules/renameat-tests (Files): Likewise.
35955         * modules/rmdir-tests (Files): Likewise.
35956         * modules/round-tests (Files): Likewise.
35957         * modules/roundf-tests (Files): Likewise.
35958         * modules/roundl-tests (Files): Likewise.
35959         * modules/select-tests (Files): Likewise.
35960         * modules/setenv-tests (Files): Likewise.
35961         * modules/sigaction-tests (Files): Likewise.
35962         * modules/sleep-tests (Files): Likewise.
35963         * modules/snprintf-posix-tests (Files): Likewise.
35964         * modules/snprintf-tests (Files): Likewise.
35965         * modules/sprintf-posix-tests (Files): Likewise.
35966         * modules/stat-tests (Files): Likewise.
35967         * modules/strcasestr-tests (Files): Likewise.
35968         * modules/strchrnul-tests (Files): Likewise.
35969         * modules/strerror-tests (Files): Likewise.
35970         * modules/strsignal-tests (Files): Likewise.
35971         * modules/strstr-tests (Files): Likewise.
35972         * modules/strtod-tests (Files): Likewise.
35973         * modules/strverscmp-tests (Files): Likewise.
35974         * modules/symlink-tests (Files): Likewise.
35975         * modules/symlinkat-tests (Files): Likewise.
35976         * modules/times-tests (Files): Likewise.
35977         * modules/trunc-tests (Files): Likewise.
35978         * modules/truncf-tests (Files): Likewise.
35979         * modules/truncl-tests (Files): Likewise.
35980         * modules/tsearch-tests (Files): Likewise.
35981         * modules/uname-tests (Files): Likewise.
35982         * modules/unlink-tests (Files): Likewise.
35983         * modules/unsetenv-tests (Files): Likewise.
35984         * modules/usleep-tests (Files): Likewise.
35985         * modules/utimensat-tests (Files): Likewise.
35986         * modules/vasprintf-tests (Files): Likewise.
35987         * modules/vdprintf-posix-tests (Files): Likewise.
35988         * modules/vfprintf-posix-tests (Files): Likewise.
35989         * modules/vprintf-posix-tests (Files): Likewise.
35990         * modules/vsnprintf-posix-tests (Files): Likewise.
35991         * modules/vsnprintf-tests (Files): Likewise.
35992         * modules/vsprintf-posix-tests (Files): Likewise.
35993         * modules/wcrtomb-tests (Files): Likewise.
35994         * modules/wcsnrtombs-tests (Files): Likewise.
35995         * modules/wcsrtombs-tests (Files): Likewise.
35996         * modules/wcwidth-tests (Files): Likewise.
35997         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
35998         * tests/test-isinf.c (isinf): Likewise.
35999         * tests/test-isnan.c (isnan): Likewise.
36000         * tests/test-signbit.c (signbit): Likewise.
36001         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36002         declaration, either as macro or with correct signature.
36003         (select): Ensure function under test is declared with correct
36004         signature in correct header.
36005         * tests/test-atexit.c (atexit): Likewise.
36006         * tests/test-btowc.c (btowc): Likewise.
36007         * tests/test-canonicalize-lgpl.c (realpath)
36008         (canonicalize_file_name): Likewise.
36009         * tests/test-ceilf1.c (ceilf): Likewise.
36010         * tests/test-ceill.c (ceill): Likewise.
36011         * tests/test-chown.c (chown): Likewise.
36012         * tests/test-dprintf-posix.c (dprintf): Likewise.
36013         * tests/test-dup2.c (dup2): Likewise.
36014         * tests/test-dup3.c (dup3): Likewise.
36015         * tests/test-duplocale.c (duplocale): Likewise.
36016         * tests/test-fchdir.c (fchdir): Likewise.
36017         * tests/test-fchownat.c (fchownat): Likewise.
36018         * tests/test-fcntl.c (fcntl): Likewise.
36019         * tests/test-fdopendir.c (fdopendir): Likewise.
36020         * tests/test-fflush.c (fflush): Likewise.
36021         * tests/test-flock.c (flock): Likewise.
36022         * tests/test-floorf1.c (floorf): Likewise.
36023         * tests/test-floorl.c (floorl): Likewise.
36024         * tests/test-fnmatch.c (fnmatch): Likewise.
36025         * tests/test-fopen.c (fopen): Likewise.
36026         * tests/test-fprintf-posix.c (fprintf): Likewise.
36027         * tests/test-freopen.c (freopen): Likewise.
36028         * tests/test-frexp.c (frexp): Likewise.
36029         * tests/test-frexpl.c (frexpl): Likewise.
36030         * tests/test-fseek.c (fseek): Likewise.
36031         * tests/test-fseeko.c (fseeko): Likewise.
36032         * tests/test-fstatat.c (fstatat): Likewise.
36033         * tests/test-fsync.c (fsync): Likewise.
36034         * tests/test-ftell.c (ftell): Likewise.
36035         * tests/test-ftello.c (ftello): Likewise.
36036         * tests/test-futimens.c (futimens): Likewise.
36037         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36038         (gai_strerror): Likewise.
36039         * tests/test-getcwd.c (getcwd): Likewise.
36040         * tests/test-getdelim.c (getdelim): Likewise.
36041         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36042         * tests/test-getgroups.c (getgroups): Likewise.
36043         * tests/test-gethostname.c (gethostname): Likewise.
36044         * tests/test-getline.c (getline): Likewise.
36045         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36046         Likewise.
36047         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36048         * tests/test-glob.c (glob, globfree): Likewise.
36049         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36050         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36051         * tests/test-inet_pton.c (inet_pton): Likewise.
36052         * tests/test-isblank.c (isblank): Likewise.
36053         * tests/test-lchown.c (lchown): Likewise.
36054         * tests/test-ldexpl.c (ldexpl): Likewise.
36055         * tests/test-link.c (link): Likewise.
36056         * tests/test-linkat.c (linkat): Likewise.
36057         * tests/test-lseek.c (lseek): Likewise.
36058         * tests/test-lstat.c (lstat): Likewise.
36059         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36060         * tests/test-mbsinit.c (mbsinit): Likewise.
36061         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36062         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36063         * tests/test-memchr.c (memchr): Likewise.
36064         * tests/test-memcmp.c (memcmp): Likewise.
36065         * tests/test-memmem.c (memmem): Likewise.
36066         * tests/test-memrchr.c (memrchr): Likewise.
36067         * tests/test-mkdir.c (mkdir): Likewise.
36068         * tests/test-mkdirat.c (mkdirat): Likewise.
36069         * tests/test-mkfifo.c (mkfifo): Likewise.
36070         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36071         * tests/test-mknod.c (mknod): Likewise.
36072         * tests/test-nanosleep.c (nanosleep): Likewise.
36073         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36074         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36075         Likewise.
36076         * tests/test-open.c (open): Likewise.
36077         * tests/test-openat.c (openat): Likewise.
36078         * tests/test-perror.c (perror): Likewise.
36079         * tests/test-pipe2.c (pipe2): Likewise.
36080         * tests/test-poll.c (poll): Likewise.
36081         * tests/test-popen.c (popen, pclose): Likewise.
36082         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36083         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36084         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36085         (posix_spawn_file_actions_destroy)
36086         (posix_spawn_file_actions_addclose)
36087         (posix_spawn_file_actions_addopen)
36088         (posix_spawn_file_actions_adddup2): Likewise.
36089         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36090         * tests/test-pread.c (pread): Likewise.
36091         * tests/test-printf-posix.c (printf): Likewise.
36092         * tests/test-pty.c (openpty, forkpty): Likewise.
36093         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36094         (random_r): Likewise.
36095         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36096         * tests/test-readlink.c (readlink): Likewise.
36097         * tests/test-remove.c (remove): Likewise.
36098         * tests/test-rename.c (rename): Likewise.
36099         * tests/test-renameat.c (renameat): Likewise.
36100         * tests/test-rmdir.c (rmdir): Likewise.
36101         * tests/test-round1.c (round): Likewise.
36102         * tests/test-roundf1.c (roundf): Likewise.
36103         * tests/test-roundl.c (roundl): Likewise.
36104         * tests/test-setenv.c (setenv): Likewise.
36105         * tests/test-sigaction.c (sigaction): Likewise.
36106         * tests/test-sleep.c (sleep): Likewise.
36107         * tests/test-snprintf.c (snprintf): Likewise.
36108         * tests/test-sprintf-posix.c (sprintf): Likewise.
36109         * tests/test-stat.c (stat): Likewise.
36110         * tests/test-stpncpy.c (stpncpy): Likewise.
36111         * tests/test-strcasestr.c (strcasestr): Likewise.
36112         * tests/test-strchrnul.c (strchrnul): Likewise.
36113         * tests/test-strerror.c (strerror): Likewise.
36114         * tests/test-strsignal.c (strsignal): Likewise.
36115         * tests/test-strstr.c (strstr): Likewise.
36116         * tests/test-strtod.c (strtod): Likewise.
36117         * tests/test-strverscmp.c (strverscmp): Likewise.
36118         * tests/test-symlink.c (symlink): Likewise.
36119         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36120         * tests/test-times.c (times): Likewise.
36121         * tests/test-trunc1.c (trunc): Likewise.
36122         * tests/test-truncf1.c (truncf): Likewise.
36123         * tests/test-truncl.c (truncl): Likewise.
36124         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36125         Likewise.
36126         * tests/test-uname.c (uname): Likewise.
36127         * tests/test-unlink.c (unlink): Likewise.
36128         * tests/test-unlinkat.c (unlinkat): Likewise.
36129         * tests/test-unsetenv.c (unsetenv): Likewise.
36130         * tests/test-usleep.c (usleep): Likewise.
36131         * tests/test-utimensat.c (utimensat): Likewise.
36132         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36133         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36134         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36135         * tests/test-vprintf-posix.c (vprintf): Likewise.
36136         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36137         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36138         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36139         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36140         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36141         * tests/test-wcwidth.c (wcwidth): Likewise.
36142
36143         build: pull in conditional headers during GNULIB_POSIXCHECK
36144         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36145         definitions from any conditionally-included headers.
36146         * lib/stdlib.in.h (includes): Likewise.
36147         * lib/unistd.in.h (includes): Likewise.
36148
36149 2009-12-24  Bruno Haible  <bruno@clisp.org>
36150
36151         * tests/test-argv-iter.c: Include header file being tested immediately
36152         after config.h.
36153         * tests/test-base64.c: Likewise.
36154         * tests/test-flock.c: Likewise.
36155         * tests/test-fsync.c: Likewise.
36156         * tests/test-getdate.c: Likewise.
36157         * tests/test-getndelim2.c: Likewise.
36158         * tests/test-isfinite.c: Likewise.
36159         * tests/test-isinf.c: Likewise.
36160         * tests/test-strerror.c: Likewise.
36161         * tests/test-strsignal.c: Likewise.
36162
36163 2009-12-23  Eric Blake  <ebb9@byu.net>
36164
36165         unistd: work around cygwin bug
36166         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36167         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36168         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36169
36170 2009-12-23  Bruno Haible  <bruno@clisp.org>
36171
36172         localename: More tests.
36173         * tests/test-localename.c (SIZEOF): New macro.
36174         (categories): New variable.
36175         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36176         test_locale_name_default): Add test w.r.t. thread locale.
36177         (test_locale_name_thread): New function.
36178         (main): Invoke it.
36179
36180         localename: Make aware of thread locale.
36181         * lib/localename.h (gl_locale_name_thread): New declaration.
36182         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36183         behaviour with respect to thread locale.
36184         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36185         <langinfo.h>, glthread/lock.h.
36186         (SIZE_BITS): New macro.
36187         (string_hash): New function.
36188         (struct hash_node): New type.
36189         (HASH_TABLE_SIZE): New macro.
36190         (struniq_hash_table, struniq_lock): New variables.
36191         (struniq): New function.
36192         (gl_locale_name_thread): New function.
36193         (gl_locale_name): Invoke it.
36194         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36195         * modules/localename (Depends-on): Add lock.
36196         Reported by Mike Gran <spk121@yahoo.com>.
36197
36198 2009-12-23  Eric Blake  <ebb9@byu.net>
36199
36200         va-args: new module
36201         * modules/va-args: New file.
36202         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36203         * MODULES.html.sh (Core language properties): Mention it.
36204
36205         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36206         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36207         named alias for __attribute__((__unused__)).
36208         * lib/chown.c: Update client.
36209         * lib/fchmodat.c: Likewise.
36210         * lib/fts.c: Likewise.
36211         * lib/getdate.y: Likewise.
36212         * lib/getgroups.c: Likewise.
36213         * lib/getopt.c: Likewise.
36214         * lib/getugroups.c: Likewise.
36215         * lib/mkdir.c: Likewise.
36216         * lib/mkfifo.c: Likewise.
36217         * lib/mkfifoat.c: Likewise.
36218         * lib/mknod.c: Likewise.
36219         * lib/mknodat.c: Likewise.
36220         * lib/readlink.c: Likewise.
36221         * lib/se-context.in.h: Likewise.
36222         * lib/se-selinux.in.h: Likewise.
36223         * lib/sockets.c: Likewise.
36224         * lib/symlink.c: Likewise.
36225         * lib/symlinkat.c: Likewise.
36226         * lib/unicodeio.c: Likewise.
36227         * lib/unistr.h: Likewise.
36228         * tests/test-areadlink.c: Likewise.
36229         * tests/test-areadlinkat.c: Likewise.
36230         * tests/test-filenamecat.c: Likewise.
36231         * tests/test-fseeko.c: Likewise.
36232         * tests/test-ftello.c: Likewise.
36233         * tests/test-getdate.c: Likewise.
36234         * tests/test-getgroups.c: Likewise.
36235         * tests/test-gethostname.c: Likewise.
36236         * tests/test-quotearg.c: Likewise.
36237         * tests/test-version-etc.c: Likewise.
36238         * tests/test-xalloc-die.c: Likewise.
36239         * tests/test-xfprintf-posix.c: Likewise.
36240         * tests/test-xprintf-posix.c: Likewise.
36241         * tests/test-xvasprintf.c: Likewise.
36242
36243         tests: avoid compiler warnings
36244         * tests/test-fcntl.c (main): Delete unused parameters.
36245         * tests/test-freopen-safer.c (main): Likewise.
36246         * tests/test-xalloc-die.c (main): Mark unused parameters.
36247         * tests/test-fseeko.c (main): Likewise.
36248         * tests/test-ftello.c (main): Likewise.
36249         * tests/test-nanosleep.c (main): Avoid declaration warning.
36250         * tests/test-sleep.c (main): Likewise.
36251         * tests/test-unsetenv.c (main): Silence warning about string
36252         literal.
36253         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36254
36255 2009-12-23  Bruno Haible  <bruno@clisp.org>
36256
36257         * tests/test-localename.c (test_locale_name): New function, extracted
36258         from main. Also test mixed situations.
36259         (test_locale_name_posix, test_locale_name_environ,
36260         test_locale_name_default): New functions.
36261         (main): Invoke them all.
36262         * modules/localename-tests (configure.ac): Test for newlocale.
36263
36264 2009-12-23  Bruno Haible  <bruno@clisp.org>
36265
36266         unistd: Ensure getcwd gets declared before being overridden.
36267         * lib/unistd.in.h: Conditionally include <io.h>.
36268
36269 2009-12-22  Bruno Haible  <bruno@clisp.org>
36270
36271         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36272         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36273         (gl_WCHAR_H): Invoke it.
36274         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36275         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36276         Reported by Karl Berry <karl@freefriends.org>.
36277
36278 2009-12-22  Eric Blake  <ebb9@byu.net>
36279
36280         math, unistd: avoid redundant includes
36281         * lib/math.in.h (isnan): No need to re-include <math.h>.
36282         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36283
36284         getsubopt: work around cygwin bug
36285         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36286         avoid conflicting with system getsubopt.
36287         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36288         bug.
36289
36290         getopt: synchronize from glibc
36291         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36292         parameter order.  Adjust all callers.
36293         (_getopt_internal_r, main): Adjust quoting in error messages.
36294         Drop considerations for outdated POSIX 1003.2 error message.
36295         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36296         callers.
36297         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36298
36299         test-getopt: test stderr behavior
36300         * modules/getopt-posix-tests (Depends-on): Add dup2.
36301         * tests/test-getopt.c (ASSERT): Avoid stderr.
36302         (main): Move stderr to a temporary file.
36303         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36304         Instead, add parameter to inform caller if output occurred.
36305         (test_getopt): Adjust all existing tests to expect silence, and
36306         add new tests of leading ":".
36307         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36308         glibc shortcomings with leading "-:" or "+:" in optstring.
36309         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36310         Likewise.
36311         * doc/posix-functions/getopt.texi (getopt): Likewise.
36312
36313         test-getopt: enhance test
36314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36315         supports optind=0.
36316         * tests/test-getopt.c (OPTIND_MIN): Move...
36317         * tests/test-getopt.h (OPTIND_MIN): ...here.
36318         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36319         Require that optind=0 works, since modern BSD supports it in
36320         addition to optreset, and since coreutils expects it.
36321         (test_getopt_long_only): New test.
36322         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36323         glibc shortcomings with 'W;', and enforcement of optind=0.
36324         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36325         Likewise.
36326
36327 2009-12-21  Bruno Haible  <bruno@clisp.org>
36328
36329         localename: Improvements for MacOS X and Cygwin.
36330         * lib/localename.h (gl_locale_name_environ): New declaration.
36331         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36332         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36333         (gl_locale_name_posix): Invoke it.
36334         (gl_locale_name_default): Add comments. Use Windows native API also on
36335         Cygwin.
36336
36337 2009-12-21  Bruno Haible  <bruno@clisp.org>
36338
36339         Update list of Win32 locale ids.
36340         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36341         (LANG_SAMI): Renamed from LANG_SAAMI.
36342         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36343         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36344         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36345         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36346         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36347         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36348         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36349         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36350         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36351         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36352         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36353         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36354         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36355         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36356         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36357         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36358         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36359         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36360         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36361         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36362         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36363         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36364         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36365         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36366         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36367         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36368         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36369         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36370         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36371         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36372         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36373         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36374         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36375         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36376         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36377         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36378         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36379         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36380         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36381         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36382         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36383         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36384         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36385         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36386         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36387         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36388         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36389         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36390         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36391         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36392         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36393         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36394         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36395         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36396         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36397         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36398         Add more languages and countries for Sami, Sorbian. Add more countries
36399         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36400         for Pashto. Change country for Syriac, Tswana.
36401
36402 2009-12-21  Eric Blake  <ebb9@byu.net>
36403
36404         test-utimens: avoid spurious failure
36405         * tests/test-chown.h (nap): Factor...
36406         * tests/nap.h: ...into new file.
36407         * tests/test-lchown.h (nap): Avoid duplication.
36408         * tests/test-utimens-common.h (nap): Use shared implementation,
36409         necessary on file systems with 1-second resolution.
36410         * modules/chown-tests (Files): Include new file.
36411         * modules/fdutimensat-tests (Files): Likewise.
36412         * modules/futimens-tests (Files): Likewise.
36413         * modules/lchown-tests (Files): Likewise.
36414         * modules/openat-tests (Files): Likewise.
36415         * modules/utimens-tests (Files): Likewise.
36416         * modules/utimensat-tests (Files): Likewise.
36417
36418 2009-12-19  Eric Blake  <ebb9@byu.net>
36419
36420         futimens, utimensat: work around Linux bug
36421         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36422         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36423         * lib/utimensat.c (rpl_utimensat): Work around it.
36424         * lib/futimens.c (rpl_futimens): Adjust comment.
36425
36426         utimens: work around Linux ctime bug
36427         * lib/utimens.c (detect_ctime_bug): New helper function.
36428         (update_timespec): Differentiate between workaround needed for
36429         this bug vs. what is needed for systems that lack utimensat.
36430         (fdutimens, lutimens): Work around bug.
36431
36432         utimens: check for ctime update
36433         * tests/test-utimens-common.h (check_ctime): Define.
36434         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36435         * tests/test-futimens.h (test_futimens): Likewise.
36436         * tests/test-lutimens.h (test_lutimens): Likewise.
36437         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36438         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36439
36440 2009-12-19  Bruno Haible  <bruno@clisp.org>
36441
36442         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36443         * tests/test-dprintf-posix2.sh: New file.
36444         * tests/test-dprintf-posix2.c: New file.
36445         * modules/dprintf-posix-tests (Files): Add them.
36446         (configure.ac): Check for getrlimit and setrlimit.
36447         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36448
36449 2009-12-19  Bruno Haible  <bruno@clisp.org>
36450
36451         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36452         * tests/test-fprintf-posix3.sh: New file.
36453         * tests/test-fprintf-posix3.c: New file.
36454         * modules/fprintf-posix-tests (Files): Add them.
36455         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36456
36457 2009-12-19  Eric Blake  <ebb9@byu.net>
36458
36459         dirfd: fix prototype
36460         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36461         * lib/dirfd.c (dirfd): Likewise.
36462
36463         canonicalize: reduce memory usage
36464         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36465         allocation to size.
36466         Reported by Solar Designer <solar@openwall.com>.
36467
36468 2009-12-19  Bruno Haible  <bruno@clisp.org>
36469
36470         New module attribute 'Applicability'.
36471         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36472         * gnulib-tool: New option --extract-applicability.
36473         (func_usage): Document it.
36474         (sed_extract_prog): Recognize it.
36475         (func_get_applicability): New function.
36476         (func_import): Generalize handling of 'link-warning' module.
36477         * modules/link-warning (Applicability): New section.
36478         * modules/arg-nonnull (Applicability): New section.
36479         Repoted by Simon Josefsson <simon@josefsson.org>.
36480
36481 2009-12-19  Bruno Haible  <bruno@clisp.org>
36482
36483         fflush: tweak
36484         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36485         * lib/fseeko.c (rpl_fseeko): Likewise.
36486
36487 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36488
36489         * lib/gl_list.h: Fix typo in comment.
36490
36491 2009-12-16  Eric Blake  <ebb9@byu.net>
36492
36493         fcntl: use to simplify other modules
36494         * modules/cloexec (Depends-on): Add fcntl.
36495         * modules/fchdir (Depends-on): Likewise.
36496         * modules/fd-safer-flag (Depends-on): Likewise.
36497         * modules/unistd-safer (Depends-on): Likewise.
36498         * modules/dup3 (configure.ac): Set module indicator.
36499         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36500         missing.
36501         * lib/fchdir.c (_gl_register_dup): Fix comment.
36502         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36503         * lib/dup-safer.c (dup_safer): Likewise.
36504         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36505         * lib/dup3.c (dup3): Likewise.
36506         * tests/test-fchdir.c (main): Enhance test.
36507         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36508
36509         fcntl: port portions of fcntl to mingw
36510         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36511         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36512         replacement for mingw.
36513         * modules/fcntl (Description): Update.
36514         (Depends-on): Add dup2.
36515         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36516         * modules/fcntl-h (Makefile.am): Substitute it.
36517         * lib/fcntl.in.h (fcntl): Update declaration.
36518         (F_DUPFD, F_GETFD): New macros, when needed.
36519         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36520         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36521         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36522         we now guarantee.
36523
36524         fcntl: work around cygwin bug in F_DUPFD
36525         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36526         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36527         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36528         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36529         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36530
36531         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36532         * modules/fcntl (Files): List new files.
36533         (configure.ac): Run a test.
36534         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36535         * lib/fcntl.c (rpl_fcntl): Likewise.
36536         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36537         (gl_FCNTL_H): Always replace fcntl.h.
36538         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36539         * lib/fcntl.in.h (fcntl): Declare replacement.
36540         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36541         needed, plus a witness.
36542         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36543         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36544         * tests/test-fcntl.c: New file.
36545         * modules/fcntl-tests: Likewise.
36546
36547         binary-io: avoid potential compilation warning
36548         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36549         directives.
36550
36551         fflush: avoid compilation error on NetBSD
36552         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36553         between off_t and fpos_t, since the latter is sometimes a struct.
36554         * lib/fseeko.c (rpl_fseeko): Likewise.
36555         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36556
36557 2009-12-15  Eric Blake  <ebb9@byu.net>
36558
36559         fcntl-h, stdio, sys_ioctl: fix declarations
36560         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36561         function must not take arguments.
36562         * lib/sys_ioctl.in.h (ioctl): Likewise.
36563         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36564         (open): Add a link warning.
36565
36566 2009-12-15  Jim Meyering  <meyering@redhat.com>
36567
36568         areadlink, areadlink-with-size: relax license to LGPLv2+
36569         * modules/areadlink (License): Relax to LGPLv2+.
36570         * modules/areadlink-with-size (License): Likewise.
36571
36572 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36573             Bruno Haible  <bruno@clisp.org>
36574
36575         *printf: Fix memory leak.
36576         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36577         * lib/vfprintf.c (vfprintf): Likewise.
36578         * lib/dprintf.c (dprintf): Likewise.
36579         * lib/vdprintf.c (vdprintf): Likewise.
36580
36581 2009-12-14  Eric Blake  <ebb9@byu.net>
36582
36583         accept4: adjust module dependencies
36584         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36585
36586         utimens: one more try at avoiding compiler warning
36587         * lib/utimens.c (lutimens): Lower scope of result.
36588
36589 2009-12-13  Bruno Haible  <bruno@clisp.org>
36590
36591         Move the malloc checking from module 'list' to new module 'xlist'.
36592         * modules/xlist: New file.
36593         * lib/gl_xlist.h: New file.
36594         * lib/gl_xlist.c: New file.
36595         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36596         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36597         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36598         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36599         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36600         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36601         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36602         gl_sortedlist_nx_add): New declarations.
36603         (struct gl_list_implementation): Rename and change methods accordingly.
36604         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36605         (gl_list_nx_create): Renamed from gl_list_create.
36606         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36607         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36608         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36609         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36610         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36611         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36612         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36613         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36614         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36615         gl_list_create_empty.
36616         (gl_list_nx_create): Renamed from gl_list_create.
36617         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36618         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36619         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36620         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36621         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36622         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36623         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36624         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36625         * lib/gl_array_list.c: Don't include xalloc.h.
36626         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36627         NULL upon out-of-memory.
36628         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36629         out-of-memory.
36630         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36631         Change return type to 'int'.
36632         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36633         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36634         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36635         upon out-of-memory.
36636         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36637         upon out-of-memory.
36638         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36639         upon out-of-memory.
36640         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36641         upon out-of-memory.
36642         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36643         out-of-memory.
36644         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36645         Update.
36646         (gl_array_list_implementation): Update.
36647         * lib/gl_carray_list.c: Don't include xalloc.h.
36648         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36649         Return NULL upon out-of-memory.
36650         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36651         out-of-memory.
36652         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36653         Change return type to 'int'.
36654         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36655         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36656         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36657         upon out-of-memory.
36658         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36659         upon out-of-memory.
36660         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36661         out-of-memory.
36662         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36663         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36664         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36665         Update.
36666         (gl_carray_list_implementation): Update.
36667         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36668         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36669         gl_linked_create_empty. Return NULL upon out-of-memory.
36670         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36671         out-of-memory.
36672         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36673         Change return type to 'int'. Return -1 upon out-of-memory.
36674         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36675         out-of-memory.
36676         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36677         upon out-of-memory.
36678         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36679         upon out-of-memory.
36680         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36681         NULL upon out-of-memory.
36682         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36683         upon out-of-memory.
36684         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36685         out-of-memory.
36686         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36687         Update.
36688         * lib/gl_linked_list.c: Don't include xalloc.h.
36689         (gl_linked_list_implementation): Update.
36690         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36691         (add_to_bucket): Change return type to 'int'.
36692         (gl_linkedhash_list_implementation): Update.
36693         * lib/gl_anytree_list1.h (free_subtree): New function.
36694         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36695         gl_tree_create_empty. Return NULL upon out-of-memory.
36696         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36697         Change return type to 'int'. Return -1 upon out-of-memory.
36698         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36699         out-of-memory.
36700         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36701         (gl_tree_remove_node): New function, moved here from
36702         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36703         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36704         Update.
36705         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36706         malloc, not xmalloc. Return NULL upon out-of-memory.
36707         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36708         out-of-memory.
36709         (gl_tree_remove_node_from_tree): New function, extracted from
36710         gl_tree_remove_node.
36711         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36712         upon out-of-memory.
36713         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36714         out-of-memory.
36715         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36716         upon out-of-memory.
36717         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36718         upon out-of-memory.
36719         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36720         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36721         not xmalloc. Return NULL upon out-of-memory.
36722         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36723         out-of-memory.
36724         (gl_tree_remove_node_from_tree): New function, extracted from
36725         gl_tree_remove_node.
36726         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36727         upon out-of-memory.
36728         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36729         out-of-memory.
36730         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36731         upon out-of-memory.
36732         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36733         upon out-of-memory.
36734         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36735         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36736         gl_anytree_list1.h before gl_anyavltree_list2.h.
36737         (gl_avltree_list_implementation): Update.
36738         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36739         gl_anytree_list1.h before gl_anyavltree_list2.h.
36740         (gl_rbtree_list_implementation): Update.
36741         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36742         Change return type to 'int'. Return -1 upon out-of-memory. Use
36743         __builtin_expect.
36744         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36745         (gl_avltreehash_list_implementation): Update.
36746         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36747         (gl_rbtreehash_list_implementation): Update.
36748         * modules/array-list (Depends-on): Remove xalloc.
36749         * modules/carray-list (Depends-on): Likewise.
36750         * modules/linked-list (Depends-on): Likewise.
36751         * modules/linkedhash-list (Depends-on): Likewise.
36752         * modules/avltree-list (Depends-on): Likewise.
36753         * modules/rbtree-list (Depends-on): Likewise.
36754         * modules/avltreehash-list (Depends-on): Likewise.
36755         * modules/rbtreehash-list (Depends-on): Likewise.
36756
36757         * modules/xsublist: New file.
36758         * lib/gl_xsublist.h: New file.
36759         * lib/gl_xsublist.c: New file.
36760         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36761         (gl_sublist_nx_create): New declaration.
36762         * lib/gl_sublist.c: Don't include xalloc.h.
36763         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36764         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36765         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36766         Change return type to 'int'. Return -1 upon out-of-memory.
36767         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36768         upon out-of-memory.
36769         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36770         NULL upon out-of-memory.
36771         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36772         upon out-of-memory.
36773         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36774         NULL upon out-of-memory.
36775         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36776         NULL upon out-of-memory.
36777         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36778         upon out-of-memory.
36779         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36780         (gl_sublist_list_implementation): Update.
36781         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36782         upon out-of-memory.
36783         * modules/sublist (Depends-on): Remove xalloc.
36784
36785         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36786         * tests/test-carray_list.c: Likewise.
36787         * tests/test-linked_list.c: Likewise.
36788         * tests/test-linkedhash_list.c: Likewise.
36789         * tests/test-avltree_list.c: Likewise.
36790         * tests/test-rbtree_list.c: Likewise.
36791         * tests/test-avltreehash_list.c: Likewise.
36792         * tests/test-rbtreehash_list.c: Likewise.
36793         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36794         * modules/carray-list-tests (Makefile.am): Likewise.
36795         * modules/linked-list-tests (Makefile.am): Likewise.
36796         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36797         * modules/avltree-list-tests (Makefile.am): Likewise.
36798         * modules/rbtree-list-tests (Makefile.am): Likewise.
36799         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36800         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36801
36802         * NEWS: Mention the changes.
36803
36804         * lib/clean-temp.c: Include gl_xlist.h.
36805         * modules/clean-temp (Depends-on): Add xlist.
36806
36807         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36808         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36809
36810         * tests/test-array_oset.c: Include gl_xlist.h.
36811         * modules/array-oset-tests (Depends-on): Add xlist.
36812
36813         Reported by José E. Marchesi <jemarch@gnu.org>.
36814
36815 2009-12-13  Bruno Haible  <bruno@clisp.org>
36816
36817         Move the malloc checking from module 'oset' to new module 'xoset'.
36818         * modules/xoset: New file.
36819         * lib/gl_xoset.h: New file.
36820         * lib/gl_xoset.c: New file.
36821         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36822         declarations.
36823         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36824         (struct gl_oset_implementation): Rename and change methods accordingly.
36825         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36826         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36827         'int'. Mark as __warn_unused_result__.
36828         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36829         gl_oset_create_empty.
36830         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36831         'int'.
36832         * lib/gl_array_oset.c: Don't include xalloc.h.
36833         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36834         malloc, not xmalloc.
36835         (grow): Change return type to 'int'. Don't call xalloc_die.
36836         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36837         to 'int'.
36838         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36839         'int'.
36840         (gl_array_oset_implementation): Update.
36841         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36842         gl_tree_create_empty.
36843         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36844         'int'.
36845         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36846         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36847         xmalloc.
36848         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36849         not xmalloc.
36850         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36851         xmalloc.
36852         (gl_avltree_oset_implementation): Update.
36853         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36854         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36855         xmalloc.
36856         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36857         not xmalloc.
36858         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36859         xmalloc.
36860         (gl_rbtree_oset_implementation): Update.
36861         * modules/array-oset (Depends-on): Remove xalloc.
36862         * modules/avltree-oset (Depends-on): Likewise.
36863         * modules/rbtree-oset (Depends-on): Likewise.
36864         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36865         * tests/test-avltree_oset.c: Likewise.
36866         * tests/test-rbtree_oset.c: Likewise.
36867         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36868         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36869         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36870         * NEWS: Mention the change.
36871
36872 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36873
36874         maint.mk: allow a project to override release-prep commands
36875         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36876         commands into a new rule.
36877         (release-prep): New rule.
36878         (release-prep-hook): New overridable variable.
36879
36880 2009-12-13  Bruno Haible  <bruno@clisp.org>
36881
36882         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36883
36884 2009-12-13  Jim Meyering  <meyering@redhat.com>
36885
36886         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36887         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36888
36889 2009-12-12  Bruno Haible  <bruno@clisp.org>
36890
36891         duplocale: Tweak.
36892         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36893
36894 2009-12-12  Karl Berry  <karl@gnu.org>
36895
36896         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36897
36898 2009-12-12  Bruno Haible  <bruno@clisp.org>
36899
36900         * m4/po.m4: Undo incorrect untabification.
36901
36902 2009-12-12  Bruno Haible  <bruno@clisp.org>
36903
36904         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36905         * modules/c-strtod (Depends-on): Add locale.
36906         * modules/c-strtold (Depends-on): Likewise.
36907
36908 2009-12-12  Bruno Haible  <bruno@clisp.org>
36909
36910         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36911
36912 2009-12-11  Eric Blake  <ebb9@byu.net>
36913
36914         setenv: relax requirement in light of POSIX ruling
36915         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36916         not NULL.
36917         * tests/test-setenv.c (main): Relax test.
36918         * tests/test-unsetenv.c (main): Likewise.
36919         * doc/posix-functions/setenv.texi (setenv): Document this.
36920         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36921
36922 2009-12-11  Bruno Haible  <bruno@clisp.org>
36923
36924         New module 'fd-safer-flag'.
36925         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36926         * lib/dup-safer.c (dup_safer_flag): Remove function.
36927         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
36928         * lib/fd-safer.c (fd_safer_flag): Remove function.
36929         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
36930         * modules/cloexec (configure.ac): Drop indicator macro.
36931         * modules/fd-safer-flag: New file.
36932         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
36933         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
36934         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
36935
36936 2009-12-11  Bruno Haible  <bruno@clisp.org>
36937
36938         Tests for module 'nl_langinfo'.
36939         * modules/nl_langinfo-tests: New file.
36940         * tests/test-nl_langinfo.sh: New file.
36941         * tests/test-nl_langinfo.c: New file.
36942
36943         New module 'nl_langinfo'.
36944         * lib/nl_langinfo.c: New file.
36945         * m4/nl_langinfo.m4: New file.
36946         * modules/nl_langinfo: New file.
36947         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
36948
36949 2009-12-11  Bruno Haible  <bruno@clisp.org>
36950
36951         Tests for module 'langinfo'.
36952         * modules/langinfo-tests: New file.
36953         * tests/test-langinfo.c: New file.
36954
36955         New module 'langinfo'.
36956         * lib/langinfo.in.h: New file.
36957         * m4/langinfo_h.m4: New file.
36958         * modules/langinfo: New file.
36959         * doc/posix-headers/langinfo.texi: Mention the new module.
36960
36961 2009-12-11  Bruno Haible  <bruno@clisp.org>
36962
36963         * lib/config.charset: Untabify.
36964
36965 2009-12-11  Bruno Haible  <bruno@clisp.org>
36966
36967         * modules/unistd-safer (configure.ac): Drop indicator macro.
36968
36969 2009-12-11  Bruno Haible  <bruno@clisp.org>
36970
36971         Move pipe2-safer code to its own file.
36972         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
36973         * lib/pipe-safer.c (pipe2_safer): Remove function.
36974         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
36975         (Makefile.am): Add it to lib_SOURCES.
36976
36977 2009-12-10  Bruno Haible  <bruno@clisp.org>
36978
36979         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
36980
36981 2009-12-10  Bruno Haible  <bruno@clisp.org>
36982
36983         Declare which arguments expect non-NULL values, for GCC and clang.
36984         * build-aux/arg-nonnull.h: New file.
36985         * modules/arg-nonnull: New file.
36986         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
36987         (inet_ntop, inet_pton): Use it.
36988         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
36989         (closedir, dirfd, opendir, scandir, alphasort): Use it.
36990         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
36991         (open, openat): Use it.
36992         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
36993         (fnmatch): Use it.
36994         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
36995         (getopt, getopt_long, getopt_long_only): Use it.
36996         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
36997         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
36998         Use it.
36999         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37000         (iconv_open): Use it.
37001         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37002         (strtoimax, strtoumax): Use it.
37003         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37004         (duplocale): Use it.
37005         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37006         (frexp, frexpl): Use it.
37007         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37008         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37009         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37010         (tsearch, tfind, tdelete, twalk): Use it.
37011         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37012         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37013         sigpending): Use it.
37014         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37015         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37016         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37017         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37018         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37019         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37020         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37021         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37022         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37023         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37024         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37025         Use it.
37026         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37027         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37028         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37029         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37030         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37031         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37032         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37033         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37034         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37035         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37036         strtoull, unsetenv): Use it.
37037         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37038         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37039         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37040         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37041         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37042         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37043         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37044         (strcasecmp, strncasecmp): Use it.
37045         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37046         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37047         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37048         rpl_setsockopt): Use it.
37049         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37050         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37051         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37052         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37053         (gettimeofday): Use it.
37054         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37055         (times): Use it.
37056         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37057         (uname): Use it.
37058         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37059         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37060         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37061         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37062         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37063         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37064         unlinkat, write): Use it.
37065         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37066         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37067         * lib/argv-iter.h: Include arg-nonnull.h.
37068         (_ATTRIBUTE_NONNULL_): Remove macro.
37069         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37070         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37071         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37072         optimization.
37073         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37074         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37075         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37076         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37077         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37078         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37079         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37080         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37081         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37082         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37083         * modules/dirent (Depends-on): Add arg-nonnull.
37084         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37085         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37086         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37087         * modules/fnmatch (Depends-on): Add arg-nonnull.
37088         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37089         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37090         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37091         * modules/glob (Depends-on): Add arg-nonnull.
37092         (Makefile.am): Insert arg-nonnull.h into glob.h.
37093         * modules/iconv_open (Depends-on): Add arg-nonnull.
37094         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37095         * modules/inttypes (Depends-on): Add arg-nonnull.
37096         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37097         * modules/locale (Depends-on): Add arg-nonnull.
37098         (Makefile.am): Insert arg-nonnull.h into locale.h.
37099         * modules/math (Depends-on): Add arg-nonnull.
37100         (Makefile.am): Insert arg-nonnull.h into math.h.
37101         * modules/netdb (Depends-on): Add arg-nonnull.
37102         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37103         * modules/search (Depends-on): Add arg-nonnull.
37104         (Makefile.am): Insert arg-nonnull.h into search.h.
37105         * modules/signal (Depends-on): Add arg-nonnull.
37106         (Makefile.am): Insert arg-nonnull.h into signal.h.
37107         * modules/spawn (Depends-on): Add arg-nonnull.
37108         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37109         * modules/stdio (Depends-on): Add arg-nonnull.
37110         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37111         * modules/stdlib (Depends-on): Add arg-nonnull.
37112         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37113         * modules/string (Depends-on): Add arg-nonnull.
37114         (Makefile.am): Insert arg-nonnull.h into string.h.
37115         * modules/strings (Depends-on): Add arg-nonnull.
37116         (Makefile.am): Insert arg-nonnull.h into strings.h.
37117         * modules/sys_socket (Depends-on): Add arg-nonnull.
37118         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37119         * modules/sys_stat (Depends-on): Add arg-nonnull.
37120         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37121         * modules/sys_time (Depends-on): Add arg-nonnull.
37122         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37123         * modules/sys_times (Depends-on): Add arg-nonnull.
37124         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37125         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37126         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37127         * modules/time (Depends-on): Add arg-nonnull.
37128         (Makefile.am): Insert arg-nonnull.h into time.h.
37129         * modules/unistd (Depends-on): Add arg-nonnull.
37130         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37131         * modules/wchar (Depends-on): Add arg-nonnull.
37132         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37133         * modules/argv-iter (Depends-on): Add arg-nonnull.
37134         * tests/test-canonicalize.c (null_ptr): New function.
37135         (main): Use it.
37136         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37137         (main): Use it.
37138         * tests/test-memmem.c (null_ptr): New function.
37139         (main): Use it.
37140         Reported by Jim Meyering.
37141
37142 2009-12-10  Bruno Haible  <bruno@clisp.org>
37143
37144         Use spaces for indentation, not tabs.
37145         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37146         * m4/*.m4: Untabify.
37147         * build-aux/*.h: Untabify.
37148         * tests/**/*.[hc]: Untabify.
37149         * README: New section "Indent with spaces, not TABs", based on
37150         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37151         * NEWS: Mention the change.
37152
37153 2009-12-10  Bruno Haible  <bruno@clisp.org>
37154
37155         pty test: Fix link error.
37156         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37157         test_pty_LDADD.
37158
37159 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37160
37161         * modules/pty: New file.
37162         * modules/pty-tests: New file.
37163         * m4/pty.m4: New file.
37164         * tests/test-pty.c: New file.
37165         * doc/glibc-headers/pty.texi: Modified.
37166         * doc/glibc-functions/forkpty.texi: Modified.
37167         * doc/glibc-functions/openpty.texi: Modified.
37168
37169 2009-12-10  Bruno Haible  <bruno@clisp.org>
37170
37171         Avoid syntax error in C++ mode.
37172         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37173
37174 2009-12-10  Bruno Haible  <bruno@clisp.org>
37175
37176         Use sed with option -e.
37177         * gnulib-tool (func_version, func_emit_copyright_notice,
37178         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37179         option -e to sed.
37180         * modules/link-warning (Makefile.am): Likewise.
37181
37182 2009-12-10  Jim Meyering  <meyering@redhat.com>
37183
37184         mgetgroups: do not write bytes beyond end of malloc'd buffer
37185         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37186         username, we call getgroups with a one-element-shorter buffer,
37187         but still told it the length was original, max_n_groups.
37188
37189 2009-12-09  Eric Blake  <ebb9@byu.net>
37190
37191         cloexec: relax license
37192         * modules/cloexec (Maintainer): Add myself.
37193         (License): Use LGPL, not GPL.
37194
37195         link-warning: optimize generation
37196         * modules/link-warning (Makefile.am): Reduce process usage.
37197
37198 2009-12-09  Bruno Haible  <bruno@clisp.org>
37199
37200         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37201         workaround was added on 2009-11-17.
37202
37203 2009-12-09  Jim Meyering  <meyering@redhat.com>
37204             Bruno Haible  <bruno@clisp.org>
37205
37206         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37207         * modules/link-warning (Makefile.am): Make the comment-removing sed
37208         command more robust in the face of bootstrap-prepended comment lines.
37209
37210 2009-12-09  Bruno Haible  <bruno@clisp.org>
37211
37212         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37213         most one group.
37214
37215 2009-12-09  Simon Josefsson <simon@josefsson.org>
37216             Bruno Haible  <bruno@clisp.org>
37217
37218         * build-aux/link-warning.h: Add copyright notice.
37219         * modules/link-warning (Makefile.am): Generate link-warning.h from
37220         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37221         * NEWS: Mention change in link-warning module.
37222         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37223         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37224         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37225         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37226         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37227         * modules/math (Makefile.am): Add dependency to math.h.
37228         * modules/search (Makefile.am): Add dependency to search.h.
37229         * modules/signal (Makefile.am): Add dependency to signal.h.
37230         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37231         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37232         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37233         * modules/string (Makefile.am): Add dependency to string.h.
37234         * modules/strings (Makefile.am): Add dependency to strings.h.
37235         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37236         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37237         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37238         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37239         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37240         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37241         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37242         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37243         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37244
37245 2009-12-09  Bruno Haible  <bruno@clisp.org>
37246
37247         fchdir: Optimize away rpl_fstat when possible.
37248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37249         REPLACE_OPEN_DIRECTORY.
37250         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37251
37252 2009-12-09  Bruno Haible  <bruno@clisp.org>
37253
37254         * lib/fchdir.c: Update comment.
37255
37256 2009-12-09  Bruno Haible  <bruno@clisp.org>
37257
37258         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37259
37260 2009-12-08  Eric Blake  <ebb9@byu.net>
37261
37262         fchdir: avoid memory leak on re-registration.
37263         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37264
37265 2009-12-08  Jim Meyering  <meyering@redhat.com>
37266
37267         init.sh: avoid Solaris 10 /bin/sh portability problem
37268         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37269         sourced script:
37270           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37271           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37272           bar
37273         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37274         and two tests used that idiom.
37275         * tests/init.sh: Update suggested usage comments.
37276         (path_prepend_): New function, to be used in place
37277         of the --src-path=DIR option.
37278         (setup_): Move PATH-prepending code into path_prepend_.
37279         * tests/test-pread.sh: Adapt to new usage.
37280         * tests/test-xalloc-die.sh: Likewise.
37281
37282 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37283
37284         * doc/gnulib.texi (Glibc pty.h): Add.
37285         * doc/glibc-functions/forkpty.texi: Add.
37286         * doc/glibc-functions/openpty.texi: Add.
37287         Suggested by Bruno Haible.
37288
37289 2009-12-08  Eric Blake  <ebb9@byu.net>
37290
37291         fchdir: fix logic bugs
37292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37293         * tests/test-fchdir.c (main): Enhance test.
37294         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37295         is in use.
37296
37297         dup2: fix logic bugs
37298         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37299         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37300         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37301         exists.
37302         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37303
37304 2009-12-07  Eric Blake  <ebb9@byu.net>
37305
37306         unlink: fix m4 detection
37307         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37308
37309         unistd-safer: add unit test
37310         * modules/unistd-safer-tests: New file.
37311         * tests/test-dup-safer.c: Likewise.
37312         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37313         * tests/test-dup2.c (setmode): Likewise.
37314         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37315
37316         cloexec: preserve text vs. binary across dup_cloexec
37317         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37318         mode.
37319         * modules/dup2-tests (Depends-on): Add binary-io.
37320         * modules/cloexec-tests (Depends-on): Likewise.
37321         * tests/test-dup2.c (setmode, is_mode): New helpers.
37322         (main): Add tests that translation mode is preserved.
37323         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37324         Reported by Bruno Haible.
37325
37326         mgetgroups: reduce duplicate listings
37327         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37328         resulting array.
37329         * tests/test-chown.h (test_chown): Simplify client.
37330         * tests/test-lchown.h (test_lchown): Likewise.
37331
37332 2009-12-06  Bruno Haible  <bruno@clisp.org>
37333
37334         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37335         value.
37336
37337 2009-12-06  Bruno Haible  <bruno@clisp.org>
37338
37339         * lib/progname.c: Include stdio.h, stdlib.h.
37340         (set_program_name): Reject a NULL argument.
37341
37342 2009-12-05  Eric Blake  <ebb9@byu.net>
37343
37344         pipe2-safer: new module
37345         * modules/pipe2-safer: New file.
37346         * lib/unistd-safer.h (pipe2_safer): New prototype.
37347         * lib/unistd--.h (pipe2): New wrapper.
37348         * lib/pipe-safer.c (pipe2_safer): New function.
37349         * modules/pipe (Depends-on): Add pipe2-safer.
37350         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37351
37352         stdlib-safer: preserve cloexec flag for mkostemp[s]
37353         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37354         fd_safer_flag.
37355
37356         unistd-safer: allow preservation of cloexec status via flag
37357         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37358         prototypes.
37359         * lib/dup-safer.c (dup_safer_flag): New function.
37360         * lib/fd-safer.c (fd_safer_flag): Likewise.
37361         * modules/cloexec (configure.ac): Set witness.
37362
37363         test-dup2: enhance test
37364         * modules/dup2-tests (Depends-on): Add cloexec.
37365         * tests/test-dup2.c (main): Enhance test.
37366
37367         cloexec: add dup_cloexec
37368         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37369         header and comments.
37370         * lib/cloexec.c (set_cloexec_flag): Add comments.
37371         (dup_cloexec): New function, with mingw implementation borrowed
37372         from...
37373         * lib/w32spawn.h (dup_noinherit): ...here.
37374         * modules/execute (Depends-on): Add cloexec.
37375         * modules/pipe (Depends-on): Likewise.
37376         * modules/cloexec (Depends-on): Add dup2.
37377         * modules/cloexec-tests (Files): New file.
37378         * tests/test-cloexec.c: Likewise.
37379
37380         test-xalloc-die: fix test for mingw
37381         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37382         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37383         directory and .exe suffix off argv[0] output.
37384
37385         test-fseeko: fix test for mingw
37386         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37387         than undefining fseek, so test will pass on mingw.
37388
37389 2009-12-05  Bruno Haible  <bruno@clisp.org>
37390
37391         * lib/progname.h (set_program_name): Clarify specification.
37392         * lib/progname.c (set_program_name): Likewise.
37393         Reported by Jim Meyering.
37394
37395 2009-12-05  Jim Meyering  <meyering@redhat.com>
37396
37397         maint.mk: backslash-escape parens in default regexp
37398         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37399         backslash-escape the literal parentheses.
37400
37401         maint.mk: news-date-check: use grep -E
37402         * top/maint.mk (today): Define a Make variable, not a...
37403         (news-date-check): ...shell variable.
37404         (news-date-regexp): Use the Make variable.
37405         Use grep's -E option.  Change the failing diagnostic to mention
37406         the variable, $(news-date-regexp).
37407
37408 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37409
37410         maintainer-makefile: allow customization of NEWS entry format
37411         * top/maint.mk (news-date-regexp): New overridable variable.
37412         (news-date-check): Use it.
37413
37414 2009-12-04  Eric Blake  <ebb9@byu.net>
37415
37416         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37417         * lib/mgetgroups.h (xgetgroups): New prototype.
37418         * lib/mgetgroups.c (xgetgroups): New wrapper.
37419         (mgetgroups): Handle ENOSYS.
37420         * modules/mgetgroups (Depends-on): Add realloc.
37421         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37422
37423         mgetgroups: avoid argument promotion issues with -1
37424         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37425         for invalid gid_t.
37426         * tests/test-chown.h (getegid, test_chown): Likewise.
37427         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37428
37429 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37430
37431         exclude: Fix header file problems.
37432         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37433
37434 2009-12-01  Jim Meyering  <meyering@redhat.com>
37435
37436         fts: fts_open: do not let an empty string cause immediate failure
37437         This is required in support of GNU rm, for which the command
37438         "rm A '' B" must process and remove both A and B, in spite of
37439         the empty string argument.
37440         * lib/fts.c (fts_open): Do not let the presence of an empty string
37441         cause fts_open to fail immediately.  Most fts-using tools must be
37442         able to process all arguments, in order, and can be expected to
37443         diagnose such arguments themselves.
37444
37445 2009-11-30  Eric Blake  <ebb9@byu.net>
37446
37447         utimens: fix compilation error
37448         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37449         Declare variable at right scope.
37450
37451 2009-11-29  Jim Meyering  <meyering@redhat.com>
37452
37453         bootstrap: handle perl-5.11's changed --version output
37454         * build-aux/bootstrap (get_version): Handle perl separately,
37455         since perl-5.11's --version output is different.
37456
37457 2009-11-28  Jim Meyering  <meyering@redhat.com>
37458
37459         userspec: depend on the inttostr module, too
37460         * modules/userspec (Depends-on): Add inttostr.
37461
37462         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37463         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37464         number of MAXUID when it evaluates to (uid_t) -1.
37465         Likewise for group ID.  Reported by Matt McCutchen in
37466         <http://savannah.gnu.org/bugs/?28113>
37467
37468         userspec: reformat to use spaces, not TABs
37469         * lib/userspec.c: Expand TABs to spaces.
37470         Add Emacs' "indent-tabs-mode: nil" hint.
37471
37472 2009-11-27  Eric Blake  <ebb9@byu.net>
37473
37474         getopt-gnu: flush out another BSD bug
37475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37476         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37477         flush out BSD bug.
37478         * tests/test-getopt.h (test_getopt): End lists with NULL.
37479         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37480         (test_getopt_long_posix): Enhance test.
37481         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37482         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37483         getopt-gnu.
37484         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37485         Likewise.
37486
37487 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37488
37489         * modules/idpriv-droptemp-tests (Notice): Fix text.
37490
37491 2009-11-27  Jim Meyering  <meyering@redhat.com>
37492
37493         test-xalloc-die: avoid spurious failure due to libtool argv difference
37494         In a libtool-enabled project, this test would fail due to a difference
37495         in the emitted program name, e.g.,
37496         -test-xalloc-die: memory exhausted
37497         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37498         Use program to avoid that.
37499         * modules/xalloc-die-tests (Depends-on): Add progname.
37500         * tests/test-xalloc-die.c: Include progname.h".
37501         (program_name): Remove decl.
37502         (main): Call set_program_name.
37503         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37504
37505 2009-11-26  Richard Jones  <rjones@redhat.com>
37506
37507         w32sock: leave win32 error in place.
37508         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37509
37510 2009-11-26  Eric Blake  <ebb9@byu.net>
37511
37512         init.sh: suggest to use skip_ and fail_ functions in comments
37513         * tests/init.sh: Add a sentence.
37514
37515 2009-11-25  Bruno Haible  <bruno@clisp.org>
37516
37517         init.sh: add documentation in comments
37518         * tests/init.sh: Add some developer and user documentation.
37519
37520 2009-11-26  Jim Meyering  <meyering@redhat.com>
37521
37522         init.sh: accommodate even those who specify bogus srcdir manually
37523         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37524         configure-time tests to be sanitized, so that there is no need to
37525         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37526         (with no double quotes) suffices.  However, since tests may be
37527         invoked manually, and since you may explicitly set srcdir to the
37528         name of a directory containing spaces, do quote its uses here.
37529         * tests/test-pread.sh: Likewise.
37530         Suggested by Bruno Haible.
37531
37532         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37533         * tests/test-pread.sh: Write no data into the pipe, because
37534         test-pread actually reads none.  This avoids a diagnostic,
37535         "bash: echo: write error: Broken pipe", that arises in the unusual
37536         event something is ignoring SIGPIPE, and might be interpreted
37537         as some sort of failure.  Reported by Bruno Haible.
37538
37539 2009-11-25  Jim Meyering  <meyering@redhat.com>
37540
37541         test-pread: cover failure with ESPIPE and EINVAL
37542         * tests/test-pread.c (main): Test for failure, too.
37543         * tests/test-pread.sh: Invoke with stdin on a pipe.
37544         Suggested by Eric Blake.
37545
37546         pread: improvement and fix
37547         * modules/pread (Depends-on): Depend on lseek, for portability to
37548         e.g., mingw.  Suggested by Eric Blake.
37549         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37550
37551         unistd.in.h: correct declaration of pread
37552         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37553         Reported by Richard W.M. Jones.
37554
37555         test-pread.sh: distribute the test script
37556         * modules/pread-tests (Files): Include test-pread.sh.
37557
37558         test-pread.sh: clean up
37559         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37560         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37561         That is unnecessary, since it's always ".".
37562         Suggestion from Eric Blake.
37563
37564         test-pread.sh: make executable
37565         * tests/test-pread.sh: Set executable bit.
37566         Reported by Eric Blake.
37567
37568         correct typo in test-pread.sh
37569         * tests/test-pread.sh: Add #! line.
37570
37571         test pread
37572         * tests/test-pread.c: New file.
37573         * tests/test-pread.sh: Likewise.
37574         * modules/pread-tests: Likewise.
37575
37576         pread: new module
37577         * modules/pread: New file.
37578         * lib/unistd.in.h (pread): Define/declare.
37579         * lib/pread.c (pread): New file.
37580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37581         * modules/unistd (Makefile.am): Substitute witnesses.
37582         * doc/posix-functions/pread.texi (pread): Update.
37583         * MODULES.html.sh: Add pread.
37584
37585 2009-11-25  Jim Meyering  <meyering@redhat.com>
37586
37587         tests/init.sh: new file to be used via most *.sh tests
37588         * tests/init.sh: New file.
37589
37590 2009-11-25  Eric Blake  <ebb9@byu.net>
37591
37592         utimens: work around older Linux failure with symlinks
37593         * lib/utimens.c (lutimensat_works_really): New variable.
37594         (fdutimens, lutimens): Use it to manage kernels that support
37595         nanosecond times on files, but not on symlinks.
37596         Reported by OndÅ™ej Vašík.
37597
37598         utimes: fix configure grammar
37599         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37600
37601 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37602
37603         regex: Fix fastmap for multibyte character ranges.
37604         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37605         characters when a multibyte character range is included.
37606
37607 2009-11-22  Andy Wingo  <wingo@pobox.com>
37608
37609         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37610         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37611
37612 2009-11-24  Bruno Haible  <bruno@clisp.org>
37613
37614         doc: Most *_l functions exist in MacOS X 10.5.
37615         * doc/posix-functions/duplocale.texi: Update platforms list.
37616         * doc/posix-functions/freelocale.texi: Likewise.
37617         * doc/posix-functions/newlocale.texi: Likewise.
37618         * doc/posix-functions/uselocale.texi: Likewise.
37619         * doc/posix-functions/isalnum_l.texi: Likewise.
37620         * doc/posix-functions/isalpha_l.texi: Likewise.
37621         * doc/posix-functions/isblank_l.texi: Likewise.
37622         * doc/posix-functions/iscntrl_l.texi: Likewise.
37623         * doc/posix-functions/isdigit_l.texi: Likewise.
37624         * doc/posix-functions/isgraph_l.texi: Likewise.
37625         * doc/posix-functions/islower_l.texi: Likewise.
37626         * doc/posix-functions/isprint_l.texi: Likewise.
37627         * doc/posix-functions/ispunct_l.texi: Likewise.
37628         * doc/posix-functions/isspace_l.texi: Likewise.
37629         * doc/posix-functions/isupper_l.texi: Likewise.
37630         * doc/posix-functions/iswalnum_l.texi: Likewise.
37631         * doc/posix-functions/iswalpha_l.texi: Likewise.
37632         * doc/posix-functions/iswblank_l.texi: Likewise.
37633         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37634         * doc/posix-functions/iswctype_l.texi: Likewise.
37635         * doc/posix-functions/iswdigit_l.texi: Likewise.
37636         * doc/posix-functions/iswgraph_l.texi: Likewise.
37637         * doc/posix-functions/iswlower_l.texi: Likewise.
37638         * doc/posix-functions/iswprint_l.texi: Likewise.
37639         * doc/posix-functions/iswpunct_l.texi: Likewise.
37640         * doc/posix-functions/iswspace_l.texi: Likewise.
37641         * doc/posix-functions/iswupper_l.texi: Likewise.
37642         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37643         * doc/posix-functions/isxdigit_l.texi: Likewise.
37644         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37645         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37646         * doc/posix-functions/strcoll_l.texi: Likewise.
37647         * doc/posix-functions/strfmon_l.texi: Likewise.
37648         * doc/posix-functions/strftime_l.texi: Likewise.
37649         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37650         * doc/posix-functions/strxfrm_l.texi: Likewise.
37651         * doc/posix-functions/tolower_l.texi: Likewise.
37652         * doc/posix-functions/toupper_l.texi: Likewise.
37653         * doc/posix-functions/towctrans_l.texi: Likewise.
37654         * doc/posix-functions/towlower_l.texi: Likewise.
37655         * doc/posix-functions/towupper_l.texi: Likewise.
37656         * doc/posix-functions/wcscoll_l.texi: Likewise.
37657         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37658         * doc/posix-functions/wctrans_l.texi: Likewise.
37659         * doc/posix-functions/wctype_l.texi: Likewise.
37660         * doc/glibc-functions/strptime_l.texi: Likewise.
37661         * doc/glibc-functions/strtod_l.texi: Likewise.
37662         * doc/glibc-functions/strtof_l.texi: Likewise.
37663         * doc/glibc-functions/strtol_l.texi: Likewise.
37664         * doc/glibc-functions/strtold_l.texi: Likewise.
37665         * doc/glibc-functions/strtoll_l.texi: Likewise.
37666         * doc/glibc-functions/strtoul_l.texi: Likewise.
37667         * doc/glibc-functions/strtoull_l.texi: Likewise.
37668         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37669         * doc/glibc-functions/wcstod_l.texi: Likewise.
37670         * doc/glibc-functions/wcstof_l.texi: Likewise.
37671         * doc/glibc-functions/wcstol_l.texi: Likewise.
37672         * doc/glibc-functions/wcstold_l.texi: Likewise.
37673         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37674         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37675         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37676
37677 2009-11-24  Bruno Haible  <bruno@clisp.org>
37678
37679         duplocale: Fix logic bug.
37680         * lib/duplocale.c: Don't include <langinfo.h>.
37681         (_NL_LOCALE_NAME): Remove macro.
37682         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37683         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37684
37685 2009-11-23  Jim Meyering  <meyering@redhat.com>
37686
37687         test-update-copyright: don't hard-code /usr/bin/perl
37688         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37689         perl to print the current year.  Gilles Espinasse reported that
37690         the replaced use of perl was hard-coded as /usr/bin/perl.
37691
37692 2009-11-23  Bruno Haible  <bruno@clisp.org>
37693
37694         duplocale: Add support for glibc 2.3.x.
37695         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37696
37697 2009-11-22  Bruno Haible  <bruno@clisp.org>
37698
37699         vasnprintf: Tiny optimization.
37700         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37701         MacOS X.
37702
37703 2009-11-22  Bruno Haible  <bruno@clisp.org>
37704
37705         Tests for module 'duplocale'.
37706         * modules/duplocale-tests: New file.
37707         * tests/test-duplocale.c: New file.
37708
37709         New module 'duplocale'.
37710         * m4/duplocale.m4: New file.
37711         * lib/locale.in.h (duplocale): New declaration.
37712         * lib/duplocale.c: New file.
37713         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37714         gl_LOCALE_H_DEFAULTS): New macros.
37715         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37716         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37717         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37718         REPLACE_DUPLOCALE.
37719         * modules/duplocale: New file.
37720         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37721
37722 2009-11-22  Bruno Haible  <bruno@clisp.org>
37723
37724         * modules/locale-tests (configure.ac): Test for newlocale function.
37725         * tests/test-locale.c: When the system has extended locale functions,
37726         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37727
37728         locale: Make locale_t available when possible.
37729         * lib/locale.in.h: Include <xlocale.h> when it exists.
37730         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37731         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37732         * modules/locale (Depends-on): Add extensions.
37733         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37734         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37735
37736 2009-11-22  Bruno Haible  <bruno@clisp.org>
37737
37738         Add comments.
37739         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37740         invocation.
37741         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37742         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37743         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37744
37745 2009-11-22  Bruno Haible  <bruno@clisp.org>
37746
37747         error: account for the possibility of freopen (stdout).
37748         * lib/error.c: Include <unistd.h>.
37749         (flush_stdout): New function, extracted from error and error_at_line.
37750         Determine stdout's fd dynamically.
37751         (error, error_at_line): Invoke flush_stdout.
37752         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37753         * modules/error (Depends-on): Add unistd.
37754
37755 2009-11-22  Bruno Haible  <bruno@clisp.org>
37756
37757         diffseq: Add comment.
37758         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37759
37760 2009-11-22  Jim Meyering  <meyering@redhat.com>
37761
37762         c-stack: avoid defining an unused static function
37763         * lib/c-stack.c (find_stack_direction): Do not define this function
37764         when it will not be used.
37765
37766         diffseq: avoid spurious gcc warnings
37767         * lib/diffseq.h (IF_LINT2): Define.
37768         (compareseq): Use it to initialize two members of "part".
37769         This avoids two used-uninitialized warnings.
37770
37771 2009-11-21  Jim Meyering  <meyering@redhat.com>
37772
37773         c-stack: avoid "ignoring return value of `write'" warning
37774         * lib/c-stack.c: Include "ignore-value.h".
37775         (die): Explicitly ignore each write return value.
37776         * modules/c-stack (Depends-on): Add ignore-value.
37777
37778 2009-11-21  Bruno Haible  <bruno@clisp.org>
37779
37780         diffseq: reduce scope of variable 'best'.
37781         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37782         variable, earlier used for two different purposes.
37783
37784 2009-11-21  Jim Meyering  <meyering@redhat.com>
37785
37786         diffseq: remove useless assignment to "best"
37787         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37788         assignment.  At that point "best" is already guaranteed to be zero.
37789
37790 2009-11-20  Eric Blake  <ebb9@byu.net>
37791
37792         build: mention ftp redirector in release announcements
37793         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37794         values that used to come from cfg.mk; mention FTP redirect URL.
37795         * build-aux/announce-gen: Mention the mirror list.
37796         Suggested by Karl Berry.
37797
37798         nanosleep: improve port to mingw
37799         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37800         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37801         LIB_NANOSLEEP, but only when needed.
37802         * modules/select (Link): Document LIBSOCKET.
37803         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37804         enough.
37805
37806         nanosleep: work around cygwin bug
37807         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37808         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37809         bug.
37810         (getnow): Delete, not needed.
37811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37812         LIB_CLOCK_GETTIME.
37813         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37814         clock-time, gettime.
37815         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37816         bug.
37817         * modules/nanosleep-tests: New test.
37818         * tests/test-nanosleep.c: New file.
37819
37820         sleep: work around cygwin bug
37821         * lib/sleep.c (rpl_sleep): Work around the bug.
37822         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37823         (gl_PREREQ_SLEEP): Delete unused macro.
37824         * modules/sleep (Depends-on): Add verify.
37825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37826         * modules/unistd (Makefile.am): Substitute witness.
37827         * lib/unistd.in.h (sleep): Update prototype.
37828         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37829         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37830         * modules/sleep-tests (Depends-on): Check for alarm.
37831
37832 2009-11-20  Jim Meyering  <meyering@redhat.com>
37833
37834         maint.mk: improve sc_prohibit_magic_number_exit
37835         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37836         so it does not match uses like System.exit(1).
37837         Add comments showing how to correct all offenders.
37838
37839 2009-11-19  Eric Blake  <ebb9@byu.net>
37840
37841         xalloc-die-tests: add missing library
37842         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37843
37844         test-xvasprintf: silence compiler warnings
37845         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37846         empty string from gcc.
37847
37848 2009-11-19  Jim Meyering  <meyering@redhat.com>
37849
37850         xfreopen: new module, from coreutils
37851         * modules/xfreopen: New module.
37852         * lib/xfreopen.c: New file.
37853         * lib/xfreopen.h: New file.
37854         * MODULES.html.sh (File stream based Input/Output"): Add it.
37855
37856 2009-11-19  Eric Blake  <ebb9@byu.net>
37857
37858         manywarnings: depend on warnings
37859         * modules/manywarnings (Depends-on): Add warnings.
37860
37861         build: avoid compiler warnings
37862         * lib/select.c (rpl_select): Delete unused variable.
37863         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37864
37865 2009-11-18  Eric Blake  <ebb9@byu.net>
37866
37867         tests: avoid false negative with --with-packager
37868         * tests/test-version-etc.sh: Discard packager information.
37869         * tests/test-argp-version-etc-1.sh: Likewise.
37870         Reported by Mike Frysinger.
37871
37872         utimens: fix regression on Solaris
37873         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37874         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37875         can only change fd timestamps via futimesat.  Instead, use an
37876         additional witness macro to avoid BSD bug.
37877         Reported by Jim Meyering.
37878
37879 2009-11-17  Eric Blake  <ebb9@byu.net>
37880
37881         usleep: use it to simplify tests
37882         * modules/stat-time-tests (Depends-on): Add usleep.
37883         (configure.ac): Drop usleep check.
37884         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37885         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37886         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37887         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37888         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37889         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37890         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37891         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37892         Likewise.
37893         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37894         * tests/test-lchown.h (nap): Likewise.
37895         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37896         * tests/test-stat-time.c (nap): Likewise.
37897         * tests/test-utimens-common.h (nap): Update comments.
37898
37899         usleep: new module
37900         * modules/usleep: New file.
37901         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37902         * lib/usleep.c (usleep): Likewise.
37903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37904         * modules/unistd (Makefile.am): Substitute witnesses.
37905         * lib/unistd.in.h (usleep): Add declaration.
37906         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37907         * MODULES.html.sh (Date and time): Likewise.
37908         * modules/usleep-tests (Depends-on): New test.
37909         * tests/test-usleep.c: New file.
37910
37911         chown: work around OpenBSD bug
37912         * lib/chown.c (rpl_chown): Work around the bug.
37913         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37914         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37915         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37916         * modules/chown (Depends-on): Add stdbool.
37917         * modules/lchown (Depends-on): Likewise.
37918         * doc/posix-functions/chown.texi (chown): Document the bug.
37919         * doc/posix-functions/lchown.texi (lchown): Likewise.
37920         * tests/test-lchown.h (test_chown): Relax test.
37921
37922         mkstemp: avoid conflict with C++ keyword template
37923         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37924         * lib/mkostemp.c (mkostemp): Likewise.
37925         * lib/mkostemps.c (mkostemps): Likewise.
37926         * lib/mkstemp.c (mkstemp): Likewise.
37927         * lib/mkstemps.c (mkstemps): Likewise.
37928
37929         xalloc-die-tests: optimize
37930         * tests/test-xalloc-die.sh: Reduce number of processes.
37931
37932 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37933
37934         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
37935         patch from ludo@gnu.org (Ludovic Courtès).
37936
37937 2009-11-17  Jim Meyering  <meyering@redhat.com>
37938
37939         version-etc: use proper license string
37940         * modules/version-etc (License): Use LGPL, not LGPLv3+.
37941         * modules/version-etc-fsf: Likewise.
37942
37943 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37944
37945         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
37946         printed to stdout.  Deal with EOL differences.
37947
37948 2009-11-17  Eric Blake  <ebb9@byu.net>
37949
37950         unsetenv: work around Solaris bug
37951         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
37952         * lib/unsetenv.c (rpl_unsetenv): Work around it.
37953         Reported by Jim Meyering.
37954
37955         vasnprintf: avoid compiler warnings
37956         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
37957         variables.
37958         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
37959
37960 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37961
37962         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
37963         settings since xalloc-die is no longer the self test,
37964         xalloc-die.sh is.
37965
37966 2009-11-17  Jim Meyering  <meyering@redhat.com>
37967
37968         test-xalloc-die.sh: make the code agree with the commit log
37969         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
37970         at the end, just in case you happen to have a test-xalloc-die
37971         program in some other PATH directory.
37972
37973         test-xalloc-die.sh: fix a portability bug
37974         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
37975         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
37976         Otherwise, argv[0] (as often seen in diagnostics) would be too
37977         system-dependent, sometimes with, and sometimes without the leading "./".
37978
37979         version-etc-fsf: relax license to LGPLv3+
37980         * modules/version-etc-fsf (License): Relax license.
37981
37982 2009-11-16  Eric Blake  <ebb9@byu.net>
37983
37984         xalloc-die-tests: avoid printing null pointer
37985         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
37986         shell script.
37987         * tests/test-xalloc-die.c (program_name): Declare.
37988         * tests/test-xalloc-die.sh (tmpfiles): New file.
37989
37990         setenv, unsetenv: work around various bugs
37991         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
37992         (setenv) [HAVE_SETENV]: Work around bugs.
37993         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
37994         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
37995         for bugs.
37996         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
37997         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
37998         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
37999         * modules/stdlib (Makefile.am): Update substitutions.
38000         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38001         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38002         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38003         * modules/setenv-tests: New test.
38004         * modules/unsetenv-tests: Likewise.
38005         * tests/test-setenv.c: New file.
38006         * tests/test-unsetenv.c: Likewise.
38007
38008 2009-11-16  Jim Meyering  <meyering@redhat.com>
38009
38010         version-etc: relax license to LGPLv3+
38011         * modules/version-etc (License): Relax license.
38012
38013         better AC_REQUIRE expanded-before-required-warning avoidance
38014         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38015         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38016         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38017         which is no longer needed.
38018
38019 2009-11-16  Eric Blake  <ebb9@byu.net>
38020
38021         test-freading: clean up temporary file
38022         * tests/test-freading.c (main): Remove file on success, and use
38023         ASSERT more liberally.
38024         Reported by Jim Meyering.
38025
38026 2009-11-16  Jim Meyering  <meyering@redhat.com>
38027
38028         avoid new AC_REQUIRE expanded-before-required warnings
38029         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38030         merely using it.
38031         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38032         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38033
38034 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38035
38036         * tests/test-xalloc-die.c: New file.
38037         * modules/xalloc-die-tests: New file.
38038         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38039         XFAIL_TESTS so it can be appended by modules.
38040
38041 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38042
38043         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38044         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38045
38046 2009-11-14  Eric Blake  <ebb9@byu.net>
38047
38048         fnmatch: avoid compiler warning
38049         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38050         to silence compiler warning about mismatch signedness in ?:.
38051         Reported by Robert Millan.
38052
38053         intprops: add double-inclusion guard
38054         * lib/intprops.h: Allow idempotent includes.
38055         Suggested by Bruce Korb.
38056
38057         openat: detect Solaris fchownat bug
38058         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38059         penalizing glibc chownat when only lchownat is broken.
38060         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38061         trailing slash bugs.
38062         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38063         * modules/openat-tests (Files): Include more files.
38064         (Depends-on): Add mgetgroups, sleep, stat-time.
38065         (configure.ac): Add additional checks.
38066         (Makefile.am): Build new test.
38067         * tests/test-fchownat.c: New file.
38068
38069         lchown: detect Solaris and FreeBSD bug
38070         * lib/lchown.c (rpl_lchown): Work around bug.
38071         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38073         * modules/unistd (Makefile.am): Populate it.
38074         * lib/unistd.in.h (lchown): Update declaration.
38075         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38076         * modules/lchown-tests: New file.
38077         * tests/test-lchown.h (test_lchown): Likewise.
38078         * tests/test-lchown.c (main): Likewise.
38079
38080         chown: detect Solaris and FreeBSD bug
38081         * lib/chown.c (rpl_chown): Work around bug.
38082         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38083         (gl_PREREQ_CHOWN): Delete.
38084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38085         * modules/unistd (Makefile.am): Populate it.
38086         * lib/unistd.in.h (chown): Update declaration.
38087         * lib/lchown.c (chown): Update client.
38088         * modules/lchown (Depends-on): Add lstat.
38089         * doc/posix-functions/chown.texi (chown): Document the bug.
38090         * doc/posix-functions/getgroups.texi (getgroups): Document
38091         getgroups pitfall.
38092         * modules/chown-tests: New file.
38093         * tests/test-chown.h (test_chown): Likewise.
38094         * tests/test-chown.c (main): Likewise.
38095
38096 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38097
38098         gnulib-tool: correctly detect absence of m4 directories
38099         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38100
38101 2009-11-14  Jim Meyering  <meyering@redhat.com>
38102
38103         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38104         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38105
38106 2009-11-14  John W. Eaton  <jwe@gnu.org>
38107
38108         strftime.h: wrap funtion declaration in extern "C" block
38109         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38110
38111 2009-11-13  Eric Blake  <ebb9@byu.net>
38112
38113         getgroups: avoid compiler warning
38114         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38115
38116         getgroups: work around FreeBSD bug
38117         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38118         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38119         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38120         * tests/test-getgroups.c (main): Fix buffer overrun.
38121
38122         getgroups: avoid compilation failure
38123         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38124         * modules/getgroups (Depends-on): Add stdint.
38125
38126 2009-11-13  Jim Meyering  <meyering@redhat.com>
38127
38128         test-getgroups: avoid compilation failure
38129         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38130
38131 2009-11-13  Eric Blake  <ebb9@byu.net>
38132
38133         mgetgroups: new module, taken from coreutils
38134         * modules/mgetgroups: New file.
38135         * lib/mgetgroups.h: Likewise.
38136         * lib/mgetgroups.c (mgetgroups): Likewise.
38137         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38138         * MODULES.html.sh (Users and groups): Mention it.
38139
38140         getgroups: don't expose GETGROUPS_T to user
38141         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38142         an element at a time if GETGROUPS_T is wrong size.
38143         * lib/getugroups.h (getugroups): Change signature.
38144         * lib/unistd.in.h (getgroups): Likewise.
38145         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38146         signature needs fixing.
38147         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38148         AC_TYPE_GETGROUPS.
38149         * modules/group-member (Depends-on): Add getgroups.
38150         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38151         (group_member): Rely on getgroups replacement.
38152         * lib/getugroups.c (getugroups): Use gid_t.
38153         * tests/test-getgroups.c (main): Likewise.
38154         * NEWS: Mention the signature change.
38155         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38156         problem with signature.
38157         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38158         GETGROUPS_T is still useful for setgroups.
38159
38160         getgroups, getugroups: provide stubs for mingw
38161         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38162         * lib/getugroups.c (getugroups): Likewise.
38163         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38164         function.  Modernize replacement scheme.
38165         (gl_PREREQ_GETGROUPS): Delete.
38166         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38167         * modules/getgroups (configure.ac): Declare witness.
38168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38169         * modules/unistd (Depends-on): Substitute witness.
38170         * lib/unistd.in.h (getgroups): Declare replacement.
38171
38172         getgroups: avoid calling exit
38173         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38174         drop xalloc.
38175         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38176         dependencies.
38177         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38178         exiting, in the rare case of malloc failure.
38179
38180         getgroups: fix logic error
38181         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38182         has more than 20 groups.
38183         * modules/getgroups-tests: New test.
38184         * tests/test-getgroups.c: New file.
38185
38186 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38187
38188         * tests/test-base64.c: Improve.
38189
38190 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38191
38192         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38193         Blake <ebb9@byu.net>.
38194
38195 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38196
38197         * tests/test-xvasprintf.c: Add %s%s related checks.
38198
38199 2009-11-12  Eric Blake  <ebb9@byu.net>
38200
38201         version-etc: match standards.texi style
38202         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38203         and use <> only for URLs.
38204
38205 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38206
38207         fts: do not fail on a submount during traversal
38208         * lib/fts.c (fts_build): Read the stat info again after opening
38209         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38210         Original report at http://bugzilla.redhat.com/501848.
38211
38212 2009-11-12  Jim Meyering  <meyering@redhat.com>
38213
38214         bootstrap: sync from coreutils
38215         * build-aux/bootstrap (bootstrap_epilogue): New function.
38216         Use git_modules_config in one more place.  This make bootstrap's
38217         --gnulib-srcdir option more useful for testing.
38218
38219         bootstrap: generalize autoheader check
38220         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38221         AC_CONFIG_HEADERS.
38222
38223 2009-11-11  Eric Blake  <ebb9@byu.net>
38224
38225         mkfifoat: use new modules for Solaris and BSD bugs
38226         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38227         * lib/mkfifoat.c (mknodat): Split...
38228         * lib/mknodat.c (mknodat): ...into new file.
38229         * modules/mkfifoat (Files): Ship new file.
38230         (Depends-on): Add mkfifo, mknod.
38231         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38232         (Depends-on): Add symlink.
38233         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38234         redundant with test_mkfifo.h.
38235         (do_mkfifoat, do_mknodat): New helpers.
38236
38237         mknod: new module
38238         * modules/mknod: New file.
38239         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38240         * lib/mknod.c (mknod): Likewise.
38241         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38242         defaults.
38243         * modules/sys_stat (Makefile.am): Substitute them.
38244         * lib/sys_stat.in.h (mknod): Declare replacement.
38245         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38246         Document it.
38247         * doc/posix-functions/mknod.texi (mknod): Likewise.
38248         * modules/mknod-tests: New test.
38249         * tests/test-mknod.c: Likewise.
38250
38251         mkfifo: new module
38252         * modules/mkfifo: New file.
38253         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38254         * lib/mkfifo.c (mkfifo): Likewise.
38255         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38256         defaults.
38257         * modules/sys_stat (Makefile.am): Substitute them.
38258         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38259         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38260         Document it.
38261         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38262         * modules/mkfifo-tests: New test.
38263         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38264         from test-mkfifoat.c.
38265         * tests/test-mkfifo.c: New file.
38266
38267         readlink: detect FreeBSD bug
38268         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38269         slash on symlink.
38270         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38271         * tests/test-readlink.h (test_readlink): Enhance test.
38272
38273         symlink: detect FreeBSD bug
38274         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38275         slash on symlink.
38276         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38277         * tests/test-symlink.h (test_symlink): Enhance test.
38278
38279 2009-11-10  Eric Blake  <ebb9@byu.net>
38280
38281         link: detect FreeBSD bug
38282         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38283         symlink.
38284         * doc/posix-functions/link.texi (link): Document the bug.
38285         * tests/test-link.h (test_link): Enhance test.
38286         * tests/test-linkat.c (main): Update caller.
38287
38288         unlink, remove: detect FreeBSD bug
38289         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38290         slash on symlink.
38291         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38292         * doc/posix-functions/remove.texi (remove): Likewise.
38293         * tests/test-unlink.h (test_unlink): Enhance test.
38294         * tests/test-remove.c (main): Likewise.
38295
38296 2009-11-09  Eric Blake  <ebb9@byu.net>
38297
38298         rename: detect FreeBSD bug
38299         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38300         slash on symlink.
38301         * modules/renameat-tests (Depends-on): Add filenamecat.
38302         * tests/test-rename.h (test_rename): Allow one more errno.
38303         * tests/test-renameat.c (main): Likewise.
38304         * doc/posix-functions/rename.texi (rename): Document the bug.
38305
38306         open: detect FreeBSD bug
38307         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38308         symlink.
38309         * doc/posix-functions/open.texi (open): Document the bug.
38310         * doc/posix-functions/utimes.texi (utimes): Likewise.
38311         * tests/test-open.h (test_open): Add parameters, and test symlink
38312         handling.
38313         * tests/test-open.c (main): Adjust caller.
38314         * tests/test-fcntl-safer.c (main): Likewise.
38315         * modules/open-tests (Depends-on): Add stdbool, symlink.
38316         * modules/fcntl-safer-tests (Depends-on): Likewise.
38317         * tests/test-openat.c (main): Add test-open tests.
38318
38319         stat: detect FreeBSD bug
38320         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38321         symlink.
38322         * doc/posix-functions/stat.texi (stat): Document the bug.
38323         * tests/test-stat.h (test_stat_func): Add argument.
38324         * tests/test-stat.c (main): Adjust caller.
38325         * tests/test-fstatat.c (main): Likewise.
38326         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38327         Reported by Jim Meyering.
38328
38329 2009-11-09  James Youngman  <jay@gnu.org>
38330
38331         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38332         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38333
38334 2009-11-08  Jim Meyering  <meyering@redhat.com>
38335
38336         utimens: remove invalid futimesat call
38337         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38338         It used the file descriptor of the target file as the DIR_FD
38339         parameter and NULL as the file name.  That caused failure with
38340         errno == EFAULT on FreeBSD-8.0-rc2
38341
38342 2009-11-07  Eric Blake  <ebb9@byu.net>
38343
38344         fflush, freadseek: use fseeko, not fseek
38345         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38346         (clear_ungetc_buffer): Avoid potential problems on large files.
38347         * lib/freadseek.c (freadseek): Likewise.
38348         * modules/freadseek (Depends-on): Add fseeko.
38349         * modules/fseek (configure.ac): Set a witness.
38350         * tests/test-fflush.c (main): Use fseeko.
38351         * tests/test-fpurge.c (fseek): Disable link warning.
38352         * tests/test-freadable.c (fseek): Likewise.
38353         * tests/test-freading.c (fseek): Likewise.
38354         * tests/test-fseeko.c (fseek): Likewise.
38355         * tests/test-ftell.c (fseek): Likewise.
38356         * tests/test-ftello.c (fseek): Likewise.
38357         * tests/test-fwritable.c (fseek): Likewise.
38358         * tests/test-fwriting.c (fseek): Likewise.
38359
38360 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38361
38362         * modules/memchr (Depends-on): Drop getpagesize dependency.
38363
38364 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38365
38366         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38367         Reported by Ludovic Courtès.
38368         * build-aux/pmccabe2html: Improve example usage.
38369         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38370
38371 2009-11-06  Jim Meyering  <meyering@redhat.com>
38372
38373         do-release-commit-and-tag: New module.
38374         Automate the release-commit and tag process.
38375         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38376         * modules/do-release-commit-and-tag: New file.
38377         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38378
38379 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38380
38381         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38382         because test-select.c uses inet_pton.
38383
38384 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38385
38386         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38387         GETADDRINFO_LIB.  Bump serial number.
38388         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38389         Suggested by Eric Blake <ebb9@byu.net>.
38390
38391 2009-11-05  Eric Blake  <ebb9@byu.net>
38392
38393         strtod: detect darwin bug
38394         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38395         Reported by Leo Davis.
38396
38397         freopen-safer: new module
38398         * modules/freopen-safer: New module.
38399         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38400         * lib/freopen-safer.c (freopen_safer): New file.
38401         * lib/stdio-safer.h (freopen_safer): New declaration.
38402         * lib/stdio--.h (freopen): New override.
38403         * MODULES.html.sh (File stream based Input/Output): Mention it.
38404         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38405         freopen-safer module.
38406         * doc/posix-functions/stderr.texi (stderr): Likewise.
38407         * doc/posix-functions/stdin.texi (stdin): Likewise.
38408         * doc/posix-functions/stdout.texi (stdout): Likewise.
38409         * modules/freopen-safer-tests: New test.
38410         * tests/test-reopen-safer.c: New file.
38411
38412 2009-11-05  Jim Meyering  <meyering@redhat.com>
38413
38414         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38415         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38416
38417 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38418
38419         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38420
38421 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38422
38423         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38424
38425 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38426
38427         Fix link error.
38428         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38429         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38430
38431 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38432
38433         * tests/test-func.c: Also test value of __func__.
38434
38435 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38436
38437         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38438         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38439
38440 2009-11-05  Bruno Haible  <bruno@clisp.org>
38441
38442         Fix link error.
38443         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38444         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38445         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38446
38447 2009-11-05  Bruno Haible  <bruno@clisp.org>
38448
38449         Tests for module 'inet_pton'.
38450         * modules/inet_pton-tests: New file.
38451         * tests/test-inet_pton.c: New file.
38452
38453 2009-11-05  Bruno Haible  <bruno@clisp.org>
38454
38455         Tests for module 'inet_ntop'.
38456         * modules/inet_ntop-tests: New file.
38457         * tests/test-inet_ntop.c: New file.
38458
38459 2009-11-04  Eric Blake  <ebb9@byu.net>
38460
38461         stdlib-safer: wrap all mkstemp variants
38462         * modules/mkostemp (configure.ac): Set witness.
38463         * modules/mkostemps (configure.ac): Likewise.
38464         * modules/mkstemps (configure.ac): Likewise.
38465         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38466         (mkstemps_safer): Wrap more functions.
38467         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38468         wrapping.
38469         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38470         (mkstemps_safer): Implement the wrappers.
38471
38472         mkstemps, mkostemps: new modules
38473         * modules/mkostemps: New module.
38474         * modules/mkstemps: Likewise.
38475         * lib/mkostemps.c (mkostemps): New file.
38476         * lib/mkstemps.c (mkstemps): Likewise.
38477         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38478         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38480         * modules/stdlib (Makefile.am): Substitute them.
38481         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38482         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38483         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38484         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38485         * MODULES.html.sh (File system functions): Mention them.
38486
38487         tempname: resync from glibc
38488         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38489         same values for __GT_FILE as glibc.  Abort even when assertions
38490         are disabled.
38491         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38492         match its value otherwise.  Allow idempotent inclusion.
38493         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38494         * lib/mkostemp.c (mkostemp): Likewise.
38495         * lib/mkstemp.c (mkstemp): Likewise.
38496         * lib/tmpfile.c (tmpfile): Likewise.
38497         * NEWS: Document this.
38498
38499         utimens: fix use of futimens on older Linux
38500         * lib/utimens.c (fdutimens): Use updated, rather than original,
38501         timespec to avoid bug in older Linux kernel.
38502         Reported by Simon Josefsson.
38503
38504 2009-11-04  Bruno Haible  <bruno@clisp.org>
38505
38506         Make num_processors more flexible and consistent.
38507         * lib/nproc.h (enum nproc_query): New type.
38508         (num_processors): Add a 'query' argument.
38509         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38510         (num_processors): Add a 'query' argument. Test the value of the
38511         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38512         mingw, count the number of CPUs available for the current process.
38513         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38514         Check for sched_getaffinity and sched_getaffinity_np.
38515         * modules/nproc (Depends-on): Add c-ctype, extensions.
38516         * NEWS: Mention the change.
38517
38518 2009-11-03  Bruno Haible  <bruno@clisp.org>
38519
38520         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38521
38522 2009-11-03  Jim Meyering  <meyering@redhat.com>
38523
38524         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38525         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38526         if it is defined.
38527
38528 2009-11-02  Eric Blake  <ebb9@byu.net>
38529
38530         mktime, timegm: share common declaration
38531         * lib/mktime-internal.h: New file.
38532         * lib/mktime.c: Use it rather than open-coding a declaration.
38533         * lib/timegm.c: Likewise.
38534         * modules/mktime (Files): Ship it.
38535         * modules/timegm (Files): Likewise.
38536         Suggested by Bruno Haible.
38537
38538         test-update-copyright: update test to match script changes
38539         * tests/test-update-copyright.sh: Avoid hard-coding perl
38540         location.  Don't update *.bak created by earlier runs.
38541
38542 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38543             Simon Josefsson  <simon@josefsson.org>
38544             Bruno Haible  <bruno@clisp.org>
38545
38546         Fix link error on Solaris 8.
38547         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38548         also in libnsl. Define also INET_PTON_LIB.
38549         * modules/inet_pton (Link): New section.
38550
38551 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38552             Bruno Haible  <bruno@clisp.org>
38553
38554         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38555         * modules/inet_ntop (Link): New section.
38556         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38557
38558 2009-11-02  Eric Blake  <ebb9@byu.net>
38559
38560         maint: avoid compiler warnings in m4 macros
38561         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38562         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38563
38564 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38565
38566         * m4/pmccabe2html.m4: Remove file.
38567         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38568         function.  Change maintainer.
38569         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38570         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38571         Courtès).
38572
38573 2009-10-31  Eric Blake  <ebb9@byu.net>
38574
38575         fseeko: fix m4 regression
38576         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38577         regression from 2009-10-27.
38578         Reported by Ralf Wildenhues.
38579
38580 2009-10-31  Jim Meyering  <meyering@redhat.com>
38581
38582         inttostr: aesthetics and improved (compile-time) safety
38583         Define inttype_is_signed rather than inttype_is_unsigned,
38584         since the sole use is via "#if inttype_is_signed".
38585         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38586         inttype_is_unsigned.
38587         * lib/offtostr.c (inttype_is_signed): Likewise.
38588         * lib/uinttostr.c (inttype_is_signed): Likewise.
38589         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38590         * lib/inttostr.c (inttostr): Use verify to cross-check the
38591         inttype_is_signed value and the signedness of the actual type.
38592         * modules/inttostr (Depends-on): Add verify.
38593
38594 2009-10-30  Eric Blake  <ebb9@byu.net>
38595
38596         build: avoid compiler warnings
38597         * lib/fchmodat.c (lchmod): Mark unused variables.
38598         * lib/getopt.c (_getopt_initialize): Likewise.
38599         * lib/mktime.c (__mktime_internal): Provide prototype.
38600         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38601         older gcc that do not understand #pragma GCC diagnostic.
38602         * lib/uinttostr.c (inttype_is_unsigned): Define.
38603         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38604
38605 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38606
38607         stat: fix compilation on AIX
38608         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38609         only see struct stat64.
38610
38611 2009-10-30  Eric Blake  <ebb9@byu.net>
38612
38613         exclude: make more robust
38614         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38615         rather than masking a coding bug.
38616         Suggested by Bruno Haible.
38617
38618 2009-10-30  Jim Meyering  <meyering@redhat.com>
38619
38620         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38621         Rather than putting #!/usr/bin/perl on the first line,
38622         start with a variant of what's recommended by "man perlrun" that
38623         invokes the first "perl" program from your shell's search path.
38624         * build-aux/gitlog-to-changelog: Replace #!... as above.
38625         Add a "Local Variables" perl mode setting.
38626         Prompted by a patch from Ludovic Courtès.
38627         Improved by Eric Blake.
38628         * build-aux/useless-if-before-free: Likewise.
38629         * build-aux/announce-gen: Likewise.
38630         * build-aux/update-copyright: Likewise.
38631
38632 2009-10-29  Eric Blake  <ebb9@byu.net>
38633
38634         filenamecat-lgpl: adjust clients
38635         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38636         filenamecat.
38637         * modules/renameat (Depends-on): Likewise.
38638
38639         filenamecat: split into filenamecat-lgpl
38640         * modules/filenamecat-lgpl: New module.
38641         * modules/filenamecat (Files): Move library-safe files into
38642         filenamecat-lgpl.
38643         (Depends-on): Add filenamecat-lgpl.
38644         (configure.ac): Declare witness.
38645         * lib/filenamecat.h (file_name_concat): Only declare when using
38646         GPL module.
38647         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38648         Move...
38649         * lib/filenamecat-lgpl.c: ...into new file.
38650         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38651         (gl_FILE_NAME_CONCAT): Use it.
38652         * MODULES.html.sh (File system functions): Mention new module.
38653
38654         argp: avoid memory leak
38655         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38656         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38657         base_name, since the latter malloc()s and can call exit().
38658         Leak introduced 2006-07-03.
38659
38660         dirname-lgpl: adjust clients that don't need full dirname
38661         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38662         * modules/filenamecat (Depends-on): Likewise.
38663         * modules/linkat (Depends-on): Likewise.
38664         * modules/mkancesdirs (Depends-on): Likewise.
38665         * modules/mkdir (Depends-on): Likewise.
38666         * modules/openat (Depends-on): Likewise.
38667         * modules/savewd (Depends-on): Likewise.
38668         * modules/rename (Depends-on): Likewise.
38669         (License): Relax license.
38670         * modules/mkdir-tests (Depends-on): Drop progname.
38671         (Makefile.am): Delete unneeded LDADD.
38672         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38673
38674         dirname: split into dirname-lgpl
38675         * modules/dirname-lgpl: New module.
38676         * modules/dirname (Files): Move library-safe files into
38677         dirname-lgpl.
38678         (Depends-on): Add dirname-lgpl.
38679         (configure.ac): Declare witness.
38680         * modules/double-slash-root (License): Relax license.
38681         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38682         module.
38683         * lib/dirname.c (dir_len, mdir_name): Move...
38684         * lib/dirname-lgpl.c: ...into new file.
38685         * lib/basename.c (last_component, base_len): Move...
38686         * lib/basename-lgpl.c: ...into new file.
38687         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38688         (gl_DIRNAME): Use it.
38689         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38690         Mention new module.
38691         * modules/dirname-tests (Depends-on): Add progname.
38692         * tests/test-dirname.c (program_name): Delete.
38693
38694         mkdir: make safe for libraries
38695         * modules/mkdir (Depends-on): Drop xalloc.
38696         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38697         exit.
38698
38699         tests: avoid some compiler warnings
38700         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38701         literals.
38702         * tests/test-memchr.c (main): Avoid type mismatch.
38703         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38704         * tests/test-base64.c (main): Likewise.
38705         * tests/test-getdelim.c (main): Likewise.
38706         * tests/test-gethostname.c (main): Likewise.
38707         * tests/test-getline.c (main): Likewise.
38708         * tests/test-netinet_in.c (main): Likewise.
38709         * tests/test-select.c (open_server_socket, main): Likewise.
38710         * tests/test-select-stdin.c (main): Likewise.
38711         * tests/test-sockets.c (main): Likewise.
38712         * tests/test-strsignal.c (main): Likewise.
38713         * tests/test-sys_select.c (main): Likewise.
38714         * tests/test-sys_socket.c (main): Likewise.
38715         * tests/test-u64.c (main): Likewise.
38716         * tests/test-xfprintf-posix.c (main): Likewise.
38717         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38718
38719         sockets: avoid compiler warning
38720         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38721
38722         maint: detect usage(1) and other suspicious exits
38723         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38724
38725 2009-10-29  Jim Meyering  <meyering@redhat.com>
38726
38727         timespec: long-to-int truncation could make timespec_cmp malfunction
38728         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38729         a multiple of 2^32 nanoseconds as no difference.
38730
38731 2009-10-28  Jim Meyering  <meyering@redhat.com>
38732
38733         fprintftime: wrap macro code argument in "do {...} while(0)"
38734         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38735         cpy macro must be a statement that can be followed by a semicolon.
38736         Now that the else clause contains a comment and is hence longer
38737         than one line, I require curly braces.  That in turn requires
38738         that we wrap this code block in the standard do...while(0).
38739
38740         fprintftime: remove stray semicolon from previous change
38741         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38742
38743         fprintftime: avoid a warning about ignored fwrite return value
38744         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38745         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38746         that is unsafe.
38747         * modules/fprintftime (Depends-on): Add ignore-value.
38748
38749         exclude: avoid an unwarranted warning
38750         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38751
38752 2009-10-27  Eric Blake  <ebb9@byu.net>
38753
38754         fseek: avoid compilation failure when fflush is replaced
38755         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38756         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38757         module is in use.
38758         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38759         module is not in use; since REPLACE_FSEEK worked otherwise.
38760         (GNULIB_FTELLO): Likewise for ftell.
38761         Reported by Ian Beckwith and others.
38762
38763 2009-10-27  Bruno Haible  <bruno@clisp.org>
38764
38765         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38766         Reported by Jim Meyering.
38767
38768 2009-10-27  Jim Meyering  <jim@meyering.net>
38769             Bruno Haible  <bruno@clisp.org>
38770
38771         Avoid warning despite dropping the return value of fwrite.
38772         * lib/unicodeio.c: Include ignore-value.h.
38773         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38774         * modules/unicodeio (Depends-on): Add ignore-value.
38775
38776 2009-10-26  Eric Blake  <ebb9@byu.net>
38777
38778         areadlinkat: fix fallback path
38779         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38780         pointer and zero.
38781
38782 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38783
38784         Use a better IO block size for modern systems
38785         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38786         * lib/md2.c: Likewise.
38787         * lib/md4.c: Likewise.
38788         * lib/md5.c: Likewise.
38789         * lib/sha1.c: Likewise.
38790         * lib/sha256.c: Likewise.
38791         * lib/sha512.c: Likewise.
38792
38793 2009-10-22  Eric Blake  <ebb9@byu.net>
38794
38795         tests: avoid several compiler warnings
38796         * tests/test-getcwd.c (main): Avoid buffer underflow.
38797         * tests/test-getdate.c (main): String literals are not safe with
38798         putenv, so use setenv.  Declare unused argument.
38799         * modules/getdate-tests (Depends-on): Add setenv.
38800         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38801         problems with string literals in char *.
38802         * tests/test-hash.c (main): Avoid shadowing declaration.
38803         (insert_new): Treat string literals as char const *.
38804         * tests/test-getopt.h (test_getopt): Likewise.
38805         (getopt_loop): Alter types to minimize casting elsewhere.
38806         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38807         (test_getopt_long_posix): Likewise.
38808         (do_getopt_long): Add wrapper to minimize casting.
38809         * tests/test-atexit.c (clear_temp_file): Use void.
38810         * tests/test-areadlink-with-size.c (main): Declare unused
38811         arguments.
38812         * tests/test-areadlink.c (main): Likewise.
38813         * tests/test-areadlinkat-with-size.c (main): Likewise.
38814         * tests/test-areadlinkat.c (main): Likewise.
38815         * tests/test-canonicalize-lgpl.c (main): Likewise.
38816         * tests/test-canonicalize.c (main): Likewise.
38817         * tests/test-dirent-safer.c (main): Likewise.
38818         * tests/test-dirname.c (main): Likewise.
38819         * tests/test-dup2.c (main): Likewise.
38820         * tests/test-fchdir.c (main): Likewise.
38821         * tests/test-fcntl-h.c (main): Likewise.
38822         * tests/test-fcntl-safer.c (main): Likewise.
38823         * tests/test-fdopendir.c (main): Likewise.
38824         * tests/test-fdutimensat.c (main): Likewise.
38825         * tests/test-fflush.c (main): Likewise.
38826         * tests/test-filenamecat.c (main): Likewise.
38827         * tests/test-filevercmp.c (main): Likewise.
38828         * tests/test-fopen-safer.c (main): Likewise.
38829         * tests/test-fopen.c (main): Likewise.
38830         * tests/test-fpending.c (main): Likewise.
38831         * tests/test-fpurge.c (main): Likewise.
38832         * tests/test-freading.c (main): Likewise.
38833         * tests/test-fstatat.c (main): Likewise.
38834         * tests/test-fsync.c (main): Likewise.
38835         * tests/test-futimens.c (main): Likewise.
38836         * tests/test-getndelim2.c (main): Likewise.
38837         * tests/test-gettimeofday.c (main): Likewise.
38838         * tests/test-getopt.c (main): Likewise.
38839         * tests/test-i-ring.c (main): Likewise.
38840         * tests/test-inttypes.c (main): Likewise.
38841         * tests/test-link.c (main): Likewise.
38842         * tests/test-lstat.c (main): Likewise.
38843         * tests/test-math.c (main): Likewise.
38844         * tests/test-md5.c (main): Likewise.
38845         * tests/test-memchr2.c (main): Likewise.
38846         * tests/test-memrchr.c (main): Likewise.
38847         * tests/test-mkdir.c (main): Likewise.
38848         * tests/test-mkdirat.c (main): Likewise.
38849         * tests/test-mkfifoat.c (main): Likewise.
38850         * tests/test-open.c (main): Likewise.
38851         * tests/test-openat-safer.c (main): Likewise.
38852         * tests/test-openat.c (main): Likewise.
38853         * tests/test-quotearg.c (main): Likewise.
38854         * tests/test-rawmemchr.c (main): Likewise.
38855         * tests/test-readlink.c (main): Likewise.
38856         * tests/test-remove.c (main): Likewise.
38857         * tests/test-rename.c (main): Likewise.
38858         * tests/test-renameat.c (main): Likewise.
38859         * tests/test-rmdir.c (main): Likewise.
38860         * tests/test-sha1.c (main): Likewise.
38861         * tests/test-signal.c (main): Likewise.
38862         * tests/test-sigaction.c (main): Likewise.
38863         * tests/test-stat.c (main): Likewise.
38864         * tests/test-stat-time.c (main): Likewise.
38865         * tests/test-stddef.c (main): Likewise.
38866         * tests/test-stdint.c (main): Likewise.
38867         * tests/test-stdio.c (main): Likewise.
38868         * tests/test-stdlib.c (main): Likewise.
38869         * tests/test-strchrnul.c (main): Likewise.
38870         * tests/test-strerror.c (main): Likewise.
38871         * tests/test-string.c (main): Likewise.
38872         * tests/test-strtod.c (main): Likewise.
38873         * tests/test-strverscmp.c (main): Likewise.
38874         * tests/test-symlink.c (main): Likewise.
38875         * tests/test-symlinkat.c (main): Likewise.
38876         * tests/test-sys_stat.c (main): Likewise.
38877         * tests/test-sys_time.c (main): Likewise.
38878         * tests/test-time.c (main): Likewise.
38879         * tests/test-unistd.c (main): Likewise.
38880         * tests/test-unlink.c (main): Likewise.
38881         * tests/test-unlinkat.c (main): Likewise.
38882         * tests/test-utimens.c (main): Likewise.
38883         * tests/test-utimensat.c (main): Likewise.
38884         * tests/test-version-etc.c (main): Likewise.
38885         * tests/test-wchar.c (main): Likewise.
38886         * tests/test-wctype.c (main): Likewise.
38887         * tests/test-xprintf-posix.c (main): Likewise.
38888         * tests/test-posixtm.c (main): Likewise.
38889         (STREQ): Delete unused macro.
38890         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38891         shadowed variables.
38892         * tests/test-memchr.c (main): Likewise.
38893
38894 2009-10-21  Eric Blake  <ebb9@byu.net>
38895
38896         areadlinkat: avoid failure on older glibc
38897         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38898         rather than mis-comparing 0 against FUNC_RESULT of char*.
38899
38900 2009-10-21  Bruno Haible  <bruno@clisp.org>
38901
38902         * modules/stpncpy (License): Relicense under LGPLv2+.
38903         Reported by David Lutterkort <lutter@redhat.com>.
38904
38905 2009-10-20  Eric Blake  <ebb9@byu.net>
38906
38907         utimensat: work around Solaris 9 bug
38908         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38909         has trailing slash bugs.
38910         * tests/test-lutimens.h (test_lutimens): Enhance test.
38911         * tests/test-utimens.h (test_utimens): Likewise.
38912         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38913         * doc/posix-functions/utimes.texi (utimes): Likewise.
38914         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38915         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38916         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38917         * doc/posix-functions/futimens.texi (futimens): Likewise.
38918
38919         fdutimensat: new module
38920         * modules/fdutimensat: New file.
38921         * lib/fdutimensat.c (fdutimensat): Likewise.
38922         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38923         * MODULES.html.sh (File system functions): Mention module.
38924         * modules/fdutimensat-tests: New test.
38925         * tests/test-fdutimensat.c: Likewise.
38926
38927         doc: regenerate INSTALL
38928         * doc/INSTALL: Reflect recent autoconf update.
38929         * doc/INSTALL.ISO: Likewise.
38930         * doc/INSTALL.UTF-8: Likewise.
38931
38932 2009-10-20  Pádraig Brady  <P@draigBrady.com>
38933
38934         acl: warn if ACL support is not detected
38935         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
38936
38937 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
38938
38939         * lib/nproc.h: Add extern "C" block for C++.
38940
38941 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
38942             Bruno Haible  <bruno@clisp.org>
38943
38944         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
38945         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
38946         * doc/posix-functions/isalpha.texi: Likewise.
38947         * doc/posix-functions/isblank.texi: Likewise.
38948         * doc/posix-functions/iscntrl.texi: Likewise.
38949         * doc/posix-functions/isdigit.texi: Likewise.
38950         * doc/posix-functions/isgraph.texi: Likewise.
38951         * doc/posix-functions/islower.texi: Likewise.
38952         * doc/posix-functions/isprint.texi: Likewise.
38953         * doc/posix-functions/ispunct.texi: Likewise.
38954         * doc/posix-functions/isspace.texi: Likewise.
38955         * doc/posix-functions/isupper.texi: Likewise.
38956         * doc/posix-functions/isxdigit.texi: Likewise.
38957
38958 2009-10-18  Bruno Haible  <bruno@clisp.org>
38959
38960         Tests for module 'isblank'.
38961         * modules/isblank-tests: New file.
38962         * tests/test-isblank.c: New file.
38963
38964         New module 'isblank'.
38965         * lib/isblank.c: New file.
38966         * m4/isblank.m4: New file.
38967         * modules/isblank: New file.
38968         * doc/posix-functions/isblank.texi: Mention the new module.
38969
38970 2009-10-18  Bruno Haible  <bruno@clisp.org>
38971
38972         New module 'ctype'.
38973         * lib/ctype.in.h: New file.
38974         * m4/ctype.m4: New file.
38975         * modules/ctype: New file.
38976         * doc/posix-headers/ctype.texi: Mention the new module.
38977
38978 2009-10-18  Jim Meyering  <meyering@redhat.com>
38979
38980         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
38981         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
38982         right after its initialization, rather than farther down.
38983         Keeping these in close proximity makes it easier to ensure
38984         that each such variable is initialized.  E.g.,
38985
38986             LIB_CLOCK_GETTIME=
38987             AC_SUBST([LIB_CLOCK_GETTIME])
38988
38989         This change also increments these serial numbers.
38990         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
38991         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38993
38994 2009-10-18  Bruno Haible  <bruno@clisp.org>
38995
38996         Don't let environment variables perturb build.
38997         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
38998         (gl_PREREQ_GETHRXTIME): ... not here.
38999
39000 2009-10-18  Bruno Haible  <bruno@clisp.org>
39001
39002         Avoid symlink attack in localcharset module.
39003         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39004         (O_NOFOLLOW): Define fallback.
39005         (get_charset_aliases): Don't open the file if it is a symbolic link.
39006         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39007         gl_FCNTL_H.
39008         (gl_FCNTL_H): Require it.
39009         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39010         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39011         Reported by Fergal Glynn <fglynn@veracode.com>.
39012
39013 2009-10-18  Bruno Haible  <bruno@clisp.org>
39014
39015         Implement nproc for mingw.
39016         * lib/nproc.c: Include <windows.h>
39017         (num_processors): On native Windows platforms, try GetSystemInfo.
39018
39019 2009-10-18  Bruno Haible  <bruno@clisp.org>
39020
39021         Implement nproc for IRIX.
39022         * lib/nproc.c: Include <sys/sysmp.h>.
39023         (num_processors): On IRIX systems, try sysmp.
39024         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39025
39026 2009-10-18  Bruno Haible  <bruno@clisp.org>
39027
39028         Implement nproc for HP-UX.
39029         * lib/nproc.c: Include <sys/pstat.h>
39030         (num_processors): On HP-UX systems, try pstat_getdynamic.
39031         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39032         pstat_getdynamic.
39033
39034 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39035             Bruno Haible  <bruno@clisp.org>
39036
39037         Implement nproc for NetBSD, OpenBSD.
39038         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39039         (ARRAY_SIZE): New macro.
39040         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39041         * m4/nproc.m4: New file.
39042         * modules/nproc (Files): Add m4/nproc.m4.
39043         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39044         (Makefile.am): Instead, augment lib_SOURCES.
39045
39046 2009-10-18  Bruno Haible  <bruno@clisp.org>
39047
39048         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39049         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39050         sys/param.h.
39051
39052 2009-10-16  Eric Blake  <ebb9@byu.net>
39053
39054         utimensat: new module
39055         * modules/utimensat: New file.
39056         * lib/utimensat.c (utimensat): Likewise.
39057         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39058         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39059         so we can work around Linux bugs.
39060         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39061         * modules/sys_stat (Makefile.am): Substitute them.
39062         * lib/sys_stat.in.h (utimensat): Declare it.
39063         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39064         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39065         * modules/utimensat-tests: New test.
39066         * tests/test-utimensat.c: Likewise.
39067
39068         utimens: let lutimens work on non-symlinks
39069         * lib/utimens.c (lutimens): Fall back to utimens rather than
39070         failing with ENOSYS, when file is not a symlink.
39071         (utimens): Reduce redirection.
39072         * tests/test-lutimens.h (test_lutimens): Update test to cover
39073         non-symlinks.
39074         * tests/test-utimens.h (test_utimens): Update test to cover
39075         symlinks.
39076         * tests/test-utimens.c (main): Update caller.
39077
39078         utimens: cache whether utimensat syscall works
39079         * lib/utimens.c (utimensat_works_really): New cache variable.
39080         (fdutimens, lutimens): Use it to avoid failing syscall.
39081
39082         test-stat-time, test-utimens: improve portability
39083         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39084         ext4 on alpha, and for cygwin.
39085         * tests/test-utimens-common.h: New file.
39086         (nap): Factor delays into single function.
39087         * tests/test-lutimens.h (test_lutimens): Use new header.
39088         * tests/test-futimens.h (test_futimens): Likewise.
39089         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39090         timestamps to occur from same machine, as was done previously for
39091         test_utimens.
39092         * modules/utimens-tests (Files): Ship new file.
39093         * modules/futimens-tests (Files): Likewise.
39094         Reported in part by Jim Meyering.
39095
39096         sys_stat: sort replacement declarations
39097         * lib/sys_stat.in.h: Sort declarations.
39098         * lib/futimens.c (futimens): Fix typo.
39099
39100 2009-10-15  Jim Meyering  <meyering@redhat.com>
39101
39102         don't let environment settings perturb build
39103         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39104         could cause a configure-time and/or build-time malfunction.
39105         Typically, a configure-time function-in-library test is performed
39106         via code like this:
39107
39108           LIB_VAR=
39109           AC_SUBST([LIB_VAR])
39110           prefix_saved_LIBS=$LIBS
39111             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39112                        [test "$ac_cv_search_FUNC" = "none required" ||
39113                         LIB_VAR=$ac_cv_search_FUNC])
39114           LIBS=$prefix_saved_LIBS
39115
39116         However, in each of the files affected by this change, the LIB_VAR=
39117         initialization was omitted.  Thus, when set in the environment, its
39118         value would propagate into generated Makefiles when FUNC is not found
39119         in LIB_NAME.
39120         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39121         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39123
39124 2009-10-14  Eric Blake  <ebb9@byu.net>
39125
39126         fchdir: avoid infinite recursion in mingw
39127         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39128         recursing.
39129
39130         test-stat-time: port to mingw
39131         * tests/test-stat-time.c (force_unlink): Return a value.
39132         (test_ctime) [W32]: Fix compilation error.
39133         (nap): Don't call usleep with too large an argument.  Use
39134         force_unlink.
39135         * doc/pastposix-functions/usleep.texi (usleep): Document the
39136         portability issue.
39137
39138 2009-10-13  Jim Meyering  <meyering@redhat.com>
39139
39140         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39141         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39142         * modules/pipe-filter-ii: Likewise.
39143         * modules/sys_socket-tests: Likewise.
39144         * modules/tsearch-tests: Likewise.
39145         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39146         (check): Depend on it.
39147
39148 2009-10-12  Eric Blake  <ebb9@byu.net>
39149
39150         utimens-tests: port to NFS file systems
39151         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39152         comparisons to avoid spurious failures from timestamp drift
39153         between NFS machines.
39154
39155 2009-10-12  Eric Blake  <ebb9@byu.net>
39156
39157         stat-time-tests: minor cleanups
39158         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39159         * tests/test-stat-time.c (nap): Separate assignment from call.
39160         Suggested by Paolo Bonzini and Bruno Haible.
39161
39162         sys_stat: guarantee struct timespec
39163         * lib/sys_stat.in.h (includes): Always include <time.h>
39164         * modules/sys_stat (Depends-on): Add time.
39165         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39166         mode_t permission values.
39167         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39168         get at subsecond timestamps.
39169
39170 2009-10-10  Eric Blake  <ebb9@byu.net>
39171
39172         futimens: new module
39173         * modules/futimens: New file.
39174         * lib/futimens.c (futimens): Likewise.
39175         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39176         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39177         we can work around Linux bugs.
39178         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39179         * modules/sys_stat (Makefile.am): Substitute them.
39180         * lib/sys_stat.in.h (futimens): Declare it.
39181         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39182         * doc/posix-functions/futimens.texi (futimens): Likewise.
39183         * modules/futimens-tests: New test.
39184         * tests/test-futimens.c: Likewise.
39185
39186         utimens: introduce fdutimens
39187         * lib/utimens.h (fdutimens): New prototype.
39188         * lib/utimens.c (gl_futimens): Move guts...
39189         (fdutimens): ...to new interface.
39190         * tests/test-utimens.c (do_fdutimens): Use it.
39191
39192         utimens: add UTIME_NOW and UTIME_OMIT support
39193         * lib/utimens.c (validate_timespec, update_timespec): New helper
39194         functions.
39195         (gl_futimens, lutimens): Use them.
39196         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39197         stdbool, sys_stat.
39198         (Link): Mention resulting library dependency.
39199         * modules/utimecmp (Link): Likewise.
39200         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39201         (Makefile.am): Pick up library dependency.
39202         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39203         definition.
39204         * tests/test-sys_stat.c: Test the definitions.
39205         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39206         * NEWS: Document library dependency.
39207
39208         utimecmp: support symlink timestamps
39209         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39210         hashing when possible.  Use pathconf when available.
39211         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39212         * modules/utimecmp (Depends-on): Add lstat.
39213
39214         utimens: add lutimens interface
39215         * lib/utimens.c (lutimens): New function.
39216         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39217         * lib/utimens.h (lutimens): Declare new interface.
39218         * tests/test-utimens.c (main): Enhance test.
39219         * tests/test-lutimens.h (test_lutimens): New file.
39220         * modules/utimens-tests (Files): Distribute it.
39221         (Depends-on): Add symlink.
39222         (configure.ac): Check for usleep.
39223
39224         utimens: validate futimens usage
39225         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39226         fewer syscalls on failure later on.  Avoid compiler warning on
39227         mingw.
39228         * modules/utimens (Depends-on): Add dup2.
39229
39230         utimens: add test
39231         * modules/utimens-tests: New test.
39232         * tests/test-utimens.h: New file.
39233         * tests/test-futimens.h: Likewise.
39234         * tests/test-utimens.c: Likewise.
39235
39236         doc: mention timestamp portability issues
39237         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39238         instead.
39239         * doc/posix-functions/utime.texi (utime): Likewise.
39240         * doc/posix-functions/utimes.texi (utimes): Likewise.
39241         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39242         instead.
39243         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39244         module.
39245         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39246         Mention weakness with symlink timestamps.
39247         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39248         to utimensat/futimens instead.
39249         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39250
39251         test-dup2: enhance test
39252         * tests/test-dup2.c (main): Also check AT_FDCWD.
39253
39254         test-stat-time: avoid more spurious failures
39255         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39256         xfs; and avoid race if the two timestamps cross quantization edge.
39257
39258         relocatable: prefer 'file system' over 'filesystem'
39259         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39260         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39261         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39262         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39263         * lib/relocatable.c (compute_curr_prefix): Likewise.
39264
39265 2009-10-10  Jim Meyering  <meyering@redhat.com>
39266
39267         stat-time-tests: check for the usleep function
39268         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39269
39270 2009-10-10  Bruno Haible  <bruno@clisp.org>
39271
39272         * modules/xnanosleep: Put the Link section after the Include section.
39273
39274 2009-10-09  Eric Blake  <ebb9@byu.net>
39275
39276         dup2: work around FreeBSD 6.1 bug
39277         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39278         * doc/posix-functions/dup2.texi (dup2): Document it.
39279         Reported by Nelson H. F. Beebe and Jim Meyering.
39280
39281         test-stat-time: port to buggy NFS clients
39282         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39283         (test_ctime): Also skip test if mtime and ctime are skewed.
39284
39285         maint: prefer 'file system' over 'filesystem'
39286         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39287         * doc/posix-functions/lstat.texi (lstat): Likewise.
39288         * lib/file-has-acl.c (file_has_acl): Likewise.
39289         * lib/fwriteerror.c [TEST]: Likewise.
39290         * tests/test-areadlink.h (test_areadlink): Likewise.
39291         * tests/test-areadlinkat-with-size.c (main): Likewise.
39292         * tests/test-areadlinkat.c (main): Likewise.
39293         * tests/test-canonicalize-lgpl.c (main): Likewise.
39294         * tests/test-canonicalize.c (main): Likewise.
39295         * tests/test-fstatat.c (main): Likewise.
39296         * tests/test-linkat.c (main): Likewise.
39297         * tests/test-lstat.h (test_lstat_func): Likewise.
39298         * tests/test-mkdir.h (test_mkdir): Likewise.
39299         * tests/test-readlink.h (test_readlink): Likewise.
39300         * tests/test-remove.c (main): Likewise.
39301         * tests/test-rename.h (test_rename): Likewise.
39302         * tests/test-renameat.c (main): Likewise.
39303         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39304         * tests/test-symlink.h (test_symlink): Likewise.
39305         * tests/test-symlinkat.c (main): Likewise.
39306         * tests/test-unlink.h (test_unlink_func): Likewise.
39307         * tests/test-unlinkat.c (main): Likewise.
39308
39309         maint: make realtime library usage explicit
39310         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39311         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39312         * modules/settime (Link): Likewise.
39313         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39314
39315         test-stat-time: speed up execution
39316         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39317         warning on mingw.
39318         (nap): New helper function.
39319         (prepare_test): Use it to reduce sleep time.
39320         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39321         execution.
39322         * modules/stat-time-tests (configure.ac): Check for usleep.
39323
39324 2009-10-09  Jim Meyering  <meyering@redhat.com>
39325
39326         selinux-h: always use getfilecon wrappers
39327         * lib/getfilecon.c: New file.
39328         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39329         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39330         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39331         (fgetfilecon): Provide a stub.
39332         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39333         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39334         file unconditionally.
39335         When <selinux/selinux.h> is found, arrange to use wrappers.
39336         * modules/selinux-h (Files): Add getfilecon.c.
39337         (Makefile.am): Substitute include-next-related bits
39338         into the now-always-generated selinux/selinux.h file.
39339         * doc/glibc-functions/lgetfilecon.texi: New file.
39340         * doc/glibc-functions/fgetfilecon.texi: New file.
39341         * doc/glibc-functions/getfilecon.texi: New file.
39342         * doc/glibc-functions/getfilecon-desc.texi: New file.
39343         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39344         which to pull in the new files.
39345         * MODULES.html.sh (Misc): Add selinux-h.
39346
39347 2009-10-08  Jim Meyering  <meyering@redhat.com>
39348
39349         unistd: fix comment typo
39350         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39351
39352 2009-10-08  Eric Blake  <ebb9@byu.net>
39353
39354         areadlink: use SIZE_MAX consistently
39355         * modules/areadlink (Depends-on): Add stdint.
39356         * modules/areadlink-with-size (Depends-on): Likewise.
39357         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39358         gives NULL; drop sys/types, since unistd gives size_t; and add
39359         stdint for SIZE_MAX.
39360         (SIZE_MAX): Rely on headers.
39361         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39362         and add stdint.
39363         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39364         (SIZE_MAX): Likewise.
39365         (INITIAL_BUF_SIZE): Turn into enum.
39366         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39367
39368 2009-10-08  Jim Meyering  <meyering@redhat.com>
39369
39370         areadlinkat: avoid compilation failure
39371         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39372         Fix typo in comment.
39373
39374 2009-10-07  Eric Blake  <ebb9@byu.net>
39375
39376         areadlinkat-with-size: new module
39377         * modules/areadlinkat-with-size: New module.
39378         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39379         * lib/areadlink.h (areadlinkat): Declare it.
39380         * MODULES.html.sh (File system functions): Mention it.
39381         * modules/areadlinkat-with-size-tests: New test.
39382         * tests/test-areadlinkat-with-size.c: New file.
39383
39384         xreadlinkat: new module
39385         * modules/xreadlinkat: New module.
39386         * lib/xreadlinkat.c (xreadlinkat): New file.
39387         * lib/xreadlink.h (xreadlinkat): Declare it.
39388         * MODULES.html.sh (File system functions): Mention it.
39389
39390         areadlinkat: new module
39391         * lib/at-func.c (FUNC_FAIL): New define.
39392         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39393         * modules/areadlinkat: New module.
39394         * lib/linkat.c (areadlinkat): Move...
39395         * lib/areadlinkat.c (areadlinkat): ...to new file.
39396         * lib/areadlink.h (areadlinkat): Declare it.
39397         * modules/linkat (Depends-on): Add areadlinkat.
39398         * MODULES.html.sh (File system functions): Mention it.
39399         * modules/areadlinkat-tests: New test.
39400         * tests/test-areadlinkat.c: New file.
39401
39402         areadlink, areadlink-with-size: add tests
39403         * modules/areadlink-tests: New test.
39404         * modules/areadlink-with-size-tests: Likewise.
39405         * tests/test-areadlink.h: New file.
39406         * tests/test-areadlink.c: Likewise.
39407         * tests/test-areadlink-with-size.c: Likewise.
39408
39409         maint: minor cleanups
39410         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39411         _UNUSED_PARAMETER_ instead.
39412         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39413         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39414         * modules/linkat-tests (Files): Distribute test-link.h.
39415
39416         openat, utimens: whitespace cleanup
39417         * lib/openat.c: Prefer space throughout, rather than mix of 8
39418         spaces vs. tabs.
39419         * lib/at-func.c: Likewise.
39420         * lib/utimens.c: Likewise.
39421
39422         openat: avoid using wrong fd
39423         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39424         working directory chooses same fd.
39425         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39426
39427         mkdir, mkdirat: fix cygwin 1.5.x bug
39428         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39429         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39430         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39431         bug.
39432         (gl_PREREQ_MKDIR): Delete unused macro.
39433         * modules/mkdir (Files): Track file rename.
39434         (configure.ac): Update macro name.
39435         * modules/openat (Depends-on): Add mkdir.
39436         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39437
39438         mkdir, mkdirat: add tests
39439         * modules/mkdir-tests: New test.
39440         * tests/test-mkdir.h: New file.
39441         * tests/test-mkdir.c: Likewise.
39442         * tests/test-mkdirat.c: Likewise.
39443         * modules/openat-tests (Files): Add new files.
39444         (Makefile.am): Run new test.
39445
39446 2009-10-06  Eric Blake  <ebb9@byu.net>
39447
39448         doc: tweak *at function documentation
39449         * doc/posix-functions/faccessat.texi (faccessat): Mention
39450         known issue with replacement.
39451         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39452         * doc/posix-functions/linkat.texi (linkat): Likewise.
39453         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39454         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39455         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39456         * doc/posix-functions/renameat.texi (renameat): Likewise.
39457         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39458
39459         openat: fix GNU/Hurd bug in unlinkat
39460         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39461         broken.
39462         * doc/posix-functions/unlink.texi (unlink): Document this.
39463         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39464
39465         fdopendir: fix GNU/Hurd bug
39466         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39467         allowing non-directory fds.
39468         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39469         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39470         * modules/dirent (Makefile.am): Substitute it.
39471         * lib/dirent.in.h (fdopendir): Declare replacement.
39472         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39473         * tests/test-fdopendir.c (main): Test something other than
39474         /dev/null, since on Hurd that behaves like a directory.
39475
39476         test-symlink: port to GNU/Hurd
39477         * tests/test-symlink.h (test_symlink): Relax expected errno.
39478
39479         doc: tweak more cygwin information
39480         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39481         now compatible with glibc.
39482         * doc/posix-functions/getopt.texi (getopt): Likewise.
39483
39484         getopt-gnu: add another test
39485         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39486         guarantee behavior relied on by m4.
39487         * tests/test-getopt.c (main): Use it.
39488         * modules/getopt-posix-tests (Depends-on): Add setenv.
39489         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39490
39491         getopt: fix compilation on darwin
39492         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39493         include.
39494         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39495         Reported by Ludovic Courtès.
39496
39497 2009-10-06  Bruno Haible  <bruno@clisp.org>
39498
39499         * modules/size_max (Description): Discourage its use.
39500         Reported by Simon Josefsson.
39501
39502 2009-10-06  Jim Meyering  <meyering@redhat.com>
39503
39504         linkat: avoid compilation failure
39505         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39506
39507 2009-10-05  Eric Blake  <ebb9@byu.net>
39508
39509         linkat: support Linux 2.6.17
39510         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39511         linkat on Linux, but allow cache variable override.
39512         * lib/linkat.c (rpl_linkat): Define override.
39513         * modules/linkat (Depends-on): Add symlinkat.
39514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39515         * modules/unistd (Makefile.am): Substitute it.
39516         * lib/unistd.in.h (linkat): Declare replacement.
39517         Reported by Pádraig Brady.
39518
39519         quotearg: port test to systems with C.UTF-8 locale
39520         * tests/test-quotearg.c (struct result_strings): Add another
39521         member, differentiating between C.ASCII and C.UTF-8 handling.
39522         (compare_strings): Add parameter.
39523         (main): Adjust all callers.
39524
39525         getopt: avoid clash with FreeBSD _getopt_internal
39526         * lib/getopt.in.h (_getopt_internal): Override the name.
39527         * lib/getopt_int.h (includes): Pick up any overrides.
39528         Reported by Reuben Thomas.
39529
39530         hash: allow C89 compilation
39531         * lib/hash.c (check_tuning): Move declaration before statement.
39532         Reported by Reuben Thomas.
39533
39534 2009-10-05  Karl Berry  <karl@gnu.org>
39535
39536         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39537
39538 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39539             Bruno Haible  <bruno@clisp.org>
39540
39541         * lib/uname.c (uname): Use a table-driven algorithm to compute
39542         Windows NT versions.
39543
39544 2009-10-04  Bruno Haible  <bruno@clisp.org>
39545
39546         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39547         program_invocation_short_name.
39548         * modules/progname (configure.ac): Test for presence of
39549         program_invocation_short_name.
39550         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39551
39552 2009-10-04  Bruno Haible  <bruno@clisp.org>
39553
39554         * lib/progname.c (set_program_name): Fix comment.
39555         Reported by Jim Meyering.
39556
39557 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39558             Bruno Haible  <bruno@clisp.org>
39559
39560         * lib/uname.c: Include <string.h>.
39561         (uname): Do only one call to GetVersionEx in the common case.
39562
39563 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39564             Bruno Haible  <bruno@clisp.org>
39565
39566         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39567         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39568         (uname): Add support for Windows CE and various non-x86 CPU types.
39569
39570 2009-10-03  Bruno Haible  <bruno@clisp.org>
39571
39572         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39573         invocation to tests/configure.ac.
39574         Reported by Ian Beckwith <ianb@erislabs.net>.
39575
39576 2009-10-02  Eric Blake  <ebb9@byu.net>
39577
39578         fchdir: avoid compiler warning
39579         * lib/fchdir.c (canonicalize_file_name)
39580         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39581
39582         test-open: support mingw errno values
39583         * tests/test-open.h (test_open): Relax test.
39584         * tests/test-fopen.h (test_fopen): Likewise.
39585         * tests/test-openat-safer.c (main): Likewise.
39586
39587         open: fix opening directory on mingw
39588         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39589
39590         test-open: on GNU/Hurd, /dev/null is a directory
39591         * tests/test-fopen.h (main): Rename...
39592         (test_fopen): ...to this.  Use a guaranteed non-directory when
39593         confirming open behavior on trailing slash.
39594         * tests/test-openat-safer.c (main): Likewise.
39595         * tests/test-open.h (main): Likewise....
39596         (test_open): ...to this.
39597         * tests/test-fopen.c (main): Adjust caller.
39598         * tests/test-fopen-safer.c (main): Likewise.
39599         * tests/test-open.c (main): Likewise.
39600         * tests/test-fcntl-safer.c (main): Likewise.
39601         Reported by Samuel Thibault.
39602
39603         rename, fchdir: don't ignore chdir failure
39604         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39605         * lib/rename.c (rpl_rename) [W32]: Likewise.
39606         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39607         an empty destination directory if source cannot be renamed,
39608         although there is still possibility for failure.
39609         * doc/posix-functions/rename.texi (rename): Document the race.
39610         Reported by Jim Meyering.
39611
39612         maint: cleanup whitespace in recent commits
39613         * lib/rename.c (rpl_rename): Remove tabs.
39614         * tests/test-link.h (test_link): Likewise.
39615         * lib/fchdir.c (get_name): Likewise.
39616         Reported by Jim Meyering.
39617
39618 2009-10-02  Ben Pfaff  <blp@gnu.org>
39619
39620         relocatable-prog-wrapper: Add missing dependency on
39621         double-slash-root.
39622         * modules/relocatable-prog-wrapper: Add dependency.
39623         Reported by Ian Beckwith <ianb@erislabs.net>.
39624
39625 2009-10-02  Eric Blake  <ebb9@byu.net>
39626
39627         renameat: fix Solaris bugs
39628         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39629         needed fixing.
39630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39631         * modules/stdio (Makefile.am): Substitute it.
39632         * lib/stdio.in.h (renameat): Declare replacement.
39633         * lib/renameat.c (rpl_renameat): Implement fix.
39634
39635         renameat: new module
39636         * modules/renameat: New file.
39637         * lib/renameat.c (renameat): Likewise.
39638         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39640         * modules/stdio (Makefile.am): Substitute them.
39641         * lib/stdio.in.h (renameat): Declare it.
39642         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39643         * doc/posix-functions/renameat.texi (renameat): Likewise.
39644         * modules/renameat-tests: New test.
39645         * tests/test-renameat.c: Likewise.
39646
39647         rename: fix mingw bugs
39648         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39649         directory overwrite bugs.
39650
39651         rename: fix another cygwin 1.5 bug
39652         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39653         checks.
39654         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39655         unnecessary cygwin workarounds.  Also work around bug with moving
39656         full directory onto an empty one.
39657         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39658
39659         rename-dest-slash: merge into rename module
39660         * modules/rename-dest-slash (Status): Mark obsolete.
39661         (Depends-on): Add rename.
39662         (Files): Let rename do it all.
39663         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39664         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39665         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39666         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39667         * lib/rename.c (rpl_rename): Update comments.
39668
39669         rename: fix cygwin 1.5.x bugs
39670         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39671         * lib/rename.c (rpl_rename): Work around them.
39672         * modules/rename (Depends-on): Add same-inode.
39673
39674         rename: fix Solaris 10 bug
39675         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39676         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39677         was the only bug.
39678
39679         rename: fix Solaris 9 bug
39680         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39681         on non-directory.  Avoid calling exit.
39682         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39683         strdup.
39684         * modules/rename-tests (Depends-on): Drop lstat.
39685         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39686         (gl_PREREQ_RENAME): Delete unused macro.
39687
39688         rename-dest-slash: fix NetBSD bug
39689         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39690         links.
39691         * modules/rename-dest-slash (Depends-on): Add same-inode.
39692
39693         rename-tests: new test, exposes several platform bugs
39694         * modules/rename-tests: New file.
39695         * tests/test-rename.h: Likewise.
39696         * tests/test-rename.c: Likewise.
39697         * doc/posix-functions/rename.texi (rename): Improve documentation,
39698         including bugs that will eventually be fixed in gnulib.
39699
39700 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39701
39702         * lib/uname.c: Include <stdlib.h>
39703         (uname): Assume version info is available.
39704
39705 2009-10-02  Jim Meyering  <meyering@redhat.com>
39706
39707         gnu-web-doc-update: correct --help output
39708         * build-aux/gnu-web-doc-update: Make --help output relevant.
39709
39710         gnu-web-doc-update: add standard options
39711         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39712
39713         gnu-web-doc-update: New module.
39714         Use this script to automatically update the on-line web documentation
39715         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39716         * modules/gnu-web-doc-update: New file, from coreutils.
39717         * build-aux/gnu-web-doc-update: New script.
39718
39719 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39720
39721         link: LoadLibrary is not needed.
39722         * lib/link.c: Use GetModuleHandle.
39723
39724 2009-10-01  Eric Blake  <ebb9@byu.net>
39725
39726         getopt: bump serial number
39727         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39728         change.
39729
39730         tests: tighten link, rmdir, and remove tests
39731         * tests/test-link.h (includes): No need to use <config.h> here.
39732         Clean up if directory hard link was created, otherwise test for
39733         trailing '.'.
39734         * tests/test-linkat.c (main): Simplify.
39735         * tests/test-remove.c (main): Enhance test for trailing '.'.
39736         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39737
39738 2009-10-01  Jim Meyering  <meyering@redhat.com>
39739
39740         maint.mk: requiring "make major" was annoying, for a "minor" release.
39741         What is intended is "stable", to contrast with alpha and beta,
39742         so require "make stable", not "make major".
39743         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39744         (get_tool_versions): Likewise.
39745         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39746
39747 2009-09-30  Ben Pfaff  <blp@gnu.org>
39748
39749         Fix broken build of replacement for Windows tmpfile().
39750         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39751         flags argument added along with the 'mkostemp' module.
39752
39753 2009-09-28  Bruno Haible  <bruno@clisp.org>
39754
39755         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39756         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39757         to 'remove_elt'.
39758         (gl_list_remove): Update.
39759         * lib/gl_list.c (gl_list_remove): Update.
39760         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39761         to 'remove_elt'.
39762         (gl_oset_remove): Update.
39763         * lib/gl_list.c (gl_oset_remove): Update.
39764         Reported by Eric Blake.
39765
39766 2009-09-28  Eric Blake  <ebb9@byu.net>
39767
39768         doc: mention yet more cygwin 1.7 status
39769         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39770         cygwin.
39771         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39772         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39773
39774         argp: fix test failure
39775         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39776         that are not upper-case.  Pass correct range to tolower.
39777
39778 2009-09-27  Jim Meyering  <meyering@redhat.com>
39779
39780         test-yesno: work around sparc-dash here-document infelicity
39781         Without this change, the literal \177 byte in a here document
39782         would make dash 0.5.5.1-3 access uninitialized memory.
39783         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39784         Instead, use a marker, "@", and filter through tr to create the desired
39785         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39786
39787 2009-09-27  Bruno Haible  <bruno@clisp.org>
39788
39789         Disable untested support for new flavours of ACLs on AIX.
39790         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39791         progress.
39792         * lib/set-mode-acl.c (qset_acl): Likewise.
39793
39794 2008-12-07  Bruno Haible  <bruno@clisp.org>
39795
39796         Add support for new flavours of ACLs on AIX. (Untested.)
39797         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39798         (file_has_acl): Add support for newer AIX.
39799         * lib/set-mode-acl.c (qset_acl): Likewise.
39800         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39801         Rainer Tammer <tammer@tammer.net>.
39802
39803 2009-09-26  Eric Blake  <ebb9@byu.net>
39804
39805         argp: fix compilation of getopt
39806         * lib/getopt.in.h (includes): Use different guard than glibc.
39807         Reported by Sergey Poznyakoff.
39808
39809         doc: mention more cygwin 1.7 status
39810         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39811         bug.
39812         * doc/posix-functions/execl.texi (execl): Likewise.
39813         * doc/posix-functions/execle.texi (execle): Likewise.
39814         * doc/posix-functions/execlp.texi (execlp): Likewise.
39815         * doc/posix-functions/execv.texi (execv): Likewise.
39816         * doc/posix-functions/execve.texi (execve): Likewise.
39817         * doc/posix-functions/execvp.texi (execvp): Likewise.
39818         * doc/glibc-functions/canonicalize_file_name.texi
39819         (canonicalize_file_name): Cygwin 1.7 now provides this.
39820         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39821         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39822         on AT_SYMLINK_NOFOLLOW.
39823
39824 2009-09-24  Eric Blake  <ebb9@byu.net>
39825
39826         test-linkat: make test more robust
39827         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39828
39829         getopt: fix inclusion guards for cygwin
39830         * modules/getopt-posix (Depends-on): Add include-next.
39831         (Makefile.am): Substitute more items in replacement header.
39832         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39833         <getopt.h>.
39834         * lib/getopt.in.h (includes): Use split inclusion guard, and
39835         prefer <getopt.h> over include <unistd.h> when one is present.
39836         (option): Also override name of 'struct option'.
39837
39838         same-inode: revert prior change; it is not yet ready
39839         * NEWS: Undo mention of this change.
39840         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39841         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39842         * lib/cycle-check.c (cycle_check): Likewise.
39843         * lib/same.c (same_name): Likewise.
39844         * lib/at-func2.c (at_func2): Likewise.
39845
39846 2009-09-23  Eric Blake  <ebb9@byu.net>
39847
39848         linkat: new module
39849         * modules/linkat: New file.
39850         * lib/at-func2.c (at_func2): Likewise.
39851         * lib/linkat.c (linkat): Likewise.
39852         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39853         * lib/openat-priv.h (at_func2): Add declaration.
39854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39855         * modules/unistd (Makefile.am): Substitute them.
39856         * lib/unistd.in.h (linkat): Declare it.
39857         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39858         * doc/posix-functions/linkat.texi (linkat): Likewise.
39859         * doc/posix-functions/link.texi (link): Tweak wording.
39860         * tests/test-link.c (main): Move guts...
39861         * tests/test-link.h (test_link): ...into new file.
39862         * modules/linkat-tests: New test.
39863         * tests/test-linkat.c: Likewise.
39864         * modules/link-tests (Files): Ship new file.
39865         (Depends-on): Add stdbool.
39866
39867         dirname: add library-safe mdir_name
39868         * lib/dirname.h (mdir_name): New prototype.
39869         * lib/dirname.c (dir_name): Move guts...
39870         (mdir_name): ...to new function that avoids xalloc_die.
39871
39872         fchdir: another mingw fix
39873         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39874         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39875         on mingw (where it has not yet been ported), and make it optional
39876         elsewhere.
39877         (_gl_register_fd): Use it.
39878
39879         same-inode: make SAME_INODE tri-state, to port to mingw
39880         * NEWS: Mention this change.
39881         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39882         st_ino always being 0.
39883         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39884         * lib/cycle-check.c (cycle_check): Likewise.
39885         * lib/same.c (same_name): Likewise.
39886
39887         lstat: avoid mingw compilation error
39888         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39889         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39890         lstat ourselves.
39891         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39892         was adequate.
39893         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39894         the checks for lstat.
39895         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39896
39897         link: fix test failure on Solaris 9
39898         * lib/link.c (rpl_link): Don't assume link will catch bogus
39899         trailing slash on source.
39900
39901         test-symlinkat: enhance test
39902         * tests/test-readlink.c (main): Move guts...
39903         * tests/test-readlink.h (test_readlink): ...into new file.
39904         * tests/test-symlink.c (main): Move guts...
39905         * tests/test-symlink.h (test_symlink): ...into new file.
39906         * tests/test-symlinkat.c (main): Use new files for further
39907         coverage.
39908         (do_symlink, do_readlink): New helper functions.
39909         * modules/symlink-tests (Files): Ship new file.
39910         (Depends-on): Add stdbool.
39911         * modules/readlink-tests (Files): Ship new file.
39912         (Depends-on): Add stdbool.
39913         * modules/symlinkat-tests (Files): Use new files.
39914
39915 2009-09-23  Eric Blake  <ebb9@byu.net>
39916
39917         readlink: document portability issue with symlink length
39918         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39919         systems have bogus st_size on symlinks, and mention the
39920         areadlink-with-size module.
39921         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39922         * doc/posix-functions/readlink.texi (readlink): Mention the
39923         areadlink module, and ERANGE failure.
39924         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39925         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39926
39927         readlink: fix Solaris 9 bug with trailing slash
39928         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
39929         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
39930         * doc/posix-functions/readlink.texi (readlink): Document this.
39931         * modules/readlink-tests: New test.
39932         * tests/test-readlink.c: Likewise.
39933
39934         readlink: fix cygwin 1.5.x bug with return type
39935         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
39936         * lib/unistd.in.h (readlink): Use ssize_t.
39937         * lib/readlink.c (readlink): Likewise.
39938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39939         * modules/unistd (Makefile.am): Substitute it.
39940         * lib/unistd.in.h (readlink): Declare replacement.
39941         * doc/posix-functions/readlink.texi (readlink): Document this.
39942
39943         symlink: use throughout gnulib
39944         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
39945         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
39946         symlink is not used.
39947         * modules/symlinkat (Depends-on): Add symlink.
39948         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39949         * modules/canonicalize-tests (Depends-on): Likewise.
39950         * modules/lstat-tests (Depends-on): Likewise.
39951         * modules/openat-tests (Depends-on): Likewise.
39952         * modules/remove-tests (Depends-on): Likewise.
39953         * modules/rmdir-tests (Depends-on): Likewise.
39954         * modules/unlink-tests (Depends-on): Likewise.
39955         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
39956         * tests/test-canonicalize.c (symlink): Likewise.
39957         * tests/test-fstatat.c (symlink): Likewise.
39958         * tests/test-lstat.c (symlink): Likewise.
39959         * tests/test-remove.c (symlink): Likewise.
39960         * tests/test-rmdir.c (symlink): Likewise.
39961         * tests/test-unlink.c (symlink): Likewise.
39962         * tests/test-unlinkat.c (symlink): Likewise.
39963
39964         symlink: new module, for Solaris 9 bug
39965         * modules/symlink: New file.
39966         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39967         * lib/symlink.c: Likewise.
39968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39969         * modules/unistd (Makefile.am): Substitute them.
39970         * lib/unistd.in.h (symlink): Declare replacement.
39971         * MODULES.html.sh (File system functions): Mention it.
39972         * doc/posix-functions/symlink.texi (symlink): Likewise.
39973         * modules/symlink-tests: New test.
39974         * tests/test-symlink.c: Likewise.
39975
39976 2009-09-23  Bruno Haible  <bruno@clisp.org>
39977
39978         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
39979         when needed.
39980         Test case: gnulib-tool --import --with-tests atexit inttypes.
39981         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
39982
39983 2009-09-23  Bruno Haible  <bruno@clisp.org>
39984
39985         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
39986         subcommand, not in a subshell.
39987
39988 2009-09-22  Eric Blake  <ebb9@byu.net>
39989
39990         unistd: sort replacement declarations
39991         * lib/unistd.in.h: Sort declarations.
39992
39993         open, openat: minor optimization
39994         * lib/open.c (open): If open succeeded, len is non-zero.
39995         * lib/openat.c (rpl_openat): Likewise.
39996
39997         link-follow: ensure correct result
39998         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
39999         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40000         distinguish between possible failures.
40001
40002 2009-09-21  Eric Blake  <ebb9@byu.net>
40003
40004         fts: avoid compiler warning
40005         * lib/fts.c (dirent_inode_sort_may_be_useful)
40006         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40007
40008 2009-09-19  Bruno Haible  <bruno@clisp.org>
40009
40010         * lib/progreloc.c (canonicalize_file_name): New declaration.
40011
40012 2009-09-19  Eric Blake  <ebb9@byu.net>
40013
40014         link: fix quoting
40015         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40016
40017         openat: fix openat bugs on Solaris 9
40018         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40019         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40020         * modules/openat (Depends-on): Add open.
40021         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40022         * modules/fcntl-h (Makefile.am): Substitute it.
40023         * lib/fcntl.in.h (openat): Declare replacement.
40024         * doc/posix-functions/openat.texi (openat): Document this.
40025
40026         openat: move fstatat and unlinkat into correct files
40027         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40028         compiled.
40029         * lib/openat.c (fstatat, unlinkat): Move...
40030         * lib/fstatat.c (fstatat): ...into correct files.
40031         * lib/unlinkat.c (unlinkat): Likewise.
40032
40033         openat: fix unlinkat bugs on Solaris 9
40034         * lib/unlinkat.c (unlinkat): New file.
40035         * modules/openat (Depends-on): Add unlink.
40036         (Files): Distribute it.
40037         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40038         trailing slash behavior is broken.
40039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40040         * modules/unistd (Makefile.am): Substitute it.
40041         * lib/unistd.in.h (unlinkat): Declare replacement.
40042         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40043
40044         openat: fix fstatat bugs on Solaris 9
40045         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40046         stat.
40047         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40048
40049         test-unlinkat: enhance test, to expose Solaris 9 bug
40050         * tests/test-unlink.c (main): Factor guts...
40051         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40052         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40053         * tests/test-rmdir.c (main): Adjust caller.
40054         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40055         (unlinker): New helper function.
40056         (rmdirat): Enhance check.
40057         * modules/rmdir-tests (Depends-on): Add stdbool.
40058         * modules/unlink-tests (Depends-on): Likewise.
40059         (Files): Add test-unlink.h.
40060         * modules/openat-tests (Files): Likewise.
40061         (Depends-on): Add unlinkdir.
40062
40063         test-fstatat: new test, to expose Solaris 9 bugs
40064         * tests/test-stat.c (main): Factor guts...
40065         * tests/test-stat.h (test_stat_func): ...into new file.
40066         * tests/test-lstat.c (main): Factor guts...
40067         * tests/test-lstat.h (test_lstat_func): ...into new file.
40068         * tests/test-fstatat.c: New file.
40069         * modules/stat-tests (Files): Add test-stat.h.
40070         * modules/lstat-tests (Files): Add test-lstat.h.
40071         (Depends-on): Add stdbool.
40072         * modules/openat-tests (Depends-on): Add pathmax.
40073         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40074         (Makefile.am): Run new test.
40075
40076         remove: new module, for mingw and Solaris 9 bugs
40077         * modules/remove: New file.
40078         * lib/remove.c: Likewise.
40079         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40081         * modules/stdio (Makefile.am): Use them.
40082         * lib/stdio.in.h (remove): Declare replacement.
40083         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40084         * doc/posix-functions/remove.texi (remove): Likewise.
40085         * modules/remove-tests: New test.
40086         * tests/test-remove.c: Likewise.
40087
40088         unlink: new module, for Solaris 9 bug
40089         * modules/unlink: New file.
40090         * lib/unlink.c: Likewise.
40091         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40093         * modules/unistd (Makefile.am): Use them.
40094         * lib/unistd.in.h (stat): Declare replacement.
40095         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40096         * doc/posix-functions/unlink.texi (unlink): Likewise.
40097         * modules/unlink-tests: New test.
40098         * tests/test-unlink.c: Likewise.
40099
40100         lstat: fix Solaris 9 bug
40101         * lib/lstat.c (lstat): Also check for trailing slash on
40102         non-symlink, non-directories.  Use stat module to simplify logic.
40103         * doc/posix-functions/lstat.texi (lstat): Document it.
40104         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40105         (configure.ac): Check for symlink.
40106         * tests/test-lstat.c (main): Add more tests.
40107
40108         stat: add as dependency to other modules
40109         * modules/chown (Depends-on): Add stat.
40110         * modules/euidaccess (Depends-on): Likewise.
40111         * modules/fchdir (Depends-on): Likewise.
40112         * modules/isdir (Depends-on): Likewise.
40113         * modules/link (Depends-on): Likewise.
40114         * modules/lstat (Depends-on): Likewise.
40115         * modules/mkdir-p (Depends-on): Likewise.
40116         * modules/modechange (Depends-on): Likewise.
40117         * modules/open (Depends-on): Likewise.
40118         * modules/readlink (Depends-on): Likewise.
40119         * modules/same (Depends-on): Likewise.
40120
40121         stat: fix Solaris 9 bug
40122         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40123         slash.
40124         * lib/stat.c (rpl_stat): Work around it.
40125         * doc/posix-functions/stat.texi (stat): Update documentation.
40126
40127         stat: new module, for mingw bug
40128         * modules/stat: New file.
40129         * lib/stat.c: Likewise.
40130         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40131         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40132         * modules/sys_stat (Makefile.am): Use them.
40133         * lib/sys_stat.in.h (stat): Declare replacement.
40134         * lib/openat.c (fstatat): Deal with lstat and stat being function
40135         macros.
40136         * modules/openat (Depends-on): Add inline.
40137         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40138         * doc/posix-functions/stat.texi (stat): Likewise.
40139         * modules/stat-tests: New test.
40140         * tests/test-stat.c: Likewise.
40141
40142 2009-09-19  Jim Meyering  <meyering@redhat.com>
40143
40144         syntax-check: detect unnecessary inclusion of canonicalize.h
40145         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40146
40147 2009-09-19  Eric Blake  <ebb9@byu.net>
40148
40149         canonicalize-lgpl: adjust clients to use correct header
40150         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40151         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40152         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40153         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40154         * lib/progreloc.c (includes): Likewise.
40155
40156 2009-09-19  Jim Meyering  <meyering@redhat.com>
40157
40158         test-posixtm.c: correct a comment
40159         * tests/test-posixtm.c: Correct first-line comment.
40160         Spotted by Eric Blake.
40161
40162 2009-09-16  Jim Meyering  <meyering@redhat.com>
40163
40164         posixtm-tests: make T const-correct; add a test case
40165         * tests/test-posixtm.c (T): Declare const.
40166         Add a test for -(2^31+1).
40167         Remove useless can-succeed-only-in-2002 test.
40168
40169         posixtm-tests: adjust the sole failing test
40170         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40171         expected output matches what mktime now produces.  Cross-checked via
40172         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40173
40174         posixtm: move #ifdef'd tests into a new module
40175         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40176         * tests/test-posixtm.c: ... this new file.
40177         * modules/posixtm-tests: New module.
40178
40179 2009-09-19  Eric Blake  <ebb9@byu.net>
40180
40181         openat: simplify use of at-func.c
40182         * lib/at-func.c (includes): Include prerequisites here, to
40183         simplify requirements on client files.
40184         * lib/openat-priv.h: Add double-inclusion guard.
40185         * lib/faccessat.c (includes): Simplify.
40186         * lib/fchmodat.c (includes): Likewise.
40187         * lib/fchownat.c (includes): Likewise.
40188         * lib/mkdirat.c (includes): Likewise.
40189         * lib/mkfifoat.c (includes): Likewise.
40190         * lib/symlinkat.c (includes): Likewise.
40191
40192         openat: allow return of fd 0
40193         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40194         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40195         unistd-safer.
40196         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40197         <fcntl.h>; this module does not leak fds.
40198         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40199         must be allowed to return 0, leaving openat_safer to add the
40200         safety.
40201         (openat_permissive): Avoid writing to just-opened fd 2 if
40202         restoring the current directory fails.
40203         * lib/openat-die.c (openat_restore_fail): Add comment.
40204         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40205         (save_cwd): Guarantee safe fd, but without use of open_safer.
40206         * tests/test-openat.c: New test.
40207         * modules/openat-tests (Files, Makefile.am): Distribute and build
40208         new file.
40209
40210         relocatable-prog-wrapper: fix build
40211         * modules/relocatable-prog-wrapper (Files): Update name of
40212         canonicalize m4 file, broken on 2009-09-17.
40213         Reported by emad hajjar <aleppos@hotmail.com>.
40214
40215 2009-09-19  Bruno Haible  <bruno@clisp.org>
40216
40217         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40218         * lib/safe-alloc.c: Likewise.
40219         Reported by Ian Beckwith <ianb@erislabs.net>.
40220
40221 2009-09-18  Bruno Haible  <bruno@clisp.org>
40222
40223         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40224         Reported by <erobles@sensacd.com.mx>.
40225
40226 2009-09-17  Eric Blake  <ebb9@byu.net>
40227
40228         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40229         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40230         slashes when checking if last component is missing.
40231         * tests/test-canonicalize.c (main): Test this.
40232
40233         canonicalize, canonicalize-lgpl: honor // if distinct from /
40234         * modules/canonicalize (Files): Add double-slash-root.m4.
40235         * modules/canonicalize-lgpl (Files): Likewise.
40236         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40237         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40238         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40239         fallback definition.
40240         (canonicalize_filename_mode): Use it to protect //.
40241         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40242         (__realpath): Likewise.
40243         * tests/test-canonicalize.c (main): Test this.
40244         * tests/test-canonicalize-lgpl.c (main): Likewise.
40245         * modules/canonicalize-tests (Depends-on): Add same-inode.
40246         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40247
40248         canonicalize-lgpl: fix glibc bug with trailing slash
40249         * m4/canonicalize-lgpl.m4: Move contents...
40250         * m4/canonicalize.m4: ...here.
40251         (gl_CANONICALIZE_LGPL): Factor realpath check...
40252         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40253         glibc 2.3.5 bug, fixed 2005-04-27.
40254         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40255         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40256         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40257         * modules/canonicalize-lgpl (Files): Manage file rename.
40258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40259         * modules/stdlib (Makefile.am): Substitute witness.
40260         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40261         is needed.
40262         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40263         replacement is required.
40264         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40265         * doc/glibc-functions/canonicalize_file_name.texi
40266         (canonicalize_file_name): Document this.
40267         * doc/posix-functions/realpath.texi (realpath): Likewise.
40268
40269         canonicalize-lgpl: reject non-directory with trailing slash
40270         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40271         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40272         catches failures in glibc 2.3.5.
40273         * tests/test-canonicalize.c (main): Likewise.
40274
40275         canonicalize-lgpl: use native realpath if it works
40276         * lib/canonicalize-lgpl.c (realpath): Guard with
40277         FUNC_REALPATH_WORKS.
40278         * lib/stdlib.in.h (realpath): Make declaration optional based on
40279         HAVE_REALPATH.
40280         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40281         native realpath works.
40282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40283         * modules/stdlib (Makefile.am): Substitute witness.
40284
40285         canonicalize, canonicalize-lgpl: use <stdlib.h>
40286         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40287         (Include): Mention <stdlib.h>.
40288         (configure.ac): Mention functions we provide.
40289         * modules/canonicalize (configure.ac): Likewise.
40290         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40291         realpath if canonicalize_file_name is missing.
40292         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40293         * modules/stdlib (Makefile.am): Substitute witnesses.
40294         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40295         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40296         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40297         * NEWS: Document this.
40298         * doc/glibc-functions/canonicalize_file_name.texi
40299         (canonicalize_file_name): Likewise.
40300         * doc/posix-functions/realpath.texi (realpath): Likewise.
40301         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40302
40303         test-canonicalize: consolidate into single C program
40304         * tests/test-canonicalize.sh: Delete; move setup into...
40305         * tests/test-canonicalize.c (main): ...the program, making it
40306         easier to run in debugger.  Add some tests.
40307         * modules/canonicalize-tests (Files): Remove unused file.
40308         (Depends-on): Add progname.
40309         (configure.ac, Makefile.am): Simplify.
40310
40311         test-canonicalize-lgpl: consolidate into single C program
40312         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40313         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40314         easier to run in debugger.  Add some tests.
40315         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40316         (configure.ac, Makefile.am): Simplify.
40317
40318         canonicalize: avoid resolvepath
40319         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40320         unnecessary checks.
40321         * lib/canonicalize.c (includes): Simplify.
40322         (canonicalize_file_name): Drop resolvepath implementation.
40323         * modules/canonicalize (Depends-on): Drop filenamecat.
40324
40325         canonicalize: don't lose errno
40326         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40327         over calls to free.
40328
40329         canonicalize: simplify errno handling
40330         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40331         assignment.
40332
40333         canonicalize, canonicalize-lgpl: update module dependencies
40334         * modules/canonicalize (Depends-on): Add extensions, lstat,
40335         pathmax, stdlib.
40336         (Files): Drop pathmax.h.
40337         (configure.ac): Adjust macro name.
40338         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40339         lstat, stdlib, sys_stat.
40340         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40341         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40342         extensions.
40343         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40344         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40345         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40346         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40347         declaration, if available.
40348         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40349         we can rely on the readlink module.
40350         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40351         (includes): Use <unistd.h> unconditionally.
40352
40353 2009-09-17  Eric Blake  <ebb9@byu.net>
40354
40355         maint: make Include sections of modules consistent
40356         * modules/alloca: Use only header name; no need to list #include.
40357         * modules/alloca-opt: Likewise.
40358         * modules/arpa_inet: Likewise.
40359         * modules/canon-host: Likewise.
40360         * modules/configmake: Likewise.
40361         * modules/dirent: Likewise.
40362         * modules/eealloc: Likewise.
40363         * modules/environ: Likewise.
40364         * modules/fchdir: Likewise.
40365         * modules/fcntl: Likewise.
40366         * modules/fcntl-h: Likewise.
40367         * modules/gethrxtime: Likewise.
40368         * modules/gettime: Likewise.
40369         * modules/ignore-value: Likewise.
40370         * modules/inet_ntop: Likewise.
40371         * modules/inet_pton: Likewise.
40372         * modules/inttypes: Likewise.
40373         * modules/isnand-nolibm: Likewise.
40374         * modules/isnanf-nolibm: Likewise.
40375         * modules/mbchar: Likewise.
40376         * modules/mbfile: Likewise.
40377         * modules/mbiter: Likewise.
40378         * modules/mbuiter: Likewise.
40379         * modules/netdb: Likewise.
40380         * modules/netinet_in: Likewise.
40381         * modules/nproc: Likewise.
40382         * modules/pagealign_alloc: Likewise.
40383         * modules/poll: Likewise.
40384         * modules/printf-frexp: Likewise.
40385         * modules/pthread: Likewise.
40386         * modules/putenv: Likewise.
40387         * modules/random_r: Likewise.
40388         * modules/relocatable-prog: Likewise.
40389         * modules/search: Likewise.
40390         * modules/select: Likewise.
40391         * modules/selinux-h: Likewise.
40392         * modules/settime: Likewise.
40393         * modules/signal: Likewise.
40394         * modules/size_max: Likewise.
40395         * modules/socklen: Likewise.
40396         * modules/ssize_t: Likewise.
40397         * modules/stdarg: Likewise.
40398         * modules/stdbool: Likewise.
40399         * modules/stddef: Likewise.
40400         * modules/stdint: Likewise.
40401         * modules/stdio: Likewise.
40402         * modules/stdlib: Likewise.
40403         * modules/string: Likewise.
40404         * modules/strings: Likewise.
40405         * modules/sys_file: Likewise.
40406         * modules/sys_ioctl: Likewise.
40407         * modules/sys_select: Likewise.
40408         * modules/sys_socket: Likewise.
40409         * modules/sys_stat: Likewise.
40410         * modules/sys_time: Likewise.
40411         * modules/sys_times: Likewise.
40412         * modules/sys_utsname: Likewise.
40413         * modules/sys_wait: Likewise.
40414         * modules/sysexits: Likewise.
40415         * modules/time: Likewise.
40416         * modules/times: Likewise.
40417         * modules/tmpfile: Likewise.
40418         * modules/trim: Likewise.
40419         * modules/unistd: Likewise.
40420         * modules/wchar: Likewise.
40421         * modules/wctype: Likewise.
40422
40423 2009-09-17  Bruno Haible  <bruno@clisp.org>
40424
40425         Make getdate.y compile on QNX and NetBSD 5 / i386.
40426         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40427         TIME_T_FITS_IN_LONG_INT.
40428         * lib/getdate.y (long_time_t): New type.
40429         (relative_time): Change type of 'seconds' field to long_time_t.
40430         (get_date): Update types of local variables. Check against overflow
40431         during conversion from long_time_t to time_t.
40432         Reported by Matt Kraai <kraai@ftbfs.org>
40433         and Hasso Tepper <hasso@netbsd.org>.
40434
40435 2009-09-17  Bruno Haible  <bruno@clisp.org>
40436
40437         * modules/COPYING: Update copyright years.
40438         * modules/README: Likeiwse.
40439         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40440         Reported by Ian Beckwith <ianb@erislabs.net>.
40441
40442 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40443
40444         * users.txt: Update references for gnuit package.
40445
40446 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40447
40448         * m4/getdelim.m4: Fix typo in copyright line.
40449
40450 2009-09-17  Bruno Haible  <bruno@clisp.org>
40451
40452         * lib/atoll.c: Use the standard header with GPL copyright.
40453         * lib/argz.in.h: Likewise.
40454         * lib/glob.c: Likewise.
40455         * lib/glob-libc.h: Likewise.
40456         * lib/random_r.c: Likewise.
40457         * lib/siglist.h: Likewise.
40458         * lib/strsignal.c: Likewise.
40459         Reported by Ian Beckwith <ianb@erislabs.net>.
40460
40461 2009-09-17  Eric Blake  <ebb9@byu.net>
40462
40463         rmdir: ensure correct dependency order
40464         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40465
40466 2009-09-17  Bruno Haible  <bruno@clisp.org>
40467
40468         Disable assertion that fails on NetBSD 5 / i386.
40469         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40470         Reported by Sam Steingold <sds@gnu.org>
40471         and Hasso Tepper <hasso@netbsd.org>.
40472
40473 2009-09-16  Eric Blake  <ebb9@byu.net>
40474
40475         unlinkdir: port to mingw
40476         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40477         on which no one can unlink a directory.
40478
40479         stdlib: sort witness names
40480         * modules/stdlib (Makefile.am): Sort replacements.
40481         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40482         * lib/stdlib.in.h: Likewise.
40483
40484         parse-duration-tests: avoid link failure
40485         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40486         LIBINTL.
40487         Reported by Tom G. Christensen.
40488
40489         openat-tests: ensure unlinkat behaves like rmdir
40490         * tests/test-rmdir.c (main): Factor guts...
40491         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40492         * modules/rmdir-tests (Files): Ship new file.
40493         * modules/openat-tests: New test.
40494         * tests/test-unlinkat.c: Likewise.
40495
40496         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40497         * modules/rmdir-errno (Status, Notice): Now obsolete.
40498
40499         rmdir: work around cygwin 1.5.x and mingw bugs
40500         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40501         * lib/rmdir.c (rmdir): Work around it.
40502         * modules/rmdir (Status, Notice): No longer obsolete.
40503         (Files): Add dos.m4.
40504         (Depends-on): Add unistd.
40505         (configure.ac): Set witnesses.
40506         (License): Relax to LGPLv2+.
40507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40508         * modules/unistd (Makefile.am): Substitute witnesses.
40509         * lib/unistd.in.h (rmdir): Declare replacement.
40510         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40511         * modules/rmdir-tests: New tests.
40512         * tests/test-rmdir.c: Likewise.
40513
40514 2009-09-15  Eric Blake  <ebb9@byu.net>
40515
40516         fchdir: improve use of replacement functions
40517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40518         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40519         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40520         REPLACE_CLOSEDIR.
40521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40522         * modules/sys_stat (Makefile.am): Substitute correct witness.
40523         * modules/dirent (Makefile.am): Likewise.
40524         * modules/unistd (Makefile.am): Likewise.
40525         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40526         * lib/unistd.in.h (dup): Likewise.
40527         * lib/sys_stat.in.h (fstat): Likewise.
40528
40529         maint: ignore gnulib-tool temp files
40530         * .gitignore: Ignore files created during gnulib-tool --test.
40531
40532 2009-09-13  Jim Meyering  <meyering@redhat.com>
40533
40534         posixtm: don't reject a time that specify "60" as the number of seconds
40535         * lib/posixtm.c (posixtime): The code to reject invalid dates
40536         would also reject a time specified with the .60 suffix.
40537         But POSIX allows that, in order to accommodate leap seconds.
40538         So don't reject it.
40539         (main): Adjust tests accordingly.
40540         * modules/posixtm (Depends-on): Add stpcpy.
40541
40542 2009-09-11  Jim Meyering  <meyering@redhat.com>
40543
40544         announce-gen: include [$release_type] in emitted Subject:
40545         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40546         e.g., [stable] in the emitted Subject: line.
40547
40548 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40549
40550         Remove obsolete macros from several modules.
40551         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40552         obsolete Autoconf macros with their modern counterparts.
40553         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40554         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40555         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40556         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40557         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40558         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40559         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40560         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40561         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40562         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40563         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40564         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40565         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40566         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40567         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40568         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40569         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40570         * m4/time_r.m4 (gl_TIME_R): Likewise.
40571         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40572         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40573         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40574
40575         Fix copyright header in build-aux scripts.
40576         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40577         recommendation.
40578         * build-aux/ncftpput-ftp: Likewise.
40579         * build-aux/update-copyright: Likewise.
40580
40581 2009-09-09  Eric Blake  <ebb9@byu.net>
40582
40583         test-link: allow Linux choice of errno
40584         * tests/test-link.c (main): Relax test for alternate error.
40585
40586         strndup: fix improper m4 caching
40587         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40588         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40589         (gl_PREREQ_STRNDUP): Delete.
40590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40591         * modules/string (Makefile.am): Substitute it.
40592         * lib/string.in.h (strndup): Modernize prototype.
40593
40594         getcwd: port to mingw
40595         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40596         different from the POSIX assumptions made throughout the getcwd
40597         module; fortunately, the mingw getcwd does not need replacement.
40598         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40599         * modules/getcwd-tests: New test.
40600         * tests/test-getcwd.c: Likewise.
40601
40602         link: fix platform bugs
40603         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40604         * lib/link.c (link): Work around them.  Fix related mingw bug.
40605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40606         * modules/unistd (Makefile.am): Substitute it.
40607         * lib/unistd.in.h (link): Declare replacement.
40608         * doc/posix-functions/link.texi (link): Document this.
40609         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40610
40611         test-link: consolidate into single C program, test more cases
40612         * tests/test-link.sh: Delete.
40613         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40614         at least Cygwin and Solaris.
40615         * modules/link-tests (Files): Remove unused file.
40616         (Depends-on): Add errno, sys_stat.
40617         (Makefile.am): Simplify.
40618
40619 2009-09-08  Bruno Haible  <bruno@clisp.org>
40620
40621         Work around towlower, towupper bug on mingw.
40622         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40623         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40624         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40625         * doc/posix-functions/towupper.texi: Likewise.
40626         Reported by Eric Blake.
40627
40628 2009-09-08  Jim Meyering  <meyering@redhat.com>
40629
40630         build: don't try to run autoheader if we don't use it
40631         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40632         is not used in configure.ac.
40633
40634 2009-09-08  Eric Blake  <ebb9@byu.net>
40635
40636         euidaccess: fix compilation error
40637         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40638
40639         rawmemchr: relax license
40640         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40641         okay.
40642         Reported by Jim Meyering.
40643
40644         mkfifoat: new module
40645         * modules/mkfifoat: New file.
40646         * lib/mkfifoat.c: Likewise.
40647         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40648         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40649         * modules/sys_stat (Makefile.am): Use them.
40650         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40651         * MODULES.html.sh (File system functions): Mention module.
40652         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40653         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40654         * modules/mkfifoat-tests: New test.
40655         * tests/test-mkfifoat.c: Likewise.
40656
40657         strchrnul: relax license
40658         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40659         okay.
40660         Reported by Jim Meyering.
40661
40662 2009-09-08  Eric Blake  <ebb9@byu.net>
40663
40664         fstatat: fix compilation on Solaris
40665         * lib/fstatat.c (includes): Add fcntl.h.
40666         Reported by Pádraig Brady.
40667
40668 2009-09-07  Eric Blake  <ebb9@byu.net>
40669
40670         rename: modernize replacement
40671         * modules/rename (Depends-on): Add stdio.
40672         (configure.ac): Declare witness.
40673         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40674         stdio take care of replacement.
40675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40676         * modules/stdio (Makefile.am): Substitute them.
40677         * lib/stdio.in.h (rename): Declare replacement.
40678         * lib/rename.c (includes): Allow cross-compilation to non-windows
40679         machines.
40680         * doc/posix-functions/rename.texi (rename): Improve
40681         documentation.
40682
40683         stdio: sort witness names
40684         * modules/stdio (Makefile.am): Sort replacements.
40685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40686         * lib/stdio.in.h: Likewise.
40687
40688         getcwd: minor cleanups
40689         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40690         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40691
40692         openat: provide more convenience names
40693         * modules/faccessat (configure.ac): Add C witness.
40694         * lib/unistd.in.h (readlinkat): Fix typo.
40695         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40696         convenience wrappers.
40697         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40698         wrappers in syntax checks.
40699
40700 2009-09-06  Eric Blake  <ebb9@byu.net>
40701
40702         doc: fix comments in recent patches
40703         * lib/faccessat.c: Mention correct function.
40704         * lib/fchmodat.c: Likewise.
40705         * lib/fchownat.c: Likewise.
40706         * lib/symlinkat.c: Likewise.
40707         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40708         constants.
40709
40710         faccessat, symlinkat: continue cleanup of previous patch
40711         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40712         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40713         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40715         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40716         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40717         set.
40718
40719 2009-09-06  Bruno Haible  <bruno@clisp.org>
40720
40721         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40722         (fstatat): Declare if GNULIB_FSTATAT is set.
40723         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40724         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40725         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40726         * modules/fcntl-h (Files): Remove m4/openat.m4.
40727         * modules/sys_stat (Files): Remove m4/openat.m4.
40728         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40729         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40730         * modules/unistd (Files): Remove m4/openat.m4.
40731         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40732         GNULIB_OPENAT.
40733         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40734         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40735         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40736         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40737         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40738         gl_OPENAT_DEFAULTS.
40739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40740         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40741         Don't require gl_OPENAT_DEFAULTS.
40742         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40743         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40744         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40745         (gl_OPENAT_DEFAULTS): Remove macro.
40746
40747 2009-09-06  Bruno Haible  <bruno@clisp.org>
40748
40749         * modules/openat (configure.ac): Remove unneeded witness.
40750
40751 2009-09-06  Bruno Haible  <bruno@clisp.org>
40752
40753         Set errno to ENOSYS when a function is entirely unsupported.
40754         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40755         EOPNOTSUPP.
40756         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40757         * modules/chown (Depends-on): Remove errno.
40758
40759 2009-09-06  Bruno Haible  <bruno@clisp.org>
40760
40761         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40762
40763 2009-09-06  Bruno Haible  <bruno@clisp.org>
40764
40765         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40766
40767 2009-09-06  Ben Pfaff  <blp@gnu.org>
40768             Bruno Haible  <bruno@clisp.org>
40769
40770         Work around a glibc bug in strtok_r.
40771         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40772         Undefine if UNDEFINE_STRTOK_R is set.
40773         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40775         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40776         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40777         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40778         UNDEFINE_STRTOK_R.
40779         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40780
40781 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40782
40783         exclude: minor fix
40784         * lib/exclude.c: Include wctype.h
40785
40786 2009-09-06  Akim Demaille  <demaille@gostai.com>
40787
40788         bootstrap: improve error message
40789         * build-aux/bootstrap (find_tool): Upon failure, report the list
40790         of candidates.
40791         Honor the initial value of the envvar.
40792
40793 2009-09-05  Eric Blake  <ebb9@byu.net>
40794
40795         symlinkat: new module
40796         * modules/symlinkat: New file.
40797         * lib/symlinkat.c: Likewise.
40798         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40800         * modules/unistd (Makefile.am): Use them.
40801         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40802         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40803         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40804         * MODULES.html.sh (File system functions): Mention module.
40805         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40806         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40807         * modules/symlinkat-tests: New test.
40808         * tests/test-symlinkat.c: Likewise.
40809
40810         test-openat-safer: add more checks
40811         * tests/test-openat-safer.c (main): Check more code paths.
40812
40813 2009-09-05  Jim Meyering  <meyering@redhat.com>
40814
40815         syntax-check: detect unnecessary inclusion of openat.h
40816         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40817
40818 2009-09-05  Bruno Haible  <bruno@clisp.org>
40819
40820         Support towlower, towupper.
40821         * doc/posix-functions/towlower.texi: Mention module wctype.
40822         * doc/posix-functions/towupper.texi: Likewise.
40823         * lib/wctype.in.h (towlower, towupper): New functions.
40824         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40825         (ASSERT): New macro.
40826         (e): New variable.
40827         (main): Test also towlower, towupper. Test WEOF argument.
40828         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40829
40830 2009-09-05  Bruno Haible  <bruno@clisp.org>
40831
40832         Fix conversion behaviour when the input is invalid.
40833         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40834         mark occurring in first pass of indirect conversion.
40835         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40836         input.
40837         Found by clang's static analyzer.
40838
40839 2009-09-05  Bruno Haible  <bruno@clisp.org>
40840
40841         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40842         where direct conversion is possible.
40843
40844 2009-09-04  Eric Blake  <ebb9@byu.net>
40845
40846         openat: fail with ENOENT on empty name
40847         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40848         buffer.
40849
40850         link-follow: fix logic bug in prior patch
40851         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40852         reversed sense of yes and no in prior patch.  Avoid confusing
40853         compilation failure with desired semantics.
40854
40855         link-follow: accomodate mingw and cross-compilation
40856         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40857         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40858         cross-compilation results to -1, to make linkat easier to
40859         implement when cross-compiling.  Trivially support mingw.
40860         * modules/link-follow (configure.ac): Call new name.
40861         * NEWS: Mention this.
40862
40863 2009-09-03  Eric Blake  <ebb9@byu.net>
40864
40865         faccessat: compile replacement
40866         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40867         needed.
40868
40869         fts: fix compilation error
40870         * lib/fts.c (includes): Re-add "openat.h", for
40871         openat_needs_fchdir.
40872
40873         faccessat: new module
40874         * modules/faccessat: New file.
40875         * lib/faccessat.c: Likewise.
40876         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40878         * modules/unistd (Makefile.am): Use it.
40879         * lib/unistd.in.h (faccessat): Declare it.
40880         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40881         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40882         * MODULES.html.sh (File system functions): Mention it.
40883         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40884         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40885
40886         euidaccess: prefer POSIX over non-standard implementation
40887         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40888         * lib/euidaccess.c (euidaccess): Use it if available.
40889
40890         openat: make template easier to use
40891         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40892         AT_FUNC_F2 to be undefined.
40893         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40894         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40895         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40896         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40897         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40898         Likewise.
40899         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40900         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40901         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40902         Likewise.
40903
40904         openat: declare in POSIX headers
40905         * NEWS: Mention this.
40906         * modules/openat (configure.ac): Declare witnesses.
40907         (Depends-on): Add fcntl-h, sys_stat, unistd.
40908         (Include): Mention correct headers.
40909         * modules/fcntl-h (Depends-on): Add link-warning.
40910         (Files): Add openat.m4.
40911         (Makefile.am): Substitute witnesses.
40912         * modules/sys_stat (Files, Makefile.am): Likewise.
40913         * modules/unistd (Files, Makefile.am): Likewise.
40914         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40915         (gl_OPENAT_DEFAULTS): New macro.
40916         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40918         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40919         (SYS_STAT_H): Remove unused variable.
40920         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40921         * lib/fcntl--.h (includes): Remove unneeded header.
40922         * lib/openat-safer.c (includes): Likewise.
40923         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40924         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40925         appropriate headers.
40926         (__OPENAT_PREFIX): Delete.
40927         * lib/fcntl.in.h (openat): Provide declaration.
40928         (AT_FDCWD): Fix Solaris bug.
40929         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
40930         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
40931         * lib/fchmodat.c (includes):  Adjust to find declaration.
40932         * lib/fchownat.c (includes): Likewise.
40933         * lib/mkdirat.c (includes): Likewise.
40934         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
40935         still visible.
40936
40937 2009-09-02  Eric Blake  <ebb9@byu.net>
40938
40939         errno: use consistently
40940         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
40941         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
40942         * lib/canonicalize.c (ELOOP): Likewise.
40943         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
40944         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
40945         * lib/lchown.c (EOPNOTSUPP): Likewise.
40946         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
40947         * lib/savewd.c (ESTALE): Likewise.
40948         * lib/settime.c (ENOSYS): Likewise.
40949         * lib/utimens.c (ENOSYS): Likewise.
40950         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
40951         * lib/chdir-safer.c (ELOOP): Likewise.
40952         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
40953         * modules/c-stack (Depends-on): Add errno.
40954         * modules/canonicalize (Depends-on): Likewise.
40955         * modules/chdir-safer (Depends-on): Likewise.
40956         * modules/fdopendir (Depends-on): Likewise.
40957         * modules/inet_ntop (Depends-on): Likewise.
40958         * modules/inet_pton (Depends-on): Likewise.
40959         * modules/lchown (Depends-on): Likewise.
40960         * modules/openat (Depends-on): Likewise.
40961         * modules/savewd (Depends-on): Likewise.
40962         * modules/settime (Depends-on): Likewise.
40963         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
40964
40965         fts: avoid leaking fds
40966         * modules/fts (Depends-on): Add cloexec.
40967         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
40968         flag.
40969
40970         fts: make directory fds more robust
40971         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
40972         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
40973
40974         backupfile, chdir-long, fts, savedir: make safer
40975         * lib/backupfile.c (includes): Use "dirent--.h", since
40976         numbered_backup can write to stderr during readdir.
40977         * lib/savedir.c (includes): Likewise.
40978         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
40979         emulation can write to stderr on failure.
40980         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
40981         * lib/getcwd.c: Document why opendir_safer is unused.
40982         * lib/glob.c: Likewise.
40983         * lib/scandir.c: Likewise.
40984         * lib/openat-proc.c: Likewise, for open_safer.
40985         * modules/backupfile (Depends-on): Add dirent-safer.
40986         * modules/savedir (Depends-on): Likewise.
40987         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
40988         * modules/chdir-long (Depends-on): Add openat-safer.
40989
40990         openat-safer: new module
40991         * modules/openat-safer: New file.
40992         * lib/openat-safer.c: Likewise.
40993         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
40994         * lib/fcntl-safer.h (openat_safer): Declare.
40995         * lib/fcntl--.h (openat): Override.
40996         * MODULES.html.sh (File descriptor based I/O): Mention it.
40997         * lib/openat.h: Add double-inclusion guards.
40998         * lib/openat.c (includes): Only include "fcntl-safer.h", not
40999         "fcntl--.h", so we can implement openat.
41000         * modules/openat-safer-tests: New test.
41001         * tests/test-openat-safer.c: New file.
41002
41003         dirent-safer: new module
41004         * modules/dirent-safer: New file.
41005         * lib/dirent--.h: Likewise.
41006         * lib/dirent-safer.h: Likewise.
41007         * lib/opendir-safer.c: Likewise.
41008         * m4/dirent-safer.m4: Likewise.
41009         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41010         * modules/dirent-safer-tests: New test.
41011         * tests/test-dirent-safer.c: New file.
41012         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41013
41014         fdopendir: optimize on mingw
41015         * lib/unistd.in.h (_gl_directory_name): New prototype.
41016         * lib/fchdir.c (_gl_directory_name): Implement it.
41017         (fchdir): Use it to simplify implementation.
41018         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41019         fchdir, when available, to avoid calling [f]chdir().
41020
41021         fdopendir: split into its own module
41022         * lib/openat.c (fdopendir): Move...
41023         * lib/fdopendir.c: ...into new file.
41024         * modules/fdopendir: New module.
41025         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41026         * modules/openat (Depends-on): Add fdopendir.
41027         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41028         fdopendir here.
41029         * modules/savedir (Depends-on): Only need fdopendir, not full
41030         openat.
41031         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41032         * lib/openat.h (fdopendir): Drop prototype.
41033         * lib/dirent.in.h (fdopendir): Provide prototype.
41034         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41035         * modules/dirent (Makefile.am): Substitute them.
41036         * MODULES.html.sh (File system functions): Mention it.
41037         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41038         * modules/fdopendir-tests: New file.
41039         * tests/test-fdopendir.c: Likewise.
41040
41041         fchdir: use more consistent macro convention
41042         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41043         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41044         REPLACE_FCHDIR, rather than relying on config.h macros.
41045         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41046         inside a single make-time REPLACE_FCHDIR block, rather than using
41047         the config.h FCHDIR_REPLACEMENT.
41048         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41049         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41050         Manage fstat replacement.
41051         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41052         REPLACE_FCHDIR.
41053         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41054         (Makefile.am): Substitute REPLACE_FCHDIR.
41055         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41056         FCHDIR_REPLACEMENT.
41057         * lib/dup-safer.c (dup_safer): Likewise.
41058         * lib/dup2.c (rpl_dup2): Likewise.
41059         * lib/dup3.c (rpl_dup3): Likewise.
41060         * lib/open.c (rpl_open): Likewise.
41061
41062         fchdir: simplify error handling, and support dup3
41063         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41064         stdbool, malloc-posix, realloc-posix.
41065         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41066         (ensure_dirs_slot): Return false on allocation failure.
41067         (rpl_dup2): Delete.
41068         (_gl_register_dup): New function.
41069         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41070         (_gl_register_fd): Close fd on allocation failure.
41071         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41072         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41073         prototype.
41074         (rpl_dup2_fchdir): Delete prototype.
41075         * lib/open.c (open): Update caller.
41076         * lib/dup2.c (dup2): Track fchdir metadata.
41077         * lib/dup3.c (dup3): Likewise.
41078         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41079         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41080
41081 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41082
41083         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41084         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41085         don't pass arguments to AC_OUTPUT.
41086
41087 2009-09-02  Bruno Haible  <bruno@clisp.org>
41088
41089         * modules/mkdtemp (License): Relicense under LGPLv2+.
41090         Reported by Paolo Bonzini.
41091
41092 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41093
41094         Replace uses of obsolete autoconf macros in Jim's modules.
41095         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41096         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41097         can evoke a warning from autoconf when run with -Wobsolete
41098         enabled.  They were declared obsolete for good reasons (see
41099         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41100         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41101         should not continue using the deprecated macros.
41102         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41103         obsolete Autoconf macros with modern counterparts.
41104         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41105         * m4/dos.m4 (gl_AC_DOS): Likewise.
41106         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41107         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41108         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41109         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41110         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41111         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41112         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41113         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41114         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41115         Likewise.
41116         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41117         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41118         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41119         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41120         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41121         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41122
41123 2009-09-01  Eric Blake  <ebb9@byu.net>
41124
41125         fchdir: fix off-by-one bug in previous patch
41126         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41127         (_gl_unregister_fd): Delete useless if.
41128
41129 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41130
41131         maint.mk: sort the list of syntax-check rules
41132         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41133         easier to get a sense of progress when the rules are run sequentially
41134         and take a long time.
41135
41136 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41137
41138         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41139         * modules/netinet_in: Likewise.
41140         * modules/sys_file: Likewise.
41141         * modules/sys_ioctl: Likewise.
41142         * modules/sys_select: Likewise.
41143         * modules/sys_socket: Likewise.
41144         * modules/sys_stat: Likewise.
41145         * modules/sys_time: Likewise.
41146         * modules/sys_times: Likewise.
41147         * modules/sys_utsname: Likewise.
41148         * modules/sys_wait: Likewise.
41149
41150 2009-09-01  Jim Meyering  <meyering@redhat.com>
41151
41152         fts: help ensure that return values are not ignored
41153         * lib/fts_.h (__GNUC_PREREQ): Define.
41154         (__attribute_warn_unused_result__): Define.
41155         (fts_children, fts_close, fts_open, fts_read): Declare with
41156         __attribute_warn_unused_result__.
41157
41158         fts: fts_close now fails also when closing a dir file descriptor fails
41159         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41160         and propagate to caller, along with errno.
41161
41162         announce-gen: correct formatting in --help output
41163         * build-aux/announce-gen (usage): Move the one-line description in
41164         --help output "up", to where it belongs, just after Usage:.
41165
41166 2009-08-31  Eric Blake  <ebb9@byu.net>
41167
41168         fchdir: port to mingw
41169         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41170         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41171         opened, then use a substitute.
41172         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41173         replacement.
41174         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41175         (_gl_register_fd): No need to check stat if open already filters
41176         all directories.
41177         (fchdir): Fix error condition to match POSIX.
41178         * modules/fchdir (Depends-on): Add sys_stat.
41179         * doc/posix-functions/open.texi (open): Document the limitation.
41180         * modules/fchdir-tests: New file.
41181         * tests/test-fchdir.c: Likewise.
41182
41183         canonicalize: allow cross-testing from cygwin to mingw
41184         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41185         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41186         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41187         Likewise.
41188         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41189         target does not support symlinks.
41190         * tests/test-canonicalize-lgpl.sh: Likewise.
41191
41192         chown: avoid compilation warning on mingw
41193         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41194         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41195         mingw.
41196         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41197         * modules/chown (Depends-on): Add errno.
41198
41199 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41200
41201         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41202         command.
41203
41204 2009-08-31  Jim Meyering  <meyering@redhat.com>
41205
41206         canonicalize: remove useless initialization
41207         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41208         initialization of local, "end".
41209
41210 2009-08-30  Bruno Haible  <bruno@clisp.org>
41211
41212         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41213         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41214         ENOSYS.
41215
41216 2009-08-30  Bruno Haible  <bruno@clisp.org>
41217
41218         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41219         /usr/xpg4/bin/tr when it exists.
41220         * tests/test-pipe-filter-gi1.sh: Likewise.
41221
41222 2009-08-30  Bruno Haible  <bruno@clisp.org>
41223
41224         Work around deficient /usr/bin/id program on Solaris.
41225         * tests/test-file-has-acl.sh (ID): New variable.
41226         * tests/test-set-mode-acl.sh (ID): Likewise.
41227         * tests/test-copy-acl.sh (ID): Likewise.
41228         * tests/test-copy-file.sh (ID): Likewise.
41229
41230 2009-08-30  Bruno Haible  <bruno@clisp.org>
41231
41232         New module 'xstriconveh'.
41233         * lib/xstriconveh.h: New file.
41234         * lib/xstriconveh.c: New file.
41235         * modules/xstriconveh: New file.
41236
41237 2009-08-30  Bruno Haible  <bruno@clisp.org>
41238
41239         Make it easier to use mem_cd_iconveh.
41240         * lib/striconveh.h (iconveh_t): New type.
41241         (iconveh_open, iconveh_close): New declarations.
41242         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41243         with a single 'const iconveh_t *' argument.
41244         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41245         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41246         with a single 'const iconveh_t *' argument.
41247         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41248         * tests/test-striconveh.c (main): Update.
41249         * NEWS: Mention the change.
41250
41251 2009-08-30  Bruno Haible  <bruno@clisp.org>
41252
41253         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41254         problem.
41255
41256 2009-08-30  Bruno Haible  <bruno@clisp.org>
41257
41258         Work around iconv_open problem on Solaris.
41259         * lib/iconv_open-solaris.gperf: New file.
41260         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41261         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41262         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41263         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41264         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41265         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41266
41267 2009-08-29  Jim Meyering  <meyering@redhat.com>
41268
41269         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41270         * top/maint.mk (cvs-check): Remove target; it was just an alias
41271         to the better-named vc-diff-check.
41272         (maintainer-distcheck): Remove rule.  It was used only from
41273         the (alpha/beta/major) target, and all of its commands but one
41274         were coreutils-specific.
41275         (vc-dist): Remove rule.
41276         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41277         Run vc-diff-check, not vc-dist.
41278         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41279
41280 2009-08-27  Bruno Haible  <bruno@clisp.org>
41281
41282         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41283         of 0.
41284
41285 2009-08-27  Bruno Haible  <bruno@clisp.org>
41286
41287         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41288         compilers.
41289         * doc/func.texi: Document the SunPRO C bug.
41290
41291 2009-08-27  Bruno Haible  <bruno@clisp.org>
41292
41293         Fix link error on Solaris.
41294         * tests/test-parse-duration.c (xstrdup): Remove function.
41295
41296 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41297
41298         ignore-value: handle pointer types, too
41299         * lib/ignore-value.h (__attribute__): Remove definition.
41300         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41301         of a more concise and more-often effective "(void) i" statement.
41302         (ignore_ptr): New function to suppress warnings from functions that
41303         return pointers, and to make it explicit that one function doesn't
41304         handle all cases.
41305
41306 2009-08-25  Bruno Haible  <bruno@clisp.org>
41307
41308         dup2: work around a Linux bug.
41309         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41310         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41311         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41312         Reported by Simon Josefsson.
41313
41314 2009-08-25  Jim Meyering  <meyering@redhat.com>
41315
41316         libguestfs uses gnulib
41317         * users.txt: Add libguestfs.
41318
41319 2009-08-24  Eric Blake  <ebb9@byu.net>
41320
41321         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41322         * lib/pipe2.c (includes): Add binary-io.h.
41323         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41324
41325 2009-08-24  Bruno Haible  <bruno@clisp.org>
41326
41327         Tolerate declared but missing accept4 syscall.
41328         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41329         available.
41330         * lib/sys_socket.in.h (accept4): If the function is already present,
41331         override it.
41332         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41333         * modules/accept4 (Makefile.am): Compile accept4.c always.
41334         Reported by Paolo Bonzini and Eric Blake.
41335
41336 2009-08-23  Bruno Haible  <bruno@clisp.org>
41337
41338         New module 'accept4'.
41339         * lib/sys_socket.in.h (accept4): New declaration.
41340         * lib/accept4.c: New file.
41341         * m4/accept4.m4: New file.
41342         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41343         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41344         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41345         HAVE_ACCEPT4.
41346         * modules/accept4: New file.
41347         * doc/glibc-functions/accept4.texi: Mention the new module.
41348
41349 2009-08-24  Jim Meyering  <meyering@redhat.com>
41350
41351         progname: also set global program_invocation_name, when possible
41352         Before this change, a libtool-enabled program that calls glibc's
41353         error function would report the program name as
41354         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41355         * modules/progname (configure.ac): Check for a declaration of
41356         program_invocation_name.
41357         * lib/progname.c:  Include <errno.h>.
41358         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41359         Set program_invocation_name.
41360
41361 2009-08-23  Bruno Haible  <bruno@clisp.org>
41362
41363         * lib/dup3.c: Include <string.h>.
41364
41365 2009-08-23  Bruno Haible  <bruno@clisp.org>
41366
41367         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41368         * lib/pipe2.c (pipe2): Likewise.
41369         Suggested by Eric Blake.
41370
41371 2009-08-23  Bruno Haible  <bruno@clisp.org>
41372
41373         Tolerate declared but missing dup3 syscall.
41374         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41375         * lib/unistd.in.h (dup3): If the function is already present,
41376         override it.
41377         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41378         * modules/dup3 (Makefile.am): Compile dup3.c always.
41379         Reported by Paolo Bonzini.
41380
41381 2009-08-23  Bruno Haible  <bruno@clisp.org>
41382
41383         Tolerate declared but missing pipe2 syscall.
41384         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41385         available.
41386         * lib/unistd.in.h (pipe2): If the function is already present,
41387         override it.
41388         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41389         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41390         Reported by Paolo Bonzini.
41391
41392 2009-08-23  Bruno Haible  <bruno@clisp.org>
41393
41394         * lib/pipe2.c (pipe2): Move #ifs inside function.
41395
41396 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41397
41398         quotearg: document limitations of quote_these_too
41399         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41400         those limitations are created.
41401         * lib/quotearg.h (set_char_quoting): Document that digits and
41402         letters that are special after backslash are not permitted.
41403         (quotearg_char): Cross-reference set_char_quoting documentation.
41404
41405 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41406
41407         quotearg: implement custom_quoting_style
41408         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41409         right_quote fields.
41410         (set_custom_quoting): New public function.
41411         (quotearg_buffer_restyled): Add left_quote and right_quote
41412         arguments, handle them very much like locale quoting, and update
41413         all uses.
41414         (quotearg_n_custom): New public function.
41415         (quotearg_n_custom_mem): New public function.
41416         (quotearg_custom): New public function.
41417         (quotearg_custom_mem): New public function.
41418         * lib/quotearg.h: Prototype and document new public functions.
41419         (enum quoting_style): For escape_quoting_style and
41420         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41421         ignored even though they're otherwise like c_quoting_style.
41422         Add custom_quoting_style member and document with comparison to
41423         clocale_quoting_style.
41424         * tests/test-quotearg.c (custom_quotes): New array.
41425         (custom_results): New array.
41426         (main): Extend to test custom quoting.
41427
41428 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41429
41430         quotearg: fix right quote escaping when it's in quote_these_too
41431         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41432         quote, be sure to prepend only one backslash.
41433         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41434         (main): Test it.
41435
41436 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41437
41438         quotearg-tests: test escaping of embedded locale quotes
41439         * tests/test-quotearg.c (struct result_strings): Add member for
41440         new input.
41441         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41442         (inputs): Add new input.
41443         (results_g): Add expected results.
41444         (flag_results): Likewise.
41445         (locale_results): Likewise.
41446         (compare_strings): Check those.
41447
41448 2009-08-23  Bruno Haible  <bruno@clisp.org>
41449
41450         Tests for module 'dup3'.
41451         * modules/dup3-tests: New file.
41452         * tests/test-dup3.c: New file.
41453
41454         New module 'dup3'.
41455         * lib/unistd.in.h (dup3): New declaration.
41456         * lib/dup3.c: New file.
41457         * m4/dup3.m4: New file.
41458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41459         HAVE_DUP3.
41460         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41461         * modules/dup3: New file.
41462         * doc/glibc-functions/dup3.texi: Mention the new module.
41463
41464 2009-08-23  Bruno Haible  <bruno@clisp.org>
41465
41466         Tweak the dup2 test.
41467         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41468         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41469         the test file is still empty. Fix argument order of lseek.
41470
41471 2009-08-23  Bruno Haible  <bruno@clisp.org>
41472
41473         Avoid test link errors when the modules getopt-gnu, gettext are used.
41474         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41475         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41476
41477 2009-08-23  Bruno Haible  <bruno@clisp.org>
41478
41479         Fix getdtablesize() on mingw.
41480         * lib/getdtablesize.c (getdtablesize): Implement differently.
41481         * lib/unistd.in.h (getdtablesize): Improve comment.
41482
41483 2009-08-23  Bruno Haible  <bruno@clisp.org>
41484
41485         New module 'mkostemp'.
41486         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41487         * lib/stdlib.in.h (mksotemp): New declaration.
41488         * lib/mkostemp.c: New file, from glibc with modifications.
41489         * lib/tempname.h (GT_FILE): Remove outdated comment.
41490         (gen_tempname): Add flags argument.
41491         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41492         (__GT_FILE): Map to 1.
41493         (small_open, large_open): Remove macros.
41494         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41495         * lib/mkstemp.c (mkstemp): Update.
41496         * lib/mkdtemp.c (mkdtemp): Likewise.
41497         * m4/mkostemp.m4: New file.
41498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41499         HAVE_MKOSTEMP.
41500         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41501         HAVE_MKOSTEMP.
41502         * modules/mkostemp: New file, based on modules/mkstemp.
41503         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41504         * NEWS: Mention the change.
41505
41506 2009-08-23  Bruno Haible  <bruno@clisp.org>
41507
41508         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41509         Reported by Eric Blake.
41510
41511 2009-08-23  Bruno Haible  <bruno@clisp.org>
41512
41513         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41514         Reported by Eric Blake.
41515
41516 2009-08-23  Bruno Haible  <bruno@clisp.org>
41517
41518         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41519         * modules/pipe2 (Depends-on): Likewise.
41520
41521 2009-08-23  Eric Blake  <ebb9@byu.net>
41522
41523         fcntl-h: add O_TTY_INIT support
41524         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41525         * tests/test-fcntl-h.c (o): Test it.
41526         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41527
41528         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41529         * modules/fcntl: Move <fcntl.h> header replacement...
41530         * modules/fcntl-h: ...to new name, so as not to collide with
41531         like-named function.
41532         * tests/test-fcntl.c: Rename...
41533         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41534         * modules/fcntl-tests: Rename...
41535         * modules/fcntl-h-tests: ...to this.  Update test file name.
41536         * modules/chdir-long (Depends-on): Update clients.
41537         * modules/chdir-safer (Depends-on): Likewise.
41538         * modules/fcntl-safer (Depends-on): Likewise.
41539         * modules/fts (Depends-on): Likewise.
41540         * modules/mkancesdirs (Depends-on): Likewise.
41541         * modules/mkdir-p (Depends-on): Likewise.
41542         * modules/open (Depends-on): Likewise.
41543         * modules/savewd (Depends-on): Likewise.
41544         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41545         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41546
41547 2009-08-22  Bruno Haible  <bruno@clisp.org>
41548
41549         * modules/binary-io (License): Relicense under LGPL.
41550         * modules/pipe2 (License): Likewise.
41551
41552 2009-08-22  Bruno Haible  <bruno@clisp.org>
41553
41554         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41555         return value.
41556         * lib/pipe-filter-gi.c (filter_init): Likewise.
41557         Reported by Eric Blake.
41558
41559 2009-08-22  Bruno Haible  <bruno@clisp.org>
41560
41561         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41562         * modules/pipe (Depends-on): Add pipe2.
41563
41564 2009-08-22  Bruno Haible  <bruno@clisp.org>
41565
41566         Tests for module 'pipe2'.
41567         * modules/pipe2-tests: New file.
41568         * tests/test-pipe2.c: New file.
41569
41570         New module 'pipe2'.
41571         * lib/unistd.in.h (pipe2): New declaration.
41572         * lib/pipe2.c: New file.
41573         * m4/pipe2.m4: New file.
41574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41575         HAVE_PIPE2.
41576         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41577         * modules/pipe2: New file.
41578         * doc/glibc-functions/pipe2.texi: Mention the new module.
41579
41580 2009-08-22  Bruno Haible  <bruno@clisp.org>
41581
41582         Reference some new glibc functions.
41583         * doc/glibc-functions/accept4.texi: New file.
41584         * doc/glibc-functions/dup3.texi: New file.
41585         * doc/glibc-functions/mkostemp.texi: New file.
41586         * doc/glibc-functions/pipe2.texi: New file.
41587         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41588         (Glibc sys/socket.h): Refer to accept4.
41589         (Glibc unistd.h): Refer to dup3, pipe2.
41590         Reported by Eric Blake.
41591
41592 2009-08-22  Jim Meyering  <meyering@redhat.com>
41593             Bruno Haible  <bruno@clisp.org>
41594
41595         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41596         This makes it so packages using automake-1.11's silent-rules option
41597         can print e.g., a single "GEN    configmake.h" line, rather than
41598         the 30+ statements that perform the job.  If you want to see the
41599         actual commands, you can still run "make V=1".
41600         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41601         so that make output is abbreviated when those variables are defined
41602         appropriately.
41603         * modules/argz: Likewise.
41604         * modules/arpa_inet: Likewise.
41605         * modules/byteswap: Likewise.
41606         * modules/configmake: Likewise.
41607         * modules/dirent: Likewise.
41608         * modules/errno: Likewise.
41609         * modules/fcntl: Likewise.
41610         * modules/float: Likewise.
41611         * modules/fnmatch: Likewise.
41612         * modules/getopt-posix: Likewise.
41613         * modules/glob: Likewise.
41614         * modules/iconv_open: Likewise.
41615         * modules/inttypes: Likewise.
41616         * modules/localcharset: Likewise.
41617         * modules/locale: Likewise.
41618         * modules/math: Likewise.
41619         * modules/netdb: Likewise.
41620         * modules/netinet_in: Likewise.
41621         * modules/poll: Likewise.
41622         * modules/posix_spawnp-tests: Likewise.
41623         * modules/sched: Likewise.
41624         * modules/search: Likewise.
41625         * modules/selinux-h: Likewise.
41626         * modules/signal: Likewise.
41627         * modules/spawn: Likewise.
41628         * modules/stdarg: Likewise.
41629         * modules/stdbool: Likewise.
41630         * modules/stddef: Likewise.
41631         * modules/stdint: Likewise.
41632         * modules/stdio: Likewise.
41633         * modules/stdlib: Likewise.
41634         * modules/string: Likewise.
41635         * modules/strings: Likewise.
41636         * modules/sys_file: Likewise.
41637         * modules/sys_ioctl: Likewise.
41638         * modules/sys_select: Likewise.
41639         * modules/sys_socket: Likewise.
41640         * modules/sys_stat: Likewise.
41641         * modules/sys_time: Likewise.
41642         * modules/sys_times: Likewise.
41643         * modules/sys_utsname: Likewise.
41644         * modules/sys_wait: Likewise.
41645         * modules/sysexits: Likewise.
41646         * modules/time: Likewise.
41647         * modules/unistd: Likewise.
41648         * modules/wchar: Likewise.
41649         * modules/wctype: Likewise.
41650
41651 2009-08-22  Jim Meyering  <meyering@redhat.com>
41652
41653         announce-gen: detect write failure
41654         * build-aux/announce-gen: Add Coda at end.
41655         Remove equivalent-but-more-verbose block at top.
41656
41657 2009-08-19  Akim Demaille  <demaille@gostai.com>
41658
41659         bootstrap: --help to stdout.
41660         * bootstrap (usage): Don't send --help to stderr.
41661         Use a here doc instead of a long string.
41662
41663 2009-08-21  Eric Blake  <ebb9@byu.net>
41664
41665         test-popen-safer: split from test-popen
41666         * tests/test-popen.c (main): Move...
41667         * tests/test-popen.h: ...into new file.
41668         * tests/test-popen-safer2.c: New file.
41669         * modules/popen-tests (Files): Add test-popen.h.
41670         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41671         Suggested by Bruno Haible.
41672
41673         test-fcntl-safer: split from test-open
41674         * tests/test-open.c (main): Move...
41675         * tests/test-open.h: ...into new file.
41676         * tests/test-fcntl-safer.c: New file.
41677         * modules/open-tests (Files): Add test-open.h.
41678         * modules/fcntl-safer-tests: New file.
41679         Suggested by Bruno Haible.
41680
41681         test-fopen-safer: split from test-fopen
41682         * tests/test-fopen.c (main): Move...
41683         * tests/test-fopen.h: ...into new file.
41684         * tests/test-fopen-safer.c: New file.
41685         * modules/fopen-tests (Files): Add test-fopen.h.
41686         * modules/fopen-safer-tests: New file.
41687         Suggested by Bruno Haible.
41688
41689 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41690
41691         popen-safer: test O_CLOEXEC at run-time.
41692         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41693
41694 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41695
41696         fcntl: move more flags to the header
41697         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41698         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41699         * lib/fcntl.in.h: Do both things here.
41700
41701 2009-08-21  Jim Meyering  <meyering@redhat.com>
41702
41703         consistently remove $@-t before redirecting to it
41704         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41705         * modules/alloca-opt: Likewise.
41706         * modules/byteswap: Likewise.
41707         * modules/fnmatch: Likewise.
41708         * modules/getopt-posix: Likewise.
41709         * modules/glob: Likewise.
41710         * modules/poll: Likewise.
41711         * modules/posix_spawnp-tests: Likewise.
41712         * modules/sys_socket: Likewise.
41713         * modules/sysexits: Likewise.
41714
41715 2009-08-21  Eric Blake  <ebb9@byu.net>
41716
41717         popen: simplify access to original popen
41718         * lib/popen.c (rpl_popen): No need to worry about popen being a
41719         macro.
41720         Reported by Bruno Haible.
41721
41722 2009-08-20  Eric Blake  <ebb9@byu.net>
41723
41724         build: avoid some compiler warnings
41725         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41726         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41727         type.
41728         (new_exclude_segment, excluded_file_pattern_p)
41729         (excluded_file_name_p): Reduce scope.
41730         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41731         old-style declaration.
41732
41733 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41734
41735         * tests/test-exclude1.sh: Handle Windows EOL.
41736         * tests/test-exclude2.sh: Likewise.
41737         * tests/test-exclude3.sh: Likewise.
41738         * tests/test-exclude4.sh: Likewise.
41739         * tests/test-exclude5.sh: Likewise.
41740         * tests/test-exclude6.sh: Likewise.
41741         * tests/test-exclude7.sh: Likewise.
41742
41743 2009-08-19  Akim Demaille  <demaille@gostai.com>
41744
41745         bootstrap: find sha1sum when named gsha1sum.
41746         * bootstrap (find_tool): New.
41747         ($SHA1SUM): New.
41748         Use it.
41749
41750 2009-08-20  Jim Meyering  <meyering@redhat.com>
41751
41752         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41753         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41754         expression that converts "." in a file name to "\." in the resulting
41755         regexp.  Start with a dummy statement, so that prior shell variable
41756         definitions are expanded portably.  Reported by Simon Josefsson.
41757
41758 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41759
41760         Fix polling for writeability of a screen buffer.
41761         * lib/poll.c: Distinguish input and screen buffers for the
41762         Win32 implementation.
41763         * lib/select.c: Likewise.
41764
41765 2009-08-19  Eric Blake  <ebb9@byu.net>
41766
41767         popen-safer: prevent popen from clobbering std descriptors
41768         * modules/popen-safer: New file.
41769         * lib/popen-safer.c: Likewise.
41770         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41771         * lib/stdio--.h (popen): Provide override.
41772         * lib/stdio-safer.h (popen_safer): Provide declaration.
41773         * tests/test-popen.c (includes): Partially test this.
41774         * modules/popen-safer-tests: New file, for more tests.
41775         * tests/test-popen-safer.c: Likewise.
41776         * MODULES.html.sh (file stream based Input/Output): Mention it.
41777
41778         tests: test some of the *-safer modules
41779         * modules/fopen-safer (Depends-on): Add fopen.
41780         * modules/fcntl-safer (Depends-on): Add fcntl.
41781         * modules/stdlib-safer (Depends-on): Add stdlib.
41782         (configure.ac): Set indicator.
41783         * modules/unistd-safer (configure.ac): Likewise.
41784         * modules/tmpfile-safer (configure.ac): Likewise.
41785         (Depends-on): Add tmpfile.
41786         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41787         active.
41788         * tests/test-fopen.c (includes): Test safer versions when they are
41789         in use.
41790         * tests/test-open.c (includes): Likewise.
41791
41792         popen: fix cygwin 1.5 bug when stdin closed
41793         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41794         * modules/popen: New file.
41795         * modules/popen-tests: Likewise.
41796         * tests/test-popen.c: Likewise.
41797         * m4/popen.m4: Likewise.
41798         * lib/popen.c: Likewise.
41799         * lib/stdio.in.h (popen): New declaration.
41800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41801         * modules/stdio (Makefile.am): Likewise.
41802         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41803
41804 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41805
41806         maint.mk: give full control over update-copyright exclusions
41807         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41808         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41809         (update-copyright): Don't force inclusion of top-level
41810         ChangeLog.  Don't force exclusion of all COPYING files, but make
41811         them the default exclusion instead.
41812
41813 2009-08-16  Bruno Haible  <bruno@clisp.org>
41814
41815         Fix test failures on Solaris 10.
41816         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41817         tests when Solaris iconv() is used.
41818         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41819         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41820         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41821         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41822         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41823
41824 2009-08-16  Bruno Haible  <bruno@clisp.org>
41825
41826         Fix test failures on Solaris 10.
41827         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41828         'tr' program and pass it as first argument.
41829         * tests/test-pipe-filter-gi1.sh: Likewise.
41830         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41831         program as first argument.
41832         * tests/test-pipe-filter-gi1.c (main): Likewise.
41833
41834 2009-08-16  Eric Blake  <ebb9@byu.net>
41835
41836         fpurge: fix previous commits
41837         * modules/fpurge (Makefile.am): Make replacement conditional,
41838         partially reverting 2007-04-29 change; missed in previous
41839         attempt.
41840         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41841         is missing.
41842
41843 2009-08-16  Bruno Haible  <bruno@clisp.org>
41844
41845         Clarify fpurge's effect on the file position.
41846         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41847         * tests/test-fpurge.c (main): Make a second pass for checking the file
41848         position.
41849
41850 2009-08-16  Bruno Haible  <bruno@clisp.org>
41851
41852         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41853         declaration of fpurge is missing.
41854         * tests/test-fpurge.c (main): Check that the file has not more contents
41855         than expected. Close the file before removing it.
41856
41857 2009-08-15  Eric Blake  <ebb9@byu.net>
41858
41859         fpurge: don't wrap working cygwin implementation
41860         * lib/fpurge.c (fpurge): Fix comment typo.
41861         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41862         1.7 to avoid replacement.
41863         * tests/test-fpurge.c (main): Enhance test.
41864
41865 2009-08-15  Eric Blake  <ebb9@byu.net>
41866         and Jim Meyering  <meyering@redhat.com>
41867
41868         test-update-copyright: skip if perl is insufficient
41869         * tests/test-update-copyright.sh: Failure to run maintainer tool
41870         should not cause testsuite failure on cygwin 1.5.
41871
41872 2009-08-14  Eric Blake  <ebb9@byu.net>
41873
41874         doc: mention more functions added in cygwin 1.7.0
41875         * doc/posix-headers/limits.texi (limits.h): Update for recent
41876         cygwin additions.
41877         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41878         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41879         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41880         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41881         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41882
41883 2009-08-14  Eric Blake  <ebb9@byu.net>
41884
41885         maint.mk: simplify update-copyright rule
41886         * top/maint.mk (update-copyright-local): Delete, and document how
41887         to do it in cfg.mk instead.
41888         (update-copyright-exclude-regexp): Delete, and document how to do
41889         it in .x-update-copyright instead.
41890         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41891         exclude ChangeLog.
41892
41893 2009-08-14  Bruno Haible  <bruno@clisp.org>
41894
41895         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41896
41897 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41898
41899         maint.mk: support update-copyright-env
41900         * top/maint.mk (update-copyright-env): Define place-holder.
41901         (update-copyright): Expand $(update-copyright-env) before
41902         invoking update-copyright.
41903
41904 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41905
41906         update-copyright: implement forced reformatting
41907         * build-aux/update-copyright: Implement and document
41908         UPDATE_COPYRIGHT_FORCE.
41909         * tests/test-update-copyright.sh: Test it.
41910
41911 2009-08-14  Eric Blake  <ebb9@byu.net>
41912         and Bruno Haible  <bruno@clisp.org>
41913
41914         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41915         * tests/test-locale.c: Revert previous patch related to NULL.
41916         * tests/test-stdio.c: Likewise.
41917         * tests/test-stdlib.c: Likewise.
41918         * tests/test-string.c: Likewise.
41919         * tests/test-unistd.c: Likewise.
41920         * modules/time-tests (Depends-on): Add verify.
41921         * modules/wchar-tests (Depends-on): Likewise.
41922         * tests/test-time.c: Test for NULL compliance.
41923         * tests/test-wchar.c: Likewise.
41924         * modules/locale (Depends-on): Add stddef.
41925         * modules/stdio (Depends-on): Likewise.
41926         * modules/stdlib (Depends-on): Likewise.
41927         * modules/string (Depends-on): Likewise.
41928         * modules/time (Depends-on): Likewise.
41929         * modules/unistd (Depends-on): Likewise.
41930         * modules/wchar (Depends-on): Likewise.
41931         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
41932         * lib/stdlib.in.h (includes): Likewise.
41933         * lib/string.in.h (includes): Likewise.
41934         * lib/time.in.h (includes): Likewise.
41935         * lib/unistd.in.h (includes): Likewise.
41936         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
41937         replaced.
41938         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41939         * m4/stddef_h.m4: New file.
41940         * modules/stddef: Likewise.
41941         * lib/stddef.in.h: Likewise.
41942         * modules/stddef-tests: Likewise.
41943         * tests/test-stddef.c: Likewise.
41944         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
41945         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
41946         * doc/posix-headers/locale.texi (locale.h): Likewise.
41947         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
41948         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41949         * doc/posix-headers/string.texi (string.h): Likewise.
41950         * doc/posix-headers/time.texi (time.h): Likewise.
41951         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
41952         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
41953
41954 2009-08-14  Eric Blake  <ebb9@byu.net>
41955
41956         doc: improve git diff of texinfo files
41957         * .gitattributes: Add rule for *.texi files, with hint on how to
41958         use it.
41959         Copied from m4, and based on a report by Bruno Haible.
41960
41961 2009-08-14  Bruno Haible  <bruno@clisp.org>
41962
41963         Disable multithread support by default on Cygwin 1.5.x for real.
41964         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
41965
41966 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41967
41968         update-copyright: much ado about intervals
41969         * build-aux/update-copyright: Implement and document
41970         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
41971         of copyright year intervals.
41972         Also, document UPDATE_COPYRIGHT_YEAR.
41973         * tests/test-update-copyright.sh: Test it.
41974
41975         update-copyright: convert 2-digit to 4-digit years
41976         * build-aux/update-copyright: Implement and document.
41977         * tests/test-update-copyright.sh: Update.
41978
41979 2009-08-14  Jim Meyering  <meyering@redhat.com>
41980
41981         test-exclude: avoid coreutils "make check" failure
41982         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
41983         just as in test-argmatch.c.
41984
41985 2009-08-13  Eric Blake  <ebb9@byu.net>
41986
41987         test-dup2: fix bad assumption
41988         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
41989         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
41990
41991         test-version-etc: fix CRLF portability issue
41992         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
41993         recognize \r.
41994         * tests/test-argp-version-etc-1.sh: Likewise.
41995
41996         getopt: update client modules
41997         * modules/argp (Depends-on): Use getopt-gnu.
41998         * modules/git-merge-changelog (Depends-on): Likewise.
41999         * modules/long-options (Depends-on): Likewise.
42000         * modules/xstrtol (Depends-on): Likewise.
42001
42002 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42003
42004         * tests/test-version-etc.sh: Don't fail on different
42005         project/version.  Don't fail on CRLF differences.  Rewrite to use
42006         multiple -e instead of multiple sed forks, suggested by Eric Blake
42007         <ebb9@byu.net>.
42008         * tests/test-argp-version-etc-1.sh: Likewise.
42009
42010 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42011
42012         * tests/test-version-etc.sh: Don't fail on different
42013         project/version.
42014
42015 2009-08-12  Bruno Haible  <bruno@clisp.org>
42016
42017         Tests for modules 'getopt-posix', 'getopt-gnu'.
42018         * modules/getopt-posix-tests: New file.
42019         * tests/test-getopt.c: New file.
42020         * tests/test-getopt.h: New file.
42021         * tests/test-getopt_long.h: New file.
42022
42023         New modules 'getopt-posix', 'getopt-gnu'.
42024         * modules/getopt-gnu: New file, renamed from modules/getopt.
42025         * modules/getopt-posix: New file.
42026         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42027         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42028         (gl_GETOPT): Remove macro.
42029         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42030         Disable the test against BSD systems that declare optreset. Test
42031         against mingw bug. Test against lack of support of optional arguments
42032         on many platforms.
42033         * doc/glibc-headers/getopt.texi: Update module name and list of
42034         relevant platforms.
42035         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42036         'getopt-gnu' and more portability problems.
42037         * NEWS: Mention the changes.
42038
42039 2009-08-12  Bruno Haible  <bruno@clisp.org>
42040
42041         Ensure that optarg etc. get declared by <unistd.h>.
42042         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42043         AC_USE_SYSTEM_EXTENSIONS.
42044         * modules/getopt (Depends-on): Add 'extensions'.
42045
42046 2009-08-12  Bruno Haible  <bruno@clisp.org>
42047
42048         Avoid test link errors.
42049         * modules/pipe-filter-ii-tests (Makefile.am): Define
42050         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42051         * modules/pipe-filter-gi-tests (Makefile.am): Define
42052         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42053         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42054
42055 2009-08-12  Bruno Haible  <bruno@clisp.org>
42056
42057         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42058         gl_GETOPT_SUBSTITUTE before.
42059         (gl_GETOPT): Use it.
42060         * m4/argp.m4 (gl_ARGP): Update.
42061         Reported by Sergey Poznyakoff.
42062
42063         * m4/getopt.m4: Reorder macros.
42064         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42065         (gl_GETOPT_SUBSTITUTE): Remove macro.
42066
42067 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42068
42069         Minor improvement in gitlog-to-changelog
42070
42071         * build-aux/gitlog-to-changelog: New option `--format' makes
42072         output format string configurable.
42073
42074 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42075
42076         Optimize exclude: use hash tables for non-wildcard patterns.
42077
42078         * lib/exclude.c: Include hash.h and mbuiter.h
42079         (struct exclude_pattern, exclude_segment): New data types.
42080         (struct exclude): Rewrite.
42081         (fnmatch_pattern_has_wildcards): New function.
42082         (new_exclude_segment, free_exclude_segment): New functions.
42083         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42084         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42085         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42086         * modules/exclude: Depend on hash and mbuiter.
42087
42088         * modules/exclude-tests: New file.
42089         * tests/test-exclude.c: New file.
42090         * tests/test-exclude1.sh: New file.
42091         * tests/test-exclude2.sh: New file.
42092         * tests/test-exclude3.sh: New file.
42093         * tests/test-exclude4.sh: New file.
42094         * tests/test-exclude5.sh: New file.
42095         * tests/test-exclude6.sh: New file.
42096         * tests/test-exclude7.sh: New file.
42097
42098 2009-08-12  Bruno Haible  <bruno@clisp.org>
42099
42100         Ensure that getopt() gets declared by <unistd.h>.
42101         * lib/unistd.in.h: Conditionally include getopt.h.
42102         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42103         Set GNULIB_UNISTD_H_GETOPT.
42104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42105         GNULIB_UNISTD_H_GETOPT.
42106         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42107
42108 2009-08-12  Bruno Haible  <bruno@clisp.org>
42109
42110         Clarify logic.
42111         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42112         gl_replace_getopt instead of GETOPT_H.
42113
42114 2009-08-12  Bruno Haible  <bruno@clisp.org>
42115
42116         * m4/getopt.m4: Add comments.
42117
42118 2009-08-12  Bruno Haible  <bruno@clisp.org>
42119
42120         Disable multithread support by default on Cygwin 1.5.x.
42121         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42122         set gl_use_threads=no if not specified otherwise.
42123
42124 2009-08-11  Bruno Haible  <bruno@clisp.org>
42125
42126         Avoid compilation error on NetBSD 5.0.
42127         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42128         * tests/test-stdio.c: Likewise.
42129         * tests/test-stdlib.c: Likewise.
42130         * tests/test-string.c: Likewise.
42131         * tests/test-unistd.c: Likewise.
42132         Reported by Greg Troxel <gdt@ir.bbn.com>
42133         at <https://savannah.gnu.org/support/?106973>.
42134
42135 2009-08-11  Bruno Haible  <bruno@clisp.org>
42136
42137         * modules/dup2-tests (Depends-on): Remove close.
42138
42139         Undo 2009-07-19 commit.
42140         * modules/acl-tests (Depends-on): Remove close.
42141         * modules/binary-io-tests (Depends-on): Likewise.
42142         * modules/closein-tests (Depends-on): Likewise.
42143         * modules/flock-tests (Depends-on): Likewise.
42144         * modules/fsync-tests (Depends-on): Likewise.
42145         * modules/lseek-tests (Depends-on): Likewise.
42146         * modules/pipe-tests (Depends-on): Likewise.
42147         * modules/posix_spawn-tests (Depends-on): Likewise.
42148         * modules/posix_spawnp-tests (Depends-on): Likewise.
42149         * modules/stat-time-tests (Depends-on): Likewise.
42150         * modules/yesno-tests (Depends-on): Likewise.
42151
42152 2009-08-10  Bruno Haible  <bruno@clisp.org>
42153
42154         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42155
42156 2009-08-10  Bruno Haible  <bruno@clisp.org>
42157
42158         Fix a gcc warning.
42159         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42160
42161 2009-08-10  Bruno Haible  <bruno@clisp.org>
42162
42163         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42164         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42165         not only the first time.
42166         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42167         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42168         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42169         is 1, not only the the first time.
42170
42171 2009-08-10  Bruno Haible  <bruno@clisp.org>
42172
42173         Make it possible to use module 'gethostname' without module 'close'.
42174         * lib/unistd.in.h (close): Evoke a link error only if
42175         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42177         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42178         * modules/unistd (Makefile.am): Substitute
42179         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42180         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42181         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42182         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42183         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42184         * modules/sys_ioctl (Makefile.am): Substitute
42185         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42186         * modules/socket (configure.ac): On native Windows, set
42187         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42188         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42189         Reported by Sam Steingold <sds@gnu.org>.
42190
42191 2009-08-10  Bruno Haible  <bruno@clisp.org>
42192
42193         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42194         * modules/ioctl (configure.ac): Likewise.
42195
42196 2009-08-10  Bruno Haible  <bruno@clisp.org>
42197
42198         Avoid collision between gnulib wrapper and libintl wrapper.
42199         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42200         already defined in intl/printf.c.
42201         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42202         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42203
42204 2009-08-09  Bruno Haible  <bruno@clisp.org>
42205
42206         Make <sys/select.h> really self-contained, also on Solaris 10.
42207         * lib/sys_select.in.h: Include <string.h>.
42208         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42209         Solaris 10 problem.
42210         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42211         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42212         Reported by Jim Meyering.
42213
42214 2009-08-09  Bruno Haible  <bruno@clisp.org>
42215
42216         Avoid warnings from 'aclocal' that are due to a use of macro name
42217         AM_XGETTEXT_OPTION that is not defined in automake.
42218         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42219         automake.
42220         * modules/error (configure.ac): Likewise.
42221         * modules/propername (configure.ac): Likewise.
42222         * modules/vasprintf (configure.ac): Likewise.
42223         * modules/verror (configure.ac): Likewise.
42224         * modules/xprintf (configure.ac): Likewise.
42225         * modules/xvasprintf (configure.ac): Likewise.
42226
42227 2009-08-08  Bruno Haible  <bruno@clisp.org>
42228
42229         Avoid compilation error in C++ mode.
42230         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42231         Reported by Sam Steingold <sds@gnu.org>.
42232
42233 2009-08-08  Bruno Haible  <bruno@clisp.org>
42234
42235         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42236         for the various Unix platforms.
42237         * doc/posix-headers/limits.texi: Update platforms list regarding
42238         HOST_NAME_MAX.
42239         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42240
42241 2009-08-07  Jim Meyering  <meyering@redhat.com>
42242
42243         selinux-at: fix typo in a comment
42244         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42245         Spotted by Paolo Bonzini.
42246
42247         selinux-at: remove redundant m4 code, add documentation
42248         * modules/selinux-at (configure.ac): Remove redundant code.
42249         LIB_SELINUX is already set via the dependent module, selinux-h.
42250         (Include): Add quotes around selinux-at.h.
42251         * lib/selinux-at.h: Add documentation.
42252         Reported by Bruno Haible in
42253         http://marc.info/?l=gnulib-bug&m=124958988300749
42254
42255 2009-08-07  Bruno Haible  <bruno@clisp.org>
42256
42257         Avoid link error on MacOS X 10.3 and 10.4.
42258         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42259         on non-ELF systems.
42260         * lib/argp-pv.c (argp_program_version): Likewise.
42261         Reported by Simon Josefsson.
42262
42263 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42264
42265         * tests/test-version-etc.sh: Use $EXEEXT.
42266
42267 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42268
42269         update-copyright: update documentation to point to maint.mk
42270         * build-aux/update-copyright: Here.
42271
42272 2009-08-06  Jim Meyering  <meyering@redhat.com>
42273
42274         maint.mk: support update-copyright-local
42275         * top/maint.mk (update-copyright-local): Define place-holder.
42276         (update-copyright): Depend on $(update-copyright-local).
42277
42278 2009-08-06  Jim Meyering  <meyering@redhat.com>
42279
42280         selinux-at: new module
42281         Initially written for coreutils, this module will soon be
42282         used by findutils, too.
42283         * MODULES.html.sh [Misc]: Add selinux-at.
42284         * lib/selinux-at.h: New file, from coreutils.
42285         * lib/selinux-at.c: Likewise.
42286         * modules/selinux-at: Likewise.
42287         (License): Change from LGPL to GPL, since it depends
42288         on the GPL'd openat module.
42289
42290         doc: update README
42291         * README: Remove references to cogito.
42292         Remove cvs-repo-updating instructions from 2007.
42293         Don't imply that CVS is better if you have limited disk space.
42294
42295 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42296
42297         update-copyright: support C-style comments
42298         * build-aux/update-copyright: Implement and document.
42299         * tests/test-update-copyright.sh: Test.
42300
42301 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42302
42303         update-copyright: support omitted "(C)"
42304         * build-aux/update-copyright: Implement and document.  Also,
42305         allow variable whitespace before "(C)".
42306         * tests/test-update-copyright.sh: Test.
42307
42308 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42309
42310         update-copyright: don't trip on non-FSF copyright statements
42311         * build-aux/update-copyright: Fix so that the first correctly
42312         formatted FSF copyright statement is recognized no matter what
42313         appears before it.  Update documentation.
42314         * tests/test-update-copyright.sh: Test that.
42315
42316 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42317
42318         update-copyright: clean up code a little
42319         * build-aux/update-copyright: Append "_re" to the name of any
42320         variable holding a regular expression.
42321         Replace "old" and "new" with "stmt" in variable names.
42322         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42323         handled correctly.
42324         Format code more consistently.
42325
42326 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42327
42328         update-copyright-tests: improve portability
42329         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42330         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42331
42332 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42333
42334         update-copyright: support @copyright{} and &copy;
42335         * build-aux/update-copyright: Implement and document.
42336         * tests/test-update-copyright.sh: Test.
42337
42338 2009-08-04  Jim Meyering  <meyering@redhat.com>
42339
42340         update-copyright-tests: correctly test EOL=\r\n handling
42341         * tests/test-update-copyright.sh: Put \r at the end of some lines
42342         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42343
42344         maint.mk: make update-copyright exclusion list more configurable
42345         * top/maint.mk (update-copyright): Default to excluding COPYING,
42346         but allow an override, in case someone does want to update that file.
42347
42348         maint.mk: don't update copyright date in COPYING
42349         * top/maint.mk (update-copyright): Exclude COPYING.
42350
42351         maint.mk: add a copyright-updating rule
42352         * top/maint.mk (update-copyright): New rule.
42353         Derived from coreutils/Makefile.am.
42354
42355         update-copyright: rename some variables
42356         * build-aux/update-copyright: Rename a few variables for clarity.
42357         Tweak syntax.  List Joel E. Denny as coauthor.
42358
42359 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42360
42361         update-copyright: fix bug for 2-digit last year and add tests
42362         * build-aux/update-copyright: Fix bug.
42363         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42364         specified.
42365         * modules/update-copyright-tests: New
42366         * tests/test-update-copyright.sh: New.
42367
42368 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42369
42370         update-copyright: handle leading tabs in line prefix
42371         * build-aux/update-copyright: Count leading tabs as 8 spaces
42372         when computing margin.  This helps with the formatting of
42373         ChangeLogs, for example.
42374         Fix documentation a little.
42375
42376 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42377
42378         update-copyright: support EOL=\r\n
42379         * build-aux/update-copyright: Implement that.
42380
42381 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42382
42383         update-copyright: automatically format copyright statements
42384         * build-aux/update-copyright: Implement that.
42385         Also, be a little more predictable and safer by always failing
42386         when the full copyright format is not perfectly recognized as an
42387         unbroken whole.  Discussed at
42388         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42389         Rewrite documentation.
42390
42391 2009-08-03  Bruno Haible  <bruno@clisp.org>
42392
42393         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42394
42395 2009-08-02  Bruno Haible  <bruno@clisp.org>
42396
42397         Tests for module 'uname'.
42398         * modules/uname-tests: New file.
42399         * tests/test-uname.c: New file.
42400
42401         New module 'uname'.
42402         * lib/uname.c: New file.
42403         * m4/uname.m4: New file.
42404         * modules/uname: New file.
42405         * doc/posix-functions/uname.texi: Mention the new module.
42406
42407 2009-08-02  Bruno Haible  <bruno@clisp.org>
42408
42409         Tests for module 'sys_utsname'.
42410         * modules/sys_utsname-tests: New file.
42411         * tests/test-sys_utsname.c: New file.
42412
42413         New module 'sys_utsname'.
42414         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42415         * m4/sys_utsname_h.m4: New file.
42416         * modules/sys_utsname: New file.
42417         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42418
42419 2009-08-02  Bruno Haible  <bruno@clisp.org>
42420
42421         Implicitly initialize the sockets library.
42422         * lib/gethostname.c: Include sockets.h.
42423         (rpl_gethostname): Invoke gl_sockets_startup.
42424         * lib/socket.c: Include sockets.h.
42425         (rpl_socket): Invoke gl_sockets_startup.
42426         * modules/gethostname (Depends-on): Add sockets.
42427         * modules/socket (Depends-on): Likewise.
42428         * tests/test-poll.c: Don't include sockets.h.
42429         (main): Don't invoke gl_sockets_startup.
42430         * tests/test-select.c: Don't include sockets.h.
42431         (main): Don't invoke gl_sockets_startup.
42432
42433 2009-08-02  Bruno Haible  <bruno@clisp.org>
42434
42435         Allow multiple calls to gl_sockets_startup.
42436         * lib/sockets.c (initialized_sockets_version): New variable.
42437         (gl_sockets_startup): Do nothing if already called for this or a higher
42438         version.
42439         (gl_sockets_cleanup): Reset initialized_sockets_version.
42440
42441 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42442
42443         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42444         different project/version.
42445
42446 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42447             Bruno Haible  <bruno@clisp.org>
42448
42449         Tests for module 'pipe-filter-gi'.
42450         * modules/pipe-filter-gi-tests: New file.
42451         * tests/test-pipe-filter-gi1.sh: New file.
42452         * tests/test-pipe-filter-gi1.c: New file.
42453         * tests/test-pipe-filter-gi2.sh: New file.
42454         * tests/test-pipe-filter-gi2-main.c: New file.
42455         * tests/test-pipe-filter-gi2-child.c: New file.
42456
42457         New module 'pipe-filter-gi'.
42458         * lib/pipe-filter-gi.c: New file.
42459         * modules/pipe-filter-gi: New file.
42460
42461 2009-08-02  Bruno Haible  <bruno@clisp.org>
42462             Paolo Bonzini  <bonzini@gnu.org>
42463
42464         Tests for module 'pipe-filter-ii'.
42465         * modules/pipe-filter-ii-tests: New file.
42466         * tests/test-pipe-filter-ii1.sh: New file.
42467         * tests/test-pipe-filter-ii1.c: New file.
42468         * tests/test-pipe-filter-ii2.sh: New file.
42469         * tests/test-pipe-filter-ii2-main.c: New file.
42470         * tests/test-pipe-filter-ii2-child.c: New file.
42471
42472         New module 'pipe-filter-ii'.
42473         * lib/pipe-filter.h: New file.
42474         * lib/pipe-filter-ii.c: New file.
42475         * lib/pipe-filter-aux.h: New file.
42476         * modules/pipe-filter-ii: New file.
42477
42478 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42479
42480         * lib/gc-libgcrypt.c: Change copyright to FSF.
42481         * lib/gc-gnulib.c: Likewise.
42482
42483 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42484
42485         * lib/gethostname.c: Include limits.h.
42486
42487 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42488             Bruno Haible  <bruno@clisp.org>
42489
42490         Ensure HOST_NAME_MAX as part of the gethostname module.
42491         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42492         define also HOST_NAME_MAX.
42493         * tests/test-gethostname.c: Include <limits.h>.
42494         (main): Check also HOST_NAME_MAX.
42495         * doc/posix-headers/limits.texi: Document the mingw problem.
42496
42497 2009-08-02  Bruno Haible  <bruno@clisp.org>
42498
42499         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42500         Add comments.
42501
42502 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42503
42504         * lib/gethostname.c: Add Windows wrapper.
42505         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42506         * modules/gethostname: Depend on sys_socket & errno, for also
42507         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42508         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42509
42510 2009-07-31  Jim Meyering  <meyering@redhat.com>
42511
42512         getloadavg: fix symbol name in comment
42513         * lib/getloadavg.c: Correct a typo I introduced when adding
42514         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42515         Matt Kraai spotted the problem.
42516
42517 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42518
42519         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42520         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42521         code also if ! defined N_NAME_POINTER.
42522         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42523         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42524         but the n_name member is a 12-byte array.
42525
42526 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42527
42528         update-copyright: generalize comment handling
42529         * build-aux/update-copyright: Handle copyright statements
42530         within more comment styles.
42531         Document usage.
42532         Report any file with an external copyright holder or parse failure.
42533
42534 2009-07-29  Jim Meyering  <meyering@redhat.com>
42535
42536         mktime: correct setting of REPLACE_MKTIME
42537         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42538
42539         update-copyright: new module
42540         * modules/update-copyright: New file.
42541         * build-aux/update-copyright: New file.
42542         * MODULES.html.sh (maint+release support): Add update-copyright.
42543
42544 2009-07-27  Bruno Haible  <bruno@clisp.org>
42545
42546         Fix compilation error when <ctime> is used and mktime is replaced.
42547         * lib/time.in.h (mktime): New declaration.
42548         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42549         REPLACE_MKTIME instead of defining mktime in config.h.
42550         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42551         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42552         Reported by Ross McFarland <rwmcfa1@neces.com>.
42553
42554 2009-07-27  Bruno Haible  <bruno@clisp.org>
42555
42556         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42557         Reported by Matt Kraai <mkraai@beckman.com>.
42558
42559 2009-07-25  Jim Meyering  <meyering@redhat.com>
42560
42561         maint.mk: avoid warnings about missing files
42562         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42563         diagnostic when .prev-version does not exist.
42564         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42565         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42566         nonexistent cfg.mk.
42567         Suggestions from Simon Josefsson.
42568
42569 2009-07-25  Bruno Haible  <bruno@clisp.org>
42570
42571         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42572         defined as macros. Needed on QNX 6.4.1.
42573         Reported by Matt Kraai <mkraai@beckman.com>.
42574
42575 2009-07-23  Jim Meyering  <meyering@redhat.com>
42576
42577         maint.mk: invoke "make dist" with a working value of XZ_OPT
42578         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42579
42580 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42581
42582         Make fseeko.c compile on QNX.
42583         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42584
42585 2009-07-22  Peter Simons  <simons@cryp.to>
42586
42587         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42588         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42589         * lib/md4.h: Likewise.
42590         * lib/md5.h: Likewise.
42591         * lib/sha1.h: Likewise.
42592         * lib/sha256.h: Likewise.
42593         * lib/sha512.h: Likewise.
42594
42595         tests-sha1: don't assign literal string to 'char *' variable
42596         * tests/test-sha1.c (main): Declare locals with "const" to match
42597         attributes of the right hand side.
42598
42599 2009-07-21  Eric Blake  <ebb9@byu.net>
42600
42601         dup2: fix more mingw problems
42602         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42603         fd to itself.
42604         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42605         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42606         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42607         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42608         care of mingw bugs.
42609
42610 2009-07-21  Jim Meyering  <meyering@redhat.com>
42611
42612         vc-list-files: avoid failure when /bin/sh is dash
42613         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42614         On some Debian based systems, /bin/sh is a symlink to dash, and running
42615         this command would omit the "/" following each 'tests' prefix:
42616           dash -x build-aux/vc-list-files -C . tests
42617         That is because bash and dash work differently:
42618           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42619           bash ok
42620           dash odd
42621
42622 2009-07-21  Eric Blake  <ebb9@byu.net>
42623
42624         dup2-tests: test previous patch
42625         * modules/dup2-tests: New file.
42626         * tests/test-dup2.c: Likewise.
42627         * tests/test-open.c (main): Avoid unspecified behavior.
42628         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42629         test.
42630
42631         dup2: work around mingw and cygwin 1.5 bug
42632         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42634         * modules/unistd (Makefile.am): Substitute it.
42635         * lib/unistd.in.h (dup2): Declare the replacement.
42636         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42637         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42638         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42639         * modules/execute (Depends-on): Add dup2.
42640         * modules/fseterr (Depends-on): Likewise.
42641         * modules/pipe (Depends-on): Likewise.
42642         * modules/posix_spawn-internal (Depends-on): Likewise.
42643
42644 2009-07-21  Bruno Haible  <bruno@clisp.org>
42645
42646         * modules/.gitattributes: New file.
42647
42648 2009-07-20  Bruno Haible  <bruno@clisp.org>
42649
42650         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42651         (main): Use it.
42652
42653 2009-07-20  Eric Blake  <ebb9@byu.net>
42654
42655         test-pipe: make a bit more robust.
42656         * tests/test-pipe.c (myerr): Allow error messages regardless of
42657         what we do to stderr.
42658         (test_pipe): Rearrange to avoid deadlock.
42659         (child_main): Try a larger read, to ensure we avoided deadlock.
42660         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42661         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42662         if misused.
42663
42664 2009-07-19  Jim Meyering  <meyering@redhat.com>
42665
42666         fts: avoid false-positive cycle-detection
42667         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42668         for each new command line argument.
42669
42670 2009-07-19  Bruno Haible  <bruno@clisp.org>
42671
42672         Fix build error on mingw with the modules sys_select and unistd.
42673         * modules/acl-tests (Depends-on): Add close.
42674         * modules/binary-io-tests (Depends-on): Likewise.
42675         * modules/closein-tests (Depends-on): Likewise.
42676         * modules/flock-tests (Depends-on): Likewise.
42677         * modules/fsync-tests (Depends-on): Likewise.
42678         * modules/lseek-tests (Depends-on): Likewise.
42679         * modules/pipe-tests (Depends-on): Likewise.
42680         * modules/posix_spawn-tests (Depends-on): Likewise.
42681         * modules/posix_spawnp-tests (Depends-on): Likewise.
42682         * modules/stat-time-tests (Depends-on): Likewise.
42683         * modules/yesno-tests (Depends-on): Likewise.
42684
42685 2009-07-19  Bruno Haible  <bruno@clisp.org>
42686
42687         Unify conditionals.
42688         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42689         macros, not at the compiler macros.
42690         * lib/pipe.c: Likewise.
42691         * lib/execute.c: Likewise.
42692         * lib/spawni.c: Likewise.
42693
42694 2009-07-19  Bruno Haible  <bruno@clisp.org>
42695
42696         Fix handling of closed stdin/stdout/stderr on mingw.
42697         * lib/w32spawn.h: Include unistd.h.
42698         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42699         file descriptor with O_NOINHERIT flag.
42700         (fd_safer_noinherit): New function, based on fd-safer.c.
42701         (dup_safer_noinherit): New function, based on dup-safer.c.
42702         (undup_safer_noinherit): New function.
42703         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42704         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42705         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42706         instead of fd_safer.
42707         * tests/test-pipe.c: Include <windows.h>.
42708         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42709         result.
42710
42711         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42712         from main.
42713         (test_pipe): Pass an extra argument for disambiguation.
42714         (main): Invoke parent_main or child_main.
42715
42716         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42717         consistently.
42718
42719 2009-07-18  Eric Blake  <ebb9@byu.net>
42720
42721         test-pipe: fix mingw build
42722         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42723
42724 2009-07-18  Bruno Haible  <bruno@clisp.org>
42725
42726         * modules/pipe-tests (Makefile.am): Fix typo.
42727
42728 2009-07-18  Eric Blake  <ebb9@byu.net>
42729
42730         error: fix mingw build
42731         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42732         Reported by Bruno Haible.
42733
42734         error: avoid undefined use of stdout
42735         * lib/error.c (error, error_at_line): Check that fd 1 is open
42736         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42737         is handling faults and the close_stdout module wants to report the
42738         detection of closed stdout as an error.
42739
42740 2009-07-17  Eric Blake  <ebb9@byu.net>
42741
42742         pipe: be robust in face of closed fds
42743         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42744         should cause child to misbehave.
42745         * modules/pipe-tests: New module.
42746         * tests/test-pipe.c: New file.
42747         * tests/test-pipe.sh: New file.
42748         Reported by Akim Demaille.
42749
42750 2009-07-14  Bruno Haible  <bruno@clisp.org>
42751
42752         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42753         Reported by anonymous kc.
42754
42755 2009-07-07  Jim Meyering  <meyering@redhat.com>
42756
42757         maint.mk: don't look for translatable strings in *.m4 or *.mk
42758         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42759         when searching for translatable strings.
42760
42761 2009-07-05  Jim Meyering  <meyering@redhat.com>
42762
42763         remove superfluous parentheses in STREQ definition
42764         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42765         * lib/getugroups.c (STREQ): Likewise.
42766         * lib/fnmatch.c (STREQ): Likewise.
42767         Spotted by Bruno Haible.
42768
42769 2009-07-04  Jim Meyering  <meyering@redhat.com>
42770
42771         argv-iter: new module
42772         * MODULES.html.sh: Add argv-iter.
42773         * lib/argv-iter.c, lib/argv-iter.h: New files.
42774         * modules/argv-iter: New file.
42775         * modules/argv-iter-tests: New file.
42776         * tests/test-argv-iter.c: Test it.
42777
42778 2009-07-04  Bruno Haible  <bruno@clisp.org>
42779
42780         Fix assertion.
42781         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42782         contains more exact copies of a given entry than file2, leave the extra
42783         copies unpaired rather than aborting.
42784         Reported by Eric Blake.
42785
42786 2009-07-02  Bruno Haible  <bruno@clisp.org>
42787
42788         Speedup git-merge-changelog for git cherry-pick.
42789         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42790         (entries_mapping_get): New function, extracted from compute_mapping.
42791         (entries_mapping_reverse_get): New function.
42792         (compute_mapping): Add a 'full' argument. Return the result in a
42793         'struct entries_mapping'.
42794         (main): Update. Access the mappings through entries_mapping_get.
42795         Reported by Eric Blake.
42796
42797 2009-07-02  Bruno Haible  <bruno@clisp.org>
42798
42799         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42800         best_i.
42801
42802 2009-07-02  Bruno Haible  <bruno@clisp.org>
42803
42804         Speed up approximate search for matching ChangeLog entries.
42805         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42806         argument. Call fstrcmp_bounded instead of fstrcmp.
42807         (compute_mapping, try_split_merged_entry, main): Update callers.
42808
42809 2009-07-02  Bruno Haible  <bruno@clisp.org>
42810
42811         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42812
42813 2009-06-30  Bruno Haible  <bruno@clisp.org>
42814
42815         Reduce the number of uc_is_cased calls.
42816         * lib/unicase.h (casing_suffix_context_t): Add
42817         'first_char_except_ignorable' field.
42818         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42819         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42820         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42821         Update initializer.
42822         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42823         case-ignorable characters.
42824         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42825         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42826         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42827         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42828         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42829
42830 2009-06-30  Bruno Haible  <bruno@clisp.org>
42831
42832         Tests for module 'unicase/ignorable'.
42833         * modules/unicase/ignorable-tests: New file.
42834         * tests/unicase/test-ignorable.c: New file, generated by
42835         gen-uni-tables.
42836
42837         Tests for module 'unicase/cased'.
42838         * modules/unicase/cased-tests: New file.
42839         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42840         * tests/unicase/test-predicate-part1.h: New file, derived from
42841         tests/unictype/test-predicate-part1.h.
42842         * tests/unicase/test-predicate-part2.h: New file, same as
42843         tests/unictype/test-predicate-part2.h.
42844
42845         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42846         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42847         (output_casing_properties): New function.
42848         (main): Call it.
42849         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42850         * lib/unicase/cased.c: Include unictype/bitmap.h.
42851         (uc_is_cased): Define through a bitmap lookup.
42852         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42853         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42854         (uc_is_case_ignorable): Define through a bitmap lookup.
42855         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42856         lib/unictype/bitmap.h.
42857         (Depends-on): Add inline. Clean up.
42858         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42859         lib/unictype/bitmap.h.
42860         (Depends-on): Add inline. Clean up.
42861         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42862         recognition.
42863         * tests/unicase/test-u16-tolower.c (main): Likewise.
42864         * tests/unicase/test-u32-tolower.c (main): Likewise.
42865
42866 2009-06-30  Bruno Haible  <bruno@clisp.org>
42867
42868         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42869         * lib/unicase/u16-casemap.c: Likewise.
42870         * lib/unicase/u32-casemap.c: Likewise.
42871
42872 2009-06-29  Bruno Haible  <bruno@clisp.org>
42873
42874         Define u32_casefold as a wrapper around u32_ct_casefold.
42875         * lib/unicase/u32-casefold.c: Update.
42876         * modules/unicase/u32-casefold (Depends-on): Add
42877         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42878         unicase/empty-suffix-context. Clean up.
42879
42880         Define u16_casefold as a wrapper around u16_ct_casefold.
42881         * lib/unicase/u16-casefold.c: Update.
42882         * modules/unicase/u16-casefold (Depends-on): Add
42883         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42884         unicase/empty-suffix-context. Clean up.
42885
42886         Define u8_casefold as a wrapper around u8_ct_casefold.
42887         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42888         * lib/unicase/u8-casefold.c: Update.
42889         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42890         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42891
42892         Define u32_totitle as a wrapper around u32_ct_totitle.
42893         * lib/unicase/u32-totitle.c: Update.
42894         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42895         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42896
42897         Define u16_totitle as a wrapper around u16_ct_totitle.
42898         * lib/unicase/u16-totitle.c: Update.
42899         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42900         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42901
42902         Define u8_totitle as a wrapper around u8_ct_totitle.
42903         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42904         functions.
42905         (FUNC): Delegate to U_CT_TOTITLE.
42906         * lib/unicase/u8-totitle.c: Update.
42907         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42908         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42909
42910         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42911         invocation.
42912         * modules/unicase/u32-tolower (Depends-on): Add
42913         unicase/empty-prefix-context, unicase/empty-suffix-context.
42914
42915         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42916         invocation.
42917         * modules/unicase/u16-tolower (Depends-on): Add
42918         unicase/empty-prefix-context, unicase/empty-suffix-context.
42919
42920         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42921         * modules/unicase/u8-tolower (Depends-on): Add
42922         unicase/empty-prefix-context, unicase/empty-suffix-context.
42923
42924         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42925         invocation.
42926         * modules/unicase/u32-toupper (Depends-on): Add
42927         unicase/empty-prefix-context, unicase/empty-suffix-context.
42928
42929         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
42930         invocation.
42931         * modules/unicase/u16-toupper (Depends-on): Add
42932         unicase/empty-prefix-context, unicase/empty-suffix-context.
42933
42934         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
42935         * modules/unicase/u8-toupper (Depends-on): Add
42936         unicase/empty-prefix-context, unicase/empty-suffix-context.
42937
42938         New module 'unicase/u32-ct-casefold'.
42939         * lib/unicase/u32-ct-casefold.c: New file.
42940         * modules/unicase/u32-ct-casefold: New file.
42941
42942         New module 'unicase/u16-ct-casefold'.
42943         * lib/unicase/u16-ct-casefold.c: New file.
42944         * modules/unicase/u16-ct-casefold: New file.
42945
42946         New module 'unicase/u8-ct-casefold'.
42947         * lib/unicase/u8-ct-casefold.c: New file.
42948         * lib/unicase/u-ct-casefold.h: New file, derived from
42949         lib/unicase/u-casefold.h.
42950         * modules/unicase/u8-ct-casefold: New file.
42951
42952         New module 'unicase/u32-ct-totitle'.
42953         * lib/unicase/u32-ct-totitle.c: New file.
42954         * modules/unicase/u32-ct-totitle: New file.
42955
42956         New module 'unicase/u16-ct-totitle'.
42957         * lib/unicase/u16-ct-totitle.c: New file.
42958         * modules/unicase/u16-ct-totitle: New file.
42959
42960         New module 'unicase/u8-ct-totitle'.
42961         * lib/unicase/u8-ct-totitle.c: New file.
42962         * lib/unicase/u-ct-totitle.h: New file, derived from
42963         lib/unicase/u-totitle.h.
42964         * modules/unicase/u8-ct-totitle: New file.
42965
42966         New module 'unicase/u32-ct-tolower'.
42967         * lib/unicase/u32-ct-tolower.c: New file.
42968         * modules/unicase/u32-ct-tolower: New file.
42969
42970         New module 'unicase/u16-ct-tolower'.
42971         * lib/unicase/u16-ct-tolower.c: New file.
42972         * modules/unicase/u16-ct-tolower: New file.
42973
42974         New module 'unicase/u8-ct-tolower'.
42975         * lib/unicase/u8-ct-tolower.c: New file.
42976         * modules/unicase/u8-ct-tolower: New file.
42977
42978         New module 'unicase/u32-ct-toupper'.
42979         * lib/unicase/u32-ct-toupper.c: New file.
42980         * modules/unicase/u32-ct-toupper: New file.
42981
42982         New module 'unicase/u16-ct-toupper'.
42983         * lib/unicase/u16-ct-toupper.c: New file.
42984         * modules/unicase/u16-ct-toupper: New file.
42985
42986         New module 'unicase/u8-ct-toupper'.
42987         * lib/unicase/u8-ct-toupper.c: New file.
42988         * modules/unicase/u8-ct-toupper: New file.
42989
42990         Add context arguments to u*_casemap functions.
42991         * lib/unicase/unicasemap.h: Include unicase.h.
42992         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
42993         suffix_context arguments.
42994         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
42995         functions.
42996         (FUNC): Add prefix_context and suffix_context arguments. Use
42997         uc_is_cased and uc_is_case_ignorable.
42998         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
42999         * lib/unicase/u16-casemap.c: Likewise.
43000         * lib/unicase/u32-casemap.c: Likewise.
43001         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43002         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43003         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43004         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43005         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43006         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43007
43008         New module 'unicase/u32-suffix-context'.
43009         * lib/unicase/u32-suffix-context.c: New file.
43010         * modules/unicase/u32-suffix-context: New file.
43011
43012         New module 'unicase/u16-suffix-context'.
43013         * lib/unicase/u16-suffix-context.c: New file.
43014         * modules/unicase/u16-suffix-context: New file.
43015
43016         New module 'unicase/u8-suffix-context'.
43017         * lib/unicase/u8-suffix-context.c: New file.
43018         * lib/unicase/u-suffix-context.h: New file.
43019         * modules/unicase/u8-suffix-context: New file.
43020
43021         New module 'unicase/empty-suffix-context'.
43022         * lib/unicase/empty-suffix-context.c: New file.
43023         * modules/unicase/empty-suffix-context: New file.
43024
43025         New module 'unicase/u32-prefix-context'.
43026         * lib/unicase/u32-prefix-context.c: New file.
43027         * modules/unicase/u32-prefix-context: New file.
43028
43029         New module 'unicase/u16-prefix-context'.
43030         * lib/unicase/u16-prefix-context.c: New file.
43031         * modules/unicase/u16-prefix-context: New file.
43032
43033         New module 'unicase/u8-prefix-context'.
43034         * lib/unicase/u8-prefix-context.c: New file.
43035         * lib/unicase/u-prefix-context.h: New file.
43036         * lib/unicase/context.h: New file.
43037         * modules/unicase/u8-prefix-context: New file.
43038
43039         New module 'unicase/empty-prefix-context'.
43040         * lib/unicase/empty-prefix-context.c: New file.
43041         * modules/unicase/empty-prefix-context: New file.
43042
43043         New module 'unicase/ignorable'.
43044         * lib/unicase/ignorable.c: New file.
43045         * modules/unicase/ignorable: New file.
43046
43047         New module 'unicase/cased'.
43048         * lib/unicase/caseprop.h: New file.
43049         * lib/unicase/cased.c: New file.
43050         * modules/unicase/cased: New file.
43051
43052         New functions for case mapping of substrings.
43053         * lib/unicase.h (casing_prefix_context_t): New type.
43054         (unicase_empty_prefix_context): New variable.
43055         (u8_casing_prefix_context, u16_casing_prefix_context,
43056         u32_casing_prefix_context, u8_casing_prefixes_context,
43057         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43058         declarations.
43059         (casing_suffix_context_t): New type.
43060         (unicase_empty_suffix_context): New variable.
43061         (u8_casing_suffix_context, u16_casing_suffix_context,
43062         u32_casing_suffix_context, u8_casing_suffixes_context,
43063         u16_casing_suffixes_context, u32_casing_suffixes_context,
43064         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43065         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43066         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43067         declarations.
43068
43069 2009-06-28  Jim Meyering  <meyering@redhat.com>
43070
43071         boostrap: indent only with spaces
43072         * build-aux/bootstrap: Indent only with spaces, never TABs.
43073
43074         bootstrap: split long lines
43075         * build-aux/bootstrap: Keep line length < 80.
43076
43077         bootstrap: sync from coreutils
43078         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43079         just as autoreconf does.  Verify a list of prerequisite
43080         package-name,version-number pairs if defined in bootstrap.conf.
43081         Refer to README-prereq, if prerequisites are not satisfied.
43082
43083 2009-06-27  Eric Blake  <ebb9@byu.net>
43084
43085         tests: add test for bogus NULL definition
43086         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43087         * tests/test-stdlib.c: Likewise.
43088         * tests/test-string.c: Likewise.
43089         * tests/test-locale.c: Likewise.
43090         * tests/test-unistd.c: Likewise.
43091         * modules/stdio-tests (Depends-on): Add verify.
43092         * modules/stdlib-tests (Depends-on): Likewise.
43093         * modules/string-tests (Depends-on): Likewise.
43094         * modules/locale-tests (Depends-on): Likewise.
43095         * modules/unistd-tests (Depends-on): Likewise.
43096
43097 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43098
43099         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43100         self-explaining comment.
43101         * m4/selinux-selinux-h: Update serial.
43102         (gl_LIBSELINUX): New macro, adding a warning for missing development
43103         packages to code extracted from...
43104         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43105         Add warning for missing development packages here, too.
43106
43107 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43108
43109         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43110
43111 2009-06-25  Eric Blake  <ebb9@byu.net>
43112
43113         version-etc: fix regression
43114         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43115         gcc.
43116         (version_etc): Use it, to catch bugs with trailing NULL.
43117         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43118         (version_etc_va): Fix logic bug.
43119         * modules/version-etc-tests: Add test.
43120         * tests/test-version-etc.c: New file.
43121         * tests/test-version-etc.sh: Likewise.
43122
43123 2009-06-25  Sam Steingold  <sds@gnu.org>
43124
43125         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43126         mbtowc declaration.
43127
43128 2009-06-25  Eric Blake  <ebb9@byu.net>
43129
43130         fpurge: migrate into <stdio.h>
43131         * lib/fpurge.h: Delete...
43132         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43133         * lib/fpurge.c (fpurge): Change declaring header.
43134         * modules/fpurge (Files): Drop deleted file.
43135         (Depends-on): Add stdio.
43136         (configure.ac): Set witness.
43137         * modules/stdio (Makefile.am): Support fpurge macros.
43138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43139         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43140         * lib/fflush.c: Update client.
43141         * tests/test-fpurge.c: Likewise.
43142         * NEWS: Mention the change.
43143
43144 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43145
43146         * lib/argp-version-etc.c (program_authors): Add const
43147         qualifier.
43148         * lib/version-etc.c: Fix typos in the comments.
43149         * modules/argp-version-etc: Depends on version-etc.
43150
43151 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43152
43153         argp-version-etc: new module.
43154
43155         * lib/argp-version-etc.c: New file.
43156         * lib/argp-version-etc.h: New file.
43157         * modules/argp-version-etc: New file.
43158         * modules/argp-version-etc-tests: New file.
43159         * tests/test-argp-version-etc.c: New test.
43160         * tests/test-argp-version-etc-1.sh: New test.
43161
43162 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43163
43164         Provide additional interfaces and documentation for version-etc
43165         module.
43166
43167         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43168         interfaces.
43169         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43170         prototypes.
43171
43172 2009-06-24  Bruno Haible  <bruno@clisp.org>
43173
43174         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43175         HAVE_LIB${NAME} macro.
43176         Reported by Sam Steingold <sds@gnu.org>.
43177
43178 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43179
43180         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43181         needed.
43182
43183 2009-06-21  Bruno Haible  <bruno@clisp.org>
43184
43185         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43186         work.
43187         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43188         together with LIB${NAME}, LTLIB${NAME}.
43189         Reported by Sam Steingold <sds@gnu.org>.
43190
43191 2009-06-20  Jim Meyering  <meyering@redhat.com>
43192
43193         tests: make sc_require_test_exit_idiom more generic
43194         * top/maint.mk (Exit_witness_file): New overridable variable.
43195         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43196         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43197
43198 2009-06-19  Jim Meyering  <meyering@redhat.com>
43199
43200         hash: reverse order of src/dst parameters in an internal interface
43201         * lib/hash.c (transfer_entries): Reverse order of parameters to
43202         put DST before SRC.  Adjust callers.
43203
43204         tests: test-hash: avoid wholesale duplication
43205         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43206         Instead, use a loop and add a single conditional.
43207
43208         tests: test-hash: allow seed selection via a command line argument
43209         * tests/test-hash.c (get_seed): New function.
43210         (main): Use it.
43211
43212 2009-06-19  Eric Blake  <ebb9@byu.net>
43213
43214         hash: avoid memory leak on allocation failure
43215         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43216         failure.  Factor repeated algorithm...
43217         (transfer_entries): ...into new helper routine.
43218         (hash_delete): React to hash_rehash return value.
43219
43220         hash: reduce memory pressure in hash_rehash no-op case
43221         * lib/hash.c (next_prime): Avoid overflow.
43222         (hash_initialize): Factor bucket size computation...
43223         (compute_bucket_size): ...into new helper function.
43224         (hash_rehash): Use new function and open coding to reduce memory
43225         pressure, and avoid a memory leak in USE_OBSTACK code.
43226         Reported by Jim Meyering.
43227
43228 2009-06-18  Eric Blake  <ebb9@byu.net>
43229
43230         hash: make rotation more obvious
43231         * modules/hash (Depends-on): Add bitrotate and stdint.
43232         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43233         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43234         (SIZE_MAX): Rely on headers for definition.
43235         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43236         (raw_hasher): Use rotr_sz.
43237         Suggested by Jim Meyering.
43238
43239         hash: fix memory leak in last patch
43240         * lib/hash.c (hash_rehash): Avoid memory leak.
43241
43242         hash: avoid no-op rehashing
43243         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43244
43245         hash: provide default callback functions
43246         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43247         (hash_initialize): Use them as defaults.
43248         * tests/test-hash.c (main): Test this.
43249
43250         hash: minor optimization
43251         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43252         when possible.
43253         (hash_initialize): Document this promise.
43254         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43255         * tests/test-hash.c (hash_compare_strings): Test this.
43256
43257 2009-06-18  Bruno Haible  <bruno@clisp.org>
43258
43259         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43260         going to be replaced anyway.
43261
43262 2009-06-18  Bruno Haible  <bruno@clisp.org>
43263
43264         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43265         in one place.
43266         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43267         be replaced anyway.
43268
43269 2009-06-18  Eric Blake  <ebb9@byu.net>
43270
43271         hash: check for resize before insertion
43272         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43273         threshold before insertion, so that a pathological hash_rehash
43274         that fills every bucket can still trigger another rehash.
43275
43276 2009-06-18  Jim Meyering  <meyering@redhat.com>
43277
43278         hash-tests: add a loop around the small tests
43279         * tests/test-hash.c (main): Repeat small tests with selected
43280         small initial table sizes.
43281
43282 2009-06-17  Eric Blake  <ebb9@byu.net>
43283
43284         hash: minor cleanups
43285         * lib/hash.h (hash_entry): Make opaque, by moving...
43286         * lib/hash.c (hash_entry): ...here.
43287         (hash_insert): Clarify restrictions on what can be inserted.
43288         (hash_get_next): Clarify when it is safe to remove an element
43289         during traversal.
43290         (check_tuning): Skip verification when tuning is known safe.
43291         (hash_initialize): Clarify restrictions on tuning.
43292
43293 2009-06-17  Jim Meyering  <jim@meyering.net>
43294         and Eric Blake  <ebb9@byu.net>
43295
43296         hash-tests: new module
43297         * modules/hash-tests: New file.
43298         * tests/test-hash.c: New file.
43299
43300 2009-06-17  Eric Blake  <ebb9@byu.net>
43301
43302         strstr-simple: document new module
43303         * MODULES.html.sh: Document new module.
43304
43305         strstr, strcasestr: replace on platforms with broken memchr
43306         * modules/strstr: Split into...
43307         * modules/strstr-simple: ...new module that does not care about
43308         performance, but does care about glibc bug.
43309         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43310         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43311         if platform memchr is broken, per Debian bug 521737.
43312         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43313         memchr.
43314         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43315         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43316         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43317         * modules/mountlist (Depends-on): Add strstr-simple.
43318         * modules/gen-uni-tables (Depends-on): Likewise.
43319         * modules/argz (Depends-on): Add strstr.
43320
43321 2009-06-17  Bruno Haible  <bruno@clisp.org>
43322
43323         * modules/posix_spawn-internal (Depends-on): Add errno.
43324
43325 2009-06-17  Bruno Haible  <bruno@clisp.org>
43326
43327         Define missing ESTALE on Interix 3.5.
43328         * lib/errno.in.h (ESTALE): Assign a value if missing.
43329         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43330         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43331         missing.
43332         * doc/posix-headers/errno.texi: Mention the Interix bug.
43333         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43334
43335 2009-06-15  Eric Blake  <ebb9@byu.net>
43336
43337         memchr, memchr2: add valgrind exception
43338         * lib/memchr.valgrind: New file.
43339         * lib/memchr2.valgrind: New file.
43340         * modules/memchr (Files): Distribute valgrind file.
43341         * modules/memchr2 (Files): Likewise.
43342
43343         docs: memchr is no longer obsolete
43344         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43345         * lib/string.in.h (memchr): Simplify logic.
43346
43347 2009-06-14  Jim Meyering  <meyering@redhat.com>
43348
43349         link-follow: fix the "checking..." message to not mention trailing slash
43350         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43351         never considered trailing slashes.
43352
43353 2009-06-14  Bruno Haible  <bruno@clisp.org>
43354
43355         * m4/memchr.m4: Mention also the bug on IA-64.
43356         * doc/posix-functions/memchr.texi: Likewise.
43357
43358 2009-06-12  Eric Blake  <ebb9@byu.net>
43359
43360         memchr: detect broken x86_64 and alpha implementations
43361         * modules/memchr-tests (Depends-on): Move mmap detection...
43362         * modules/memchr (Depends-on): ...here.
43363         (configure.ac): Set indicator.
43364         * lib/string.in.h (memchr): Declare replacement.
43365         * modules/string (Makefile.am): Trigger replacement.
43366         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43367         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43368         bugs.
43369         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43370         * modules/getpagesize (License): Relax license.
43371
43372 2009-06-11  Bruno Haible  <bruno@clisp.org>
43373
43374         * lib/idpriv.h: Add more references.
43375
43376 2009-06-08  Bruno Haible  <bruno@clisp.org>
43377
43378         Tests for module 'idpriv-droptemp'.
43379         * modules/idpriv-droptemp-tests: New file.
43380         * tests/test-idpriv-droptemp.sh: New file.
43381         * tests/test-idpriv-droptemp.su.sh: New file.
43382         * tests/test-idpriv-droptemp.c: New file.
43383
43384         New module 'idpriv-droptemp'.
43385         * lib/idpriv-droptemp.c: New file.
43386         * modules/idpriv-droptemp: New file.
43387
43388 2009-06-08  Bruno Haible  <bruno@clisp.org>
43389
43390         Tests for module 'idpriv-drop'.
43391         * modules/idpriv-drop-tests: New file.
43392         * tests/test-idpriv-drop.sh: New file.
43393         * tests/test-idpriv-drop.su.sh: New file.
43394         * tests/test-idpriv-drop.c: New file.
43395
43396         New module 'idpriv-drop'.
43397         * lib/idpriv.h: New file.
43398         * lib-idpriv-drop.c: New file.
43399         * m4/idpriv.m4: New file.
43400         * modules/idpriv-drop: New file.
43401
43402 2009-06-08  Bruno Haible  <bruno@clisp.org>
43403
43404         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43405         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43406         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43407         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43408         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43409         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43410         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43411
43412 2009-06-08  Eric Blake  <ebb9@byu.net>
43413
43414         test-strstr: use memory fence, when possible
43415         * tests/test-strstr.c (main): Use memory fence, in order to be
43416         more likely to trigger Debian bug 521737.
43417         * modules/strstr-tests (Files): Pull in additional files.
43418
43419         memchr: no longer obsolete, for wider field testing
43420         * modules/memchr (Status, Notice): Delete, this module is no
43421         longer obsolete.
43422         * modules/vasnprintf (Depends-on): Add memchr.
43423
43424 2009-06-07  Jim Meyering  <meyering@redhat.com>
43425
43426         hash: declare some functions with the warn_unused_result attribute
43427         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43428
43429 2009-06-07  Bruno Haible  <bruno@clisp.org>
43430
43431         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43432         Reported by Eric Blake.
43433
43434 2009-06-06  Eric Blake  <ebb9@byu.net>
43435
43436         test-alignof: fix typo with long double
43437         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43438         compiler error.
43439
43440 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43441
43442         Escape non-texinfo { and }s.
43443         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43444         markup error.
43445
43446 2009-06-04  Jim Meyering  <meyering@redhat.com>
43447
43448         gitlog-to-changelog: don't infloop on an empty commit log
43449         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43450         Reported by Boris Petersen <transacid@centerim.org>.
43451
43452 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43453
43454         version-etc: extend for packagers
43455         Add three new configure options, intended for packagers:
43456           --with-packager="packager name"
43457           --with-packager-version="packager-specific version"
43458           --with-packager-bug-reports="packager bug reporting"
43459         An example with coreutils:
43460           $ ./configure \
43461             --with-packager=Gentoo \
43462             --with-packager-bug-report=http://bugs.gentoo.org/ \
43463             --with-packager-version="patchset 1.6"
43464           $ ./src/ls --version | head -n2
43465           ls (GNU coreutils) 7.1-dirty
43466           Packaged by Gentoo (patchset 1.6)
43467         Note that the bug reporting info via --help doesn't show up because
43468         coreutils uses its own custom emit_bug_reporting_address() implementation
43469         in src/system.h.  If it didn't, it'd look like:
43470           $ ./src/ls --help | tail -n4
43471           Report bugs to <bug-coreutils@gnu.org>.
43472           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43473           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43474           General help using GNU software: <http://www.gnu.org/gethelp/>.
43475         * lib/version-etc.c: Print new information, if provided.
43476         * m4/version-etc.m4: New file.
43477         * modules/version-etc (Files): Add m4/version-etc.m4.
43478         (configure.ac): Add gl_VERSION_ETC.
43479
43480 2009-05-31  Bruno Haible  <bruno@clisp.org>
43481
43482         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43483         and 'int64_t'.
43484         * modules/alignof-tests (Dependencies): Add stdint.
43485         Reported by Eric Blake.
43486
43487 2009-05-31  Bruno Haible  <bruno@clisp.org>
43488
43489         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43490         restriction due to compiler bugs.
43491         Reported by Eric Blake.
43492
43493 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43494             Bruno Haible  <bruno@clisp.org>
43495
43496         Fix test-alignof failure.
43497         * lib/alignof.h (alignof_slot): New macro.
43498         (alignof_type): New macro, with the same semantics as the previous
43499         'alignof'.
43500         (alignof): Alias to alignof_slot.
43501         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43502         check that the results are usable as constant expressions.
43503
43504 2009-05-31  Bruno Haible  <bruno@clisp.org>
43505
43506         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43507         * tests/test-memchr.c (main): Check that memchr does not read past the
43508         first occurrence of the byte.
43509         * tests/test-strstr.c (main): Update comment.
43510         Suggested by Eric Blake.
43511
43512 2009-05-30  Bruno Haible  <bruno@clisp.org>
43513
43514         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43515         detail how to use dumpbin.
43516         Reported by David Byron <dbyron@dbyron.com>.
43517
43518 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43519
43520         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43521
43522 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43523
43524         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43525
43526 2009-05-28  Bruno Haible  <bruno@clisp.org>
43527
43528         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43529         build-aux/ files.
43530
43531 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43532
43533         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43534
43535 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43536
43537         * gnulib-tool (sed_transform_main_lib_file)
43538         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43539         regexps.
43540
43541 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43542
43543         * tests/test-strstr.c: Add another self-test.
43544         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43545         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43546
43547 2009-05-23  Bruno Haible  <bruno@clisp.org>
43548
43549         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43550         change.
43551
43552 2009-05-21  Bruno Haible  <bruno@clisp.org>
43553
43554         Simplify use of mode_t varargs.
43555         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43556         uses 'mode_t' or 'int'.
43557         * lib/openat.c (openat): Likewise.
43558         * lib/open-safer.c (open_safer): Likewise.
43559         * m4/mode_t.m4: New file.
43560         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43561         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43562         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43563         * modules/open (Files): Add m4/mode_t.m4.
43564         * modules/openat (Files): Likewise.
43565         * modules/fcntl-safer (Files): Likewise.
43566         Suggested by Eric Blake.
43567
43568 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43569
43570         * doc/glibc-functions/fallocate.texi: New file.
43571         * doc/gnulib.texi: Include it.
43572
43573 2009-05-21  Eric Blake  <ebb9@byu.net>
43574             Bruno Haible  <bruno@clisp.org>
43575
43576         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43577         invocations.
43578         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43579
43580 2009-05-21  Eric Blake  <ebb9@byu.net>
43581             Bruno Haible  <bruno@clisp.org>
43582
43583         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43584         include_next. Fix of 2008-11-20 commit.
43585         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43586         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43587         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43588         NEXT_MATH_H.
43589         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43590         instead of NEXT_MATH_H.
43591
43592 2009-05-21  Bruno Haible  <bruno@clisp.org>
43593
43594         Avoid redefinition warnings for SIZE_MAX.
43595         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43596         Reported by Simon Josefsson.
43597
43598 2009-05-21  Bruno Haible  <bruno@clisp.org>
43599
43600         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43601         AC_CACHE_VAL.
43602
43603 2009-05-20  Bruno Haible  <bruno@clisp.org>
43604
43605         Make zeroptr.h work on mingw.
43606         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43607         mprotect.
43608         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43609         * modules/memchr2-tests (configure.ac): Likewise.
43610         * modules/memcmp-tests (configure.ac): Likewise.
43611         * modules/memmem-tests (configure.ac): Likewise.
43612         * modules/memrchr-tests (configure.ac): Likewise.
43613         Reported by Simon Josefsson.
43614
43615 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43616
43617         * tests/test-glob.c: Include string.h for strcmp prototype.
43618
43619 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43620
43621         * modules/getdelim (Depends-on): Add explicit stdint, although it
43622         was implicitly already pulled in via realloc-posix.
43623         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43624
43625 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43626
43627         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43628         G. Christensen" <tgc@jupiterrise.com>.
43629         * m4/sys_socket_h.m4: Check for sa_family_t.
43630         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43631         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43632         * tests/test-sys_socket.c: Check that sa_family_t works.
43633
43634 2009-05-18  Eric Blake  <ebb9@byu.net>
43635
43636         maint.mk: allow gnulib_dir in VPATH build
43637         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43638
43639 2009-05-15  Jim Meyering  <meyering@redhat.com>
43640
43641         maint.mk: Give gnulib_dir a default definition.
43642         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43643         Thus, most packages no longer need to specify this variable in cfg.mk
43644
43645 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43646
43647         rename.m4: fix typos that would make non-mingw cross-configure fail
43648         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43649
43650 2009-05-13  Eric Blake  <ebb9@byu.net>
43651
43652         mmap-anon: avoid out-of-order autoconf expansion
43653         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43654         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43655         * modules/memchr-tests (Depends-on): Add extensions.
43656         * modules/memchr2-tests (Depends-on): Add extensions.
43657         * modules/memcmp-tests (Depends-on): Add extensions.
43658         * modules/memmem-tests (Depends-on): Add extensions.
43659         * modules/memrchr-tests (Depends-on): Add extensions.
43660
43661 2009-05-13  Bruno Haible  <bruno@clisp.org>
43662
43663         Make some tests ISO C 99 compliant.
43664         * tests/zerosize-ptr.h: New file.
43665         * tests/test-memchr.c: Include zerosize-ptr.h.
43666         (main): Use a zero-size object pointer instead of NULL.
43667         * tests/test-memchr2.c: Include zerosize-ptr.h.
43668         (main): Use a zero-size object pointer instead of NULL.
43669         * tests/test-memcmp.c: Include zerosize-ptr.h.
43670         (main): Use a zero-size object pointer instead of NULL.
43671         * tests/test-memmem.c: Include zerosize-ptr.h.
43672         (main): Use a zero-size object pointer instead of NULL.
43673         * tests/test-memrchr.c: Include zerosize-ptr.h.
43674         (main): Use a zero-size object pointer instead of NULL.
43675         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43676         m4/mmap-anon.m4.
43677         (Depends-on): Add getpagesize.
43678         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43679         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43680         m4/mmap-anon.m4.
43681         (Depends-on): Add getpagesize.
43682         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43683         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43684         m4/mmap-anon.m4.
43685         (Depends-on): Add getpagesize.
43686         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43687         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43688         m4/mmap-anon.m4.
43689         (Depends-on): Add getpagesize.
43690         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43691         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43692         m4/mmap-anon.m4.
43693         (Depends-on): Add getpagesize.
43694         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43695
43696 2009-05-12  Bruno Haible  <bruno@clisp.org>
43697
43698         Tests for module 'alignof'.
43699         * modules/alignof-tests: New file.
43700         * tests/test-alignof.c: New file.
43701
43702 2009-05-12  Bruno Haible  <bruno@clisp.org>
43703
43704         Fix alignof macro.
43705         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43706         vendor compilers that are always correct.
43707
43708 2009-05-12  Bruno Haible  <bruno@clisp.org>
43709
43710         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43711         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43712         not whether its fully works.
43713
43714 2009-05-12  Bruno Haible  <bruno@clisp.org>
43715
43716         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43717
43718 2009-05-12  Jim Meyering  <meyering@redhat.com>
43719
43720         * top/maint.mk: Adjust backslash alignment.
43721
43722 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43723
43724         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43725
43726 2009-05-11  Eric Blake  <ebb9@byu.net>
43727
43728         argp: avoid undefined behavior
43729         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43730         macros.
43731
43732 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43733
43734         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43735         user.name to prevent git commit from complaining.
43736
43737 2009-05-10  Bruno Haible  <bruno@clisp.org>
43738
43739         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43740         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43741         it rewrites every file name only once.
43742         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43743
43744 2009-05-08  Bruno Haible  <bruno@clisp.org>
43745
43746         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43747         instead of 'max'.
43748
43749 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43750
43751         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43752         sockaddr_storage test.
43753
43754 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43755
43756         * modules/sys_socket (Makefile.am): Substitute
43757         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43758         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43759         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43760         * tests/test-sys_socket.c: Check sockaddr_storage.
43761
43762 2009-05-08  Bruno Haible  <bruno@clisp.org>
43763
43764         New module 'alignof'.
43765         * lib/alignof.h: New file.
43766         * modules/alignof: New file.
43767
43768 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43769             Bruno Haible  <bruno@clisp.org>
43770
43771         Fix test-file-has-acl on FreeBSD.
43772         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43773         mask is implicitly added.
43774         * tests/test-file-has-acl.c: Include <signal.h>.
43775         (main): Terminate the test after 5 seconds.
43776         * modules/acl-tests (configure.ac): Check for alarm function.
43777
43778 2009-05-04  Bruno Haible  <bruno@clisp.org>
43779
43780         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43781         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43782         * modules/errno (configure.ac): Drop AC_REQUIRE.
43783         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43784         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43785
43786 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43787
43788         * modules/glob-tests: New module.
43789         * tests/test-glob.c: Add.
43790
43791 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43792
43793         * modules/fnmatch-tests: New module.
43794         * tests/test-fnmatch.c: Add.
43795
43796 2009-05-04  Eric Blake  <ebb9@byu.net>
43797
43798         maint: make the new no-submodule-changes rule VPATH-safe
43799         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43800
43801 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43802             Bruno Haible  <bruno@clisp.org>
43803
43804         acl: Fix infinite loop on FreeBSD.
43805         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43806         of return value from acl_get_entry.
43807         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43808         Likewise.
43809
43810 2009-05-03  Bruno Haible  <bruno@clisp.org>
43811
43812         * lib/acl-internal.h (acl_entries): Clarify return value.
43813         * lib/acl_entries.c (acl_entries): Likewise.
43814
43815 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43816
43817         Bug fix in acl module.
43818         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43819
43820 2009-05-03  Bruno Haible  <bruno@clisp.org>
43821
43822         Create gperf-generated file in the source dir, not in the build dir.
43823         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43824         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43825         * modules/unicase/locale-language (unicase/locale-languages.h):
43826         Likewise.
43827         * modules/unicase/special-casing (unicase/special-casing-table.h):
43828         Likewise.
43829         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43830         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43831         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43832         Reported by Ralf Wildenhues.
43833
43834 2009-05-03  Bruno Haible  <bruno@clisp.org>
43835
43836         * modules/fnmatch (Description, configure.ac): Taken from
43837         fnmatch-posix.
43838         * modules/fnmatch-posix: Turn into a symbolic reference to the
43839         'fnmatch' module, and deprecate.
43840         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43841
43842 2009-05-03  Bruno Haible  <bruno@clisp.org>
43843
43844         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43845         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43846         Reported by Ralf Wildenhues.
43847
43848 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43849
43850         * m4/fnmatch.m4: Fix fnmatch re-define.
43851
43852 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43853
43854         priv-set: new module and tests; adapt write-any-file
43855         * lib/priv-set.c: New file.
43856         * lib/priv-set.h: New file.
43857         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43858         * lib/write-any-file.c: Simplify by using priv-set module.
43859         * m4/priv-set.m4: New file.
43860         * modules/priv-set: New file.
43861         * modules/unlinkdir: Add dependency on priv-set module.
43862         * modules/write-any-file: Likewise.
43863
43864         Tests for module 'priv-set'.
43865         * modules/priv-set-tests: New file.
43866         * tests/test-priv-set.c: New file.
43867
43868 2009-05-03  Jim Meyering  <meyering@redhat.com>
43869             Bruno Haible  <bruno@clisp.org>
43870
43871         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43872         use the converted UTF-8 variant of the name instead.
43873
43874 2009-05-03  Jim Meyering  <meyering@redhat.com>
43875
43876         tests: tighten some getdate tests
43877         * tests/test-getdate.c (main): Tighten tests: require equality,
43878         not just greater than.  Set TZ envvar to UTC0.
43879
43880 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43881
43882         getdate: correctly interpret "next monday" when run on a Monday
43883         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43884         that e.g., "next tues" (when run on a tuesday) results in a date
43885         that is one week in the future, and not today's date.
43886         I.e., add a week when the wday is the same as the current one.
43887         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43888         and earlier by Martin Bernreuther and Jan Minář.
43889         * tests/test-getdate.c (main): Check that "next DAY" is always in
43890         the future and that "last DAY" is always in the past.
43891
43892 2009-05-02  Jim Meyering  <meyering@redhat.com>
43893
43894         build: ensure that a release build fails when a submodule is unclean
43895         * top/maint.mk (no-submodule-changes): New rule.
43896         (alpha beta major): Depend on it.
43897
43898 2009-05-02  Bruno Haible  <bruno@clisp.org>
43899
43900         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43901         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43902         shell variable gl_fnmatch_required to detect which variant is
43903         requested.
43904         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43905         gl_FUNC_FNMATCH_POSIX.
43906         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43907         exclude fnmatch-posix.
43908
43909 2009-05-02  Bruno Haible  <bruno@clisp.org>
43910
43911         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43912         * modules/mbsrtowcs (License): Change to LGPLv2+.
43913         * modules/strnlen1 (License): Likewise.
43914         Reported by Simon Josefsson.
43915
43916 2009-05-02  Bruno Haible  <bruno@clisp.org>
43917
43918         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43919         "cross".
43920         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43921         gnulib-tool was called with option --source-base=lib.
43922
43923 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43924
43925         Use automake *-local hooks without commands, for extensibility.
43926         * modules/localcharset (Makefile.am): Rename install-exec-local
43927         rule to install-exec-localcharset, and make it a prerequisite of
43928         install-exec-local.  Likewise, rename the uninstall-local rule to
43929         uninstall-localcharset, and make it a prerequisite of the former.
43930
43931 2009-05-01  Bruno Haible  <bruno@clisp.org>
43932
43933         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
43934         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43935         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
43936         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
43937         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
43938         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43939         m4/locale-zh.m4, m4/codeset.m4.
43940
43941         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43942         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
43943         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43944         m4/locale-zh.m4.
43945
43946         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
43947         REPLACE_WCRTOMB if mbstate_t must be replaced.
43948         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
43949         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
43950
43951 2009-05-01  Bruno Haible  <bruno@clisp.org>
43952
43953         Avoid compiler warnings when redefining macros defined by <libintl.h>.
43954         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
43955         dngettext, dcngettext, textdomain, bindtextdomain,
43956         bind_textdomain_codeset): Undefine before redefining.
43957
43958 2009-04-30  Bruno Haible  <bruno@clisp.org>
43959
43960         Fix bug introduced on 2009-04-25.
43961         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
43962         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
43963         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
43964         is defined.
43965         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
43966         is defined.
43967         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
43968         is defined.
43969         Reported by Elbert_Pol <elbert.pol@gmail.com>.
43970
43971 2009-04-28  Bruno Haible  <bruno@clisp.org>
43972
43973         Comment tweaks.
43974         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
43975         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
43976         * lib/unicase.h (u*_casexfrm): Likewise.
43977         Reported by Paolo Bonzini.
43978
43979 2009-04-28  Bruno Haible  <bruno@clisp.org>
43980
43981         Fix a compilation error.
43982         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
43983         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43984         Reported by Jim Meyering.
43985
43986 2009-04-27  Bruno Haible  <bruno@clisp.org>
43987
43988         New module 'libunistring'.
43989         * modules/libunistring: New file.
43990         * m4/libunistring.m4: New file.
43991         * MODULES.html.sh (Unicode string functions): Add it.
43992
43993 2009-04-27  Eric Blake  <ebb9@byu.net>
43994
43995         maint.mk: allow package-specific header to provide <config.h>
43996         * top/maint.mk (sc_require_config_h): New variable.
43997         (sc_require_config_h, sc_require_config_h_first): Use it.
43998
43999 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44000
44001         * top/maint.mk (sc_avoid_if_before_free): Except
44002         useless-if-before-free script.
44003
44004 2009-04-27  Eric Blake  <ebb9@byu.net>
44005
44006         maintainer-makefile: depend on all required helper scripts
44007         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44008         useless-if-before-free.
44009         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44010         version, rather than assuming gnulib checkout is available.
44011         Reported by Simen Josefsson.
44012
44013 2009-04-26  Bruno Haible  <bruno@clisp.org>
44014
44015         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44016         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44017         "../" or "..".
44018
44019 2009-04-26  Bruno Haible  <bruno@clisp.org>
44020
44021         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44022         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44023         AC_LIB_HAVE_LINKFLAGS.
44024
44025 2009-04-26  Bruno Haible  <bruno@clisp.org>
44026
44027         Simplify calling convention of u*_conv_from_encoding.
44028         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44029         u32_conv_from_encoding): Expect a resultbuf argument and return the
44030         result directly as a pointer.
44031         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44032         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44033         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44034         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44035         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44036         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44037         Update.
44038         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44039         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44040         * lib/vasnprintf.c (VASNPRINTF): Update.
44041         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44042         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44043         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44044         * NEWS: Mention the change.
44045
44046 2009-04-26  Bruno Haible  <bruno@clisp.org>
44047
44048         Simplify calling convention of u*_conv_to_encoding.
44049         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44050         u32_conv_to_encoding): Expect a resultbuf argument and return the
44051         result directly as a pointer.
44052         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44053         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44054         freeing scaled_offsets if mem_iconveha failed.
44055         * lib/unicase/u-casexfrm.h (FUNC): Update.
44056         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44057         * lib/vasnprintf.c (VASNPRINTF): Update.
44058         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44059         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44060         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44061         * NEWS: Mention the change.
44062
44063 2009-04-26  Bruno Haible  <bruno@clisp.org>
44064
44065         Avoid test failures on AIX and OSF/1.
44066         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44067         malloc(0).
44068         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44069         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44070         Likewise.
44071         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44072         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44073         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44074         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44075         * doc/posix-functions/malloc.texi: Document the portability problem
44076         related to malloc(0).
44077
44078 2009-04-26  Bruno Haible  <bruno@clisp.org>
44079
44080         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44081         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44082         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44083
44084 2009-04-25  Bruno Haible  <bruno@clisp.org>
44085
44086         Avoid link error when creating a namespace clean library.
44087         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44088         as macro with arguments if already defined as an alias.
44089         * lib/signbitf.c (gl_signbitf): Don't undefine.
44090         * lib/signbitd.c (gl_signbitd): Don't undefine.
44091         * lib/signbitl.c (gl_signbitl): Don't undefine.
44092
44093 2009-04-25  Jim Meyering  <meyering@redhat.com>
44094
44095         vc-list-files: fix another quoting bug
44096         * build-aux/vc-list-files: Avoid sed backslash expansion
44097         of pathological directory names.
44098
44099 2009-04-25  Eric Blake  <ebb9@byu.net>
44100
44101         vc-list-files: fix shell quoting error
44102         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44103         timestamp.
44104
44105 2009-04-25  Jim Meyering  <meyering@redhat.com>
44106
44107         vc-list-files: restore lost functionality with subdir argument
44108         * build-aux/vc-list-files: When given a non-"." sub-directory
44109         argument, substitute the $dir/ prefix back onto each resulting name.
44110         Otherwise, coreutils' root_tests check would fail.
44111
44112 2009-04-24  Eric Blake  <ebb9@byu.net>
44113
44114         vc-list-files: ignore git symlinks
44115         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44116         than ls-files, to ignore git symlinks.
44117
44118         maint.mk: import improvements from m4
44119         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44120         (move_if_change): Delete unused macro.
44121         (news-date-check, vc-diff-check): Support VPATH builds.
44122         (announcement): Likewise.  Split --bootstrap-tools list...
44123         (boostrap-tools): ...into separate list, which can be overridden
44124         in cfg.mk.
44125         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44126         requiring dependency on useless-if-before-free module.
44127         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44128         Support VPATH builds.
44129
44130 2009-04-24  Jim Meyering  <meyering@redhat.com>
44131
44132         maint.mk: remove coreutils-specific rules and variables
44133         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44134         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44135         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44136
44137         maint.mk: remove obsolete rule
44138         * top/maint.mk (rel-check): Remove rule.
44139         (WGET, WGETFLAGS): Remove now-unused variables.
44140
44141 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44142
44143         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44144         consistency.
44145
44146         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44147         '$(PATH_SEPARATOR)' instead of ':'.
44148
44149 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44150
44151         * lib/getopt1.c (main): Use 'const' for static array.
44152
44153 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44154
44155         * top/maint.mk: Sync with coreutils.
44156         * NEWS: Explain incompatibilities.
44157
44158 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44159             Bruno Haible  <bruno@clisp.org>
44160
44161         Fix cross-compilation results.
44162         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44163         statement, as third argument of AC_TRY_RUN.
44164         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44165         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44166         Likewise.
44167         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44168         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44169         Likewise.
44170         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44171         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44172         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44173
44174 2009-04-20  Bruno Haible  <bruno@clisp.org>
44175
44176         Avoid test failure on mingw.
44177         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44178
44179 2009-04-20  Bruno Haible  <bruno@clisp.org>
44180
44181         Avoid compilation error on mingw.
44182         * modules/localename-tests (Depends-on): Add locale.
44183
44184 2009-04-19  Bruno Haible  <bruno@clisp.org>
44185
44186         Support for building a shared library on Windows platforms.
44187         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44188         (main): Test the presence of UNINORM_NFC here.
44189         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44190         (main): Test the presence of UNINORM_NFD here.
44191         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44192         (main): Test the presence of UNINORM_NFKC here.
44193         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44194         (main): Test the presence of UNINORM_NFKD here.
44195
44196 2009-04-19  Bruno Haible  <bruno@clisp.org>
44197
44198         Avoid a compiler warning.
44199         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44200         Change type of variable 'sequence'.
44201
44202 2009-04-19  Bruno Haible  <bruno@clisp.org>
44203
44204         * modules/configmake (Makefile.am): When the contents of configmake.h
44205         does not change, arrange to preserve its modification time.
44206
44207 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44208
44209         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44210         gettext domain.
44211
44212 2009-04-16  Jim Meyering  <meyering@redhat.com>
44213
44214         useless-if-before-free: improve conversion code
44215         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44216         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44217
44218 2009-04-14  Bruno Haible  <bruno@clisp.org>
44219
44220         * modules/fcntl (Depends-on): Add extensions.
44221         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44222
44223 2009-04-12  Ben Pfaff  <blp@gnu.org>
44224
44225         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44226         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44227
44228 2009-03-20  Ben Pfaff  <blp@gnu.org>
44229
44230         Make rename replace existing destinations on Windows.
44231         * m4/rename.m4: Add test for Mingw.
44232         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44233         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44234         * doc/posix-functions/rename.texi: Document.
44235
44236 2009-04-10  Bruno Haible  <bruno@clisp.org>
44237
44238         New include file "iconveh.h".
44239         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44240         * lib/striconveh.h: Include it.
44241         (enum iconv_ilseq_handler): Remove definition.
44242         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44243         striconveh.h.
44244         * lib/striconveha.c: Include striconveh.h.
44245         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44246         * modules/striconveh (Files): Add lib/iconveh.h.
44247         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44248         lib/striconveh.h.
44249
44250 2009-04-10  Bruno Haible  <bruno@clisp.org>
44251
44252         * lib/uniconv.h: Update comment.
44253
44254 2009-04-10  Bruno Haible  <bruno@clisp.org>
44255
44256         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44257         always.
44258         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44259         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44260         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44261         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44262         "unistring-notinline.h", so that the function gets defined always.
44263         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44264         * lib/unistr/u8-uctomb.c: Likewise.
44265         * lib/unistr/u16-mbtouc.c: Likewise.
44266         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44267         * lib/unistr/u16-uctomb.c: Likewise.
44268         * lib/unistr/u32-mbtouc.c: Likewise.
44269         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44270         * lib/unistr/u32-uctomb.c: Likewise.
44271
44272 2009-04-10  Bruno Haible  <bruno@clisp.org>
44273
44274         Mark 'utime' obsolete.
44275         * modules/utime (Status, Notice): New sections.
44276         Suggested by Jim Meyering.
44277
44278         Fix cross-compile guess for utime test.
44279         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44280         autoconf.
44281         * doc/posix-functions/utime.texi: Give more precisions.
44282         Reported by Jan <ipif@ymail.com>.
44283
44284 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44285
44286         filevercmp: correct today's change
44287         * lib/filevercmp.c: Also handle coreutils' test inputs.
44288         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44289
44290         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44291         for reporting it.
44292         * lib/filevercmp.c: Special handle for "", "." and "..".
44293         * tests/test-filevercmp.c: Enlarge the set suite.
44294
44295 2009-04-07  Jim Meyering  <meyering@redhat.com>
44296
44297         useless-if-before-free: show how to remove braced useless free, too
44298         * build-aux/useless-if-before-free: still only in a comment, though.
44299
44300 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44301
44302         maint.mk: import changes to syntax-check macros from coreutils
44303         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44304         Use them in the relevant macros.
44305
44306 2009-04-06  Bruno Haible  <bruno@clisp.org>
44307
44308         Fix unportable use of bit-fields.
44309         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44310         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44311         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44312
44313 2009-04-06  Bruno Haible  <bruno@clisp.org>
44314
44315         Avoid test failures on AIX and OSF/1.
44316         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44317         that malloc(0) = NULL.
44318         * tests/unicase/test-u8-tolower.c (check): Likewise.
44319         * tests/unicase/test-u8-totitle.c (check): Likewise.
44320         * tests/unicase/test-u8-toupper.c (check): Likewise.
44321         * tests/unicase/test-u16-casefold.c (check): Likewise.
44322         * tests/unicase/test-u16-tolower.c (check): Likewise.
44323         * tests/unicase/test-u16-totitle.c (check): Likewise.
44324         * tests/unicase/test-u16-toupper.c (check): Likewise.
44325         * tests/unicase/test-u32-casefold.c (check): Likewise.
44326         * tests/unicase/test-u32-tolower.c (check): Likewise.
44327         * tests/unicase/test-u32-totitle.c (check): Likewise.
44328         * tests/unicase/test-u32-toupper.c (check): Likewise.
44329         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44330         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44331         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44332         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44333         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44334         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44335         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44336         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44337         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44338         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44339         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44340         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44341
44342 2009-04-05  Bruno Haible  <bruno@clisp.org>
44343
44344         Work around an autoconf limitation.
44345         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44346         comment line if it would be longer than 3 KB.
44347
44348 2009-04-05  Bruno Haible  <bruno@clisp.org>
44349
44350         Avoid test failure with libiconv-1.13.
44351         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44352         of the expected test results.
44353
44354 2009-04-05  Bruno Haible  <bruno@clisp.org>
44355
44356         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44357         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44358         that it should be installed.
44359
44360 2009-04-05  Bruno Haible  <bruno@clisp.org>
44361
44362         * gnulib-tool: New option --copy-file.
44363         (func_usage): Document it.
44364         (func_dest_tmpfilename): Moved out of func_import.
44365         (func_add_file, func_update_file): New functions, extracted from
44366         func_import.
44367         (func_import): Update.
44368
44369 2009-04-05  Karl Berry  <karl@gnu.org>
44370
44371         * README: prominently mention gnulib-tool.
44372         Rearrange sections so getting the code is near the top.
44373
44374 2009-04-05  Bruno Haible  <bruno@clisp.org>
44375
44376         * lib/unicase.h: Mention u*_cmp2.
44377         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44378         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44379         * lib/unicase/ulc-casecmp.c: Likewise.
44380         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44381         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44382         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44383         unistr/u8-cmp.
44384         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44385         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44386         unistr/u16-cmp.
44387         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44388         unistr/u32-cmp.
44389
44390         * lib/uninorm.h: Mention u*_cmp2.
44391         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44392         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44393         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44394         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44395         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44396         unistr/u8-cmp.
44397         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44398         unistr/u16-cmp.
44399         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44400         unistr/u32-cmp.
44401
44402         New module 'unistr/u32-cmp2'.
44403         * lib/unistr/u32-cmp2.c: New file.
44404         * modules/unistr/u32-cmp2: New file.
44405
44406         New module 'unistr/u16-cmp2'.
44407         * lib/unistr/u16-cmp2.c: New file.
44408         * modules/unistr/u16-cmp2: New file.
44409
44410         New module 'unistr/u8-cmp2'.
44411         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44412         * lib/unistr/u8-cmp2.c: New file.
44413         * lib/unistr/u-cmp2.h: New file.
44414         * modules/unistr/u8-cmp2: New file.
44415
44416 2009-04-05  Bruno Haible  <bruno@clisp.org>
44417
44418         * lib/unictype.h (uc_property_is_valid): New macro.
44419         * tests/unictype/test-pr_byname.c (main): Use it.
44420
44421         * lib/unistr.h: Doc fixes.
44422         * lib/uniconv.h: Doc fixes.
44423         * lib/unictype.h: Doc fixes.
44424
44425 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44426
44427         Port coreutils 7.2 to Solaris 8.
44428
44429         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44430         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44431         for Solaris 8.  This is a bit of a hack, as it means it's the
44432         caller's responsibility to add -lnsl if needed, but most likely it
44433         won't be needed since only getaddrinfo uses this and getaddrinfo
44434         isn't needed on Solaris 8.
44435
44436         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44437         problem to Solaris 8 encountered with coreutils 7.2, which
44438         resulted in a message "fnmatch.c:292: warning: passing argument 4
44439         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44440         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44441
44442 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44443
44444         * m4/ld-version-script.m4: Add FIXME comment.
44445
44446 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44447
44448         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44449         SOVERSION variable.
44450
44451 2009-04-02  Bruno Haible  <bruno@clisp.org>
44452
44453         * Makefile (info, html, dvi, pdf): Combine the rules.
44454         Suggested by Jim Meyering.
44455
44456 2009-04-01  Bruno Haible  <bruno@clisp.org>
44457
44458         * Makefile (info, html, dvi, pdf): New targets.
44459         Reported by Reuben Thomas <rrt@sc3d.org>.
44460
44461 2009-04-01  Bruno Haible  <bruno@clisp.org>
44462
44463         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44464         can be put into PATH.
44465         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44466
44467 2009-04-01  Bruno Haible  <bruno@clisp.org>
44468
44469         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44470
44471 2009-04-01  Bruno Haible  <bruno@clisp.org>
44472
44473         Rename module 'visibility'.
44474         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44475         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44476         * doc/gnulib.texi: Update.
44477         * MODULES.html.sh (Misc): Update.
44478         * NEWS: Mention the change.
44479
44480 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44481
44482         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44483         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44484         Eric Blake <ebb9@byu.net> for review.
44485         * MODULES.html.sh: Add lib-msvc-compat.
44486         * doc/gnulib.texi: Link to new section.
44487         * m4/ld-output-def.m4: New file.
44488         * doc/ld-output-def.texi: New file.
44489
44490 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44491
44492         Rename ld-version-script to lib-symbol-versions.  Suggested by
44493         Bruno Haible <bruno@clisp.org>.
44494         * modules/ld-version-script: Renamed to lib-symbol-versions.
44495         * doc/ld-version-script.texi: Fix module name.
44496         * MODULES.html.sh: Add lib-symbol-versions.
44497
44498 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44499
44500         * modules/u64-tests: New file.
44501         * tests/test-u64.c: New file.
44502
44503 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44504
44505         * MODULES.html.sh: Mention u64.
44506         * modules/u64: New module.
44507         * modules/crypto/sha512: Depend on u64 module instead of providing
44508         u64.h.
44509
44510 2009-03-27  Eric Blake  <ebb9@byu.net>
44511
44512         test-strerror: make debugging EAI_SYSTEM easier
44513         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44514         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44515         failure was EAI_SYSTEM.
44516
44517 2009-03-25  Bruno Haible  <bruno@clisp.org>
44518
44519         Fix a problem with --enable-relocatable on Solaris 7.
44520         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44521         since 2008-02-24.
44522
44523 2009-03-25  Eric Blake  <ebb9@byu.net>
44524
44525         test-sockets: avoid gcc warning
44526         * tests/test-sockets.c (main): Silence compiler warning.
44527
44528 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44529
44530         New modules nproc, pthread, contributed by Glen Lenker.
44531
44532         * MODULES.html.sh: Add pthread, nproc.
44533         * lib/nproc.c: New file.
44534         * lib/nproc.h: New file.
44535         * lib/pthread.in.h: New file.
44536         * m4/pthread.m4: New file.
44537         * modules/nproc: New file.
44538         * modules/pthread: New file.
44539
44540 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44541
44542         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44543         New variable.
44544
44545 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44546
44547         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44548         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44549         * tests/test-filevercmp.c: Add tests for backup suffixes.
44550
44551 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44552
44553         * modules/stdlib (Depends-on): Add stdint, needed when defining
44554         struct random_data on, for example, HP-UX 10.20.  Reported by
44555         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44556
44557 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44558
44559         * lib/readline.c (readline): Call fflush on stdout after printing
44560         prompt.
44561
44562 2009-03-20  Bruno Haible  <bruno@clisp.org>
44563
44564         Remove dependency from 'close' module to -lws2_32 on native Windows.
44565         * lib/close-hook.h: New file.
44566         * lib/close-hook.c: New file.
44567         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44568         w32sock.h.
44569         (_gl_close_fd_maybe_socket): Remove function.
44570         (rpl_close): Invoke execute_all_close_hooks instead of
44571         _gl_close_fd_maybe_socket.
44572         * lib/sockets.c: Include close-hook.h, w32sock.h.
44573         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44574         (close_sockets_hook): New variable.
44575         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44576         (gl_sockets_cleanup): Unregister it.
44577         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44578         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44579         * modules/close-hook: New file.
44580         * modules/close (Files): Remove lib/w32sock.h.
44581         (Depends-on): Add close-hook.
44582         (Link): Remove section.
44583         * modules/sockets (Files): Add lib/w32sock.h.
44584         (Depends-on): Add close-hook.
44585         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44586         invocation.
44587         * NEWS: Mention that LIB_CLOSE is gone.
44588
44589 2009-03-23  Eric Blake  <ebb9@byu.net>
44590
44591         signal-tests: test previous patch
44592         * tests/test-signal.c: New file.
44593         * modules/signal-tests: Likewise.
44594
44595         signal.h: always support 'volatile sig_atomic_t'
44596         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44597         (gl_SIGNAL_H_DEFAULTS): Add a default.
44598         * modules/signal (Makefile.am): Substitute if needed.
44599         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44600         users can blindly add volatile.
44601         * doc/posix-headers/signal.texi (signal.h): Document it.
44602         Reported by Matthew Woehlke.
44603
44604 2009-03-23  Jim Meyering  <meyering@redhat.com>
44605
44606         pathmax: PATH_MAX: use pathconf only when available
44607         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44608         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44609         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44610         This avoids a link failure in a PSP cross-compilation environment
44611         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44612
44613         * lib/vasnprintf.c (divide): Fix typo in comment.
44614
44615 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44616
44617         * gnulib-tool (func_filter_filelist): Fix comment.
44618
44619 2009-03-20  Bruno Haible  <bruno@clisp.org>
44620
44621         Make sockets.h self-contained.
44622         * lib/sockets.c: Include sockets.h first.
44623         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44624
44625 2009-03-19  Eric Blake  <ebb9@byu.net>
44626
44627         doc: mention more functions added in cygwin 1.7.0
44628         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44629         addition.
44630         * doc/posix-functions/log2f.texi: Likewise.
44631
44632 2009-03-19  Jim Meyering  <meyering@redhat.com>
44633
44634         fsusage: avoid syntax error due to statement-before-declaration
44635         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44636         after all declarations.  Reported by Matthew Woehlke in
44637         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44638
44639 2009-03-18  Eric Blake  <ebb9@byu.net>
44640
44641         build-aux/compile: sync from automake
44642         * build-aux/compile: New file, from automake.
44643         * config/srclist.txt: Mention build-aux/compile.
44644
44645 2009-03-17  Bruno Haible  <bruno@clisp.org>
44646
44647         * lib/git-merge-changelog.c: Fix typo in comment.
44648         Reported by Reuben Thomas <rrt@sc3d.org>.
44649
44650 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44651
44652         * m4/regex.m4: update and improve help for
44653         --without-included-regex.
44654
44655 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44656
44657         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44658         failure on missing include files.
44659
44660 2009-03-17  Eric Blake  <ebb9@byu.net>
44661
44662         doc: mention more functions added in cygwin 1.7.0
44663         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44664         addition.
44665         * doc/posix-functions/fwscanf.texi: Likewise.
44666         * doc/posix-functions/swprintf.texi: Likewise.
44667         * doc/posix-functions/swscanf.texi: Likewise.
44668         * doc/posix-functions/vfwprintf.texi: Likewise.
44669         * doc/posix-functions/vfwscanf.texi: Likewise.
44670         * doc/posix-functions/vswprintf.texi: Likewise.
44671         * doc/posix-functions/vswscanf.texi: Likewise.
44672         * doc/posix-functions/vwprintf.texi: Likewise.
44673         * doc/posix-functions/vwscanf.texi: Likewise.
44674         * doc/posix-functions/wcscasecmp.texi: Likewise.
44675         * doc/posix-functions/wcsdup.texi: Likewise.
44676         * doc/posix-functions/wcsftime.texi: Likewise.
44677         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44678         * doc/posix-functions/wprintf.texi: Likewise.
44679         * doc/posix-functions/wscanf.texi: Likewise.
44680         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44681
44682 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44683
44684         maint.mk: really add $(AM_MAKEFLAGS)
44685         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44686         was inadvertently omitted in the last commit.
44687         Spotted by Bruno Haible.
44688
44689         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44690         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44691         $(AM_MAKEFLAGS)' rather than plain `make'.
44692
44693         gnulib-tool: execute $MAKE not make
44694         * gnulib-tool: Default $MAKE to 'make'.
44695         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44696         than make.  Initialize $MAKE in the do-autobuild script.
44697
44698         gnulib-tool: use $MAKE not make in generated files
44699         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44700         make, in generated files.  Initialize $MAKE in the do-autobuild
44701         script.
44702
44703         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44704
44705         GNUmakefile: disable parallelism only for multiple, recursive targets
44706         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44707         additions in the Makefile.
44708         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44709         by Automake.
44710         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44711         are listed on the command line and at least one of them is
44712         listed in $(ALL_RECURSIVE_TARGETS).
44713
44714 2009-03-14  Bruno Haible  <bruno@clisp.org>
44715
44716         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44717         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44718         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44719         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44720         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44721         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44722         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44723         unistr/u8-uctomb.
44724         * modules/unistr/u8-strchr (Depends-on): Likewise.
44725         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44726         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44727         unistr/u16-uctomb.
44728         * modules/unistr/u16-strchr (Depends-on): Likewise.
44729         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44730
44731 2009-03-12  Bruno Haible  <bruno@clisp.org>
44732
44733         Work around select() bug on Interix 3.5.
44734         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44735         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44736         * m4/select.m4: New file.
44737         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44738         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44739         * modules/select (Files): Add m4/select.m4.
44740         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44741         * modules/nanosleep (Depends-on): Add select.
44742         * modules/poll (Depends-on): Likewise.
44743         * doc/posix-functions/select.texi: Mention the Interix bug.
44744         Reported by Markus Duft <mduft@gentoo.org>.
44745
44746         * lib/select.c: Renamed from lib/winsock-select.c.
44747         * modules/select (Files): Add lib/select.c, remove
44748         lib/winsock-select.c.
44749         (configure.ac): Update.
44750
44751 2009-03-12  Jim Meyering  <meyering@redhat.com>
44752
44753         avoid gcc warnings about unused macro definitions
44754         * lib/readtokens.c (STREQ): Remove unused definition.
44755         * lib/xmalloc.c (SIZE_MAX): Likewise.
44756         * lib/openat-die.c (N_): Likewise.
44757         * lib/mountlist.c (SIZE_MAX): Remove definition.
44758         Instead, include <stdint.h>.
44759         * lib/readutmp.c: Likewise.
44760         * modules/readutmp (Depends-on): Add stdint.
44761         * modules/mountlist (Depends-on): Add stdint.
44762         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44763
44764 2009-03-10  Bruno Haible  <bruno@clisp.org>
44765
44766         Tests for module 'mbmemcasecoll'.
44767         * modules/mbmemcasecoll-tests: New file.
44768         * tests/test-mbmemcasecoll1.sh: New file.
44769         * tests/test-mbmemcasecoll2.sh: New file.
44770         * tests/test-mbmemcasecoll3.sh: New file.
44771         * tests/test-mbmemcasecoll.c: New file.
44772
44773         New module 'mbmemcasecoll'.
44774         * lib/mbmemcasecoll.h: New file.
44775         * lib/mbmemcasecoll.c: New file.
44776         * modules/mbmemcasecoll: New file.
44777
44778         * tests/test-mbmemcasecmp.h: New file, extracted from
44779         tests/test-mbmemcasecmp.c.
44780         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44781         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44782         (main): Update.
44783         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44784
44785 2009-03-09  Bruno Haible  <bruno@clisp.org>
44786
44787         Tests for module 'mbmemcasecmp'.
44788         * modules/mbmemcasecmp-tests: New file.
44789         * tests/test-mbmemcasecmp1.sh: New file.
44790         * tests/test-mbmemcasecmp2.sh: New file.
44791         * tests/test-mbmemcasecmp3.sh: New file.
44792         * tests/test-mbmemcasecmp.c: New file.
44793
44794         New module 'mbmemcasecmp'.
44795         * lib/mbmemcasecmp.h: New file.
44796         * lib/mbmemcasecmp.c: New file.
44797         * modules/mbmemcasecmp: New file.
44798
44799 2009-03-09  Bruno Haible  <bruno@clisp.org>
44800
44801         Tests for module 'unicase/ulc-casecoll'.
44802         * modules/unicase/ulc-casecoll-tests: New file.
44803         * tests/unicase/test-ulc-casecoll1.sh: New file.
44804         * tests/unicase/test-ulc-casecoll2.sh: New file.
44805         * tests/unicase/test-ulc-casecoll.c: New file.
44806
44807         New module 'unicase/ulc-casecoll'.
44808         * lib/unicase.h (ulc_casecoll): New declaration.
44809         * lib/unicase/ulc-casecoll.c: New file.
44810         * modules/unicase/ulc-casecoll: New file.
44811
44812         New module 'unicase/ulc-casexfrm'.
44813         * lib/unicase.h (ulc_casexfrm): New declaration.
44814         * lib/unicase/ulc-casexfrm.c: New file.
44815         * modules/unicase/ulc-casexfrm: New file.
44816
44817 2009-03-09  Bruno Haible  <bruno@clisp.org>
44818
44819         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44820         invocations.
44821
44822         * m4/mbscasecmp.m4: Remove file.
44823         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44824         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44825
44826         * m4/mbscasestr.m4: Remove file.
44827         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44828         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44829
44830         * m4/mbschr.m4: Remove file.
44831         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44832         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44833
44834         * m4/mbscspn.m4: Remove file.
44835         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44836         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44837
44838         * m4/mbslen.m4: Remove file.
44839         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44840         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44841
44842         * m4/mbsncasecmp.m4: Remove file.
44843         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44844         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44845
44846         * m4/mbsnlen.m4: Remove file.
44847         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44848         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44849
44850         * m4/mbspbrk.m4: Remove file.
44851         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44852         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44853
44854         * m4/mbspcasecmp.m4: Remove file.
44855         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44856         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44857
44858         * m4/mbsrchr.m4: Remove file.
44859         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44860         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44861
44862         * m4/mbssep.m4: Remove file.
44863         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44864         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44865
44866         * m4/mbsspn.m4: Remove file.
44867         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44868         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44869
44870         * m4/mbsstr.m4: Remove file.
44871         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44872         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44873
44874         * m4/mbstok_r.m4: Remove file.
44875         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44876         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44877
44878         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44879
44880         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44881         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44882
44883         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44884
44885 2009-03-08  Bruno Haible  <bruno@clisp.org>
44886
44887         Tests for module 'unicase/ulc-casecmp'.
44888         * modules/unicase/ulc-casecmp-tests: New file.
44889         * tests/unicase/test-ulc-casecmp1.sh: New file.
44890         * tests/unicase/test-ulc-casecmp2.sh: New file.
44891         * tests/unicase/test-ulc-casecmp.c: New file.
44892
44893         New module 'unicase/ulc-casecmp'.
44894         * lib/unicase.h (ulc_casecmp): New declaration.
44895         * lib/unicase/ulc-casecmp.c: New file.
44896         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44897         'const SRC_UNIT *'.
44898         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44899         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44900         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44901         * modules/unicase/ulc-casecmp: New file.
44902
44903         Tests for module 'unicase/u32-is-cased'.
44904         * modules/unicase/u32-is-cased-tests: New file.
44905         * tests/unicase/test-u32-is-cased.c: New file.
44906
44907         Tests for module 'unicase/u16-is-cased'.
44908         * modules/unicase/u16-is-cased-tests: New file.
44909         * tests/unicase/test-u16-is-cased.c: New file.
44910
44911         Tests for module 'unicase/u8-is-cased'.
44912         * modules/unicase/u8-is-cased-tests: New file.
44913         * tests/unicase/test-u8-is-cased.c: New file.
44914         * tests/unicase/test-is-cased.h: New file.
44915
44916         New module 'unicase/u32-is-cased'.
44917         * lib/unicase/u32-is-cased.c: New file.
44918         * modules/unicase/u32-is-cased: New file.
44919
44920         New module 'unicase/u16-is-cased'.
44921         * lib/unicase/u16-is-cased.c: New file.
44922         * modules/unicase/u16-is-cased: New file.
44923
44924         New module 'unicase/u8-is-cased'.
44925         * lib/unicase/u8-is-cased.c: New file.
44926         * lib/unicase/u-is-cased.h: New file.
44927         * modules/unicase/u8-is-cased: New file.
44928
44929         Tests for module 'unicase/u32-is-casefolded'.
44930         * modules/unicase/u32-is-casefolded-tests: New file.
44931         * tests/unicase/test-u32-is-casefolded.c: New file.
44932
44933         Tests for module 'unicase/u16-is-casefolded'.
44934         * modules/unicase/u16-is-casefolded-tests: New file.
44935         * tests/unicase/test-u16-is-casefolded.c: New file.
44936
44937         Tests for module 'unicase/u8-is-casefolded'.
44938         * modules/unicase/u8-is-casefolded-tests: New file.
44939         * tests/unicase/test-u8-is-casefolded.c: New file.
44940         * tests/unicase/test-is-casefolded.h: New file.
44941
44942         New module 'unicase/u32-is-casefolded'.
44943         * lib/unicase/u32-is-casefolded.c: New file.
44944         * modules/unicase/u32-is-casefolded: New file.
44945
44946         New module 'unicase/u16-is-casefolded'.
44947         * lib/unicase/u16-is-casefolded.c: New file.
44948         * modules/unicase/u16-is-casefolded: New file.
44949
44950         New module 'unicase/u8-is-casefolded'.
44951         * lib/unicase/u8-is-casefolded.c: New file.
44952         * modules/unicase/u8-is-casefolded: New file.
44953
44954         Tests for module 'unicase/u32-is-titlecase'.
44955         * modules/unicase/u32-is-titlecase-tests: New file.
44956         * tests/unicase/test-u32-is-titlecase.c: New file.
44957
44958         Tests for module 'unicase/u16-is-titlecase'.
44959         * modules/unicase/u16-is-titlecase-tests: New file.
44960         * tests/unicase/test-u16-is-titlecase.c: New file.
44961
44962         Tests for module 'unicase/u8-is-titlecase'.
44963         * modules/unicase/u8-is-titlecase-tests: New file.
44964         * tests/unicase/test-u8-is-titlecase.c: New file.
44965         * tests/unicase/test-is-titlecase.h: New file.
44966
44967         New module 'unicase/u32-is-titlecase'.
44968         * lib/unicase/u32-is-titlecase.c: New file.
44969         * modules/unicase/u32-is-titlecase: New file.
44970
44971         New module 'unicase/u16-is-titlecase'.
44972         * lib/unicase/u16-is-titlecase.c: New file.
44973         * modules/unicase/u16-is-titlecase: New file.
44974
44975         New module 'unicase/u8-is-titlecase'.
44976         * lib/unicase/u8-is-titlecase.c: New file.
44977         * modules/unicase/u8-is-titlecase: New file.
44978
44979         Tests for module 'unicase/u32-is-lowercase'.
44980         * modules/unicase/u32-is-lowercase-tests: New file.
44981         * tests/unicase/test-u32-is-lowercase.c: New file.
44982
44983         Tests for module 'unicase/u16-is-lowercase'.
44984         * modules/unicase/u16-is-lowercase-tests: New file.
44985         * tests/unicase/test-u16-is-lowercase.c: New file.
44986
44987         Tests for module 'unicase/u8-is-lowercase'.
44988         * modules/unicase/u8-is-lowercase-tests: New file.
44989         * tests/unicase/test-u8-is-lowercase.c: New file.
44990         * tests/unicase/test-is-lowercase.h: New file.
44991
44992         New module 'unicase/u32-is-lowercase'.
44993         * lib/unicase/u32-is-lowercase.c: New file.
44994         * modules/unicase/u32-is-lowercase: New file.
44995
44996         New module 'unicase/u16-is-lowercase'.
44997         * lib/unicase/u16-is-lowercase.c: New file.
44998         * modules/unicase/u16-is-lowercase: New file.
44999
45000         New module 'unicase/u8-is-lowercase'.
45001         * lib/unicase/u8-is-lowercase.c: New file.
45002         * modules/unicase/u8-is-lowercase: New file.
45003
45004         Tests for module 'unicase/u32-is-uppercase'.
45005         * modules/unicase/u32-is-uppercase-tests: New file.
45006         * tests/unicase/test-u32-is-uppercase.c: New file.
45007
45008         Tests for module 'unicase/u16-is-uppercase'.
45009         * modules/unicase/u16-is-uppercase-tests: New file.
45010         * tests/unicase/test-u16-is-uppercase.c: New file.
45011
45012         Tests for module 'unicase/u8-is-uppercase'.
45013         * modules/unicase/u8-is-uppercase-tests: New file.
45014         * tests/unicase/test-u8-is-uppercase.c: New file.
45015         * tests/unicase/test-is-uppercase.h: New file.
45016
45017         New module 'unicase/u32-is-uppercase'.
45018         * lib/unicase/u32-is-uppercase.c: New file.
45019         * modules/unicase/u32-is-uppercase: New file.
45020
45021         New module 'unicase/u16-is-uppercase'.
45022         * lib/unicase/u16-is-uppercase.c: New file.
45023         * modules/unicase/u16-is-uppercase: New file.
45024
45025         New module 'unicase/u8-is-uppercase'.
45026         * lib/unicase/u8-is-uppercase.c: New file.
45027         * modules/unicase/u8-is-uppercase: New file.
45028
45029         New module 'unicase/u32-is-invariant'.
45030         * lib/unicase/u32-is-invariant.c: New file.
45031         * modules/unicase/u32-is-invariant: New file.
45032
45033         New module 'unicase/u16-is-invariant'.
45034         * lib/unicase/u16-is-invariant.c: New file.
45035         * modules/unicase/u16-is-invariant: New file.
45036
45037         New module 'unicase/u8-is-invariant'.
45038         * lib/unicase/u8-is-invariant.c: New file.
45039         * lib/unicase/invariant.h: New file.
45040         * lib/unicase/u-is-invariant.h: New file.
45041         * modules/unicase/u8-is-invariant: New file.
45042
45043         Tests for module 'unicase/u32-casecoll'.
45044         * modules/unicase/u32-casecoll-tests: New file.
45045         * tests/unicase/test-u32-casecoll.c: New file.
45046
45047         Tests for module 'unicase/u16-casecoll'.
45048         * modules/unicase/u16-casecoll-tests: New file.
45049         * tests/unicase/test-u16-casecoll.c: New file.
45050
45051         Tests for module 'unicase/u8-casecoll'.
45052         * modules/unicase/u8-casecoll-tests: New file.
45053         * tests/unicase/test-u8-casecoll.c: New file.
45054
45055         New module 'unicase/u32-casecoll'.
45056         * lib/unicase/u32-casecoll.c: New file.
45057         * modules/unicase/u32-casecoll: New file.
45058
45059         New module 'unicase/u16-casecoll'.
45060         * lib/unicase/u16-casecoll.c: New file.
45061         * modules/unicase/u16-casecoll: New file.
45062
45063         New module 'unicase/u8-casecoll'.
45064         * lib/unicase/u8-casecoll.c: New file.
45065         * lib/unicase/u-casecoll.h: New file.
45066         * modules/unicase/u8-casecoll: New file.
45067
45068         New module 'unicase/u32-casexfrm'.
45069         * lib/unicase/u32-casexfrm.c: New file.
45070         * modules/unicase/u32-casexfrm: New file.
45071
45072         New module 'unicase/u16-casexfrm'.
45073         * lib/unicase/u16-casexfrm.c: New file.
45074         * modules/unicase/u16-casexfrm: New file.
45075
45076         New module 'unicase/u8-casexfrm'.
45077         * lib/unicase/u8-casexfrm.c: New file.
45078         * lib/unicase/u-casexfrm.h: New file.
45079         * modules/unicase/u8-casexfrm: New file.
45080
45081         Tests for module 'unicase/u32-casecmp'.
45082         * modules/unicase/u32-casecmp-tests: New file.
45083         * tests/unicase/test-u32-casecmp.c: New file.
45084
45085         Tests for module 'unicase/u16-casecmp'.
45086         * modules/unicase/u16-casecmp-tests: New file.
45087         * tests/unicase/test-u16-casecmp.c: New file.
45088
45089         Tests for module 'unicase/u8-casecmp'.
45090         * modules/unicase/u8-casecmp-tests: New file.
45091         * tests/unicase/test-u8-casecmp.c: New file.
45092         * tests/unicase/test-casecmp.h: New file.
45093
45094         New module 'unicase/u32-casecmp'.
45095         * lib/unicase/u32-casecmp.c: New file.
45096         * modules/unicase/u32-casecmp: New file.
45097
45098         New module 'unicase/u16-casecmp'.
45099         * lib/unicase/u16-casecmp.c: New file.
45100         * modules/unicase/u16-casecmp: New file.
45101
45102         New module 'unicase/u8-casecmp'.
45103         * lib/unicase/u8-casecmp.c: New file.
45104         * lib/unicase/u-casecmp.h: New file.
45105         * modules/unicase/u8-casecmp: New file.
45106
45107         Tests for module 'unicase/u32-casefold'.
45108         * modules/unicase/u32-casefold-tests: New file.
45109         * tests/unicase/test-u32-casefold.c: New file.
45110
45111         Tests for module 'unicase/u16-casefold'.
45112         * modules/unicase/u16-casefold-tests: New file.
45113         * tests/unicase/test-u16-casefold.c: New file.
45114
45115         Tests for module 'unicase/u8-casefold'.
45116         * modules/unicase/u8-casefold-tests: New file.
45117         * tests/unicase/test-u8-casefold.c: New file.
45118
45119         New module 'unicase/u32-casefold'.
45120         * lib/unicase/u32-casefold.c: New file.
45121         * modules/unicase/u32-casefold: New file.
45122
45123         New module 'unicase/u16-casefold'.
45124         * lib/unicase/u16-casefold.c: New file.
45125         * modules/unicase/u16-casefold: New file.
45126
45127         New module 'unicase/u8-casefold'.
45128         * lib/unicase/u8-casefold.c: New file.
45129         * lib/unicase/u-casefold.h: New file.
45130         * modules/unicase/u8-casefold: New file.
45131
45132         New module 'unicase/tocasefold'.
45133         * lib/unicase/casefold.h: New file.
45134         * lib/unicase/tocasefold.c: New file.
45135         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45136         * modules/unicase/tocasefold: New file.
45137
45138         Tests for module 'unicase/u32-totitle'.
45139         * modules/unicase/u32-totitle-tests: New file.
45140         * tests/unicase/test-u32-totitle.c: New file.
45141
45142         Tests for module 'unicase/u16-totitle'.
45143         * modules/unicase/u16-totitle-tests: New file.
45144         * tests/unicase/test-u16-totitle.c: New file.
45145
45146         Tests for module 'unicase/u8-totitle'.
45147         * modules/unicase/u8-totitle-tests: New file.
45148         * tests/unicase/test-u8-totitle.c: New file.
45149
45150         New module 'unicase/u32-totitle'.
45151         * lib/unicase/u32-totitle.c: New file.
45152         * modules/unicase/u32-totitle: New file.
45153
45154         New module 'unicase/u16-totitle'.
45155         * lib/unicase/u16-totitle.c: New file.
45156         * modules/unicase/u16-totitle: New file.
45157
45158         New module 'unicase/u8-totitle'.
45159         * lib/unicase/u8-totitle.c: New file.
45160         * lib/unicase/u-totitle.h: New file.
45161         * modules/unicase/u8-totitle: New file.
45162
45163         Tests for module 'unicase/u32-tolower'.
45164         * modules/unicase/u32-tolower-tests: New file.
45165         * tests/unicase/test-u32-tolower.c: New file.
45166
45167         Tests for module 'unicase/u16-tolower'.
45168         * modules/unicase/u16-tolower-tests: New file.
45169         * tests/unicase/test-u16-tolower.c: New file.
45170
45171         Tests for module 'unicase/u8-tolower'.
45172         * modules/unicase/u8-tolower-tests: New file.
45173         * tests/unicase/test-u8-tolower.c: New file.
45174
45175         New module 'unicase/u32-tolower'.
45176         * lib/unicase/u32-tolower.c: New file.
45177         * modules/unicase/u32-tolower: New file.
45178
45179         New module 'unicase/u16-tolower'.
45180         * lib/unicase/u16-tolower.c: New file.
45181         * modules/unicase/u16-tolower: New file.
45182
45183         New module 'unicase/u8-tolower'.
45184         * lib/unicase/u8-tolower.c: New file.
45185         * modules/unicase/u8-tolower: New file.
45186
45187         Tests for module 'unicase/u32-toupper'.
45188         * modules/unicase/u32-toupper-tests: New file.
45189         * tests/unicase/test-u32-toupper.c: New file.
45190
45191         Tests for module 'unicase/u16-toupper'.
45192         * modules/unicase/u16-toupper-tests: New file.
45193         * tests/unicase/test-u16-toupper.c: New file.
45194
45195         Tests for module 'unicase/u8-toupper'.
45196         * modules/unicase/u8-toupper-tests: New file.
45197         * tests/unicase/test-u8-toupper.c: New file.
45198
45199         New module 'unicase/u32-toupper'.
45200         * lib/unicase/u32-toupper.c: New file.
45201         * modules/unicase/u32-toupper: New file.
45202
45203         New module 'unicase/u16-toupper'.
45204         * lib/unicase/u16-toupper.c: New file.
45205         * modules/unicase/u16-toupper: New file.
45206
45207         New module 'unicase/u8-toupper'.
45208         * lib/unicase/u8-toupper.c: New file.
45209         * modules/unicase/u8-toupper: New file.
45210
45211         New module 'unicase/u32-casemap'.
45212         * lib/unicase/u32-casemap.c: New file.
45213         * modules/unicase/u32-casemap: New file.
45214
45215         New module 'unicase/u16-casemap'.
45216         * lib/unicase/u16-casemap.c: New file.
45217         * modules/unicase/u16-casemap: New file.
45218
45219         New module 'unicase/u8-casemap'.
45220         * lib/unicase/unicasemap.h: New file.
45221         * lib/unicase/u8-casemap.c: New file.
45222         * lib/unicase/u-casemap.h: New file.
45223         * modules/unicase/u8-casemap: New file.
45224
45225         New module 'unicase/special-casing'.
45226         * lib/unicase/special-casing.h: New file.
45227         * lib/unicase/special-casing.c: New file.
45228         * lib/unicase/special-casing-table.gperf: New file, generated by
45229         gen-uni-tables.c.
45230         * modules/unicase/special-casing: New file.
45231
45232         Tests for module 'unicase/locale-language'.
45233         * modules/unicase/locale-language-tests: New file.
45234         * tests/unicase/test-locale-language.sh: New file.
45235         * tests/unicase/test-locale-language.c: New file.
45236
45237         New module 'unicase/locale-language'.
45238         * lib/unicase/locale-language.c: New file.
45239         * lib/unicase/locale-languages.gperf: New file.
45240         * modules/unicase/locale-language: New file.
45241
45242         Generate more tables for case conversion and case folding.
45243         * lib/gen-uni-tables.c (SCC_*): New enum items.
45244         (struct special_casing_rule): New type.
45245         (casing_rules, num_casing_rules, allocated_casing_rules): New
45246         variables.
45247         (add_casing_rule, fill_casing_rules): New functions.
45248         (struct casefold_rule): New type.
45249         (casefolding_rules, num_casefolding_rules,
45250         allocated_casefolding_rules): New variables.
45251         (fill_casefolding_rules): New function.
45252         (unicode_casefold): New variable.
45253         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45254         sort_casing_rules, output_casing_rules): New functions.
45255         (main): Accept to more arguments: SpecialCasing.txt and
45256         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45257         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45258         Output mapping for casefolding.
45259
45260         * lib/unicase.h: Include stdbool.h, uninorm.h.
45261         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45262         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45263         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45264         arguments.
45265         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45266         resultp arguments.
45267         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45268         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45269         resultp arguments.
45270         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45271         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45272         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45273         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45274         declarations.
45275         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45276
45277 2009-03-08  Bruno Haible  <bruno@clisp.org>
45278
45279         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45280         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45281         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45282         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45283
45284 2009-03-07  Bruno Haible  <bruno@clisp.org>
45285
45286         Adjust u*_normcmp, u*_normcoll API.
45287         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45288         u16_normcoll, u32_normcoll): Change failure conventions.
45289         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45290         errno and return -1.
45291         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45292
45293 2009-03-07  Bruno Haible  <bruno@clisp.org>
45294
45295         Tests for module 'uninorm/u32-normcoll'.
45296         * modules/uninorm/u32-normcoll-tests: New file.
45297         * tests/uninorm/test-u32-normcoll.c: New file.
45298
45299         Tests for module 'uninorm/u16-normcoll'.
45300         * modules/uninorm/u16-normcoll-tests: New file.
45301         * tests/uninorm/test-u16-normcoll.c: New file.
45302
45303         Tests for module 'uninorm/u8-normcoll'.
45304         * modules/uninorm/u8-normcoll-tests: New file.
45305         * tests/uninorm/test-u8-normcoll.c: New file.
45306
45307 2009-03-07  Bruno Haible  <bruno@clisp.org>
45308
45309         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45310         tests/uninorm/test-u32-normcmp.c.
45311         * tests/uninorm/test-u32-normcmp.c: Include it.
45312         (test_nonascii): New function, extracted from main. Add some more
45313         tests.
45314         (main): Invoke test_ascii and test_nonascii.
45315         * modules/uninorm/u32-normcmp-tests (Files): Add
45316         tests/uninorm/test-u32-normcmp.h.
45317         (Depends-on): Remove uninorm/u32-normcmp.
45318
45319         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45320         tests/uninorm/test-u16-normcmp.c.
45321         * tests/uninorm/test-u16-normcmp.c: Include it.
45322         (test_nonascii): New function, extracted from main. Add some more
45323         tests.
45324         (main): Invoke test_ascii and test_nonascii.
45325         * modules/uninorm/u16-normcmp-tests (Files): Add
45326         tests/uninorm/test-u16-normcmp.h.
45327         (Depends-on): Remove uninorm/u16-normcmp.
45328
45329         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45330         tests/uninorm/test-u8-normcmp.c.
45331         * tests/uninorm/test-u8-normcmp.c: Include it.
45332         (test_nonascii): New function, extracted from main. Add some more
45333         tests.
45334         (main): Invoke test_ascii and test_nonascii.
45335         * modules/uninorm/u8-normcmp-tests (Files): Add
45336         tests/uninorm/test-u8-normcmp.h.
45337         (Depends-on): Remove uninorm/u8-normcmp.
45338
45339 2009-03-07  Bruno Haible  <bruno@clisp.org>
45340
45341         New module 'uninorm/u32-normcoll'.
45342         * lib/uninorm/u32-normcoll.c: New file.
45343         * modules/uninorm/u32-normcoll: New file.
45344
45345         New module 'uninorm/u16-normcoll'.
45346         * lib/uninorm/u16-normcoll.c: New file.
45347         * modules/uninorm/u16-normcoll: New file.
45348
45349         New module 'uninorm/u8-normcoll'.
45350         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45351         declarations.
45352         * lib/uninorm/u8-normcoll.c: New file.
45353         * lib/uninorm/u-normcoll.h: New file.
45354         * modules/uninorm/u8-normcoll: New file.
45355
45356         New module 'uninorm/u32-normxfrm'.
45357         * lib/uninorm/u32-normxfrm.c: New file.
45358         * modules/uninorm/u32-normxfrm: New file.
45359
45360         New module 'uninorm/u16-normxfrm'.
45361         * lib/uninorm/u16-normxfrm.c: New file.
45362         * modules/uninorm/u16-normxfrm: New file.
45363
45364         New module 'uninorm/u8-normxfrm'.
45365         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45366         declarations.
45367         * lib/uninorm/u8-normxfrm.c: New file.
45368         * lib/uninorm/u-normxfrm.h: New file.
45369         * modules/uninorm/u8-normxfrm: New file.
45370
45371 2009-03-07  Bruno Haible  <bruno@clisp.org>
45372
45373         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45374         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45375         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45376
45377 2009-03-07  Bruno Haible  <bruno@clisp.org>
45378
45379         New module 'memxfrm'.
45380         * lib/memxfrm.h: New file.
45381         * lib/memxfrm.c: New file.
45382         * modules/memxfrm: New file.
45383
45384 2009-03-07  Bruno Haible  <bruno@clisp.org>
45385
45386         New module 'memcmp2'.
45387         * lib/memcmp2.h: New file.
45388         * lib/memcmp2.c: New file.
45389         * modules/memcmp2: New file.
45390
45391 2009-03-07  Bruno Haible  <bruno@clisp.org>
45392
45393         Tests for module 'uninorm/decomposing-form'.
45394         * modules/uninorm/decomposing-form-tests: New file.
45395         * tests/uninorm/test-decomposing-form.c: New file.
45396
45397         New module 'uninorm/decomposing-form'.
45398         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45399         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45400         Add 'decomposing_variant' field.
45401         * lib/uninorm/decomposing-form.c: New file.
45402         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45403         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45404         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45405         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45406         * modules/uninorm/decomposing-form: New file.
45407         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45408         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45409
45410 2009-03-07  Bruno Haible  <bruno@clisp.org>
45411
45412         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45413         strings.
45414
45415 2009-03-06  Bruno Haible  <bruno@clisp.org>
45416
45417         Tests for module 'uninorm/u32-normcmp'.
45418         * tests/uninorm/test-u32-normcmp.c: New file.
45419         * modules/uninorm/u32-normcmp-tests: New file.
45420
45421         Tests for module 'uninorm/u16-normcmp'.
45422         * tests/uninorm/test-u16-normcmp.c: New file.
45423         * modules/uninorm/u16-normcmp-tests: New file.
45424
45425         Tests for module 'uninorm/u8-normcmp'.
45426         * tests/uninorm/test-u8-normcmp.c: New file.
45427         * modules/uninorm/u8-normcmp-tests: New file.
45428
45429         New module 'uninorm/u32-normcmp'.
45430         * lib/uninorm/u32-normcmp.c: New file.
45431         * modules/uninorm/u32-normcmp: New file.
45432
45433         New module 'uninorm/u16-normcmp'.
45434         * lib/uninorm/u16-normcmp.c: New file.
45435         * modules/uninorm/u16-normcmp: New file.
45436
45437         New module 'uninorm/u8-normcmp'.
45438         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45439         declarations.
45440         * lib/uninorm/u8-normcmp.c: New file.
45441         * lib/uninorm/u-normcmp.h: New file.
45442         * modules/uninorm/u8-normcmp: New file.
45443
45444 2009-03-06  Bruno Haible  <bruno@clisp.org>
45445
45446         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45447         Reported by Eric Blake.
45448
45449 2009-03-06  Eric Blake  <ebb9@byu.net>
45450             Bruno Haible  <bruno@clisp.org>
45451
45452         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45453         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45454         condition.
45455         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45456         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45457         condition.
45458         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45459
45460 2009-03-06  Eric Blake  <ebb9@byu.net>
45461
45462         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45463         to avoid compiler warnings.
45464         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45465
45466 2009-03-05  Bruno Haible  <bruno@clisp.org>
45467
45468         * tests/test-ftell.c (main): Disable test beyond end of file on
45469         FreeMiNT.
45470         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45471
45472 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45473
45474         * lib/filevercmp.c: Move hidden files up in ordering.
45475         * tests/test-filevercmp.c: Add tests for hidden files.
45476
45477 2009-03-04  Bruno Haible  <bruno@clisp.org>
45478
45479         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45480         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45481         AM_CFLAGS.
45482         Reported by Simon Josefsson.
45483
45484 2009-03-03  Bruno Haible  <bruno@clisp.org>
45485
45486         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45487         Reported by Simon Josefsson.
45488
45489         * doc/ld-version-script.texi: Update node reference.
45490
45491 2009-03-03  Bruno Haible  <bruno@clisp.org>
45492
45493         * modules/visibility (License): Change to 'unlimited'.
45494         Suggested by Simon Josefsson.
45495
45496 2009-03-03  Jim Meyering  <meyering@redhat.com>
45497
45498         unlinkdir: cannot_unlink_dir may modify process state
45499         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45500         it's neither thread-safe nor appropriate for use in a library.
45501
45502 2009-03-03  Eric Blake  <ebb9@byu.net>
45503
45504         test-closein: silence test under Darwin
45505         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45506         care if it dies from EPIPE or EBADF.
45507
45508 2009-03-03  Bruno Haible  <bruno@clisp.org>
45509
45510         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45511         earlier.
45512         * doc/visibility.texi: Fix @node and @section.
45513
45514 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45515
45516         * doc/gnulib.texi: Link to sections for ld version script and
45517         visibility.
45518         * doc/visibility.texi: Add @node and @section.
45519         * modules/ld-version-script: New module.
45520         * m4/ld-version-script.m4: New file.
45521         * doc/ld-version-script.texi: New file.
45522
45523 2009-03-02  David Lutterkort  <lutter@redhat.com>
45524
45525         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45526         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45527
45528 2009-03-02  Bruno Haible  <bruno@clisp.org>
45529
45530         * doc/visibility.texi: Mention libtool's -export-symbols option.
45531
45532 2009-03-02  Jim Meyering  <meyering@redhat.com>
45533
45534         announce-gen: new option: --no-print-checksums
45535         * build-aux/announce-gen (usage): Describe it.
45536         (print_checksums): Print a newline here, not in the [*] footnote.
45537         (main): Honor it.
45538
45539 2009-03-01  Bruno Haible  <bruno@clisp.org>
45540
45541         Use socklen_t in the native Windows replacements prototypes.
45542         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45543         instead of 'int'.
45544         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45545         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45546         * modules/getsockopt (Depends-on): Add socklen.
45547         * modules/setsockopt (Depends-on): Add socklen.
45548
45549 2009-03-01  Bruno Haible  <bruno@clisp.org>
45550
45551         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45552         least 4.2.
45553
45554 2009-03-01  Eric Blake  <ebb9@byu.net>
45555             Bruno Haible  <bruno@clisp.org>
45556
45557         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45558         error messages.
45559         * lib/wait-process.c (wait_subprocess): Omit error message about
45560         deadly signal sent to the child of termsigp != NULL.
45561
45562 2009-03-01  Eric Blake  <ebb9@byu.net>
45563
45564         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45565
45566 2009-03-01  Bruno Haible  <bruno@clisp.org>
45567
45568         Avoid a gcc warning.
45569         * tests/test-sched.c (b): Make global.
45570         Reported by Eric Blake.
45571
45572 2009-01-19  Martin Lambers  <marlam@marlam.de>
45573
45574         Provide POSIX semantics for socket timeout options on W32.
45575         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45576         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45577         * modules/setsockopt: Depend on sys_time module for struct timeval.
45578         * modules/getsockopt: Depend on sys_time module for struct timeval.
45579
45580 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45581
45582         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45583         __USE_GNU, for consistency with netdb.in.h.
45584         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45585
45586 2009-03-01  Bruno Haible  <bruno@clisp.org>
45587
45588         More support for FreeMiNT.
45589         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45590         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45591
45592 2009-03-01  Bruno Haible  <bruno@clisp.org>
45593
45594         More support for FreeMiNT.
45595         * lib/fpurge.c (fpurge): Correct last commit.
45596         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45597
45598 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45599
45600         Fix unportable awk script in vc-list-files.
45601         * build-aux/vc-list-files: In the replacement awk script, use
45602         substr with a second argument of 1, not zero.
45603         Report by Simon Josefsson.
45604
45605 2009-02-28  Bruno Haible  <bruno@clisp.org>
45606
45607         More support for FreeMiNT.
45608         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45609         to FreeMiNT today.
45610         * lib/fwriting.c (fwriting): Likewise.
45611         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45612
45613 2009-02-28  Bruno Haible  <bruno@clisp.org>
45614
45615         * tests/test-freadseek.c (main): Disable test beyond end of file on
45616         FreeMiNT.
45617         * tests/test-ftello.c (main): Likewise.
45618         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45619
45620 2009-02-28  Bruno Haible  <bruno@clisp.org>
45621
45622         Add tentative support for FreeMiNT.
45623         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45624         * lib/fpurge.c (fpurge): Likewise.
45625         * lib/freadable.c (freadable): Likewise.
45626         * lib/freading.c (freading): Likewise.
45627         * lib/freadptr.c (freadptr): Likewise.
45628         * lib/freadseek.c (freadptrinc): Likewise.
45629         * lib/fseeko.c (rpl_fseeko): Likewise.
45630         * lib/fseterr.c (fseterr): Likewise.
45631         * lib/fwritable.c (fwritable): Likewise.
45632         * lib/fwriting.c (fwriting): Likewise.
45633         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45634         Hourihane.
45635         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45636
45637 2009-02-28  Bruno Haible  <bruno@clisp.org>
45638
45639         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45640         SIGCHLD.
45641         Reported by Jim Meyering.
45642
45643 2009-02-28  Bruno Haible  <bruno@clisp.org>
45644
45645         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45646         Mention the results of these tests on various platforms.
45647         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45648         order.
45649         * doc/posix-functions/printf.texi: Likewise.
45650         * doc/posix-functions/snprintf.texi: Likewise.
45651         * doc/posix-functions/sprintf.texi: Likewise.
45652         * doc/posix-functions/vfprintf.texi: Likewise.
45653         * doc/posix-functions/vprintf.texi: Likewise.
45654         * doc/posix-functions/vsnprintf.texi: Likewise.
45655         * doc/posix-functions/vsprintf.texi: Likewise.
45656         * doc/glibc-functions/obstack_printf.texi: Likewise.
45657         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45658
45659 2009-02-28  Bruno Haible  <bruno@clisp.org>
45660
45661         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45662         Reported by Loïc Minier <lool@dooz.org>.
45663
45664 2009-02-27  Bruno Haible  <bruno@clisp.org>
45665
45666         * gnulib-tool (func_import): Make the sed expression used to create the
45667         sed script for updating the .gitignore file POSIX compliant.
45668         Reported by Eric Blake.
45669
45670 2009-02-27  Bruno Haible  <bruno@clisp.org>
45671
45672         * gnulib-tool (sed): Don't alias as "sed --posix".
45673         Reported by Eric Blake.
45674
45675 2009-02-27  Bruno Haible  <bruno@clisp.org>
45676
45677         Avoid test link errors.
45678         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45679         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45680         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45681         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45682         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45683
45684 2009-02-27  Bruno Haible  <bruno@clisp.org>
45685
45686         Avoid spurious "(cached)" in configure output.
45687         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45688         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45689         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45690         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45691         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45692         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45693         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45694         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45695         Reported by Eric Blake.
45696
45697 2009-02-27  Eric Blake  <ebb9@byu.net>
45698
45699         printf: fix regression in previous patch
45700         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45701
45702 2009-02-27  Bruno Haible  <bruno@clisp.org>
45703
45704         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45705         value.
45706         * lib/stdint.in.h: Likewise.
45707         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45708
45709 2009-02-27  Eric Blake  <ebb9@byu.net>
45710
45711         doc: mention more functions added in cygwin 1.7.0
45712         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45713         addition.
45714         * doc/posix-functions/open_wmemstream.texi: Likewise.
45715         * doc/posix-functions/wcsnlen.texi: Likewise.
45716         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45717         * doc/posix-functions/wcstod.texi: Likewise.
45718         * doc/posix-functions/wcstof.texi: Likewise.
45719         * doc/posix-functions/wcstoimax.texi: Likewise.
45720         * doc/posix-functions/wcstok.texi: Likewise.
45721         * doc/posix-functions/wcstoumax.texi: Likewise.
45722
45723         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45724         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45725         * doc/posix-functions/fprintf.texi: Update.
45726         * doc/posix-functions/printf.texi: Update.
45727         * doc/posix-functions/snprintf.texi: Update.
45728         * doc/posix-functions/sprintf.texi: Update.
45729         * doc/posix-functions/vfprintf.texi: Update.
45730         * doc/posix-functions/vprintf.texi: Update.
45731         * doc/posix-functions/vsnprintf.texi: Update.
45732         * doc/posix-functions/vsprintf.texi: Update.
45733         * doc/glibc-functions/obstack_printf.texi: Update.
45734         * doc/glibc-functions/obstack_vprintf.texi: Update.
45735
45736 2009-02-26  Eric Blake  <ebb9@byu.net>
45737
45738         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45739         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45740         compilation bug by using runtime conversion.
45741         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45742         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45743         * modules/ceill-tests (Files): Use nan.h.
45744         * modules/floorl-tests (Files): Likewise.
45745         * modules/frexpl-tests (Files): Likewise.
45746         * modules/isnanl-tests (Files): Likewise.
45747         * modules/ldexpl-tests (Files): Likewise.
45748         * modules/roundl-tests (Files): Likewise.
45749         * modules/truncl-tests (Files): Likewise.
45750         * tests/test-ceill.c (main): Use a working NaN.
45751         * tests/test-floorl.c (main): Likewise.
45752         * tests/test-frexpl.c (main): Likewise.
45753         * tests/test-isnan.c (test_long_double): Likewise.
45754         * tests/test-isnanl.h (main): Likewise.
45755         * tests/test-ldexpl.h (main): Likewise.
45756         * tests/test-roundl.h (main): Likewise.
45757         * tests/test-truncl.h (main): Likewise.
45758         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45759
45760 2009-02-26  Eric Blake  <ebb9@byu.net>
45761             Bruno Haible  <bruno@clisp.org>
45762
45763         Work around a *printf bug with %ls on Solaris.
45764         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45765         precision is specified, sprintf stops converting the wide string
45766         argument when the number of bytes that have been produced by this
45767         conversion equals or exceeds the precision.
45768         * doc/posix-functions/fprintf.texi: Update.
45769         * doc/posix-functions/printf.texi: Update.
45770         * doc/posix-functions/snprintf.texi: Update.
45771         * doc/posix-functions/sprintf.texi: Update.
45772         * doc/posix-functions/vfprintf.texi: Update.
45773         * doc/posix-functions/vprintf.texi: Update.
45774         * doc/posix-functions/vsnprintf.texi: Update.
45775         * doc/posix-functions/vsprintf.texi: Update.
45776         * doc/glibc-functions/obstack_printf.texi: Update.
45777         * doc/glibc-functions/obstack_vprintf.texi: Update.
45778
45779 2009-02-26  Eric Blake  <ebb9@byu.net>
45780
45781         stdlib: favor compiler check of random.h
45782         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45783         to avoid an ObjC random.h installed by Swarm.
45784
45785 2009-02-26  Bruno Haible  <bruno@clisp.org>
45786
45787         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45788         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45789         Reported by Gary V. Vaughan <gary@gnu.org>.
45790
45791 2009-02-26  Bruno Haible  <bruno@clisp.org>
45792
45793         Fix *printf behaviour regarding the %ls directive.
45794         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45795         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45796         NEED_PRINTF_DIRECTIVE_LS.
45797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45798         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45800         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45801         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45802         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45803         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45804         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45805         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45806         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45807         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45808         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45809         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45810         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45811         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45812         * doc/posix-functions/fprintf.texi: Update.
45813         * doc/posix-functions/printf.texi: Update.
45814         * doc/posix-functions/snprintf.texi: Update.
45815         * doc/posix-functions/sprintf.texi: Update.
45816         * doc/posix-functions/vfprintf.texi: Update.
45817         * doc/posix-functions/vprintf.texi: Update.
45818         * doc/posix-functions/vsnprintf.texi: Update.
45819         * doc/posix-functions/vsprintf.texi: Update.
45820         * doc/glibc-functions/obstack_printf.texi: Update.
45821         * doc/glibc-functions/obstack_vprintf.texi: Update.
45822         Reported by Eric Blake.
45823
45824 2009-02-25  Bruno Haible  <bruno@clisp.org>
45825
45826         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45827         with known value.
45828         Reported by Gary V. Vaughan <gary@gnu.org>.
45829
45830 2009-02-25  Bruno Haible  <bruno@clisp.org>
45831
45832         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45833         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45834         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45835         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45836         Reported by Gary V. Vaughan <gary@gnu.org>.
45837
45838 2009-02-25  Bruno Haible  <bruno@clisp.org>
45839
45840         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45841         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45842         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45843         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45844         Reported by Gary V. Vaughan <gary@gnu.org>.
45845
45846 2009-02-25  Eric Blake  <ebb9@byu.net>
45847
45848         tests: skip fseek/ftell tests if ungetc is broken
45849         * m4/ungetc.m4: New file.
45850         * modules/fseek-tests: Split test, so ungetc dependency is
45851         separate from rest of test.
45852         * modules/fseeko-tests: Likewise.
45853         * modules/ftell-tests: Likewise.
45854         * modules/ftello-tests: Likewise.
45855         * tests/test-fseek.c (main): Isolate ungetc dependency.
45856         * tests/test-fseeko.c (main): Likewise.
45857         * tests/test-ftell.c (main): Likewise.
45858         * tests/test-ftello.c (main): Likewise.
45859         * tests/test-fseek2.sh: New file.
45860         * tests/test-fseeko2.sh: Likewise.
45861         * tests/test-ftell2.sh: Likewise.
45862         * tests/test-ftello2.sh: Likewise.
45863
45864 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
45865
45866         test-getaddrinfo: fix usage of skip return code 77
45867         * tests/test-gettaddrinfo.c: Return skip code 77 only
45868         for first occurance of skip (4x77 is not 77)
45869
45870 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45871
45872         strtod: avoid C99 decl-after-statement
45873         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45874
45875 2009-02-24  Eric Blake  <ebb9@byu.net>
45876
45877         strtod: detect HP-UX 11.31 bug
45878         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45879         Reported by Gary V. Vaughan.
45880
45881 2009-02-23  Bruno Haible  <bruno@clisp.org>
45882
45883         Fix invalid read past end of memory block.
45884         * lib/vasnprintf.c (DCHAR_SET): Define.
45885         (local_wcslen): Define only when needed.
45886         (local_strnlen, local_wcsnlen): New functions.
45887         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45888         directives that involve a conversion ourselves.
45889         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45890         wcsnlen, mbrtowc, wcrtomb.
45891         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45892         * tests/test-vasprintf-posix.c (test_function): Likewise.
45893         * tests/test-snprintf-posix.h (test_function): Likewise.
45894         * tests/test-sprintf-posix.h (test_function): Likewise.
45895         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45896
45897 2009-02-22  Bruno Haible  <bruno@clisp.org>
45898
45899         Implement new clarified decomposition of Hangul syllables.
45900         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45901         of type LTV, return only a pairwise decomposition.
45902         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45903         Likewise.
45904         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45905         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45906         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45907
45908 2009-02-22  Bruno Haible  <bruno@clisp.org>
45909
45910         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45911         zero-length results and shrink excess allocated memory.
45912         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45913         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45914         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45915         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45916         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45917         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45918         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45919         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45920         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45921         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45922         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45923         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45924
45925 2009-02-21  Bruno Haible  <bruno@clisp.org>
45926
45927         * doc/gnulib.texi: Include safe-alloc.texi earlier.
45928         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
45929         spaces after a period. Put a space between a macro name and its
45930         argument list. Trivial rewordings.
45931         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
45932         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
45933         (main): Return 0 explicitly.
45934
45935 2009-02-21  Bruno Haible  <bruno@clisp.org>
45936
45937         Tests for module 'uninorm/filter'.
45938         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
45939         * modules/uninorm/filter-tests: New file.
45940
45941         New module 'uninorm/filter'.
45942         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
45943         uninorm_filter_flush, uninorm_filter_free): New declarations.
45944         * lib/uninorm/uninorm-filter.c: New file.
45945         * modules/uninorm/filter: New file.
45946
45947 2009-02-21  Bruno Haible  <bruno@clisp.org>
45948
45949         Tests for module 'uninorm/nfkc'.
45950         * tests/uninorm/test-nfkc.c: New file.
45951         * tests/uninorm/test-u8-nfkc.c: New file.
45952         * tests/uninorm/test-u16-nfkc.c: New file.
45953         * tests/uninorm/test-u32-nfkc.c: New file.
45954         * tests/uninorm/test-u32-nfkc-big.sh: New file.
45955         * tests/uninorm/test-u32-nfkc-big.c: New file.
45956         * modules/uninorm/nfkc-tests: New file.
45957
45958         New module 'uninorm/nfkc'.
45959         * lib/uninorm/nfkc.c: New file.
45960         * modules/uninorm/nfkc: New file.
45961
45962         Tests for module 'uninorm/nfkd'.
45963         * tests/uninorm/test-nfkd.c: New file.
45964         * tests/uninorm/test-u8-nfkd.c: New file.
45965         * tests/uninorm/test-u16-nfkd.c: New file.
45966         * tests/uninorm/test-u32-nfkd.c: New file.
45967         * tests/uninorm/test-u32-nfkd-big.sh: New file.
45968         * tests/uninorm/test-u32-nfkd-big.c: New file.
45969         * modules/uninorm/nfkd-tests: New file.
45970
45971         New module 'uninorm/nfkd'.
45972         * lib/uninorm/nfkd.c: New file.
45973         * modules/uninorm/nfkd: New file.
45974
45975         Tests for module 'uninorm/nfc'.
45976         * tests/uninorm/test-nfc.c: New file.
45977         * tests/uninorm/test-u8-nfc.c: New file.
45978         * tests/uninorm/test-u16-nfc.c: New file.
45979         * tests/uninorm/test-u32-nfc.c: New file.
45980         * tests/uninorm/test-u32-nfc-big.sh: New file.
45981         * tests/uninorm/test-u32-nfc-big.c: New file.
45982         * modules/uninorm/nfc-tests: New file.
45983
45984         New module 'uninorm/nfc'.
45985         * lib/uninorm/nfc.c: New file.
45986         * modules/uninorm/nfc: New file.
45987
45988         Tests for module 'uninorm/nfd'.
45989         * tests/uninorm/test-nfd.c: New file.
45990         * tests/uninorm/test-u8-nfd.c: New file.
45991         * tests/uninorm/test-u16-nfd.c: New file.
45992         * tests/uninorm/test-u32-nfd.c: New file.
45993         * tests/uninorm/test-u32-nfd-big.sh: New file.
45994         * tests/uninorm/test-u32-nfd-big.c: New file.
45995         * tests/uninorm/test-u32-normalize-big.h: New file.
45996         * tests/uninorm/test-u32-normalize-big.c: New file.
45997         * tests/uninorm/NormalizationTest.txt: New file, created from
45998         Unicode 5.1.0 NormalizationTest.txt.
45999         * modules/uninorm/nfd-tests: New file.
46000
46001         New module 'uninorm/nfd'.
46002         * lib/uninorm/nfd.c: New file.
46003         * modules/uninorm/nfd: New file.
46004
46005         New module 'uninorm/u32-normalize'.
46006         * lib/uninorm/u32-normalize.c: New file.
46007         * modules/uninorm/u32-normalize: New file.
46008
46009         New module 'uninorm/u16-normalize'.
46010         * lib/uninorm/u16-normalize.c: New file.
46011         * modules/uninorm/u16-normalize: New file.
46012
46013         New module 'uninorm/u8-normalize'.
46014         * lib/uninorm/u8-normalize.c: New file.
46015         * lib/uninorm/normalize-internal.h: New file.
46016         * lib/uninorm/u-normalize-internal.h: New file.
46017         * modules/uninorm/u8-normalize: New file.
46018
46019         New module 'uninorm/decompose-internal'.
46020         * lib/uninorm/decompose-internal.c: New file.
46021         * modules/uninorm/decompose-internal: New file.
46022
46023         Tests for module 'uninorm/composition'.
46024         * tests/uninorm/test-composition.c: New file.
46025         * modules/uninorm/composition-tests: New file.
46026
46027         New module 'uninorm/composition'.
46028         * lib/uninorm/composition.c: New file.
46029         * lib/uninorm/composition-table.gperf: New file, generated by
46030         gen-uni-tables.
46031         * modules/uninorm/composition: New file.
46032
46033         Tests for module 'uninorm/compat-decomposition'.
46034         * tests/uninorm/test-compat-decomposition.c: New file.
46035         * modules/uninorm/compat-decomposition-tests: New file.
46036
46037         New module 'uninorm/compat-decomposition'.
46038         * lib/uninorm/decompose-internal.h: New file.
46039         * lib/uninorm/compat-decomposition.c: New file.
46040         * modules/uninorm/compat-decomposition: New file.
46041
46042         Tests for module 'uninorm/canonical-decomposition'.
46043         * tests/uninorm/test-canonical-decomposition.c: New file.
46044         * modules/uninorm/canonical-decomposition-tests: New file.
46045
46046         New module 'uninorm/canonical-decomposition'.
46047         * lib/uninorm/canonical-decomposition.c: New file.
46048         * modules/uninorm/canonical-decomposition: New file.
46049
46050         Tests for module 'uninorm/decomposition'.
46051         * tests/uninorm/test-decomposition.c: New file.
46052         * modules/uninorm/decomposition-tests: New file.
46053
46054         New module 'uninorm/decomposition'.
46055         * lib/uninorm/decomposition.c: New file.
46056         * modules/uninorm/decomposition: New file.
46057
46058         New module 'uninorm/decomposition-table'.
46059         * lib/uninorm/decomposition-table.h: New file.
46060         * lib/uninorm/decomposition-table.c: New file.
46061         * lib/uninorm/decomposition-table1.h: New file, generated by
46062         gen-uni-tables.
46063         * lib/uninorm/decomposition-table2.h: New file, generated by
46064         gen-uni-tables.
46065         * modules/uninorm/decomposition-table: New file.
46066
46067         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46068         (UC_DECOMP_*): New enumeration items.
46069         (get_decomposition): New function.
46070         (struct decomp_table): New type.
46071         (output_decomposition, output_decomposition_tables): New functions.
46072         (unicode_composition_exclusions): New variable.
46073         (fill_composition_exclusions, debug_output_composition_tables): New
46074         functions.
46075         (main): Accept one more argument. Invoke fill_composition_exclusions.
46076         Output decomposition and composition tables.
46077
46078         New module 'uninorm/base'.
46079         * lib/uninorm.h: New file.
46080         * lib/unictype.h: Update comment.
46081         * modules/uninorm/base: New file.
46082
46083 2009-02-21  David Lutterkort  <lutter@redhat.com>
46084
46085         Tests for module 'safe-alloc'.
46086         * tests/test-safe-alloc.c: New file.
46087         * modules/safe-alloc-tests: New file.
46088
46089         New module 'safe-alloc'.
46090         * lib/safe-alloc.h: New file.
46091         * lib/safe-alloc.c: New file.
46092         * m4/safe-alloc.m4: New file.
46093         * modules/safe-alloc: New file.
46094         * doc/safe-alloc.texi: New file.
46095         * doc/gnulib.texi: Include it.
46096         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46097         safe-alloc.
46098
46099 2009-02-18  Bruno Haible  <bruno@clisp.org>
46100
46101         Fix link error on non-glibc systems.
46102         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46103         variable.
46104         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46105
46106 2009-02-18  Jim Meyering  <meyering@redhat.com>
46107
46108         fts: avoid used-uninitialized error due to recent change
46109         * lib/fts.c (fts_read): Guard uses of the new member,
46110         parent->fts_n_dirs_remaining, since it's not relevant for
46111         the parent of a directory specified on the command-line.
46112
46113 2009-02-17  James Youngman  <jay@gnu.org>
46114             Bruno Haible  <bruno@clisp.org>
46115
46116         * m4/include_next.m4: Reformulate comment.
46117
46118 2009-02-16  Jim Meyering  <meyering@redhat.com>
46119
46120         fts: add #if guards so that the fts_lgpl module still builds
46121         * lib/fts.c: Guard just-added hash-table-using parts with
46122         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46123         Reported by Simon Josefsson.
46124
46125 2009-02-15  Bruno Haible  <bruno@clisp.org>
46126
46127         * modules/array-mergesort-tests: New file.
46128         * tests/test-array-mergesort.c: New file.
46129
46130         New module 'array-mergesort'.
46131         * modules/array-mergesort: New file.
46132         * lib/array-mergesort.h: New file.
46133
46134 2009-02-15  Bruno Haible  <bruno@clisp.org>
46135
46136         Fix 2009-02-07 commit.
46137         * lib/gen-uni-tables.c (output_predicate, output_category,
46138         output_combclass, output_bidi_category, output_decimal_digit,
46139         output_digit, output_numeric, output_mirror, output_scripts,
46140         output_ident_category, output_simple_mapping): Fix format directives.
46141         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46142
46143 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46144
46145         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46146         fixes are available from IBM.
46147
46148 2009-02-13  Jim Meyering  <meyering@redhat.com>
46149
46150         fts: arrange not to stat non-directories in more cases
46151         This makes GNU find (when it doesn't need to stat each file)
46152         *much* more efficient at traversing reiserfs file systems.
46153         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46154         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46155         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46156         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46157         (leaf_optimization_applies): New function.
46158         (LCO_hash, LCO_compare): New helper functions.
46159         (link_count_optimize_ok): New function.
46160         (fts_stat): Initialize new member (if dir).
46161         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46162         we've just stat'ed a directory.  Skip the stat call when possible.
46163         ---
46164         Note this AFS-related exchange:
46165         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46166         and note find's pioctl call in find/fstype.c.
46167         But that is necessary only if you want to enable the
46168         optimization for AFS, and for now, I don't.
46169
46170         fts: move a function definition "up" (no semantic change)
46171         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46172         "up" to precede upcoming use of a related function.
46173
46174 2009-02-11  Jim Meyering  <meyering@redhat.com>
46175
46176         fts: correct internal computation of nlinks (optimization-related)
46177         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46178         whether the current entry is a directory, so don't test it.
46179
46180 2009-02-10  Bruno Haible  <bruno@clisp.org>
46181
46182         Tests for module 'uniwbrk/ulc-wordbreaks'.
46183         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46184         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46185         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46186
46187         Tests for module 'uniwbrk/u32-wordbreaks'.
46188         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46189         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46190
46191         Tests for module 'uniwbrk/u16-wordbreaks'.
46192         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46193         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46194
46195         Tests for module 'uniwbrk/u8-wordbreaks'.
46196         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46197         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46198
46199 2009-02-10  Bruno Haible  <bruno@clisp.org>
46200
46201         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46202         property.
46203         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46204         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46205         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46206
46207 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46208
46209         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46210         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46211
46212 2009-02-10  Bruno Haible  <bruno@clisp.org>
46213
46214         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46215         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46216         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46217         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46218         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46219         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46220
46221 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46222
46223         * lib/sockets.h (gl_fd_to_handle): New function.
46224
46225         * tests/test-sockets.c: Call gl_fd_to_handle.
46226
46227 2009-02-09  Bruno Haible  <bruno@clisp.org>
46228
46229         * doc/havelib.texi: Document the conventions on bi-arch systems.
46230
46231 2009-02-08  Bruno Haible  <bruno@clisp.org>
46232
46233         Document the AC_LIB_LINKFLAGS macro.
46234         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46235         * doc/gnulib.texi: Include it.
46236
46237 2009-02-08  Bruno Haible  <bruno@clisp.org>
46238
46239         Fix wrong order of sections, compared to TOC.
46240         * doc/gnulib.texi: Include relocatable-maint.texi after the
46241         "Regular expressions" node, not before.
46242
46243 2009-02-08  Bruno Haible  <bruno@clisp.org>
46244
46245         Tests for module 'unicase/totitle'.
46246         * modules/unicase/totitle-tests: New file.
46247
46248         Tests for module 'unicase/tolower'.
46249         * modules/unicase/tolower-tests: New file.
46250
46251         Tests for module 'unicase/toupper'.
46252         * modules/unicase/toupper-tests: New file.
46253         * tests/unicase/test-mapping-part1.h: New file.
46254         * tests/unicase/test-mapping-part2.h: New file.
46255
46256         New module 'unicase/totitle'.
46257         * modules/unicase/totitle: New file.
46258         * lib/unicase/totitle.c: New file.
46259
46260         New module 'unicase/tolower'.
46261         * modules/unicase/tolower: New file.
46262         * lib/unicase/tolower.c: New file.
46263
46264         New module 'unicase/toupper'.
46265         * modules/unicase/toupper: New file.
46266         * lib/unicase/toupper.c: New file.
46267         * lib/unicase/simple-mapping.h: New file.
46268
46269         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46270         (mapping_table): New structure.
46271         (output_simple_mapping): New function.
46272         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46273         * modules/gen-uni-tables (Description): Update.
46274         * lib/unicase/toupper.h: New file, automatically generated by
46275         gen-uni-tables.
46276         * lib/unicase/tolower.h: New file, automatically generated by
46277         gen-uni-tables.
46278         * lib/unicase/totitle.h: New file, automatically generated by
46279         gen-uni-tables.
46280         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46281         gen-uni-tables.
46282         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46283         gen-uni-tables.
46284         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46285         gen-uni-tables.
46286
46287         New module 'unicase/base'.
46288         * modules/unicase/base: New file.
46289         * lib/unicase.h: New file.
46290
46291 2009-02-08  Bruno Haible  <bruno@clisp.org>
46292
46293         New module 'uniwbrk/ulc-wordbreaks'.
46294         * modules/uniwbrk/ulc-wordbreaks: New file.
46295         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46296
46297         New module 'uniwbrk/u32-wordbreaks'.
46298         * modules/uniwbrk/u32-wordbreaks: New file.
46299         * lib/uniwbrk/u32-wordbreaks.c: New file.
46300
46301         New module 'uniwbrk/u16-wordbreaks'.
46302         * modules/uniwbrk/u16-wordbreaks: New file.
46303         * lib/uniwbrk/u16-wordbreaks.c: New file.
46304
46305         New module 'uniwbrk/u8-wordbreaks'.
46306         * modules/uniwbrk/u8-wordbreaks: New file.
46307         * lib/uniwbrk/u8-wordbreaks.c: New file.
46308         * lib/uniwbrk/u-wordbreaks.h: New file.
46309
46310         New module 'uniwbrk/table'.
46311         * modules/uniwbrk/table: New file.
46312         * lib/uniwbrk/wbrktable.h: New file.
46313         * lib/uniwbrk/wbrktable.c: New file.
46314
46315         New module 'uniwbrk/wordbreak-property'.
46316         * modules/uniwbrk/wordbreak-property: New file.
46317         * lib/uniwbrk/wordbreak-property.c: New file.
46318
46319         * lib/gen-uni-tables.c (WBP_*): New enum items.
46320         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46321         (unicode_org_wbp): New variable.
46322         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46323         New functions.
46324         (wbp_table): New structure.
46325         (output_wbp, output_wbrk_tables): New functions.
46326         (main): Accept additional argument. Invoke fill_org_wbp,
46327         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46328         output_wbrk_tables.
46329         * modules/gen-uni-tables (Description): Update.
46330         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46331         gen-uni-tables.
46332
46333         New module 'uniwbrk/base'.
46334         * modules/uniwbrk/base: New file.
46335         * lib/uniwbrk.h: New file.
46336
46337 2009-02-08  Bruno Haible  <bruno@clisp.org>
46338
46339         Update to Unicode 5.1.0.
46340         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46341         U+2185..U+2188.
46342         (is_property_default_ignorable_code_point): Don't include characters
46343         of category Cc or Cs and not-a-characters.
46344         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46345         U+0D79, U+109E, U+109F, U+A60C.
46346         * lib/unictype/bidi_of.h: Regenerated.
46347         * lib/unictype/blocks.h: Regenerated.
46348         * lib/unictype/categ_C.h: Regenerated.
46349         * lib/unictype/categ_Cf.h: Regenerated.
46350         * lib/unictype/categ_Cn.h: Regenerated.
46351         * lib/unictype/categ_L.h: Regenerated.
46352         * lib/unictype/categ_Ll.h: Regenerated.
46353         * lib/unictype/categ_Lm.h: Regenerated.
46354         * lib/unictype/categ_Lo.h: Regenerated.
46355         * lib/unictype/categ_Lu.h: Regenerated.
46356         * lib/unictype/categ_M.h: Regenerated.
46357         * lib/unictype/categ_Mc.h: Regenerated.
46358         * lib/unictype/categ_Me.h: Regenerated.
46359         * lib/unictype/categ_Mn.h: Regenerated.
46360         * lib/unictype/categ_N.h: Regenerated.
46361         * lib/unictype/categ_Nd.h: Regenerated.
46362         * lib/unictype/categ_Nl.h: Regenerated.
46363         * lib/unictype/categ_No.h: Regenerated.
46364         * lib/unictype/categ_P.h: Regenerated.
46365         * lib/unictype/categ_Pd.h: Regenerated.
46366         * lib/unictype/categ_Pe.h: Regenerated.
46367         * lib/unictype/categ_Pf.h: Regenerated.
46368         * lib/unictype/categ_Pi.h: Regenerated.
46369         * lib/unictype/categ_Po.h: Regenerated.
46370         * lib/unictype/categ_Ps.h: Regenerated.
46371         * lib/unictype/categ_S.h: Regenerated.
46372         * lib/unictype/categ_Sk.h: Regenerated.
46373         * lib/unictype/categ_Sm.h: Regenerated.
46374         * lib/unictype/categ_So.h: Regenerated.
46375         * lib/unictype/categ_of.h: Regenerated.
46376         * lib/unictype/combining.h: Regenerated.
46377         * lib/unictype/ctype_alnum.h: Regenerated.
46378         * lib/unictype/ctype_alpha.h: Regenerated.
46379         * lib/unictype/ctype_graph.h: Regenerated.
46380         * lib/unictype/ctype_lower.h: Regenerated.
46381         * lib/unictype/ctype_print.h: Regenerated.
46382         * lib/unictype/ctype_punct.h: Regenerated.
46383         * lib/unictype/ctype_upper.h: Regenerated.
46384         * lib/unictype/decdigit.h: Regenerated.
46385         * lib/unictype/digit.h: Regenerated.
46386         * lib/unictype/mirror.h: Regenerated.
46387         * lib/unictype/numeric.h: Regenerated.
46388         * lib/unictype/pr_alphabetic.h: Regenerated.
46389         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46390         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46391         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46392         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46393         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46394         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46395         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46396         * lib/unictype/pr_combining.h: Regenerated.
46397         * lib/unictype/pr_dash.h: Regenerated.
46398         * lib/unictype/pr_decimal_digit.h: Regenerated.
46399         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46400         * lib/unictype/pr_deprecated.h: Regenerated.
46401         * lib/unictype/pr_diacritic.h: Regenerated.
46402         * lib/unictype/pr_extender.h: Regenerated.
46403         * lib/unictype/pr_format_control.h: Regenerated.
46404         * lib/unictype/pr_grapheme_base.h: Regenerated.
46405         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46406         * lib/unictype/pr_grapheme_link.h: Regenerated.
46407         * lib/unictype/pr_id_continue.h: Regenerated.
46408         * lib/unictype/pr_id_start.h: Regenerated.
46409         * lib/unictype/pr_ideographic.h: Regenerated.
46410         * lib/unictype/pr_ignorable_control.h: Regenerated.
46411         * lib/unictype/pr_lowercase.h: Regenerated.
46412         * lib/unictype/pr_math.h: Regenerated.
46413         * lib/unictype/pr_numeric.h: Regenerated.
46414         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46415         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46416         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46417         * lib/unictype/pr_other_id_continue.h: Regenerated.
46418         * lib/unictype/pr_other_lowercase.h: Regenerated.
46419         * lib/unictype/pr_other_math.h: Regenerated.
46420         * lib/unictype/pr_punctuation.h: Regenerated.
46421         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46422         * lib/unictype/pr_soft_dotted.h: Regenerated.
46423         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46424         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46425         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46426         * lib/unictype/pr_uppercase.h: Regenerated.
46427         * lib/unictype/pr_xid_continue.h: Regenerated.
46428         * lib/unictype/pr_xid_start.h: Regenerated.
46429         * lib/unictype/pr_zero_width.h: Regenerated.
46430         * lib/unictype/scripts.h: Regenerated.
46431         * lib/unictype/scripts_byname.gperf: Regenerated.
46432         * lib/unictype/sy_java_ident.h: Regenerated.
46433         * lib/unilbrk/lbrkprop1.h: Regenerated.
46434         * lib/unilbrk/lbrkprop2.h: Regenerated.
46435         * tests/unictype/test-categ_C.c: Regenerated.
46436         * tests/unictype/test-categ_Cf.c: Regenerated.
46437         * tests/unictype/test-categ_Cn.c: Regenerated.
46438         * tests/unictype/test-categ_L.c: Regenerated.
46439         * tests/unictype/test-categ_Ll.c: Regenerated.
46440         * tests/unictype/test-categ_Lm.c: Regenerated.
46441         * tests/unictype/test-categ_Lo.c: Regenerated.
46442         * tests/unictype/test-categ_Lu.c: Regenerated.
46443         * tests/unictype/test-categ_M.c: Regenerated.
46444         * tests/unictype/test-categ_Mc.c: Regenerated.
46445         * tests/unictype/test-categ_Me.c: Regenerated.
46446         * tests/unictype/test-categ_Mn.c: Regenerated.
46447         * tests/unictype/test-categ_N.c: Regenerated.
46448         * tests/unictype/test-categ_Nd.c: Regenerated.
46449         * tests/unictype/test-categ_Nl.c: Regenerated.
46450         * tests/unictype/test-categ_No.c: Regenerated.
46451         * tests/unictype/test-categ_P.c: Regenerated.
46452         * tests/unictype/test-categ_Pd.c: Regenerated.
46453         * tests/unictype/test-categ_Pe.c: Regenerated.
46454         * tests/unictype/test-categ_Pf.c: Regenerated.
46455         * tests/unictype/test-categ_Pi.c: Regenerated.
46456         * tests/unictype/test-categ_Po.c: Regenerated.
46457         * tests/unictype/test-categ_Ps.c: Regenerated.
46458         * tests/unictype/test-categ_S.c: Regenerated.
46459         * tests/unictype/test-categ_Sk.c: Regenerated.
46460         * tests/unictype/test-categ_Sm.c: Regenerated.
46461         * tests/unictype/test-categ_So.c: Regenerated.
46462         * tests/unictype/test-ctype_alnum.c: Regenerated.
46463         * tests/unictype/test-ctype_alpha.c: Regenerated.
46464         * tests/unictype/test-ctype_graph.c: Regenerated.
46465         * tests/unictype/test-ctype_lower.c: Regenerated.
46466         * tests/unictype/test-ctype_print.c: Regenerated.
46467         * tests/unictype/test-ctype_punct.c: Regenerated.
46468         * tests/unictype/test-ctype_upper.c: Regenerated.
46469         * tests/unictype/test-decdigit.h: Regenerated.
46470         * tests/unictype/test-digit.h: Regenerated.
46471         * tests/unictype/test-numeric.h: Regenerated.
46472         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46473         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46474         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46475         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46476         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46477         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46478         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46479         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46480         * tests/unictype/test-pr_combining.c: Regenerated.
46481         * tests/unictype/test-pr_dash.c: Regenerated.
46482         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46483         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46484         * tests/unictype/test-pr_deprecated.c: Regenerated.
46485         * tests/unictype/test-pr_diacritic.c: Regenerated.
46486         * tests/unictype/test-pr_extender.c: Regenerated.
46487         * tests/unictype/test-pr_format_control.c: Regenerated.
46488         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46489         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46490         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46491         * tests/unictype/test-pr_id_continue.c: Regenerated.
46492         * tests/unictype/test-pr_id_start.c: Regenerated.
46493         * tests/unictype/test-pr_ideographic.c: Regenerated.
46494         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46495         * tests/unictype/test-pr_lowercase.c: Regenerated.
46496         * tests/unictype/test-pr_math.c: Regenerated.
46497         * tests/unictype/test-pr_numeric.c: Regenerated.
46498         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46499         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46500         Regenerated.
46501         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46502         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46503         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46504         * tests/unictype/test-pr_other_math.c: Regenerated.
46505         * tests/unictype/test-pr_punctuation.c: Regenerated.
46506         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46507         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46508         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46509         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46510         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46511         * tests/unictype/test-pr_uppercase.c: Regenerated.
46512         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46513         * tests/unictype/test-pr_xid_start.c: Regenerated.
46514         * tests/unictype/test-pr_zero_width.c: Regenerated.
46515
46516         Update to Unicode 5.1.0.
46517         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46518         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46519         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46520         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46521         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46522         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46523         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46524         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46525         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46526         (nonspacing_table_ind): Update.
46527         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46528
46529         Update to Unicode 5.1.0.
46530         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46531         code transform.
46532         * lib/uniname/uniname.c (unicode_character_name,
46533         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46534         * lib/uniname/uninames.h: Regenerated.
46535         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46536
46537 2009-02-07  Bruno Haible  <bruno@clisp.org>
46538
46539         Merge gen-ctype and gen-lbrk into a single program.
46540         * lib/gen-uni-tables.c: New file, incorporating
46541         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46542         Add directory prefixes to the names of the generated files.
46543         * lib/unictype/gen-ctype.c: Remove file.
46544         * lib/unilbrk/gen-lbrk.c: Remove file.
46545         * modules/gen-uni-tables: New file.
46546         * modules/unictype/gen-ctype: Remove file.
46547         * modules/unilbrk/gen-lbrk: Remove file.
46548
46549 2009-02-07  Bruno Haible  <bruno@clisp.org>
46550
46551         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46552
46553         New module 'unistr/u32-strcoll'.
46554         * modules/unistr/u32-strcoll: New file.
46555         * lib/unistr/u32-strcoll.c: New file.
46556
46557         New module 'unistr/u16-strcoll'.
46558         * modules/unistr/u16-strcoll: New file.
46559         * lib/unistr/u16-strcoll.c: New file.
46560
46561         New module 'unistr/u8-strcoll'.
46562         * modules/unistr/u8-strcoll: New file.
46563         * lib/unistr/u8-strcoll.c: New file.
46564         * lib/unistr/u-strcoll.h: New file.
46565
46566 2009-02-07  Bruno Haible  <bruno@clisp.org>
46567
46568         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46569         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46570         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46571         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46572         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46573         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46574
46575 2009-02-07  Bruno Haible  <bruno@clisp.org>
46576
46577         Make 64-bit clean.
46578         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46579         output_combclass, output_bidi_category, output_decimal_digit,
46580         output_digit, output_numeric, output_mirror, output_scripts,
46581         output_ident_category): Use proper width specifier in format strings.
46582
46583 2009-02-07  Bruno Haible  <bruno@clisp.org>
46584
46585         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46586         failure behaviour.
46587
46588 2009-02-07  Jim Meyering  <meyering@redhat.com>
46589
46590         regex: avoid compilation failure with upcoming gcc-4.4
46591         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46592         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46593         "... error: integer overflow in preprocessor expression".
46594
46595 2009-02-05  Ben Pfaff  <blp@gnu.org>
46596
46597         Fix link errors on Windows when close module is used.
46598         * modules/close: Add $(LIB_CLOSE) to Link section.
46599         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46600         $(LIB_CLOSE) on Windows.
46601
46602 2009-02-05  Jim Meyering  <meyering@redhat.com>
46603
46604         still avoid unused-parameter warnings, but do it cleanly
46605         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46606         (get_fs_usage): Cast to void instead.
46607         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46608         (dev_from_mount_options, read_file_system_list): Cast to void.
46609         Prompted by Bruno Haible.
46610
46611 2009-02-04  Jim Meyering  <meyering@redhat.com>
46612
46613         fsusage.c: correct copyright year
46614         * lib/fsusage.c: Reflect year in which the change is pushed into
46615
46616         avoid misc. warnings
46617         * lib/fsusage.c (UNUSED_PARAM): Define.
46618         (get_fs_usage): Mark parameter "disk" as unused.
46619         * lib/getugroups.c (getgrent): Use "void" in prototype.
46620         * lib/mountlist.c: Mark unused parameters.
46621         (read_file_system_list): Declare a local with "const".
46622         * lib/nanosleep.c (getnow): Declare static.
46623         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46624
46625         dirfd: set errno upon failure
46626         * lib/dirfd.c: Include <errno.h>.
46627         Set errno to ENOTSUP when returning -1.
46628         * modules/dirfd (Depends-on): Add errno.
46629         Suggested by John Kodis <kodis@comcast.net>.
46630
46631 2009-02-01  Bruno Haible  <bruno@clisp.org>
46632
46633         Don't assume sizeof (long) >= sizeof (void *).
46634         * lib/memcmp.c: Include stdint.h.
46635         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46636         srcp2 to 'const byte *'.
46637         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46638         types to uintptr_t.
46639         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46640         * modules/memcmp (Depends-on): Add stdint.
46641         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46642
46643 2009-01-30  Eric Blake  <ebb9@byu.net>
46644
46645         fix more require-before-expand issues
46646         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46647         expand, AC_PROG_AWK.
46648         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46649
46650 2009-01-28  Eric Blake  <ebb9@byu.net>
46651
46652         version-etc: use consistent URL formatting
46653         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46654         Improve formatting.  Use fputs for string without %.
46655
46656 2009-01-28  Jim Meyering  <meyering@redhat.com>
46657
46658         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46659         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46660         "underquoted definition of NAME" from autoconf-2.59.
46661
46662 2009-01-28  Bruno Haible  <bruno@clisp.org>
46663
46664         * doc/gnulib.texi: Add "Obsolete modules" to index.
46665
46666 2009-01-28  Jim Meyering  <meyering@redhat.com>
46667
46668         useless-if-before-free: recognize more variants
46669         * build-aux/useless-if-before-free: Also recognize e.g.,
46670         if (NULL != p) free (p);
46671
46672 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46673
46674         test-getaddrinfo: skip (don't fail) this test when there's no network
46675         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46676         on the presumption that it means you lack network access.
46677
46678 2009-01-26  Jim Meyering  <meyering@redhat.com>
46679
46680         fflush: avoid warnings on modern systems
46681         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46682         pos and result, into scopes where they're used.
46683
46684 2009-01-26  Eric Blake  <ebb9@byu.net>
46685
46686         Silence warning reintroduced by recent extensions patch.
46687         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46688         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46689         autoconf.
46690
46691         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46692         * m4/00gnulib.m4: New file.
46693         * gnulib-tool (func_get_filelist): Always use it.
46694         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46695         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46696
46697 2009-01-25  Bruno Haible  <bruno@clisp.org>
46698
46699         Make test-quotearg work on MacOS X and AIX.
46700         * tests/test-quotearg.sh: New file.
46701         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46702         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46703         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46704         include <libintl.h>.
46705         (fake_locale): Remove variable.
46706         (gettext, dgettext, dcgettext): Remove functions.
46707         (main): Instead of setting a fake locale, set a real locale. Call
46708         textdomain and bindtextdomain.
46709         * modules/quotearg-tests (Files): Add the new files.
46710         (Depends-on): Add gettext, setenv, unsetenv.
46711         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46712         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46713         Augment TESTS_ENVIRONMENT.
46714
46715 2009-01-25  Bruno Haible  <bruno@clisp.org>
46716
46717         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46718         fr_FR.ISO8859-1 locale on MacOS X.
46719         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46720         ja_JP.eucJP locale on MacOS X.
46721         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46722         zh_CN.GB18030 locale on MacOS X.
46723
46724 2009-01-25  Bruno Haible  <bruno@clisp.org>
46725
46726         Avoid link errors on MacOS X 10.3.
46727         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46728         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46729
46730 2009-01-25  Bruno Haible  <bruno@clisp.org>
46731
46732         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46733         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46734         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46735         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46736         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46737         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46738         posix_spawnattr_init, posix_spawnattr_setsigmask,
46739         posix_spawnattr_setflags, posix_spawnattr_destroy.
46740
46741         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46742         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46743         * modules/execute (Files): Remove m4/posix_spawn.m4.
46744         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46745         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46746         posix_spawnattr_init, posix_spawnattr_setsigmask,
46747         posix_spawnattr_setflags, posix_spawnattr_destroy.
46748
46749 2009-01-25  Bruno Haible  <bruno@clisp.org>
46750
46751         * lib/glthread/threadlib.c: Include <stdlib.h>.
46752
46753 2009-01-25  Bruno Haible  <bruno@clisp.org>
46754
46755         * lib/glthread/threadlib.c (dummy): New declaration.
46756
46757 2009-01-25  Bruno Haible  <bruno@clisp.org>
46758
46759         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46760         multibyte characters also for the GB18030 encoding. Don't crash when
46761         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46762
46763 2009-01-25  Bruno Haible  <bruno@clisp.org>
46764
46765         Avoid redefining 'struct random_data' on OSF/1 5.1.
46766         * lib/stdlib.in.h: Include <random.h> if it exists.
46767         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46768         HAVE_RANDOM_H. Include <random.h> when testing whether
46769         'struct random_data' exists.
46770         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46771
46772 2009-01-25  Bruno Haible  <bruno@clisp.org>
46773
46774         Don't install charset.alias on MacOS X >= 10.3.
46775         * lib/localcharset.c (DARWIN7): New macro.
46776         (get_charset_aliases): Hardcode the result for Darwin7.
46777         * modules/localcharset (install-exec-local): Don't install
46778         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46779
46780 2009-01-25  Bruno Haible  <bruno@clisp.org>
46781
46782         Don't install charset.alias on mingw and Cygwin.
46783         * modules/localcharset (install-exec-local): Don't install
46784         charset.alias on mingw and Cygwin, if the file does not yet exist.
46785         The result for these platforms is hardcoded in localcharset.c.
46786
46787 2009-01-25  Bruno Haible  <bruno@clisp.org>
46788
46789         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46790         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46791         before requiring AC_USE_SYSTEM_EXTENSIONS.
46792
46793 2009-01-25  Jim Meyering  <meyering@redhat.com>
46794
46795         c-strtod: avoid warnings
46796         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46797         "assignment discards qualifiers from pointer target type" warnings.
46798
46799 2009-01-24  Bruno Haible  <bruno@clisp.org>
46800
46801         Add support for non-UTF-8 locales on MacOS X.
46802         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46803         canonical encodings. For Darwin 7 and newer, don't map traditional
46804         encodings to UTF-8.
46805         Reported by Vincent Lefevre <vincent@vinc17.org>
46806         at <http://savannah.gnu.org/bugs/?25235>.
46807
46808 2009-01-24  Bruno Haible  <bruno@clisp.org>
46809
46810         * doc/gnulib.texi (Obsolete modules): New section.
46811         Reported by Mike Frysinger <vapier@gentoo.org>.
46812
46813 2009-01-24  Bruno Haible  <bruno@clisp.org>
46814
46815         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46816         (%.dvi): New rule.
46817
46818 2009-01-24  Bruno Haible  <bruno@clisp.org>
46819
46820         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46821         Reported by Eric Blake.
46822
46823 2009-01-24  Bruno Haible  <bruno@clisp.org>
46824
46825         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46826         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46827         Reported by Gary V. Vaughan <gary@gnu.org>.
46828
46829 2009-01-24  Bruno Haible  <bruno@clisp.org>
46830
46831         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46832
46833 2009-01-23  Bruno Haible  <bruno@clisp.org>
46834
46835         Make c-strtod, c-strtold usable in libraries.
46836         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46837         (C_STRTOD): Call strdup instead of xstrdup.
46838         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46839         * modules/c-strtold (Depends-on): Likewise.
46840         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46841         * NEWS: Mention the change.
46842         Reported by Michael Gold <mgold@ncf.ca>.
46843
46844 2009-01-23  Jim Meyering  <meyering@redhat.com>
46845
46846         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46847         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46848         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46849
46850 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46851
46852         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46853         GNU CoreUtils.
46854         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46855         * modules/version-etc (Description): Update.
46856
46857 2009-01-22  Bruno Haible  <bruno@clisp.org>
46858
46859         Cache the C locale object.
46860         * lib/c-strtod.c (c_locale_cache): New variable.
46861         (c_locale): New function.
46862         (C_STRTOD): Use it, and don't call freelocale.
46863         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46864         Suggested by Paolo Bonzini.
46865
46866 2009-01-21  Bruno Haible  <bruno@clisp.org>
46867
46868         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46869         conditions other than overflow.
46870
46871 2009-01-21  Bruno Haible  <bruno@clisp.org>
46872
46873         * lib/c-strtod.c: Include errno.h.
46874         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46875         value from STRTOD_L and STRTOD.
46876
46877 2009-01-21  Bruno Haible  <bruno@clisp.org>
46878         and Jim Meyering  <meyering@redhat.com>
46879
46880         nanosleep: skip configure test (fail it) for apple universal builds
46881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46882         universal builds, assume that nanosleep does not work.
46883         * modules/nanosleep (Depends-on): Add multiarch.
46884
46885         mktime: skip configure test (fail it) for apple universal builds
46886         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46887         universal builds, assume that mktime does not work.
46888         * modules/mktime (Depends-on): Add multiarch.
46889
46890 2009-01-21  Eric Blake  <ebb9@byu.net>
46891
46892         multiarch: avoid expand-before-require warning
46893         * modules/multiarch (configure.ac): Require, rather than expand,
46894         gl_MULTIARCH.
46895         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46896         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46897         enforce that all clients require it.  Partial reversion of
46898         2008-12-29 patch.
46899
46900         error: avoid expand-before-require warning
46901         * modules/errno (configure.ac): Require, rather than expand,
46902         gl_HEADER_ERRNO_H.
46903         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46904         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46905         enforce that all clients require it.
46906
46907         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46908         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46909         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46910         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46911
46912 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46913
46914         Revert:
46915         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46916
46917         regex: do not depend on obsolete modules.
46918         * modules/regex: Remove memcmp and memmove.
46919
46920 2009-01-20  Bruno Haible  <bruno@clisp.org>
46921
46922         Make the 'link' module link on Windows NT 4.
46923         * lib/link.c (_WIN32_WINNT): Don't define.
46924         (CreateHardLinkFuncType): New type.
46925         (CreateHardLinkFunc, initialized): New variables.
46926         (initialize): New function.
46927         (link): Invoke CreateHardLink indirectly through the function pointer.
46928
46929 2009-01-20  Bruno Haible  <bruno@clisp.org>
46930
46931         Fix compilation failure on mingw.
46932         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
46933
46934 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
46935
46936         * doc/c-strtod.texi: Mention a couple of restrictions.
46937
46938 2009-01-20  Jim Meyering  <meyering@redhat.com>
46939
46940         gettimeofday: move more declarations out of functions
46941         * lib/gettimeofday.c: Move extern declarations of tzset and
46942         gmtime out of containing functions.  Prompted by Bruno Haible.
46943
46944 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46945
46946         regex: do not depend on obsolete modules.
46947         * modules/regex: Remove memcmp and memmove.
46948
46949 2009-01-19  Bruno Haible  <bruno@clisp.org>
46950
46951         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46952         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
46953         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46954         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
46955         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
46956
46957 2009-01-19  Bruno Haible  <bruno@clisp.org>
46958
46959         * tests/test-link.c: Include <errno.h>.
46960         (main): Exit with code 77 when a hard link cannot be created due to
46961         the file system.
46962         * tests/test-link.sh: Skip test when a hard link cannot be created due
46963         to the file system.
46964         Suggested by Eric Blake.
46965
46966 2009-01-19  Martin Lambers  <marlam@marlam.de>
46967
46968         * modules/link-tests: New file.
46969         * tests/test-link.sh: New file.
46970         * tests/test-link.c: New file.
46971
46972 2009-01-19  Eric Blake  <ebb9@byu.net>
46973
46974         doc: mention another function added in cygwin 1.7.0
46975         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
46976         Another new function in cygwin 1.7.
46977
46978 2009-01-19  Bruno Haible  <bruno@clisp.org>
46979
46980         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46981         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
46982         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
46983         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46984         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46985         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
46986         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46987         * m4/md4.m4 (gl_MD4): Likewise.
46988         * m4/md5.m4 (gl_MD5): Likewise.
46989         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
46990         * m4/sha1.m4 (gl_SHA1): Likewise.
46991         * m4/sha256.m4 (gl_SHA256): Likewise.
46992         * m4/sha512.m4 (gl_SHA512): Likewise.
46993
46994 2009-01-19  Bruno Haible  <bruno@clisp.org>
46995
46996         * modules/uniname/uniname-tests (Depends-on): Add progname.
46997         * tests/uniname/test-uninames.c: Include progname.h.
46998         (main): Call set_program_name.
46999
47000         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47001         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47002         (main): Call set_program_name.
47003
47004         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47005         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47006         (main): Call set_program_name.
47007
47008         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47009         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47010         (main): Call set_program_name.
47011
47012         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47013         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47014         (main): Call set_program_name.
47015
47016         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47017         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47018         (main): Call set_program_name.
47019
47020         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47021         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47022         (main): Call set_program_name.
47023
47024         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47025         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47026         (main): Call set_program_name.
47027
47028         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47029         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47030         (main): Call set_program_name.
47031
47032 2009-01-19  Eric Blake  <ebb9@byu.net>
47033
47034         test-unistd: test previous patch
47035         * tests/test-unistd.c: Test *_FILENO macros.
47036
47037         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47038         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47039         Guarantee a definition.
47040         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47041         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47042         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47043         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47044         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47045         Likewise.
47046         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47047         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47048         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47049         Likewise.
47050         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47051         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47052         (STDERR_FILENO): Likewise.
47053         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47054         (STDERR_FILENO): Likewise.
47055         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47056         (STDERR_FILENO): Likewise.
47057         Reported by Elbert Pol.
47058
47059 2009-01-19  Eric Blake  <ebb9@byu.net>
47060
47061         doc: mention more functions added in cygwin 1.7.0
47062         * doc/posix-functions/abort.texi (abort): Update wording related
47063         to cygwin.
47064         * doc/posix-functions/daylight.texi (daylight): Likewise.
47065         * doc/posix-functions/optarg.texi (optarg): Likewise.
47066         * doc/posix-functions/optarg.texi (opterr): Likewise.
47067         * doc/posix-functions/optarg.texi (optind): Likewise.
47068         * doc/posix-functions/optarg.texi (optopt): Likewise.
47069         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47070         worked in 1.5.x, and was withdrawn in 1.7.
47071         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47072         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47073         cygwin versions.
47074         * doc/posix-functions/perror.texi (perror): Likewise.
47075         * doc/posix-functions/printf.texi (printf): Likewise.
47076         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47077         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47078         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47079         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47080         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47081         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47082         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47083         Likewise.
47084         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47085         Likewise.
47086         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47087         this function.
47088         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47089         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47090         Likewise.
47091         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47092         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47093         * doc/posix-functions/confstr.texi (confstr): Likewise.
47094         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47095         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47096         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47097         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47098         * doc/posix-functions/fputws.texi (fputws): Likewise.
47099         * doc/posix-functions/fwide.texi (fwide): Likewise.
47100         * doc/posix-functions/getwc.texi (getwc): Likewise.
47101         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47102         * doc/posix-functions/putwc.texi (putwc): Likewise.
47103         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47104         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47105         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47106         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47107         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47108         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47109         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47110         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47111         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47112         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47113         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47114
47115 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47116
47117         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47118         * lib/ioctl.c: Include <sys/ioctl.h>.
47119
47120 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47121
47122         * modules/getdate-tests (Depends-on): Add progname.
47123         * tests/test-getdate.c: Use progname module, to avoid link errors
47124         on non-glibc systems.
47125
47126 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47127
47128         * modules/filenamecat-tests (Depends-on): Add progname.
47129         * modules/fstrcmp-tests (Depends-on): Likewise.
47130
47131         * tests/test-filenamecat.c: Use progname module, to avoid link
47132         errors on non-glibc systems.
47133         * tests/test-fstrcmp.c: Likewise.
47134
47135 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47136
47137         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47138         * lib/gettimeofday.c: Move extern declaration out of function.
47139
47140 2009-01-18  Bruno Haible  <bruno@clisp.org>
47141
47142         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47143         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47144         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47145
47146 2009-01-18  Bruno Haible  <bruno@clisp.org>
47147
47148         * lib/strftime.c (MEMPCPY): Remove unused macro.
47149         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47150
47151 2009-01-18  Martin Lambers  <marlam@marlam.de>
47152
47153         New module 'link'.
47154         * lib/unistd.in.h (link): New declaration.
47155         * lib/link.c: New file.
47156         * m4/link.m4: New file.
47157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47158         HAVE_LINK.
47159         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47160         * modules/link: New file.
47161         * doc/posix-functions/link.texi: Mention the new module.
47162
47163 2009-01-18  Bruno Haible  <bruno@clisp.org>
47164
47165         * tests/test-avltree_list.c (main): Call set_program_name.
47166         * tests/test-avltree_oset.c (main): Likewise.
47167         * tests/test-obstack-printf.c: Include progname.h.
47168         (main): Call set_program_name.
47169         * tests/test-quotearg.c: Include progname.h.
47170         (main): Call set_program_name.
47171         * tests/test-xmemdup0.c: Include progname.h.
47172         (main): Call set_program_name.
47173
47174 2009-01-18  Bruno Haible  <bruno@clisp.org>
47175
47176         New module 'alphasort'.
47177         * lib/dirent.in.h (alphasort): New declaration.
47178         * lib/alphasort.c: New file, from glibc with modifications.
47179         * m4/alphasort.m4: New file.
47180         * modules/alphasort: New file.
47181         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47182         HAVE_ALPHASORT.
47183         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47184         HAVE_ALPHASORT.
47185         * doc/posix-functions/alphasort.texi: Mention the new module and the
47186         portability problems.
47187
47188 2009-01-18  Bruno Haible  <bruno@clisp.org>
47189
47190         New module 'scandir'.
47191         * lib/dirent.in.h (scandir): New declaration.
47192         * lib/scandir.c: New file, from glibc with modifications.
47193         * m4/scandir.m4: New file.
47194         * modules/scandir: New file.
47195         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47196         HAVE_SCANDIR.
47197         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47198         HAVE_SCANDIR.
47199         * doc/posix-functions/scandir.texi: Mention the new module and the
47200         portability problems.
47201
47202 2009-01-17  Bruno Haible  <bruno@clisp.org>
47203
47204         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47205         Update documentation.
47206         (func_remove_suffix): Escape all dots in the suffix. Update
47207         documentation.
47208         (func_filter_filelist): Update documentation.
47209         Reported by Ralf Wildenhues.
47210
47211 2009-01-17  Bruno Haible  <bruno@clisp.org>
47212
47213         * modules/dprintf-posix-tests: New file.
47214         * tests/test-dprintf-posix.sh: New file.
47215         * tests/test-dprintf-posix.c: New file.
47216
47217         New modules 'dprintf', 'dprintf-posix'.
47218         * lib/stdio.in.h (dprintf): New declaration.
47219         * lib/dprintf.c: New file.
47220         * m4/dprintf.m4: New file.
47221         * m4/dprintf-posix.m4: New file.
47222         * modules/dprintf: New file.
47223         * modules/dprintf-posix: New file.
47224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47225         HAVE_DPRINTF, REPLACE_DPRINTF.
47226         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47227         HAVE_DPRINTF, REPLACE_DPRINTF.
47228         * doc/posix-functions/dprintf.texi: Mention the new modules.
47229
47230 2009-01-17  Bruno Haible  <bruno@clisp.org>
47231
47232         * modules/vdprintf-posix-tests: New file.
47233         * tests/test-vdprintf-posix.sh: New file.
47234         * tests/test-vdprintf-posix.c: New file.
47235
47236         New modules 'vdprintf', 'vdprintf-posix'.
47237         * lib/stdio.in.h (vdprintf): New declaration.
47238         * lib/vdprintf.c: New file.
47239         * m4/vdprintf.m4: New file.
47240         * m4/vdprintf-posix.m4: New file.
47241         * modules/vdprintf: New file.
47242         * modules/vdprintf-posix: New file.
47243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47244         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47245         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47246         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47247         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47248
47249 2009-01-17  Bruno Haible  <bruno@clisp.org>
47250
47251         Fix replacement of fopen on mingw.
47252         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47253         mingw.
47254
47255 2009-01-17  Bruno Haible  <bruno@clisp.org>
47256
47257         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47258         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47259
47260 2009-01-17  Bruno Haible  <bruno@clisp.org>
47261
47262         Avoid test-fflush2.sh failure on mingw.
47263         * tests/test-fflush2.c: Include binary-io.h.
47264         (main): Put standard input into binary mode.
47265         * modules/fflush-tests (Depends-on): Add binary-io.
47266
47267 2009-01-17  Bruno Haible  <bruno@clisp.org>
47268
47269         * lib/wchar.in.h: In another particular situation, include only the
47270         system's <wchar.h> file.
47271         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47272         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47273         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47274
47275 2009-01-17  Bruno Haible  <bruno@clisp.org>
47276
47277         Support for stripping executables in --enable-relocatable.
47278         * build-aux/install-reloc: Expect one more argument, or an environment
47279         variable RELOC_STRIP_PROG. If set, strip the destination program and
47280         its wrapper.
47281         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47282         RELOC_STRIP_PROG.
47283         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47284         to set RELOCATABLE_STRIP.
47285         * NEWS: Mention the new Makefile requirement.
47286
47287 2009-01-17  Bruno Haible  <bruno@clisp.org>
47288
47289         * build-aux/install-reloc: Remove debugging information left over by
47290         C compiler on MacOS X.
47291
47292 2009-01-17  Bruno Haible  <bruno@clisp.org>
47293
47294         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47295         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47296         _NSGetExecutablePath.
47297
47298 2009-01-16  Jim Meyering  <meyering@redhat.com>
47299
47300         strerror: avoid warnings about discarding "const"
47301         * lib/strerror.c (rpl_strerror): Instead of returning a const
47302         string from each and every "case", use a variable, and add a single
47303         cast after the switch.
47304
47305 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47306
47307         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47308
47309 2009-01-16  Bruno Haible  <bruno@clisp.org>
47310
47311         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47312         array initializer syntax that also works in C++ mode.
47313         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47314
47315 2009-01-16  Jim Meyering  <meyering@redhat.com>
47316
47317         poll: suppress a warning
47318         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47319         to ignore "...unsigned expression < 0 is always false" warnings.
47320
47321 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47322
47323         poll: remove declarations of unused variables
47324         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47325         sockbuf and optlen.
47326
47327 2009-01-15  Bruno Haible  <bruno@clisp.org>
47328
47329         Make fflush-after-ungetc POSIX compliant on BSD systems.
47330         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47331         (clear_ungetc_buffer): Implement also for other systems.
47332         (rpl_fflush): On glibc systems, invoke
47333         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47334         clear_ungetc_buffer after fetching the stream's position, not before.
47335
47336 2009-01-15  Bruno Haible  <bruno@clisp.org>
47337
47338         Make fflush-after-ungetc POSIX compliant on glibc systems.
47339         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47340         after ungetc.
47341         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47342         (rpl_fflush): On glibc systems, simply call the system's fflush
47343         function after clearing the ungetc buffer.
47344         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47345         Instead, lseek only to the end of file, then use the system's fseeko
47346         for the rest. On glibc systems, reset the EOF indicator bit.
47347
47348 2009-01-15  Jim Meyering  <meyering@redhat.com>
47349
47350         openmp.m4: revert quote-adding change, for portability to older autoconf
47351         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47352         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47353         Simon Josefsson noticed the problem when using autoconf-2.61.
47354
47355 2009-01-15  Bruno Haible  <bruno@clisp.org>
47356
47357         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47358         * tests/test-fflush2.c (ASSERT): Always fail.
47359         (main): Add two tests for fflush() after ungetc(), taking into account
47360         the Austin Group's clarification.
47361         Suggested by Eric Blake.
47362
47363 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47364
47365         mktime.m4: remove K&R-style function prototypes
47366         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47367         for the Sun C++ compiler.
47368
47369 2009-01-14  Bruno Haible  <bruno@clisp.org>
47370
47371         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47372         while including <wchar.h>.
47373         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47374         the system's <wchar.h> file.
47375         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47376
47377 2009-01-14  Bruno Haible  <bruno@clisp.org>
47378
47379         * m4/csharp.m4: Don't mention gettext on the serial number line.
47380         * m4/csharpexec.m4: Likewise.
47381         * m4/eaccess.m4: Likewise.
47382         * m4/javaexec.m4: Likewise.
47383         * m4/sig_atomic_t.m4: Likewise.
47384         * m4/tmpdir.m4: Likewise.
47385         * m4/intldir.m4: Bump gettext version.
47386         * m4/lib-ld.m4: Likewise.
47387
47388 2009-01-14  Bruno Haible  <bruno@clisp.org>
47389
47390         * lib/progname.c (set_program_name): Add more comments.
47391         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47392
47393 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47394
47395         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47396         were sys/stat.h does not define it.
47397
47398 2009-01-14  Jim Meyering  <meyering@redhat.com>
47399
47400         many *.m4 files: improve m4 quoting
47401         99% of this change was performed by running the following commands:
47402         git ls-files | grep '\.m4$' | xargs perl -pi \
47403           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47404           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47405           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47406           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47407         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47408         The remainder were to add Copyright dates, increment serial numbers,
47409         undo some changes in comments, exclude m4/intl.m4, and add quotes
47410         around the "1" in ",1" where the unusual spacing prohibited the
47411         above regexps from doing the job.  For more details, see
47412         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47413         * m4/acl.m4: Modified.
47414         * m4/afs.m4: Likewise.
47415         * m4/alloca.m4: Likewise.
47416         * m4/argp.m4: Likewise.
47417         * m4/argz.m4: Likewise.
47418         * m4/atexit.m4: Likewise.
47419         * m4/bison-i18n.m4: Likewise.
47420         * m4/bison.m4: Likewise.
47421         * m4/byteswap.m4: Likewise.
47422         * m4/c-stack.m4: Likewise.
47423         * m4/c-strtod.m4: Likewise.
47424         * m4/calloc.m4: Likewise.
47425         * m4/canonicalize-lgpl.m4: Likewise.
47426         * m4/chown.m4: Likewise.
47427         * m4/clock_time.m4: Likewise.
47428         * m4/codeset.m4: Likewise.
47429         * m4/copy-file.m4: Likewise.
47430         * m4/csharp.m4: Likewise.
47431         * m4/csharpcomp.m4: Likewise.
47432         * m4/csharpexec.m4: Likewise.
47433         * m4/d-ino.m4: Likewise.
47434         * m4/d-type.m4: Likewise.
47435         * m4/dirfd.m4: Likewise.
47436         * m4/double-slash-root.m4: Likewise.
47437         * m4/eaccess.m4: Likewise.
47438         * m4/eealloc.m4: Likewise.
47439         * m4/environ.m4: Likewise.
47440         * m4/errno_h.m4: Likewise.
47441         * m4/euidaccess.m4: Likewise.
47442         * m4/execute.m4: Likewise.
47443         * m4/fatal-signal.m4: Likewise.
47444         * m4/fchdir.m4: Likewise.
47445         * m4/fcntl_h.m4: Likewise.
47446         * m4/fileblocks.m4: Likewise.
47447         * m4/filenamecat.m4: Likewise.
47448         * m4/findprog.m4: Likewise.
47449         * m4/flexmember.m4: Likewise.
47450         * m4/fnmatch.m4: Likewise.
47451         * m4/fopen.m4: Likewise.
47452         * m4/fpending.m4: Likewise.
47453         * m4/fprintf-posix.m4: Likewise.
47454         * m4/free.m4: Likewise.
47455         * m4/frexp.m4: Likewise.
47456         * m4/frexpl.m4: Likewise.
47457         * m4/fsusage.m4: Likewise.
47458         * m4/ftruncate.m4: Likewise.
47459         * m4/gc-camellia.m4: Likewise.
47460         * m4/gc-random.m4: Likewise.
47461         * m4/gc.m4: Likewise.
47462         * m4/getaddrinfo.m4: Likewise.
47463         * m4/getcwd-abort-bug.m4: Likewise.
47464         * m4/getcwd-path-max.m4: Likewise.
47465         * m4/getdate.m4: Likewise.
47466         * m4/getdomainname.m4: Likewise.
47467         * m4/getgroups.m4: Likewise.
47468         * m4/gethostname.m4: Likewise.
47469         * m4/gethrxtime.m4: Likewise.
47470         * m4/getline.m4: Likewise.
47471         * m4/getloadavg.m4: Likewise.
47472         * m4/getndelim2.m4: Likewise.
47473         * m4/getpass.m4: Likewise.
47474         * m4/gettext.m4: Likewise.
47475         * m4/gettime.m4: Likewise.
47476         * m4/gettimeofday.m4: Likewise.
47477         * m4/gnulib-common.m4: Likewise.
47478         * m4/group-member.m4: Likewise.
47479         * m4/host-os.m4: Likewise.
47480         * m4/iconv.m4: Likewise.
47481         * m4/iconv_open.m4: Likewise.
47482         * m4/inet_ntop.m4: Likewise.
47483         * m4/inet_pton.m4: Likewise.
47484         * m4/inline.m4: Likewise.
47485         * m4/intldir.m4: Likewise.
47486         * m4/intlmacosx.m4: Likewise.
47487         * m4/intmax.m4: Likewise.
47488         * m4/intmax_t.m4: Likewise.
47489         * m4/inttypes.m4: Likewise.
47490         * m4/inttypes_h.m4: Likewise.
47491         * m4/inttypes-pri.m4: Likewise.
47492         * m4/isapipe.m4: Likewise.
47493         * m4/isnand.m4: Likewise.
47494         * m4/isnanf.m4: Likewise.
47495         * m4/isnanl.m4: Likewise.
47496         * m4/javacomp.m4: Likewise.
47497         * m4/javaexec.m4: Likewise.
47498         * m4/jm-winsz1.m4: Likewise.
47499         * m4/jm-winsz2.m4: Likewise.
47500         * m4/lchown.m4: Likewise.
47501         * m4/lcmessage.m4: Likewise.
47502         * m4/ldexpl.m4: Likewise.
47503         * m4/lib-ld.m4: Likewise.
47504         * m4/lib-link.m4: Likewise.
47505         * m4/libsigsegv.m4: Likewise.
47506         * m4/link-follow.m4: Likewise.
47507         * m4/localcharset.m4: Likewise.
47508         * m4/locale-fr.m4: Likewise.
47509         * m4/locale-ja.m4: Likewise.
47510         * m4/locale-tr.m4: Likewise.
47511         * m4/locale-zh.m4: Likewise.
47512         * m4/lock.m4: Likewise.
47513         * m4/longlong.m4: Likewise.
47514         * m4/ls-mntd-fs.m4: Likewise.
47515         * m4/lstat.m4: Likewise.
47516         * m4/malloc.m4: Likewise.
47517         * m4/mathl.m4: Likewise.
47518         * m4/mbrtowc.m4: Likewise.
47519         * m4/mbstate_t.m4: Likewise.
47520         * m4/mbswidth.m4: Likewise.
47521         * m4/memchr.m4: Likewise.
47522         * m4/memcmp.m4: Likewise.
47523         * m4/memcpy.m4: Likewise.
47524         * m4/memmem.m4: Likewise.
47525         * m4/memmove.m4: Likewise.
47526         * m4/mempcpy.m4: Likewise.
47527         * m4/memrchr.m4: Likewise.
47528         * m4/memset.m4: Likewise.
47529         * m4/minmax.m4: Likewise.
47530         * m4/mkdir-slash.m4: Likewise.
47531         * m4/mkdtemp.m4: Likewise.
47532         * m4/mktime.m4: Likewise.
47533         * m4/mmap-anon.m4: Likewise.
47534         * m4/mountlist.m4: Likewise.
47535         * m4/nanosleep.m4: Likewise.
47536         * m4/nls.m4: Likewise.
47537         * m4/nocrash.m4: Likewise.
47538         * m4/open.m4: Likewise.
47539         * m4/openat.m4: Likewise.
47540         * m4/openmp.m4: Likewise.
47541         * m4/pathmax.m4: Likewise.
47542         * m4/perl.m4: Likewise.
47543         * m4/physmem.m4: Likewise.
47544         * m4/pipe.m4: Likewise.
47545         * m4/po.m4: Likewise.
47546         * m4/poll.m4: Likewise.
47547         * m4/posixtm.m4: Likewise.
47548         * m4/posixver.m4: Likewise.
47549         * m4/printf-frexp.m4: Likewise.
47550         * m4/printf-frexpl.m4: Likewise.
47551         * m4/printf-posix.m4: Likewise.
47552         * m4/printf-posix-rpl.m4: Likewise.
47553         * m4/printf.m4: Likewise.
47554         * m4/progtest.m4: Likewise.
47555         * m4/putenv.m4: Likewise.
47556         * m4/readline.m4: Likewise.
47557         * m4/readlink.m4: Likewise.
47558         * m4/readutmp.m4: Likewise.
47559         * m4/realloc.m4: Likewise.
47560         * m4/regex.m4: Likewise.
47561         * m4/relocatable.m4: Likewise.
47562         * m4/relocatable-lib.m4: Likewise.
47563         * m4/rename-dest-slash.m4: Likewise.
47564         * m4/rename.m4: Likewise.
47565         * m4/rmdir-errno.m4: Likewise.
47566         * m4/rmdir.m4: Likewise.
47567         * m4/roundf.m4: Likewise.
47568         * m4/roundl.m4: Likewise.
47569         * m4/rpmatch.m4: Likewise.
47570         * m4/save-cwd.m4: Likewise.
47571         * m4/selinux-selinux-h.m4: Likewise.
47572         * m4/setenv.m4: Likewise.
47573         * m4/settime.m4: Likewise.
47574         * m4/sig2str.m4: Likewise.
47575         * m4/sig_atomic_t.m4: Likewise.
47576         * m4/signalblocking.m4: Likewise.
47577         * m4/signbit.m4: Likewise.
47578         * m4/sigpipe.m4: Likewise.
47579         * m4/sockets.m4: Likewise.
47580         * m4/sockpfaf.m4: Likewise.
47581         * m4/st_dm_mode.m4: Likewise.
47582         * m4/stat-time.m4: Likewise.
47583         * m4/stdbool.m4: Likewise.
47584         * m4/stdint.m4: Likewise.
47585         * m4/stdint_h.m4: Likewise.
47586         * m4/stpcpy.m4: Likewise.
47587         * m4/stpncpy.m4: Likewise.
47588         * m4/strcase.m4: Likewise.
47589         * m4/strchrnul.m4: Likewise.
47590         * m4/strcspn.m4: Likewise.
47591         * m4/strdup.m4: Likewise.
47592         * m4/strftime.m4: Likewise.
47593         * m4/strndup.m4: Likewise.
47594         * m4/strnlen.m4: Likewise.
47595         * m4/strpbrk.m4: Likewise.
47596         * m4/strptime.m4: Likewise.
47597         * m4/strsep.m4: Likewise.
47598         * m4/strtod.m4: Likewise.
47599         * m4/strtoimax.m4: Likewise.
47600         * m4/strtok_r.m4: Likewise.
47601         * m4/strtol.m4: Likewise.
47602         * m4/strtoll.m4: Likewise.
47603         * m4/strtoul.m4: Likewise.
47604         * m4/strtoull.m4: Likewise.
47605         * m4/strtoumax.m4: Likewise.
47606         * m4/strverscmp.m4: Likewise.
47607         * m4/threadlib.m4: Likewise.
47608         * m4/timegm.m4: Likewise.
47609         * m4/tm_gmtoff.m4: Likewise.
47610         * m4/tmpdir.m4: Likewise.
47611         * m4/tmpfile.m4: Likewise.
47612         * m4/tzset.m4: Likewise.
47613         * m4/uintmax_t.m4: Likewise.
47614         * m4/unlinkdir.m4: Likewise.
47615         * m4/unlocked-io.m4: Likewise.
47616         * m4/uptime.m4: Likewise.
47617         * m4/userspec.m4: Likewise.
47618         * m4/utimbuf.m4: Likewise.
47619         * m4/utime.m4: Likewise.
47620         * m4/utimes-null.m4: Likewise.
47621         * m4/utimes.m4: Likewise.
47622         * m4/vararrays.m4: Likewise.
47623         * m4/vasnprintf.m4: Likewise.
47624         * m4/vfprintf-posix.m4: Likewise.
47625         * m4/vprintf-posix.m4: Likewise.
47626         * m4/wait-process.m4: Likewise.
47627         * m4/wchar_t.m4: Likewise.
47628         * m4/wint_t.m4: Likewise.
47629         * m4/write-any-file.m4: Likewise.
47630         * m4/yield.m4: Likewise.
47631
47632 2009-01-13  Bruno Haible  <bruno@clisp.org>
47633
47634         Avoid test-copy-file.sh failures when ACL support insufficient.
47635         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47636         TESTS_ENVIRONMENT.
47637         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47638         Reported by Jim Meyering.
47639
47640 2009-01-13  Bruno Haible  <bruno@clisp.org>
47641
47642         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47643         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47644         * modules/unistdio/u8-printf-parse (Files): Likewise.
47645         * modules/unistdio/u32-printf-parse (Files): Likewise.
47646         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47647
47648 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47649
47650         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47651         and m4/inttypes_h.m4 too.
47652
47653 2009-01-12  Eric Blake  <ebb9@byu.net>
47654
47655         tests: IRIX 6.2 cc can't compile -0.0 into .data
47656         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47657         rather than at compile-time.
47658         * tests/test-floorl.c (minus_zero): Likewise.
47659         * tests/test-frexpl.c (minus_zero): Likewise.
47660         * tests/test-isnan.c (minus_zerol): Likewise.
47661         * tests/test-isnanl.h (minus_zero): Likewise.
47662         * tests/test-ldexpl.c (minus_zero): Likewise.
47663         * tests/test-roundl.c (minus_zero): Likewise.
47664         * tests/test-signbit.c (minus_zerol): Likewise.
47665         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47666         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47667         * tests/test-truncl.c (minus_zero): Likewise.
47668         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47669         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47670         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47671
47672 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47673
47674         regex: fix glibc bug 9697
47675         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47676         handling.
47677
47678 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47679
47680         regex: fix glibc bug 697
47681         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47682         being NULL also if there are no backreferences.
47683
47684 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47685
47686         regex: merge glibc changes
47687         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47688         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47689         re_string_skip_chars, re_string_reconstruct): Likewise.
47690         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47691
47692 2009-01-07  Jim Meyering  <meyering@redhat.com>
47693
47694         poll: filter through cppi
47695         * lib/poll.c: Indent cpp directives to reflect nesting.
47696
47697 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47698
47699         poll: don't return uninitialized
47700         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47701
47702 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47703
47704         avoid compile failure on AIX 6.1
47705         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47706         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47707
47708 2009-01-04  Jim Meyering  <meyering@redhat.com>
47709
47710         remove duplicate inclusion of <stdio.h>
47711         * tests/test-fprintf-posix.c: Likewise.
47712         * tests/test-printf-posix.c: Likewise.
47713         * tests/test-snprintf-posix.c: Likewise.
47714         * tests/test-sprintf-posix.c: Likewise.
47715         * tests/test-vasprintf-posix.c: Likewise.
47716         * tests/test-vfprintf-posix.c: Likewise.
47717         * tests/test-vprintf-posix.c: Likewise.
47718         * tests/test-vsnprintf-posix.c: Likewise.
47719         * tests/test-vsprintf-posix.c: Likewise.
47720
47721 2009-01-03  Jim Meyering  <meyering@redhat.com>
47722
47723         gnulib-tool: fix sed-based filtering
47724         * gnulib-tool (func_filter_filelist): Remove extra backslash
47725         in sed_fff_filter definition.
47726
47727 2009-01-02  Jim Meyering  <meyering@redhat.com>
47728
47729         strftime: avoid compilation failure on Solaris 2.6
47730         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47731         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47732         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47733         be available.  Reported by Tom G. Christensen.  Details in
47734         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47735
47736 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47737             Bruno Haible  <bruno@clisp.org>
47738
47739         Speed up gnulib-tool by doing more string processing through shell
47740         built-ins.
47741         * gnulib-tool (fast_func_append): New variable.
47742         (func_remove_prefix, func_remove_suffix): New functions.
47743         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47744         (func_filter_filelist): New function.
47745         (func_get_dependencies): Use func_remove_suffix instead of sed.
47746         (func_get_automake_snippet): Use func_filter_filelist instead of a
47747         subshell and sed invocation.
47748
47749 2009-01-01  Bruno Haible  <bruno@clisp.org>
47750
47751         Fix a security bug.
47752         * gnulib-tool (func_import, import, update): Don't allow the characters
47753         '"', '$', '`', '\' in macro arguments that become part of commands that
47754         are evaluated.
47755
47756 2009-01-01  Bruno Haible  <bruno@clisp.org>
47757
47758         * gnulib-tool (func_reset_sigpipe): Add more comments.
47759
47760 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47761
47762         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47763         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47764         already know the answer.
47765
47766 2009-01-01  Jim Meyering  <meyering@redhat.com>
47767
47768         * lib/version-etc.c (version_etc_va): Update copyright year.
47769
47770 2008-12-30  Bruno Haible  <bruno@clisp.org>
47771
47772         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47773         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47774         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47775
47776 2008-12-29  Eric Blake  <ebb9@byu.net>
47777
47778         multiarch: avoid autoconf AC_REQUIRE bug
47779         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47780         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47781         2.63 and older.
47782         Reported by Bruno Haible, and analyzed in
47783         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47784
47785 2008-12-29  Bruno Haible  <bruno@clisp.org>
47786
47787         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47788         files in subdirectories correctly.
47789         Reported by Ralf Wildenhues.
47790
47791 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47792
47793         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47794         rather than 'join FILE -', for Solaris join.
47795
47796 2008-12-29  Bruno Haible  <bruno@clisp.org>
47797
47798         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47799         quoting.
47800         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47801         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47802         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47803         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47804         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47805         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47806         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47807         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47808         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47809         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47810         * m4/nls.m4 (AM_NLS): Likewise.
47811         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47812         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47813         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47814         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47815         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47816         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47817         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47818         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47819         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47820         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47821         * m4/xsize.m4 (gl_XSIZE): Likewise.
47822         Suggested by Jim Meyering.
47823
47824 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47825
47826         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47827         * lib/parse-duration.c: use a switch instead of cascading if's.
47828
47829 2008-12-29  Eric Blake  <ebb9@byu.net>
47830
47831         wchar.h: supply WEOF on Irix 5.3
47832         * lib/wchar.in.h (wint_t): Also supply WEOF.
47833         * lib/wctype.in.h (wint_t): Likewise.
47834         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47835         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47836         Reported by Tom G. Christensen.
47837
47838 2008-12-26  Bruno Haible  <bruno@clisp.org>
47839
47840         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47841         i486, i586, i686.
47842
47843 2008-12-26  Bruno Haible  <bruno@clisp.org>
47844
47845         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47846
47847 2008-12-26  Bruno Haible  <bruno@clisp.org>
47848
47849         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47850         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47851         not __STDC_CONSTANT_MACROS.
47852         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47853
47854 2008-12-25  Bruno Haible  <bruno@clisp.org>
47855
47856         Add support for universal builds to vasnprintf.
47857         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47858         universal builds, guess no.
47859         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47860         * modules/vasprintf-posix (Depends-on): Likewise.
47861         * modules/fprintf-posix (Depends-on): Likewise.
47862         * modules/vfprintf-posix (Depends-on): Likewise.
47863         * modules/snprintf-posix (Depends-on): Likewise.
47864         * modules/vsnprintf-posix (Depends-on): Likewise.
47865         * modules/sprintf-posix (Depends-on): Likewise.
47866         * modules/vsprintf-posix (Depends-on): Likewise.
47867         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47868         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47869         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47870         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47871         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47872         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47873         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47874
47875         Add support for universal builds to <inttypes.h>.
47876         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47877         _SCNu64_PREFIX): In Apple
47878         universal builds, define directly, using _LP64.
47879         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47880         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47881         * modules/inttypes (Depends-on): Add multiarch.
47882         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47883
47884         Add support for universal builds to <stdint.h>.
47885         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47886         universal builds, define directly, using _LP64.
47887         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47888         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47889         and size_t.
47890         * modules/stdint (Depends-on): Add multiarch.
47891         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47892
47893         New module 'multiarch'.
47894         * modules/multiarch: New file.
47895         * m4/multiarch.m4: New file.
47896
47897 2008-12-25  Bruno Haible  <bruno@clisp.org>
47898
47899         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47900
47901 2008-12-25  Bruno Haible  <bruno@clisp.org>
47902
47903         * modules/btowc (License): Relicense under LGPLv2+.
47904         * modules/mbsinit (License): Likewise.
47905         * modules/mbrtowc (License): Likewise.
47906         * modules/wcrtomb (License): Likewise.
47907         * modules/streq (License): Likewise.
47908         Reported by David Lutterkort <lutter@redhat.com>.
47909
47910 2008-12-23  Bruno Haible  <bruno@clisp.org>
47911
47912         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47913
47914 2008-12-23  Bruno Haible  <bruno@clisp.org>
47915
47916         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47917         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47918         GETADDRINFO_LIB, not in LIBS.
47919         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47920         * modules/canon-host (Link): Likewise.
47921         * NEWS: Mention the change.
47922         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47923         GETADDRINFO_LIB.
47924
47925 2008-12-22  Bruno Haible  <bruno@clisp.org>
47926
47927         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
47928         * doc/posix-functions/iswalpha_l.texi: Likewise.
47929         * doc/posix-functions/iswblank_l.texi: Likewise.
47930         * doc/posix-functions/iswcntrl_l.texi: Likewise.
47931         * doc/posix-functions/iswctype_l.texi: Likewise.
47932         * doc/posix-functions/iswdigit_l.texi: Likewise.
47933         * doc/posix-functions/iswgraph_l.texi: Likewise.
47934         * doc/posix-functions/iswlower_l.texi: Likewise.
47935         * doc/posix-functions/iswprint_l.texi: Likewise.
47936         * doc/posix-functions/iswpunct_l.texi: Likewise.
47937         * doc/posix-functions/iswspace_l.texi: Likewise.
47938         * doc/posix-functions/iswupper_l.texi: Likewise.
47939         * doc/posix-functions/iswxdigit_l.texi: Likewise.
47940         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
47941         * doc/posix-functions/open_wmemstream.texi: Likewise.
47942         * doc/posix-functions/swscanf.texi: Likewise.
47943         * doc/posix-functions/towctrans_l.texi: Likewise.
47944         * doc/posix-functions/towlower.texi: Likewise.
47945         * doc/posix-functions/towlower_l.texi: Likewise.
47946         * doc/posix-functions/towupper.texi: Likewise.
47947         * doc/posix-functions/towupper_l.texi: Likewise.
47948         * doc/posix-functions/vfwprintf.texi: Likewise.
47949         * doc/posix-functions/vfwscanf.texi: Likewise.
47950         * doc/posix-functions/vswscanf.texi: Likewise.
47951         * doc/posix-functions/vwprintf.texi: Likewise.
47952         * doc/posix-functions/vwscanf.texi: Likewise.
47953         * doc/posix-functions/wcpcpy.texi: Likewise.
47954         * doc/posix-functions/wcpncpy.texi: Likewise.
47955         * doc/posix-functions/wcscasecmp.texi: Likewise.
47956         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
47957         * doc/posix-functions/wcscoll_l.texi: Likewise.
47958         * doc/posix-functions/wcsdup.texi: Likewise.
47959         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47960         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
47961         * doc/posix-functions/wcsnlen.texi: Likewise.
47962         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47963         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
47964         * doc/posix-functions/wctrans_l.texi: Likewise.
47965         * doc/posix-functions/wctype_l.texi: Likewise.
47966         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
47967         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
47968         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
47969         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
47970         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
47971         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
47972         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
47973         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
47974         * doc/glibc-functions/wcschrnul.texi: Likewise.
47975         * doc/glibc-functions/wcsftime_l.texi: Likewise.
47976         * doc/glibc-functions/wcstod_l.texi: Likewise.
47977         * doc/glibc-functions/wcstof_l.texi: Likewise.
47978         * doc/glibc-functions/wcstol_l.texi: Likewise.
47979         * doc/glibc-functions/wcstold_l.texi: Likewise.
47980         * doc/glibc-functions/wcstoll_l.texi: Likewise.
47981         * doc/glibc-functions/wcstoq.texi: Likewise.
47982         * doc/glibc-functions/wcstoul_l.texi: Likewise.
47983         * doc/glibc-functions/wcstoull_l.texi: Likewise.
47984         * doc/glibc-functions/wcstouq.texi: Likewise.
47985         * doc/glibc-functions/wmempcpy.texi: Likewise.
47986
47987 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
47988             Eric Blake  <ebb9@byu.net>
47989             Paolo Bonzini  <bonzini@gnu.org>
47990             Bruno Haible  <bruno@clisp.org>
47991
47992         Make c-stack work on Haiku.
47993         * lib/c-stack.c (SA_ONSTACK): Define fallback.
47994         (c_stack_action): Use SA_ONSTACK flag.
47995
47996 2008-12-22  Bruno Haible  <bruno@clisp.org>
47997
47998         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
47999
48000 2008-12-22  Bruno Haible  <bruno@clisp.org>
48001
48002         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48003         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48004         being overridden.
48005         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48006         New macros.
48007         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48008         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48009         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48010         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48011
48012 2008-12-22  Bruno Haible  <bruno@clisp.org>
48013
48014         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48015         from test code.
48016
48017 2008-12-22  Eric Blake  <ebb9@byu.net>
48018
48019         Avoid gcc warnings on cygwin.
48020         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48021         Avoid unused variable.
48022         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48023         Likewise.
48024
48025 2008-12-22  Bruno Haible  <bruno@clisp.org>
48026
48027         Remove HAVE_MBRTOWC conditionals.
48028         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48029         (mbscasecmp): Assume mbrtowc function.
48030         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48031         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48032         * lib/mbschr.c: Include mbuiter.h unconditionally.
48033         (mbschr): Assume mbrtowc function.
48034         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48035         (mbscspn): Assume mbrtowc function.
48036         * lib/mbslen.c: Include mbuiter.h unconditionally.
48037         (mbslen): Assume mbrtowc function.
48038         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48039         (mbsncasecmp): Assume mbrtowc function.
48040         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48041         (mbsnlen): Assume mbrtowc function.
48042         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48043         (mbspbrk): Assume mbrtowc function.
48044         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48045         (mbspcasecmp): Assume mbrtowc function.
48046         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48047         (mbsrchr): Assume mbrtowc function.
48048         * lib/mbssep.c: Include mbuiter.h unconditionally.
48049         (mbssep): Assume mbrtowc function.
48050         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48051         (mbsspn): Assume mbrtowc function.
48052         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48053         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48054         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48055         (mbstok_r): Assume mbrtowc function.
48056         * lib/propername.c: Include mbuiter.h unconditionally.
48057         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48058         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48059         (trim2): Assume mbrtowc function.
48060         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48061         (mbsnwidth): Assume mbrtowc function.
48062         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48063         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48064         fallback definitions.
48065         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48066
48067 2008-12-22  Bruno Haible  <bruno@clisp.org>
48068
48069         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48070
48071 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48072
48073         * modules/regex: Request emulations for the mb*/wc* functions we need.
48074         * m4/regex.m4: Don't look for those functions here.
48075         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48076
48077 2008-12-22  Bruno Haible  <bruno@clisp.org>
48078
48079         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48080
48081 2008-12-21  Bruno Haible  <bruno@clisp.org>
48082
48083         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48084         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48085         (Include): Remove conditionalization.
48086         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48087         (Include): Remove conditionalization.
48088         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48089         (Include): Remove conditionalization.
48090         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48091         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48092         * NEWS: Mention the change.
48093         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48094         via Sergey Poznyakoff <gray@gnu.org.ua>.
48095
48096 2008-12-21  Bruno Haible  <bruno@clisp.org>
48097
48098         * MODULES.html.sh (Extended multibyte and wide character utilities
48099         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48100         wcrtomb, wcsrtombs.
48101         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48102         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48103         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48104         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48105
48106 2008-12-21  Bruno Haible  <bruno@clisp.org>
48107
48108         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48109
48110 2008-12-21  Bruno Haible  <bruno@clisp.org>
48111
48112         * modules/wcsnrtombs-tests: New file.
48113         * tests/test-wcsnrtombs1.sh: New file.
48114         * tests/test-wcsnrtombs2.sh: New file.
48115         * tests/test-wcsnrtombs3.sh: New file.
48116         * tests/test-wcsnrtombs4.sh: New file.
48117         * tests/test-wcsnrtombs.c: New file.
48118
48119         New module 'wcsnrtombs'.
48120         * lib/wchar.in.h (wcsnrtombs): New declaration.
48121         * lib/wcsnrtombs.c: New file.
48122         * lib/wcsrtombs-state.c: New file.
48123         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48124         (internal_state): Remove variable.
48125         * m4/wcsnrtombs.m4: New file.
48126         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48127         compilation units.
48128         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48129         HAVE_WCSNRTOMBS.
48130         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48131         HAVE_WCSNRTOMBS.
48132         * modules/wcsnrtombs: New file.
48133         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48134         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48135
48136 2008-12-21  Bruno Haible  <bruno@clisp.org>
48137
48138         * modules/wcsrtombs-tests: New file.
48139         * tests/test-wcsrtombs1.sh: New file.
48140         * tests/test-wcsrtombs2.sh: New file.
48141         * tests/test-wcsrtombs3.sh: New file.
48142         * tests/test-wcsrtombs4.sh: New file.
48143         * tests/test-wcsrtombs.c: New file.
48144
48145         New module 'wcsrtombs'.
48146         * lib/wchar.in.h (wcsrtombs): New declaration.
48147         * lib/wcsrtombs.c: New file.
48148         * m4/wcsrtombs.m4: New file.
48149         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48150         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48151         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48152         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48153         * modules/wcsrtombs: New file.
48154         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48155         bugs.
48156
48157 2008-12-21  Bruno Haible  <bruno@clisp.org>
48158
48159         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48160         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48161         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48162         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48163         if not correct.
48164         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48165         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48166         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48167         m4/locale-zh.m4, m4/codeset.m4.
48168         * doc/posix-functions/wcrtomb.texi: Document the bug.
48169
48170 2008-12-21  Bruno Haible  <bruno@clisp.org>
48171
48172         Work around a btowc() bug on IRIX 6.5.
48173         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48174         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48175         REPLACE_WTOBC if not.
48176         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48177         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48178         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48179
48180 2008-12-21  Bruno Haible  <bruno@clisp.org>
48181
48182         * modules/wcrtomb-tests: New file.
48183         * tests/test-wcrtomb.sh: New file.
48184         * tests/test-wcrtomb.c: New file.
48185
48186         New module 'wcrtomb'.
48187         * lib/wchar.in.h (wcrtomb): New declaration.
48188         * lib/wcrtomb.c: New file.
48189         * m4/wcrtomb.m4: New file.
48190         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48191         HAVE_WCRTOMB.
48192         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48193         HAVE_WCRTOMB.
48194         * modules/wcrtomb: New file.
48195         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48196
48197 2008-12-21  Bruno Haible  <bruno@clisp.org>
48198
48199         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48200         * modules/mbsrtowcs (Files): Likewise.
48201         * modules/wctob (Files): Likewise.
48202         * modules/c-strcase-tests (Files): Likewise.
48203         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48204         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48205         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48206         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48207         * modules/vasnprintf-posix-tests (Files): Likewise.
48208
48209 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48210
48211         gitlog-to-changelog: pass all command-line arguments to git-log
48212         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48213         it is sometimes convenient to filter the commits in various ways.
48214         gitlog-to-changelog only allows --since to specify a start date,
48215         but git-log itself supports many other filtering mechanisms.
48216         At the moment, I want to filter by branch name.  Rather than
48217         adding a --branch option to gitlog-to-changelog, it seems more
48218         flexible to simply pass all options directly to git-log and let
48219         git do the work.  Notice that this effectively makes --since a
48220         redundant option for gitlog-to-changelog, but removing it would
48221         require current usage to change since calls would then require
48222         an additional '--'.
48223
48224 2008-12-21  Bruno Haible  <bruno@clisp.org>
48225
48226         * modules/mbsnrtowcs-tests: New file.
48227         * tests/test-mbsnrtowcs1.sh: New file.
48228         * tests/test-mbsnrtowcs2.sh: New file.
48229         * tests/test-mbsnrtowcs3.sh: New file.
48230         * tests/test-mbsnrtowcs4.sh: New file.
48231         * tests/test-mbsnrtowcs.c: New file.
48232
48233         New module 'mbsnrtowcs'.
48234         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48235         * lib/mbsnrtowcs.c: New file.
48236         * lib/mbsrtowcs-state.c: New file.
48237         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48238         (internal_state): Remove variable.
48239         * m4/mbsnrtowcs.m4: New file.
48240         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48241         compilation units.
48242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48243         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48244         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48245         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48246         * modules/mbsnrtowcs: New file.
48247         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48248         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48249         portability problem.
48250
48251 2008-12-21  Bruno Haible  <bruno@clisp.org>
48252
48253         Work around mbsrtowcs bug.
48254         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48255         (gl_FUNC_MBSRTOWCS): Invoke it.
48256         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48257         m4/locale-zh.m4.
48258         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48259
48260 2008-12-21  Bruno Haible  <bruno@clisp.org>
48261
48262         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48263
48264 2008-12-21  Bruno Haible  <bruno@clisp.org>
48265
48266         Update doc for AIX.
48267         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48268         16-bit wchar_t type.
48269         * doc/posix-functions/btowc.texi: Likewise.
48270         * doc/posix-functions/fgetwc.texi: Likewise.
48271         * doc/posix-functions/fgetws.texi: Likewise.
48272         * doc/posix-functions/fputwc.texi: Likewise.
48273         * doc/posix-functions/fputws.texi: Likewise.
48274         * doc/posix-functions/fwide.texi: Likewise.
48275         * doc/posix-functions/fwprintf.texi: Likewise.
48276         * doc/posix-functions/fwscanf.texi: Likewise.
48277         * doc/posix-functions/getwchar.texi: Likewise.
48278         * doc/posix-functions/getwc.texi: Likewise.
48279         * doc/posix-functions/iswalnum.texi: Likewise.
48280         * doc/posix-functions/iswalpha.texi: Likewise.
48281         * doc/posix-functions/iswblank.texi: Likewise.
48282         * doc/posix-functions/iswcntrl.texi: Likewise.
48283         * doc/posix-functions/iswctype.texi: Likewise.
48284         * doc/posix-functions/iswdigit.texi: Likewise.
48285         * doc/posix-functions/iswgraph.texi: Likewise.
48286         * doc/posix-functions/iswlower.texi: Likewise.
48287         * doc/posix-functions/iswprint.texi: Likewise.
48288         * doc/posix-functions/iswpunct.texi: Likewise.
48289         * doc/posix-functions/iswspace.texi: Likewise.
48290         * doc/posix-functions/iswupper.texi: Likewise.
48291         * doc/posix-functions/iswxdigit.texi: Likewise.
48292         * doc/posix-functions/mbrtowc.texi: Likewise.
48293         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48294         * doc/posix-functions/mbstowcs.texi: Likewise.
48295         * doc/posix-functions/mbtowc.texi: Likewise.
48296         * doc/posix-functions/putwchar.texi: Likewise.
48297         * doc/posix-functions/putwc.texi: Likewise.
48298         * doc/posix-functions/swprintf.texi: Likewise.
48299         * doc/posix-functions/tolower.texi: Likewise.
48300         * doc/posix-functions/toupper.texi: Likewise.
48301         * doc/posix-functions/towctrans.texi: Likewise.
48302         * doc/posix-functions/ungetwc.texi: Likewise.
48303         * doc/posix-functions/vswprintf.texi: Likewise.
48304         * doc/posix-functions/wcrtomb.texi: Likewise.
48305         * doc/posix-functions/wcscat.texi: Likewise.
48306         * doc/posix-functions/wcschr.texi: Likewise.
48307         * doc/posix-functions/wcscmp.texi: Likewise.
48308         * doc/posix-functions/wcscoll.texi: Likewise.
48309         * doc/posix-functions/wcscpy.texi: Likewise.
48310         * doc/posix-functions/wcscspn.texi: Likewise.
48311         * doc/posix-functions/wcsftime.texi: Likewise.
48312         * doc/posix-functions/wcslen.texi: Likewise.
48313         * doc/posix-functions/wcsncat.texi: Likewise.
48314         * doc/posix-functions/wcsncmp.texi: Likewise.
48315         * doc/posix-functions/wcsncpy.texi: Likewise.
48316         * doc/posix-functions/wcspbrk.texi: Likewise.
48317         * doc/posix-functions/wcsrchr.texi: Likewise.
48318         * doc/posix-functions/wcsrtombs.texi: Likewise.
48319         * doc/posix-functions/wcsspn.texi: Likewise.
48320         * doc/posix-functions/wcsstr.texi: Likewise.
48321         * doc/posix-functions/wcstod.texi: Likewise.
48322         * doc/posix-functions/wcstof.texi: Likewise.
48323         * doc/posix-functions/wcstoimax.texi: Likewise.
48324         * doc/posix-functions/wcstok.texi: Likewise.
48325         * doc/posix-functions/wcstold.texi: Likewise.
48326         * doc/posix-functions/wcstoll.texi: Likewise.
48327         * doc/posix-functions/wcstol.texi: Likewise.
48328         * doc/posix-functions/wcstombs.texi: Likewise.
48329         * doc/posix-functions/wcstoull.texi: Likewise.
48330         * doc/posix-functions/wcstoul.texi: Likewise.
48331         * doc/posix-functions/wcstoumax.texi: Likewise.
48332         * doc/posix-functions/wcswidth.texi: Likewise.
48333         * doc/posix-functions/wcsxfrm.texi: Likewise.
48334         * doc/posix-functions/wctob.texi: Likewise.
48335         * doc/posix-functions/wctomb.texi: Likewise.
48336         * doc/posix-functions/wctrans.texi: Likewise.
48337         * doc/posix-functions/wctype.texi: Likewise.
48338         * doc/posix-functions/wcwidth.texi: Likewise.
48339         * doc/posix-functions/wmemchr.texi: Likewise.
48340         * doc/posix-functions/wmemcmp.texi: Likewise.
48341         * doc/posix-functions/wmemcpy.texi: Likewise.
48342         * doc/posix-functions/wmemmove.texi: Likewise.
48343         * doc/posix-functions/wmemset.texi: Likewise.
48344         * doc/posix-functions/wprintf.texi: Likewise.
48345         * doc/posix-functions/wscanf.texi: Likewise.
48346
48347 2008-12-21  Bruno Haible  <bruno@clisp.org>
48348
48349         Update doc for HP-UX 11.11.
48350         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48351         in HP-UX version 11.00, not in all versions of HP-UX 11.
48352         * doc/posix-functions/fwide.texi: Likewise.
48353         * doc/posix-functions/fwprintf.texi: Likewise.
48354         * doc/posix-functions/fwscanf.texi: Likewise.
48355         * doc/posix-functions/inet_ntop.texi: Likewise.
48356         * doc/posix-functions/inet_pton.texi: Likewise.
48357         * doc/posix-functions/mbrlen.texi: Likewise.
48358         * doc/posix-functions/mbrtowc.texi: Likewise.
48359         * doc/posix-functions/mbsinit.texi: Likewise.
48360         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48361         * doc/posix-functions/swprintf.texi: Likewise.
48362         * doc/posix-functions/swscanf.texi: Likewise.
48363         * doc/posix-functions/towctrans.texi: Likewise.
48364         * doc/posix-functions/vfwprintf.texi: Likewise.
48365         * doc/posix-functions/vswprintf.texi: Likewise.
48366         * doc/posix-functions/vwprintf.texi: Likewise.
48367         * doc/posix-functions/wcrtomb.texi: Likewise.
48368         * doc/posix-functions/wcsrtombs.texi: Likewise.
48369         * doc/posix-functions/wcsstr.texi: Likewise.
48370         * doc/posix-functions/wctob.texi: Likewise.
48371         * doc/posix-functions/wctrans.texi: Likewise.
48372         * doc/posix-functions/wmemchr.texi: Likewise.
48373         * doc/posix-functions/wmemcmp.texi: Likewise.
48374         * doc/posix-functions/wmemcpy.texi: Likewise.
48375         * doc/posix-functions/wmemmove.texi: Likewise.
48376         * doc/posix-functions/wmemset.texi: Likewise.
48377         * doc/posix-functions/wprintf.texi: Likewise.
48378         * doc/posix-functions/wscanf.texi: Likewise.
48379
48380 2008-12-21  Bruno Haible  <bruno@clisp.org>
48381
48382         Work around a portability problem.
48383         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48384         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48385
48386 2008-12-20  Bruno Haible  <bruno@clisp.org>
48387
48388         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48389         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48390         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48391         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48392         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48393
48394         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48395         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48396         set.
48397         (GNULIB_defined_mbstate_t): New macro.
48398         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48399         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48400         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48401         reuses the system's mbrtowc function but works around the bugs.
48402         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48403         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48404         macros.
48405         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48406         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48407         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48408         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48409         REPLACE_MBSINIT if mbsinit needs to be overridden.
48410         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48411         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48412         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48413         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48414         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48415         m4/locale-zh.m4.
48416         (Depends): Add mbsinit.
48417         * modules/mbsinit (Depends): Add mbrtowc.
48418         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48419
48420 2008-12-20  Bruno Haible  <bruno@clisp.org>
48421
48422         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48423         so that there are no conversion errors on AIX.
48424         * tests/test-mbsrtowcs.c (main): LIkewise.
48425
48426 2008-12-20  Bruno Haible  <bruno@clisp.org>
48427
48428         Work around wctob bug on Solaris <= 9.
48429         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48430         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48431         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48432         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48433         * modules/wctob (Files): Add m4/locale-fr.m4.
48434         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48435
48436 2008-12-20  Bruno Haible  <bruno@clisp.org>
48437
48438         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48439         /dev/null.
48440         * tests/test-select-in.sh: Likewise.
48441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48442
48443 2008-12-20  Bruno Haible  <bruno@clisp.org>
48444
48445         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48446         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48447         Cygwin 1.5.x.
48448
48449 2008-12-20  Bruno Haible  <bruno@clisp.org>
48450
48451         Ensure mbstate_t is defined on HP-UX 11.11.
48452         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48453         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48454         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48455         AC_USE_SYSTEM_EXTENSIONS.
48456         * modules/fnmatch (Depends-on): Add extensions.
48457         * modules/mbrlen (Depends-on): Likewise.
48458         * modules/mbrtowc (Depends-on): Likewise.
48459         * modules/mbsinit (Depends-on): Likewise.
48460         * modules/mbsrtowcs (Depends-on): Likewise.
48461         * modules/mbswidth (Depends-on): Likewise.
48462         * modules/quotearg (Depends-on): Likewise.
48463         * modules/strftime (Depends-on): Likewise.
48464
48465 2008-12-20  Bruno Haible  <bruno@clisp.org>
48466
48467         Ensure wctob is declared on IRIX 6.5.
48468         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48469         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48470         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48471         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48472         of HAVE_WCTOB.
48473         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48474         HAVE_WCTOB.
48475         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48476
48477 2008-12-19  Bruno Haible  <bruno@clisp.org>
48478
48479         * modules/mbsrtowcs-tests: New file.
48480         * tests/test-mbsrtowcs1.sh: New file.
48481         * tests/test-mbsrtowcs2.sh: New file.
48482         * tests/test-mbsrtowcs3.sh: New file.
48483         * tests/test-mbsrtowcs4.sh: New file.
48484         * tests/test-mbsrtowcs.c: New file.
48485
48486         New module 'mbsrtowcs'.
48487         * lib/wchar.in.h (mbsrtowcs): New declaration.
48488         * lib/mbsrtowcs.c: New file.
48489         * m4/mbsrtowcs.m4: New file.
48490         * modules/mbsrtowcs: New file.
48491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48492         HAVE_MBSRTOWCS.
48493         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48494         HAVE_MBSRTOWCS.
48495         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48496
48497 2008-12-19  Bruno Haible  <bruno@clisp.org>
48498
48499         New module 'mbrlen'.
48500         * lib/wchar.in.h (mbrlen): New declaration.
48501         * lib/mbrlen.c: New file.
48502         * m4/mbrlen.m4: New file.
48503         * modules/mbrlen: New file.
48504         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48505         HAVE_MBRLEN.
48506         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48507         HAVE_MBRLEN.
48508         * doc/posix-functions/mbrlen.texi: Document the new module.
48509
48510 2008-12-19  Bruno Haible  <bruno@clisp.org>
48511
48512         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48513         * modules/mbrtowc (Depends-on): Add verify.
48514         Suggested by Paul Eggert.
48515
48516 2008-12-18  Bruno Haible  <bruno@clisp.org>
48517
48518         * modules/mbsinit-tests: New file.
48519         * tests/test-mbsinit.sh: New file.
48520         * tests/test-mbsinit.c: New file.
48521
48522 2008-12-18  Bruno Haible  <bruno@clisp.org>
48523
48524         * modules/mbrtowc-tests: New file.
48525         * tests/test-mbrtowc1.sh: New file.
48526         * tests/test-mbrtowc2.sh: New file.
48527         * tests/test-mbrtowc3.sh: New file.
48528         * tests/test-mbrtowc4.sh: New file.
48529         * tests/test-mbrtowc.c: New file.
48530
48531         New module 'mbrtowc'.
48532         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48533         mbsinit and mbrtowc.
48534         (mbrtowc): New declaration.
48535         * lib/mbrtowc.c: New file.
48536         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48537         * modules/mbrtowc: New file.
48538         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48539         HAVE_MBRTOWC.
48540         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48541         HAVE_MBRTOWC.
48542         * doc/posix-functions/mbrtowc.texi: Document the new module.
48543
48544 2008-12-18  Bruno Haible  <bruno@clisp.org>
48545
48546         New module 'wctob'.
48547         * lib/wchar.in.h (wctob): New declaration.
48548         * lib/wctob.c: New file.
48549         * m4/wctob.m4: New file.
48550         * modules/wctob: New file.
48551         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48552         HAVE_WCTOB.
48553         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48554         * doc/posix-functions/wctob.texi: Document the new module.
48555
48556 2008-12-18  Bruno Haible  <bruno@clisp.org>
48557
48558         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48559         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48560
48561 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48562
48563         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48564         G. Christensen" <tgc@jupiterrise.com>.
48565
48566         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48567         G. Christensen" <tgc@jupiterrise.com>.
48568
48569         * lib/flock.c: Need to include string.h.  Reported by "Tom
48570         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48571         <ebb9@byu.net>.
48572
48573 2008-12-18  Bruno Haible  <bruno@clisp.org>
48574
48575         * m4/locale-ja.m4: New file, from GNU gettext.
48576
48577 2008-12-17  Bruno Haible  <bruno@clisp.org>
48578
48579         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48580         Suggested by Eric Blake.
48581
48582 2008-12-17  Bruno Haible  <bruno@clisp.org>
48583
48584         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48585
48586 2008-12-17  Bruno Haible  <bruno@clisp.org>
48587
48588         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48589         * modules/mbsinit (Depends-on): Add verify.
48590         Suggested by Paul Eggert.
48591
48592 2008-12-17  Bruno Haible  <bruno@clisp.org>
48593
48594         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48595         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48596         gl_FUNC_MBRTOWC.
48597         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48598         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48599         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48600         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48601         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48602         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48603         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48604         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48605         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48606         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48607         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48608         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48609         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48610         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48611         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48612         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48613         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48614         * modules/trim (configure.ac): Likewise.
48615
48616 2008-12-17  Bruno Haible  <bruno@clisp.org>
48617
48618         * modules/btowc-tests: New file.
48619         * tests/test-btowc1.sh: New file.
48620         * tests/test-btowc2.sh: New file.
48621         * tests/test-btowc.c: New file.
48622
48623         New module 'btowc'.
48624         * lib/wchar.in.h (btowc): New declaration.
48625         * lib/btowc.c: New file.
48626         * m4/btowc.m4: New file.
48627         * modules/btowc: New file.
48628         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48629         HAVE_BTOWC.
48630         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48631         * doc/posix-functions/btowc.texi: Document the new module.
48632
48633 2008-12-17  Bruno Haible  <bruno@clisp.org>
48634
48635         New module 'mbsinit'.
48636         * lib/wchar.in.h (mbsinit): New declaration.
48637         * lib/mbsinit.c: New file.
48638         * m4/mbsinit.m4: New file.
48639         * modules/mbsinit: New file.
48640         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48641         HAVE_MBSINIT.
48642         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48643         HAVE_MBSINIT.
48644         * doc/posix-functions/mbsinit.texi: Document the new module.
48645
48646 2008-12-16  Bruno Haible  <bruno@clisp.org>
48647
48648         * lib/unistd.in.h: Add comment.
48649         * tests/test-environ.c: Don't include <stdlib.h>.
48650
48651 2008-12-16  Bruno Haible  <bruno@clisp.org>
48652
48653         * lib/parse-duration.h (parse_duration): Document return value
48654         convention.
48655         * lib/parse-duration.c: Include specification header first. Add
48656         comments.
48657         (_): Remove macro.
48658         (parse_year_month_day, parse_hour_minute_second): Move side effects
48659         outside of strchr call.
48660         (parse_non_iso8601): Move side effects outside of isspace call.
48661         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48662         call.
48663
48664 2008-12-16  Bruno Haible  <bruno@clisp.org>
48665
48666         * tests/test-parse-duration.sh: Produce no output when the test
48667         succeeds.
48668
48669 2008-12-16  Bruno Haible  <bruno@clisp.org>
48670
48671         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48672         expressions.
48673
48674 2008-12-15  Bruno Haible  <bruno@clisp.org>
48675
48676         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48677         * doc/glibc-functions/flistxattr.texi: Likewise.
48678         * doc/glibc-functions/fopencookie.texi: Likewise.
48679         * doc/glibc-functions/fremovexattr.texi: Likewise.
48680         * doc/glibc-functions/fsetxattr.texi: Likewise.
48681         * doc/glibc-functions/getxattr.texi: Likewise.
48682         * doc/glibc-functions/lgetxattr.texi: Likewise.
48683         * doc/glibc-functions/listxattr.texi: Likewise.
48684         * doc/glibc-functions/llistxattr.texi: Likewise.
48685         * doc/glibc-functions/lremovexattr.texi: Likewise.
48686         * doc/glibc-functions/lsetxattr.texi: Likewise.
48687         * doc/glibc-functions/removexattr.texi: Likewise.
48688         * doc/glibc-functions/setxattr.texi: Likewise.
48689         * doc/posix-functions/open_memstream.texi: Likewise.
48690
48691 2008-12-15  Eric Blake  <ebb9@byu.net>
48692
48693         Update doc for cygwin 1.7.
48694         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48695         functions.
48696         * doc/posix-functions/fchmodat.texi: Likewise.
48697         * doc/posix-functions/fchownat.texi: Likewise.
48698         * doc/posix-functions/fdopendir.texi: Likewise.
48699         * doc/posix-functions/fmemopen.texi: Likewise.
48700         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48701         * doc/posix-functions/fstatat.texi: Likewise.
48702         * doc/posix-functions/futimens.texi: Likewise.
48703         * doc/posix-functions/gai_strerror.texi: Likewise.
48704         * doc/posix-functions/getaddrinfo.texi: Likewise.
48705         * doc/posix-functions/getnameinfo.texi: Likewise.
48706         * doc/posix-functions/if_freenameindex.texi: Likewise.
48707         * doc/posix-functions/if_indextoname.texi: Likewise.
48708         * doc/posix-functions/if_nameindex.texi: Likewise.
48709         * doc/posix-functions/if_nametoindex.texi: Likewise.
48710         * doc/posix-functions/insque.texi: Likewise.
48711         * doc/posix-functions/linkat.texi: Likewise.
48712         * doc/posix-functions/llrint.texi: Likewise.
48713         * doc/posix-functions/llrintf.texi: Likewise.
48714         * doc/posix-functions/llrintl.texi: Likewise.
48715         * doc/posix-functions/lockf.texi: Likewise.
48716         * doc/posix-functions/lrintl.texi: Likewise.
48717         * doc/posix-functions/mkdirat.texi: Likewise.
48718         * doc/posix-functions/mkfifoat.texi: Likewise.
48719         * doc/posix-functions/mknodat.texi: Likewise.
48720         * doc/posix-functions/mq_close.texi: Likewise.
48721         * doc/posix-functions/mq_getattr.texi: Likewise.
48722         * doc/posix-functions/mq_notify.texi: Likewise.
48723         * doc/posix-functions/mq_open.texi: Likewise.
48724         * doc/posix-functions/mq_receive.texi: Likewise.
48725         * doc/posix-functions/mq_send.texi: Likewise.
48726         * doc/posix-functions/mq_setattr.texi: Likewise.
48727         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48728         * doc/posix-functions/mq_timedsend.texi: Likewise.
48729         * doc/posix-functions/mq_unlink.texi: Likewise.
48730         * doc/posix-functions/open_memstream.texi: Likewise.
48731         * doc/posix-functions/openat.texi: Likewise.
48732         * doc/posix-functions/posix_fadvise.texi: Likewise.
48733         * doc/posix-functions/posix_fallocate.texi: Likewise.
48734         * doc/posix-functions/posix_madvise.texi: Likewise.
48735         * doc/posix-functions/posix_memalign.texi: Likewise.
48736         * doc/posix-functions/posix_openpt.texi: Likewise.
48737         * doc/posix-functions/readlinkat.texi: Likewise.
48738         * doc/posix-functions/remque.texi: Likewise.
48739         * doc/posix-functions/renameat.texi: Likewise.
48740         * doc/posix-functions/rintl.texi: Likewise.
48741         * doc/posix-functions/sem_unlink.texi: Likewise.
48742         * doc/posix-functions/shm_open.texi: Likewise.
48743         * doc/posix-functions/shm_unlink.texi: Likewise.
48744         * doc/posix-functions/signgam.texi: Likewise.
48745         * doc/posix-functions/sigset.texi: Likewise.
48746         * doc/posix-functions/stpcpy.texi: Likewise.
48747         * doc/posix-functions/stpncpy.texi: Likewise.
48748         * doc/posix-functions/strerror.texi: Likewise.
48749         * doc/posix-functions/strtod.texi: Likewise.
48750         * doc/posix-functions/symlinkat.texi: Likewise.
48751         * doc/posix-functions/unlinkat.texi: Likewise.
48752         * doc/posix-functions/utimensat.texi: Likewise.
48753         * doc/glibc-functions/bindresvport.texi: Likewise.
48754         * doc/glibc-functions/dn_expand.texi: Likewise.
48755         * doc/glibc-functions/exp10.texi: Likewise.
48756         * doc/glibc-functions/exp10f.texi: Likewise.
48757         * doc/glibc-functions/fgetxattr.texi: Likewise.
48758         * doc/glibc-functions/flistxattr.texi: Likewise.
48759         * doc/glibc-functions/fopencookie.texi: Likewise.
48760         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48761         * doc/glibc-functions/fremovexattr.texi: Likewise.
48762         * doc/glibc-functions/fsetxattr.texi: Likewise.
48763         * doc/glibc-functions/getifaddrs.texi: Likewise.
48764         * doc/glibc-functions/getxattr.texi: Likewise.
48765         * doc/glibc-functions/lgetxattr.texi: Likewise.
48766         * doc/glibc-functions/listxattr.texi: Likewise.
48767         * doc/glibc-functions/llistxattr.texi: Likewise.
48768         * doc/glibc-functions/lremovexattr.texi: Likewise.
48769         * doc/glibc-functions/lsetxattr.texi: Likewise.
48770         * doc/glibc-functions/pow10.texi: Likewise.
48771         * doc/glibc-functions/pow10f.texi: Likewise.
48772         * doc/glibc-functions/rcmd_af.texi: Likewise.
48773         * doc/glibc-functions/removexattr.texi: Likewise.
48774         * doc/glibc-functions/res_init.texi: Likewise.
48775         * doc/glibc-functions/res_mkquery.texi: Likewise.
48776         * doc/glibc-functions/res_query.texi: Likewise.
48777         * doc/glibc-functions/res_querydomain.texi: Likewise.
48778         * doc/glibc-functions/res_send.texi: Likewise.
48779         * doc/glibc-functions/rresvport_af.texi: Likewise.
48780         * doc/glibc-functions/setxattr.texi: Likewise.
48781         * doc/glibc-functions/strcasestr.texi: Likewise.
48782
48783 2008-12-15  Bruno Haible  <bruno@clisp.org>
48784
48785         Fix compilation error on OSF/1 4.0.
48786         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48787         <sys/time.h>, simply delegate to the system header.
48788         Reported by Daniel Richard G. <oss@teragram.com>.
48789
48790 2008-12-15  Bruno Haible  <bruno@clisp.org>
48791
48792         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48793         * doc/posix-functions/fchmodat.texi: Likewise.
48794         * doc/posix-functions/fchownat.texi: Likewise.
48795         * doc/posix-functions/fdopendir.texi: Likewise.
48796         * doc/posix-functions/fstatat.texi: Likewise.
48797         * doc/posix-functions/mkdirat.texi: Likewise.
48798         * doc/posix-functions/unlinkat.texi: Likewise.
48799
48800 2008-12-14  Bruno Haible  <bruno@clisp.org>
48801
48802         Update doc for POSIX:2008.
48803         * doc/posix-functions/faccessat.texi: New file.
48804         * doc/posix-functions/fchmodat.texi: New file.
48805         * doc/posix-functions/fchownat.texi: New file.
48806         * doc/posix-functions/fdopendir.texi: New file.
48807         * doc/posix-functions/fstatat.texi: New file.
48808         * doc/posix-functions/futimens.texi: New file.
48809         * doc/posix-functions/linkat.texi: New file.
48810         * doc/posix-functions/mkdirat.texi: New file.
48811         * doc/posix-functions/mkfifoat.texi: New file.
48812         * doc/posix-functions/mknodat.texi: New file.
48813         * doc/posix-functions/open_wmemstream.texi: New file.
48814         * doc/posix-functions/openat.texi: New file.
48815         * doc/posix-functions/psiginfo.texi: New file.
48816         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48817         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48818         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48819         * doc/posix-functions/readlinkat.texi: New file.
48820         * doc/posix-functions/renameat.texi: New file.
48821         * doc/posix-functions/strerror_l.texi: New file.
48822         * doc/posix-functions/symlinkat.texi: New file.
48823         * doc/posix-functions/unlinkat.texi: New file.
48824         * doc/posix-functions/utimensat.texi: New file.
48825         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48826
48827 2008-12-14  Bruno Haible  <bruno@clisp.org>
48828
48829         Update doc for POSIX:2008.
48830         * doc/posix-functions/alphasort.texi: Renamed from
48831         doc/glibc-functions/alphasort.texi.
48832         * doc/posix-functions/dirfd.texi: Renamed from
48833         doc/glibc-functions/dirfd.texi.
48834         * doc/posix-functions/dprintf.texi: Renamed from
48835         doc/glibc-functions/dprintf.texi.
48836         * doc/posix-functions/duplocale.texi: Renamed from
48837         doc/glibc-functions/duplocale.texi.
48838         * doc/posix-functions/fexecve.texi: Renamed from
48839         doc/glibc-functions/fexecve.texi.
48840         * doc/posix-functions/fmemopen.texi: Renamed from
48841         doc/glibc-functions/fmemopen.texi.
48842         * doc/posix-functions/freelocale.texi: Renamed from
48843         doc/glibc-functions/freelocale.texi.
48844         * doc/posix-functions/getdate_err.texi: Renamed from
48845         doc/glibc-functions/getdate_err.texi.
48846         * doc/posix-functions/isalnum_l.texi: Renamed from
48847         doc/glibc-functions/isalnum_l.texi.
48848         * doc/posix-functions/isalpha_l.texi: Renamed from
48849         doc/glibc-functions/isalpha_l.texi.
48850         * doc/posix-functions/isblank_l.texi: Renamed from
48851         doc/glibc-functions/isblank_l.texi.
48852         * doc/posix-functions/iscntrl_l.texi: Renamed from
48853         doc/glibc-functions/iscntrl_l.texi.
48854         * doc/posix-functions/isdigit_l.texi: Renamed from
48855         doc/glibc-functions/isdigit_l.texi.
48856         * doc/posix-functions/isgraph_l.texi: Renamed from
48857         doc/glibc-functions/isgraph_l.texi.
48858         * doc/posix-functions/islower_l.texi: Renamed from
48859         doc/glibc-functions/islower_l.texi.
48860         * doc/posix-functions/isprint_l.texi: Renamed from
48861         doc/glibc-functions/isprint_l.texi.
48862         * doc/posix-functions/ispunct_l.texi: Renamed from
48863         doc/glibc-functions/ispunct_l.texi.
48864         * doc/posix-functions/isspace_l.texi: Renamed from
48865         doc/glibc-functions/isspace_l.texi.
48866         * doc/posix-functions/isupper_l.texi: Renamed from
48867         doc/glibc-functions/isupper_l.texi.
48868         * doc/posix-functions/iswalnum_l.texi: Renamed from
48869         doc/glibc-functions/iswalnum_l.texi.
48870         * doc/posix-functions/iswalpha_l.texi: Renamed from
48871         doc/glibc-functions/iswalpha_l.texi.
48872         * doc/posix-functions/iswblank_l.texi: Renamed from
48873         doc/glibc-functions/iswblank_l.texi.
48874         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48875         doc/glibc-functions/iswcntrl_l.texi.
48876         * doc/posix-functions/iswctype_l.texi: Renamed from
48877         doc/glibc-functions/iswctype_l.texi.
48878         * doc/posix-functions/iswdigit_l.texi: Renamed from
48879         doc/glibc-functions/iswdigit_l.texi.
48880         * doc/posix-functions/iswgraph_l.texi: Renamed from
48881         doc/glibc-functions/iswgraph_l.texi.
48882         * doc/posix-functions/iswlower_l.texi: Renamed from
48883         doc/glibc-functions/iswlower_l.texi.
48884         * doc/posix-functions/iswprint_l.texi: Renamed from
48885         doc/glibc-functions/iswprint_l.texi.
48886         * doc/posix-functions/iswpunct_l.texi: Renamed from
48887         doc/glibc-functions/iswpunct_l.texi.
48888         * doc/posix-functions/iswspace_l.texi: Renamed from
48889         doc/glibc-functions/iswspace_l.texi.
48890         * doc/posix-functions/iswupper_l.texi: Renamed from
48891         doc/glibc-functions/iswupper_l.texi.
48892         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48893         doc/glibc-functions/iswxdigit_l.texi.
48894         * doc/posix-functions/isxdigit_l.texi: Renamed from
48895         doc/glibc-functions/isxdigit_l.texi.
48896         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48897         doc/glibc-functions/mbsnrtowcs.texi.
48898         * doc/posix-functions/mkdtemp.texi: Renamed from
48899         doc/glibc-functions/mkdtemp.texi.
48900         * doc/posix-functions/newlocale.texi: Renamed from
48901         doc/glibc-functions/newlocale.texi.
48902         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48903         doc/glibc-functions/nl_langinfo_l.texi.
48904         * doc/posix-functions/open_memstream.texi: Renamed from
48905         doc/glibc-functions/open_memstream.texi.
48906         * doc/posix-functions/opterr.texi: Renamed from
48907         doc/glibc-functions/opterr.texi.
48908         * doc/posix-functions/optind.texi: Renamed from
48909         doc/glibc-functions/optind.texi.
48910         * doc/posix-functions/optopt.texi: Renamed from
48911         doc/glibc-functions/optopt.texi.
48912         * doc/posix-functions/psignal.texi: Renamed from
48913         doc/glibc-functions/psignal.texi.
48914         * doc/posix-functions/scandir.texi: Renamed from
48915         doc/glibc-functions/scandir.texi.
48916         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48917         doc/glibc-functions/sched_get_priority_min.texi.
48918         * doc/posix-functions/signgam.texi: Renamed from
48919         doc/glibc-functions/signgam.texi.
48920         * doc/posix-functions/stpcpy.texi: Renamed from
48921         doc/glibc-functions/stpcpy.texi.
48922         * doc/posix-functions/stpncpy.texi: Renamed from
48923         doc/glibc-functions/stpncpy.texi.
48924         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48925         doc/glibc-functions/strcasecmp_l.texi.
48926         * doc/posix-functions/strcoll_l.texi: Renamed from
48927         doc/glibc-functions/strcoll_l.texi.
48928         * doc/posix-functions/strfmon_l.texi: Renamed from
48929         doc/glibc-functions/strfmon_l.texi.
48930         * doc/posix-functions/strftime_l.texi: Renamed from
48931         doc/glibc-functions/strftime_l.texi.
48932         * doc/posix-functions/strncasecmp_l.texi: Renamed from
48933         doc/glibc-functions/strncasecmp_l.texi.
48934         * doc/posix-functions/strndup.texi: Renamed from
48935         doc/glibc-functions/strndup.texi.
48936         * doc/posix-functions/strnlen.texi: Renamed from
48937         doc/glibc-functions/strnlen.texi.
48938         * doc/posix-functions/strsignal.texi: Renamed from
48939         doc/glibc-functions/strsignal.texi.
48940         * doc/posix-functions/strxfrm_l.texi: Renamed from
48941         doc/glibc-functions/strxfrm_l.texi.
48942         * doc/posix-functions/timer_gettime.texi: Renamed from
48943         doc/glibc-functions/timer_gettime.texi.
48944         * doc/posix-functions/tolower_l.texi: Renamed from
48945         doc/glibc-functions/tolower_l.texi.
48946         * doc/posix-functions/toupper_l.texi: Renamed from
48947         doc/glibc-functions/toupper_l.texi.
48948         * doc/posix-functions/towctrans_l.texi: Renamed from
48949         doc/glibc-functions/towctrans_l.texi.
48950         * doc/posix-functions/towlower_l.texi: Renamed from
48951         doc/glibc-functions/towlower_l.texi.
48952         * doc/posix-functions/towupper_l.texi: Renamed from
48953         doc/glibc-functions/towupper_l.texi.
48954         * doc/posix-functions/uselocale.texi: Renamed from
48955         doc/glibc-functions/uselocale.texi.
48956         * doc/posix-functions/vdprintf.texi: Renamed from
48957         doc/glibc-functions/vdprintf.texi.
48958         * doc/posix-functions/wcpcpy.texi:
48959         Renamed from doc/glibc-functions/wcpcpy.texi.
48960         * doc/posix-functions/wcpncpy.texi: Renamed from
48961         doc/glibc-functions/wcpncpy.texi.
48962         * doc/posix-functions/wcscasecmp.texi: Renamed from
48963         doc/glibc-functions/wcscasecmp.texi.
48964         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
48965         doc/glibc-functions/wcscasecmp_l.texi.
48966         * doc/posix-functions/wcscoll_l.texi: Renamed from
48967         doc/glibc-functions/wcscoll_l.texi.
48968         * doc/posix-functions/wcsdup.texi: Renamed from
48969         doc/glibc-functions/wcsdup.texi.
48970         * doc/posix-functions/wcsncasecmp.texi: Renamed from
48971         doc/glibc-functions/wcsncasecmp.texi.
48972         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
48973         doc/glibc-functions/wcsncasecmp_l.texi.
48974         * doc/posix-functions/wcsnlen.texi: Renamed from
48975         doc/glibc-functions/wcsnlen.texi.
48976         * doc/posix-functions/wcsnrtombs.texi: Renamed from
48977         doc/glibc-functions/wcsnrtombs.texi.
48978         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
48979         doc/glibc-functions/wcsxfrm_l.texi.
48980         * doc/posix-functions/wctrans_l.texi: Renamed from
48981         doc/glibc-functions/wctrans_l.texi.
48982         * doc/posix-functions/wctype_l.texi: Renamed from
48983         doc/glibc-functions/wctype_l.texi.
48984         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48985         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
48986         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
48987         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
48988         these subsections.
48989         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
48990         Remove sections.
48991
48992 2008-12-14  Bruno Haible  <bruno@clisp.org>
48993
48994         Update doc for POSIX:2008.
48995         * doc/posix-functions/*.texi: Update URL of POSIX specification.
48996
48997 2008-12-14  Bruno Haible  <bruno@clisp.org>
48998
48999         Update doc for POSIX:2008.
49000         * doc/pastposix-functions/bcmp.texi: Renamed from
49001         doc/posix-functions/bcmp.texi.
49002         * doc/pastposix-functions/bcopy.texi: Renamed from
49003         doc/posix-functions/bcopy.texi.
49004         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49005         doc/posix-functions/bsd_signal.texi.
49006         * doc/pastposix-functions/bzero.texi: Renamed from
49007         doc/posix-functions/bzero.texi.
49008         * doc/pastposix-functions/ecvt.texi: Renamed from
49009         doc/posix-functions/ecvt.texi.
49010         * doc/pastposix-functions/fcvt.texi: Renamed from
49011         doc/posix-functions/fcvt.texi.
49012         * doc/pastposix-functions/ftime.texi: Renamed from
49013         doc/posix-functions/ftime.texi.
49014         * doc/pastposix-functions/gcvt.texi: Renamed from
49015         doc/posix-functions/gcvt.texi.
49016         * doc/pastposix-functions/getcontext.texi: Renamed from
49017         doc/posix-functions/getcontext.texi.
49018         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49019         doc/posix-functions/gethostbyaddr.texi.
49020         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49021         doc/posix-functions/gethostbyname.texi.
49022         * doc/pastposix-functions/getwd.texi: Renamed from
49023         doc/posix-functions/getwd.texi.
49024         * doc/pastposix-functions/h_errno.texi: Renamed from
49025         doc/posix-functions/h_errno.texi.
49026         * doc/pastposix-functions/index.texi: Renamed from
49027         doc/posix-functions/index.texi.
49028         * doc/pastposix-functions/makecontext.texi: Renamed from
49029         doc/posix-functions/makecontext.texi.
49030         * doc/pastposix-functions/mktemp.texi: Renamed from
49031         doc/posix-functions/mktemp.texi.
49032         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49033         doc/posix-functions/pthread_attr_getstackaddr.texi.
49034         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49035         doc/posix-functions/pthread_attr_setstackaddr.texi.
49036         * doc/pastposix-functions/rindex.texi: Renamed from
49037         doc/posix-functions/rindex.texi.
49038         * doc/pastposix-functions/scalb.texi: Renamed from
49039         doc/posix-functions/scalb.texi.
49040         * doc/pastposix-functions/setcontext.texi: Renamed from
49041         doc/posix-functions/setcontext.texi.
49042         * doc/pastposix-functions/swapcontext.texi: Renamed from
49043         doc/posix-functions/swapcontext.texi.
49044         * doc/pastposix-functions/ualarm.texi: Renamed from
49045         doc/posix-functions/ualarm.texi.
49046         * doc/pastposix-functions/usleep.texi: Renamed from
49047         doc/posix-functions/usleep.texi.
49048         * doc/pastposix-functions/vfork.texi: Renamed from
49049         doc/posix-functions/vfork.texi.
49050         * doc/pastposix-functions/wcswcs.texi: Renamed from
49051         doc/posix-functions/wcswcs.texi.
49052         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49053         (Function Substitutes): Update.
49054
49055 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49056
49057         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49058         m4/strerror.m4.
49059
49060 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49061             Bruno Haible  <bruno@clisp.org>
49062
49063         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49064
49065 2008-12-13  Bruno Haible  <bruno@clisp.org>
49066
49067         * modules/strtoull (Depends-on): Remove unistd.
49068
49069 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49070
49071         * modules/strtoull (Depends-on): Add stdlib.
49072
49073 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49074
49075         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49076
49077 2008-12-10  Jim Meyering  <meyering@redhat.com>
49078
49079         gl_ASSERT: don't say assertions are disabled when they're not
49080         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49081         "checking whether to enable assertions... no", when they are in
49082         fact enabled.  This is solely a bug in the output of configure.
49083         In spite of saying "no", NDEBUG was not defined in that case.
49084         Also, as noted by Eric Blake, leave assertions enabled upon
49085         --enable-assert=INVALID.
49086
49087 2008-12-10  Bruno Haible  <bruno@clisp.org>
49088
49089         Change MODULES.html to refer to POSIX:2008 where possible.
49090         * MODULES.html.sh (POSIX2008_URL): New variable.
49091         (posix_headers): Remove sys/timeb, ucontext.
49092         (posix2001_headers): New variable.
49093         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49094         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49095         index, makecontext, mktemp, pthread_attr_getstackaddr,
49096         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49097         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49098         (posix2001_functions): New variable.
49099         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49100         otherwise.
49101
49102 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49103
49104         add missing include to parse-duration.c
49105         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49106         * modules/parse-duration (Depends-on): Add xalloc.
49107
49108         fix sed script reading maint.mk
49109         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49110         (syntax-check-rules): Use it.
49111
49112 2008-12-09  Bruno Haible  <bruno@clisp.org>
49113
49114         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49115         MacOS X 10.4/PowerPC.
49116         Reported by Simon Josefsson.
49117
49118 2008-12-08  Jim Meyering  <meyering@redhat.com>
49119
49120         work around mingw's lack of some S_IF definitions
49121         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49122         Reported by Simon Josefsson.
49123
49124 2008-12-08  Bruno Haible  <bruno@clisp.org>
49125
49126         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49127         applied to variables. Needed on MacOS X 10.4/PowerPC.
49128         Reported by Simon Josefsson.
49129
49130 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49131         and Eric Blake  <ebb9@byu.net>
49132
49133         assert: honor --enable-assert
49134         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49135         order to honor --enable-assert, rather than treating it as a
49136         synonym for --disable-assert.
49137
49138 2008-12-08  Jim Meyering  <meyering@redhat.com>
49139
49140         * lib/posixtm.c: Remove now-useless declaration of mktime.
49141
49142         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49143
49144 2008-12-07  Bruno Haible  <bruno@clisp.org>
49145
49146         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49147         test_once): Mark functions as static.
49148         * tests/test-tls.c (test_tls): Likewise.
49149
49150 2008-12-07  Bruno Haible  <bruno@clisp.org>
49151
49152         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49153         iconv_register_autodetect.
49154
49155 2008-12-07  Jim Meyering  <meyering@redhat.com>
49156
49157         posixtm.c: avoid a warning
49158         * lib/posixtm.c (posixtime): Don't initialize tm0.
49159         It's no longer needed to placate gcc4's -Wuninitialized,
49160         and the attempt to placate would elicit a new warning.
49161
49162         unicodeio.c: mark unused parameters
49163         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49164         (fallback_failure_callback): Likewise.
49165
49166 2008-12-07  Bruno Haible  <bruno@clisp.org>
49167
49168         * gnulib-tool (func_create_testdir): When building the tests
49169         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49170         Reported by Simon Josefsson.
49171
49172 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49173
49174         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49175
49176 2008-12-06  Bruno Haible  <bruno@clisp.org>
49177
49178         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49179         Suggested by Eric Blake.
49180
49181 2008-12-06  Bruno Haible  <bruno@clisp.org>
49182
49183         Fix a c-stack test failure on MacOS X.
49184         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49185         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49186         handler for SIGBUS as well.
49187         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49188         install a signal handler for SIGBUS as well.
49189         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49190
49191 2008-12-06  Bruno Haible  <bruno@clisp.org>
49192
49193         Advocacy documentation.
49194         * doc/gnulib-intro.texi (Benefits): New section.
49195         * doc/gnulib.texi: Update.
49196
49197 2008-12-06  Bruno Haible  <bruno@clisp.org>
49198
49199         Document the 'manywarnings' module.
49200         * doc/manywarnings.texi: New file.
49201         * doc/gnulib.texi: Include it.
49202
49203 2008-12-05  Eric Blake  <ebb9@byu.net>
49204
49205         tests: silence some gcc warnings
49206         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49207         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49208         type mismatches.
49209
49210 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49211             Bruno Haible  <bruno@clisp.org>
49212
49213         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49214
49215 2008-11-29  Jim Meyering  <meyering@redhat.com>
49216
49217         unicodeio.c: mark unused parameters
49218         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49219         (fallback_failure_callback): Likewise.
49220
49221         fts: fix a thinko
49222         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49223         (set_stat_type): Return S_IF*-valued "type" directly.
49224         Prompted by James Youngman's spotting a related bug.
49225         Confirmed by further testing through find.
49226
49227         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49228         * lib/fts.c (D_TYPE): Define.
49229         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49230         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49231         (s_ifmt_shift_bits): New function.
49232         (set_stat_type): New function.
49233         (fts_build): When not calling fts_stat, call set_stat_type
49234         to propagate dirent.d_type info to fts_read caller.
49235         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49236         fts_statp->st_mode type information may be valid.
49237
49238 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49239
49240         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49241         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49242         <sds@gnu.org>.
49243
49244 2008-11-20  Bruno Haible  <bruno@clisp.org>
49245
49246         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49247         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49248         INCLUDE_NEXT.
49249         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49250         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49251         * modules/math (Makefile.am): Substitute
49252         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49253         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49254
49255 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49256             Bruno Haible  <bruno@clisp.org>
49257
49258         * lib/stdint.in.h: Define all type macros so that their expansion is
49259         a single typedef'ed token. Fixes a compilation failure in Boost which
49260         does "using ::int8_t;".
49261
49262 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49263
49264         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49265         gl_MANYWARN_ALL_GCC.
49266         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49267         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49268         * modules/manywarnings: New file.
49269         * MODULES.html.sh: Mention manywarnings module.
49270
49271 2008-11-18  Bruno Haible  <bruno@clisp.org>
49272
49273         * doc/gnulib-tool.texi (Unit tests): New section.
49274
49275 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49276
49277         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49278         paths like 'lib/po/foo.po'.
49279
49280 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49281
49282         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49283         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49284
49285 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49286
49287         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49288         parameter works.
49289
49290 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49291
49292         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49293
49294 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49295
49296         * modules/parse-duration-tests: New file.
49297         * tests/test-parse-duration.sh: New file.
49298         * tests/test-parse-duration.c: New file.
49299
49300         New module 'parse-duration'.
49301         * lib/parse-duration.h: New file.
49302         * lib/parse-duration.c: New file.
49303         * modules/parse-duration: New file.
49304
49305 2008-11-17  Bruno Haible  <bruno@clisp.org>
49306
49307         * tests/test-select-out.sh: Comment out the first pipe test.
49308         Reported by Simon Josefsson.
49309
49310 2008-11-17  Bruno Haible  <bruno@clisp.org>
49311
49312         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49313         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49314         gl_HOSTENT.
49315
49316 2008-11-17  Bruno Haible  <bruno@clisp.org>
49317
49318         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49319         -lnetwork and -lnet. Needed for Haiku and BeOS.
49320
49321 2008-11-16  Bruno Haible  <bruno@clisp.org>
49322
49323         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49324
49325 2008-11-16  Bruno Haible  <bruno@clisp.org>
49326
49327         Avoid test failure on Haiku.
49328         * tests/test-fsync.c: Include <errno.h>.
49329         (main): Don't require that fsync (0) fails.
49330
49331 2008-11-15  Bruno Haible  <bruno@clisp.org>
49332
49333         New module 'hostent'.
49334         * modules/hostent: New file.
49335         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49336
49337 2008-11-15  Bruno Haible  <bruno@clisp.org>
49338
49339         New module 'servent'.
49340         * modules/servent: New file.
49341         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49342
49343 2008-11-15  Bruno Haible  <bruno@clisp.org>
49344
49345         Avoid generating same test program with two different rules.
49346         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49347         test-frexp to test-frexp-nolibm.
49348         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49349         test-frexpl to test-frexpl-nolibm.
49350
49351 2008-11-15  Bruno Haible  <bruno@clisp.org>
49352
49353         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49354         $(FREXPL_LIBM).
49355
49356 2008-11-15  Bruno Haible  <bruno@clisp.org>
49357
49358         * lib/netdb.in.h: Activate the definitions also when the system's
49359         <netdb.h> has 'struct addrinfo'.
49360         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49361         EAI_OVERFLOW or AI_NUMERICSERV.
49362         * doc/posix-headers/netdb.texi: Document the problem.
49363
49364 2008-11-15  Bruno Haible  <bruno@clisp.org>
49365
49366         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49367
49368         Make the 'sched' module work on platforms where <sched.h> exists but
49369         is incomplete (such as Haiku).
49370         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49371         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49372         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49373         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49374         HAVE_STRUCT_SCHED_PARAM.
49375         * modules/sched (Depends-on): Add include_next.
49376         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49377         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49378         * doc/posix-headers/sched.texi: Document the issue.
49379
49380 2008-11-13  Jim Meyering  <meyering@redhat.com>
49381
49382         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49383         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49384         test would fail due to the difference in the Report bugs to ...
49385         line.  The expected address is empty, "<>", while the actual
49386         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49387
49388 2008-11-12  Bruno Haible  <bruno@clisp.org>
49389
49390         lstat: don't compile lstat.c on systems lacking lstat
49391         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49392         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49393         Reported by Daniel P. Berrange via Jim Meyering.
49394
49395 2008-11-12  Jim Meyering  <meyering@redhat.com>
49396
49397         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49398
49399 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49400
49401         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49402         instead.
49403
49404 2008-11-12  Bruno Haible  <bruno@clisp.org>
49405
49406         * lib/unicodeio.c: Include unistr.h.
49407         (utf8_wctomb): Remove function.
49408         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49409
49410 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49411
49412         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49413         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49414         <bruno@clisp.org>.
49415         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49416
49417 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49418
49419         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49420         * doc/gnulib.texi: Add section for warnings.
49421
49422 2008-11-11  Bruno Haible  <bruno@clisp.org>
49423
49424         * lib/sockets.h: Add a comment.
49425
49426 2008-11-11  Karl Berry  <karl@gnu.org>
49427
49428         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49429
49430 2008-11-11  Eric Blake  <ebb9@byu.net>
49431
49432         fdl.texi: avoid git symlinks
49433         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49434
49435 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49436
49437         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49438
49439 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49440
49441         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49442         (gl_WARN_ADD): Substitute $2 if literal.
49443
49444 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49445
49446         * m4/warning.m4: Remove.
49447
49448 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49449
49450         * m4/warnings.m4: Almost complete rewrite. :-)
49451
49452 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49453
49454         * modules/warnings: New module.
49455         * m4/warnings.m4: New file.
49456         * MODULES.html.sh: Mention warnings module.
49457         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49458         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49459
49460 2008-11-10  Eric Blake  <ebb9@byu.net>
49461
49462         fdl.texi: make a symlink to the latest version
49463         * doc/standards.texi: Revert today's earlier change.
49464         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49465         * doc/fdl.texi: ...and replace this with a symlink to the newer
49466         fdl-1.3.texi.
49467
49468 2008-11-10  Bruno Haible  <bruno@clisp.org>
49469
49470         * tests/test-select-fd.c (main): Accept the result file name as fourth
49471         argument.
49472         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49473         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49474
49475 2008-11-10  Bruno Haible  <bruno@clisp.org>
49476
49477         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49478         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49479         as autoconf-substituted macros.
49480         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49481         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49482         gl_NETDB_H_DEFAULTS. Set these variables.
49483         * modules/netdb (Makefile.am): Substitute these variables.
49484
49485 2008-11-10  Eric Blake  <ebb9@byu.net>
49486
49487         standards.texi: include correct file for FDL 1.3
49488         * doc/standards.texi (GNU Free Documentation License): Change
49489         include file to pull in FDL 1.3, not 1.2.
49490
49491         fdl.texi: revert accidental change to license
49492         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49493
49494 2008-11-10  Bruno Haible  <bruno@clisp.org>
49495
49496         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49497         cross-compiling guesses also when the native compile gives no result.
49498
49499 2008-11-10  Bruno Haible  <bruno@clisp.org>
49500
49501         * lib/spawni.c (__spawni): Force variable into the stack.
49502
49503 2008-11-10  Bruno Haible  <bruno@clisp.org>
49504
49505         Add support for Haiku.
49506         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49507         glibc and BeOS, but also on Haiku.
49508         * lib/fpurge.c (fpurge): Likewise.
49509         * lib/freadable.c (freadable): Likewise.
49510         * lib/freadahead.c (freadahead): Likewise.
49511         * lib/freading.c (freading): Likewise.
49512         * lib/freadptr.c (freadptr): Likewise.
49513         * lib/freadseek.c (freadptrinc): Likewise.
49514         * lib/fseeko.c (rpl_fseeko): Likewise.
49515         * lib/fseterr.c (fseterr): Likewise.
49516         * lib/fwritable.c (fwritable): Likewise.
49517         * lib/fwriting.c (fwriting): Likewise.
49518         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49519
49520 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49521
49522         * lib/config.charset: Treat Haiku like BeOS.
49523
49524 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49525
49526         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49527         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49528
49529 2008-11-08  Bruno Haible  <bruno@clisp.org>
49530
49531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49532         AC_CACHE_CHECK.
49533
49534 2008-11-08  Bruno Haible  <bruno@clisp.org>
49535
49536         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49537
49538 2008-11-08  Bruno Haible  <bruno@clisp.org>
49539
49540         * tests/test-select-fd.c: New file.
49541         * tests/test-select-in.sh: New file.
49542         * tests/test-select-out.sh: New file.
49543         * tests/test-select-stdin.c: New file.
49544         * modules/select-tests (Files): Add the new files.
49545         (Depends-on): Add gettimeofday.
49546         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49547         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49548         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49549
49550 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49551             Bruno Haible  <bruno@clisp.org>
49552
49553         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49554
49555 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49556
49557         * build-aux/pmccabe2html: Added support for C++ source files.
49558
49559 2008-11-05  Ben Pfaff  <blp@gnu.org>
49560
49561         Fix lib/close.c build on Windows.
49562         * modules/close (Files): Add lib/w32sock.h.
49563
49564 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49565
49566         Accept Bison's NEWS format.
49567         * build-aux/announce-gen (print_news_deltas): Tweak
49568         $re_prefix.
49569
49570 2008-11-04  Bruno Haible  <bruno@clisp.org>
49571
49572         * modules/random_r (Maintainer): Add glibc.
49573
49574 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49575
49576         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49577         by karl@freefriends.org (Karl Berry).
49578         * doc/alloca.texi: Likewise.
49579         * doc/c-ctype.texi: Likewise.
49580         * doc/c-strcase.texi: Likewise.
49581         * doc/c-strcaseeq.texi: Likewise.
49582         * doc/c-strcasestr.texi: Likewise.
49583         * doc/c-strstr.texi: Likewise.
49584         * doc/c-strtod.texi: Likewise.
49585         * doc/c-strtold.texi: Likewise.
49586         * doc/ctime.texi: Likewise.
49587         * doc/error.texi: Likewise.
49588         * doc/fdl.texi: Likewise.
49589         * doc/gcd.texi: Likewise.
49590         * doc/getdate.texi: Likewise.
49591         * doc/gnulib-intro.texi: Likewise.
49592         * doc/gnulib-tool.texi: Likewise.
49593         * doc/gnulib.texi: Likewise.
49594         * doc/inet_ntoa.texi: Likewise.
49595         * doc/maintain.texi: Likewise.
49596         * doc/make-stds.texi: Likewise.
49597         * doc/quote.texi: Likewise.
49598         * doc/regexprops-generic.texi: Likewise.
49599         * doc/standards.texi: Likewise.
49600         * doc/verify.texi: Likewise.
49601         * doc/visibility.texi: Likewise.
49602         * doc/gnulib.texi (GNU Free Documentation License): Include
49603         fdl-1.3.texi instead of fdl.texi.
49604
49605 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49606
49607         * doc/fdl-1.3.texi: New file, from
49608         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49609         * modules/fdl-1.3: Add.
49610         * MODULES.html.sh: Add fdl-1.3.
49611
49612 2008-11-03  Bruno Haible  <bruno@clisp.org>
49613
49614         Make determination of absolute name of header file work with AIX xlc.
49615         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49616         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49617         preprocessing.
49618         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49619         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49620
49621 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49622
49623         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49624         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49625         <ludo@gnu.org>.
49626
49627 2008-11-02  Bruno Haible  <bruno@clisp.org>
49628
49629         Mark 'strpbrk' obsolete.
49630         * modules/strpbrk (Status, Notice): New sections.
49631         * modules/strtok_r (Depends-on): Add strpbrk.
49632
49633 2008-11-02  Bruno Haible  <bruno@clisp.org>
49634
49635         Mark 'strdup' obsolete.
49636         * modules/strdup (Status, Notice): New sections.
49637         * modules/findprog (Depends-on): Add strdup.
49638         * modules/getaddrinfo (Depends-on): Likewise.
49639         * modules/localename (Depends-on): Likewise.
49640         * modules/relocatable-lib (Depends-on): Likewise.
49641         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49642         * modules/relocatable-prog (Depends-on): Likewise.
49643         * modules/trim (Depends-on): Likewise.
49644         * modules/unictype/gen-ctype (Depends-on): Likewise.
49645         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49646
49647 2008-11-02  Bruno Haible  <bruno@clisp.org>
49648
49649         Mark 'strcspn' obsolete.
49650         * modules/strcspn (Status, Notice): New sections.
49651
49652 2008-11-02  Bruno Haible  <bruno@clisp.org>
49653
49654         Mark 'rmdir' obsolete.
49655         * modules/rmdir (Status, Notice): New sections.
49656         * modules/clean-temp (Depends-on): Add rmdir.
49657         * modules/openat (Depends-on): Likewise.
49658
49659 2008-11-02  Bruno Haible  <bruno@clisp.org>
49660
49661         Mark 'raise' obsolete.
49662         * modules/raise (Status, Notice): New sections.
49663         (Include): Specify <signal.h>.
49664         * modules/stdio (Depends-on): Add raise.
49665         * modules/write (Depends-on): Likewise.
49666
49667 2008-11-02  Bruno Haible  <bruno@clisp.org>
49668
49669         Mark 'memset' obsolete.
49670         * modules/memset (Status, Notice): New sections.
49671
49672 2008-11-02  Bruno Haible  <bruno@clisp.org>
49673
49674         Mark 'memmove' obsolete.
49675         * modules/memmove (Status, Notice): New sections.
49676         * modules/argp (Depends-on): Add memmove.
49677         * modules/argz (Depends-on): Likewise.
49678         * modules/canonicalize (Depends-on): Likewise.
49679         * modules/canonicalize-lgpl (Depends-on): Likewise.
49680         * modules/fts (Depends-on): Likewise.
49681         * modules/getcwd (Depends-on): Likewise.
49682         * modules/human (Depends-on): Likewise.
49683         * modules/regex (Depends-on): Likewise.
49684         * modules/striconveh (Depends-on): Likewise.
49685         * modules/trim (Depends-on): Likewise.
49686         * modules/unistr/u8-move (Depends-on): Likewise.
49687         * modules/unistr/u16-move (Depends-on): Likewise.
49688         * modules/unistr/u32-move (Depends-on): Likewise.
49689
49690 2008-11-02  Bruno Haible  <bruno@clisp.org>
49691
49692         Mark 'memcpy' obsolete.
49693         * modules/memcpy (Status, Notice): New sections.
49694
49695 2008-11-02  Bruno Haible  <bruno@clisp.org>
49696
49697         Mark 'memcmp' obsolete.
49698         * modules/memcmp (Status, Notice): New sections.
49699         * modules/argmatch (Depends-on): Add memchr.
49700         * modules/backupfile (Depends-on): Likewise.
49701         * modules/c-strcasestr (Depends-on): Likewise.
49702         * modules/crypto/des (Depends-on): Likewise.
49703         * modules/csharpcomp (Depends-on): Likewise.
49704         * modules/fnmatch (Depends-on): Likewise.
49705         * modules/git-merge-changelog (Depends-on): Likewise.
49706         * modules/isnand (Depends-on): Likewise.
49707         * modules/isnand-nolibm (Depends-on): Likewise.
49708         * modules/isnanf (Depends-on): Likewise.
49709         * modules/isnanf-nolibm (Depends-on): Likewise.
49710         * modules/isnanl (Depends-on): Likewise.
49711         * modules/isnanl-nolibm (Depends-on): Likewise.
49712         * modules/mbchar (Depends-on): Likewise.
49713         * modules/memcoll (Depends-on): Likewise.
49714         * modules/quotearg (Depends-on): Likewise.
49715         * modules/regex (Depends-on): Likewise.
49716         * modules/relocatable-prog (Depends-on): Likewise.
49717         * modules/same (Depends-on): Likewise.
49718         * modules/signbit (Depends-on): Likewise.
49719         * modules/strcasestr-simple (Depends-on): Likewise.
49720         * modules/unictype/gen-ctype (Depends-on): Likewise.
49721         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49722         * modules/uniname/uniname (Depends-on): Likewise.
49723         * modules/unistr/u8-cmp (Depends-on): Likewise.
49724
49725 2008-11-02  Bruno Haible  <bruno@clisp.org>
49726
49727         Mark 'memchr' obsolete.
49728         * modules/memchr (Status, Notice): New sections.
49729         * modules/argp (Depends-on): Add memchr.
49730         * modules/base64 (Depends-on): Likewise.
49731         * modules/c-strcasestr (Depends-on): Likewise.
49732         * modules/chdir-long (Depends-on): Likewise.
49733         * modules/fnmatch (Depends-on): Likewise.
49734         * modules/getsubopt (Depends-on): Likewise.
49735         * modules/git-merge-changelog (Depends-on): Likewise.
49736         * modules/glob (Depends-on): Likewise.
49737         * modules/strcasestr-simple (Depends-on): Likewise.
49738         * modules/strnlen (Depends-on): Likewise.
49739
49740 2008-11-02  Bruno Haible  <bruno@clisp.org>
49741
49742         Mark 'atexit' obsolete.
49743         * modules/atexit (Status, Notice): New sections.
49744         * modules/chdir-long (Depends-on): Add atexit.
49745         * modules/wait-process (Depends-on): Likewise.
49746
49747 2008-11-02  Bruno Haible  <bruno@clisp.org>
49748
49749         * gnulib-tool: New option --with-obsolete.
49750         (func_usage): Document it.
49751         (func_modules_transitive_closure): Drop obsolete dependencies if
49752         incobsolete is not true.
49753         (func_import): Read and save the incobsolete variable to the cache.
49754
49755 2008-11-02  Bruno Haible  <bruno@clisp.org>
49756
49757         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49758         * gnulib-tool: New option --extract-status.
49759         (func_usage): Document it.
49760         (sed_extract_prog): Recognize it.
49761         (func_get_status): New function.
49762
49763 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49764
49765         * modules/sockets (License): Change from LGPL to LGPLv2+.
49766
49767 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49768
49769         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49770
49771 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49772
49773         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49774         Mention times and sys_times.
49775         * modules/sys_times, modules/sys_times-tests: New modules.
49776         * modules/times, modules/times-tests: Likewise
49777         * m4/sys_times_h.m4: New file.
49778         * lib/sys_times.in.h: Likewise
49779         * lib/times.c: Likewise.
49780         * tests/test-sys_times.c: Likewise.
49781         * tests/test-times.c: Likewise.
49782         * doc/posix-headers/sys_times.texi: Update.
49783         * doc/posix-functions/times.texi: Update.
49784
49785 2008-10-28  Jim Meyering  <meyering@redhat.com>
49786
49787         * modules/tempname (Depends-on): Add lstat.
49788
49789         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49790
49791 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49792
49793         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49794         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49795         using idiom used elsewhere in gnulib.
49796
49797 2008-10-27  Jim Meyering  <meyering@redhat.com>
49798
49799         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49800
49801 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49802
49803         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49804         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49805         programs.
49806         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49807
49808 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49809
49810         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49811
49812 2008-10-27  Bruno Haible  <bruno@clisp.org>
49813
49814         * tests/test-lstat.c: Include <stdio.h>.
49815
49816 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49817
49818         * modules/lstat-tests: New module.
49819         * tests/test-lstat.c: New file.
49820
49821 2008-10-26  Jim Meyering  <meyering@redhat.com>
49822
49823         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49824
49825 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49826             Bruno Haible  <bruno@clisp.org>
49827
49828         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49829         * modules/configmake (Include): Add a note that the include must come
49830         after all system headers.
49831         * lib/javaversion.c: Include configmake.h after all other includes.
49832
49833 2008-10-26  Bruno Haible  <bruno@clisp.org>
49834
49835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49836         HAVE_STRUCT_RANDOM_DATA to 1.
49837         (gl_STDLIB_H): Simplify.
49838
49839 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49840
49841         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49842         substitute HAVE_STRUCT_RANDOM_DATA.
49843         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49844         random_data.
49845         * modules/stdlib (Makefile.am): Substitute
49846         HAVE_STRUCT_RANDOM_DATA.
49847
49848 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49849
49850         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49851         * doc/gnulib-intro.texi (Copyright): Likewise.
49852
49853 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49854
49855         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49856         findings.
49857
49858 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49859             Bruno Haible  <bruno@clisp.org>
49860
49861         * lib/unistd.in.h: Include <winsock2.h>.
49862         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49863         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49864         Provide dummy declarations.
49865         (gethostname): Override.
49866         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49867         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49868         gl_PREREQ_SYS_H_WINSOCK2.
49869         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49870         * doc/posix-functions/gethostname.texi: More details.
49871
49872 2008-10-25  Bruno Haible  <bruno@clisp.org>
49873
49874         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49875         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49876         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49877
49878         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49879         here ...
49880         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49881         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49882         gl_UNISTD_H_DEFAULTS.
49883
49884 2008-10-25  Eric Blake  <ebb9@byu.net>
49885
49886         signbit: avoid spurious compiler failure
49887         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49888         declarations inside function.
49889
49890 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49891             Bruno Haible  <bruno@clisp.org>
49892
49893         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49894         * modules/random_r (Depends-on): Add stdint.
49895
49896 2008-10-24  Bruno Haible  <bruno@clisp.org>
49897
49898         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49899         Eggert.
49900         * modules/strerror (License): Likewise.
49901
49902 2008-10-24  Jim Meyering  <meyering@redhat.com>
49903
49904         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49905         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49906
49907 2008-10-24  Eric Blake  <ebb9@byu.net>
49908
49909         getgroups: fix compilation when getgroups is available
49910         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49911         but with <config.h> override of getgroups disabled.
49912
49913 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49914
49915         * doc/gnulib.texi (Header files): Add note about C++ problems.
49916         Explained by Bruno Haible <bruno@clisp.org>.
49917
49918 2008-10-23  Bruno Haible  <bruno@clisp.org>
49919
49920         Define a dummy SA_NODEFER macro on Interix.
49921         * lib/signal.in.h (SA_NODEFER): Define fallback.
49922         Reported by Aleksey Cheusov <cheusov@tut.by> via
49923         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49924
49925 2008-10-23  Bruno Haible  <bruno@clisp.org>
49926
49927         * modules/freadahead (License): Change to LGPLv2+.
49928         Suggested by Simon Josefsson.
49929
49930 2008-10-23  Jim Meyering  <meyering@redhat.com>
49931
49932         random_r: new module
49933         * modules/random_r: New file.
49934         * m4/random_r.m4: New file.
49935         * lib/random_r.c: New file, from glibc.
49936         * modules/random_r-tests: New file.
49937         * tests/test-random_r.c: New file.
49938         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
49939          Declare.
49940         (RAND_MAX): Define.
49941         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
49942         * modules/stdlib: Substitute them, too.
49943         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
49944         * doc/glibc-functions/initstate_r.texi: Mention the new module.
49945         * doc/glibc-functions/random_r.texi: Likewise.
49946         * doc/glibc-functions/setstate_r.texi: Likewise.
49947         * doc/glibc-functions/srandom_r.texi: Likewise.
49948         * config/srclist.txt: Mention it.
49949
49950 2008-10-23  David Lutterkort  <lutter@redhat.com>
49951
49952         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
49953         link requirement
49954
49955 2008-10-23  Jim Meyering  <meyering@redhat.com>
49956
49957         selinux-h: mark parameters of stub functions as intentionally unused
49958         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
49959         * lib/se-context.in.h: Likewise.
49960
49961 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49962
49963         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
49964
49965 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49966
49967         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
49968
49969 2008-10-22  Eric Blake  <ebb9@byu.net>
49970
49971         glthread/thread: avoid compiler warning
49972         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
49973         Add unreachable abort to silence compiler.
49974
49975 2008-10-22  Eric Blake  <ebb9@byu.net>
49976
49977         netdb: also supply struct addrinfo for cygwin 1.5.x
49978         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
49979         older cygwin.
49980         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
49981         cygwin.
49982         * doc/posix-headers/netdb.texi (netdb.h): Document this.
49983
49984 2008-10-22  Bruno Haible  <bruno@clisp.org>
49985
49986         * users.txt: Update entry about pspp.
49987
49988 2008-10-21  Bruno Haible  <bruno@clisp.org>
49989
49990         Simplification.
49991         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
49992         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
49993
49994         Simplification.
49995         * lib/ioctl.c (ioctl): Don't undefine.
49996         * lib/socket.c (socket): Don't undefine.
49997
49998         Remove unused module indicator macros.
49999         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50000         GNULIB_$1 as a C macro.
50001
50002         * doc/posix-functions/close.texi: Undo last change.
50003         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50004         Windows platforms.
50005
50006 2008-10-21  Bruno Haible  <bruno@clisp.org>
50007
50008         Add gethostname() declaration to <unistd.h>.
50009         * lib/unistd.in.h (gethostname): New declaration.
50010         * lib/gethostname.c: Include <unistd.h>.
50011         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50012         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50014         and HAVE_GETHOSTNAME.
50015         * modules/gethostname (Depends-on): Add unistd.
50016         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50017         (Include): Specify <unistd.h>.
50018         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50019         HAVE_GETHOSTNAME.
50020         * tests/test-gethostname.c: Include <unistd.h> first.
50021
50022 2008-10-21  Bruno Haible  <bruno@clisp.org>
50023
50024         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50025         * modules/select-tests (Depends-on): Likewise.
50026         Reported by Simon Josefsson.
50027
50028 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50029
50030         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50031         * lib/accept.c: New file, based on winsock.c.
50032         * lib/bind.c: New file, based on winsock.c.
50033         * lib/connect.c: New file, based on winsock.c.
50034         * lib/getpeername.c: New file, based on winsock.c.
50035         * lib/getsockname.c: New file, based on winsock.c.
50036         * lib/getsockopt.c: New file, based on winsock.c.
50037         * lib/ioctl.c: New file, based on winsock.c.
50038         * lib/listen.c: New file, based on winsock.c.
50039         * lib/recv.c: New file, based on winsock.c.
50040         * lib/recvfrom.c: New file, based on winsock.c.
50041         * lib/send.c: New file, based on winsock.c.
50042         * lib/sendto.c: New file, based on winsock.c.
50043         * lib/setsockopt.c: New file, based on winsock.c.
50044         * lib/shutdown.c: New file, based on winsock.c.
50045         * lib/socket.c: New file, based on winsock.c.
50046         * lib/w32sock.h: New file, based on winsock.c.
50047         * lib/winsock.c: Remove file.
50048         * modules/accept: Likewise.
50049         * modules/bind: Likewise.
50050         * modules/connect: Likewise.
50051         * modules/getpeername: Likewise.
50052         * modules/getsockname: Likewise.
50053         * modules/getsockopt: Likewise.
50054         * modules/ioctl: Likewise.
50055         * modules/listen: Likewise.
50056         * modules/recv: Likewise.
50057         * modules/recvfrom: Likewise.
50058         * modules/send: Likewise.
50059         * modules/sendto: Likewise.
50060         * modules/setsockopt: Likewise.
50061         * modules/shutdown: Likewise.
50062         * modules/socket: Use socket.c instead of winsock.c.
50063         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50064         * doc/posix-functions/accept.texi: Doc fix.
50065         * doc/posix-functions/bind.texi: Doc fix.
50066         * doc/posix-functions/close.texi: Doc fix.
50067         * doc/posix-functions/connect.texi: Doc fix.
50068         * doc/posix-functions/getpeername.texi: Doc fix.
50069         * doc/posix-functions/getsockname.texi: Doc fix.
50070         * doc/posix-functions/getsockopt.texi: Doc fix.
50071         * doc/posix-functions/ioctl.texi: Doc fix.
50072         * doc/posix-functions/listen.texi: Doc fix.
50073         * doc/posix-functions/recv.texi: Doc fix.
50074         * doc/posix-functions/recvfrom.texi: Doc fix.
50075         * doc/posix-functions/send.texi: Doc fix.
50076         * doc/posix-functions/sendto.texi: Doc fix.
50077         * doc/posix-functions/setsockopt.texi: Doc fix.
50078         * doc/posix-functions/shutdown.texi: Doc fix.
50079         * doc/posix-functions/socket.texi: Doc fix.
50080
50081 2008-10-20  Bruno Haible  <bruno@clisp.org>
50082
50083         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50084         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50085         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50086         as an alias for SIGABRT.
50087         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50088         (sigaction): Map it to SIGABRT.
50089         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50090
50091 2008-10-20  Bruno Haible  <bruno@clisp.org>
50092
50093         * lib/fts.c: Don't include lstat.h.
50094         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50095
50096         Move the lstat() declaration to <sys/stat.h>.
50097         * lib/lstat.h: Remove file.
50098         * lib/sys_stat.in.h: Add special invocation convention.
50099         (lstat): New declaration.
50100         * lib/lstat.c (orig_lstat): New function.
50101         (rpl_lstat): Use orig_lstat instead of lstat.
50102         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50103         AC_C_INLINE. Set REPLACE_LSTAT.
50104         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50105         and REPLACE_LSTAT.
50106         * modules/lstat (Files): Remove lib/lstat.h.
50107         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50108         (Include): Specify <sys/stat.h> instead of lstat.h.
50109         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50110         REPLACE_LSTAT.
50111         * NEWS: Mention the change.
50112
50113 2008-10-20  Bruno Haible  <bruno@clisp.org>
50114
50115         * modules/posix_spawn-tests: New file.
50116         * tests/test-posix_spawn3.c: New file.
50117
50118 2008-10-20  Bruno Haible  <bruno@clisp.org>
50119
50120         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50121         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50122         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50123         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50124         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50125
50126 2008-10-20  Bruno Haible  <bruno@clisp.org>
50127
50128         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50129         of posix_spawn on AIX 5.3.
50130
50131 2008-10-20  Bruno Haible  <bruno@clisp.org>
50132
50133         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50134
50135 2008-10-20  Bruno Haible  <bruno@clisp.org>
50136
50137         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50138         of AC_LANG_PROGRAM.
50139
50140 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50141
50142         * lib/netdb.in.h: Don't define GNU specific constants until they
50143         are supported or needed.  Reported by Bruno Haible
50144         <bruno@clisp.org>.
50145
50146 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50147
50148         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50149
50150 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50151
50152         * lib/getaddrinfo.h: Remove file.
50153         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50154         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50155         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50156         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50157         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50158         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50159         * tests/test-getaddrinfo.c: Likewise.
50160         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50161         * NEWS: Mention change.
50162
50163 2008-10-19  Bruno Haible  <bruno@clisp.org>
50164
50165         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50166
50167 2008-10-19  Bruno Haible  <bruno@clisp.org>
50168
50169         * lib/wait-process.c: Include simply <sys/wait.h>.
50170         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50171         WIFSTOPPED): Remove fallback definitions.
50172         * modules/wait-process (Depends-on): Add sys_wait.
50173
50174         New module 'sys_wait'.
50175         * modules/sys_wait: New file.
50176         * lib/sys_wait.in.h: New file, partially copied from
50177         lib/wait-process.c.
50178         * m4/sys_wait_h.m4: New file.
50179         * doc/posix-headers/sys_wait.texi: Mention the new module.
50180
50181 2008-10-19  Bruno Haible  <bruno@clisp.org>
50182
50183         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50184
50185 2008-10-19  Bruno Haible  <bruno@clisp.org>
50186
50187         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50188         * lib/wait-process.c (WAIT_T): Remove type.
50189         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50190         (wait_subprocess): Update.
50191
50192 2008-10-19  Bruno Haible  <bruno@clisp.org>
50193
50194         New module 'atoll'.
50195         * modules/atoll: New file.
50196         * lib/stdlib.in.h (atoll): New declaration.
50197         * lib/atoll.c: New file, from glibc with modifications.
50198         * m4/atoll.m4: New file.
50199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50200         HAVE_ATOLL.
50201         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50202         * doc/posix-functions/atoll.texi: Mention the new module.
50203
50204 2008-10-19  Bruno Haible  <bruno@clisp.org>
50205
50206         Add strtoull() declaration to <stdlib.h>.
50207         * lib/stdlib.in.h (strtoull): New declaration.
50208         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50209         Set HAVE_STRTOULL.
50210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50211         HAVE_STRTOULL.
50212         * modules/strtoull (Depends-on): Add stdlib.
50213         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50214         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50215         HAVE_STRTOULL.
50216
50217 2008-10-19  Bruno Haible  <bruno@clisp.org>
50218
50219         Add strtoll() declaration to <stdlib.h>.
50220         * lib/stdlib.in.h (strtoll): New declaration.
50221         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50222         Set HAVE_STRTOLL.
50223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50224         HAVE_STRTOLL.
50225         * modules/strtoll (Depends-on): Add stdlib.
50226         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50227         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50228
50229 2008-10-19  Bruno Haible  <bruno@clisp.org>
50230
50231         * modules/bcopy (Depends-on): Add strings.
50232         (Include): Specify <strings.h>.
50233
50234 2008-10-19  Bruno Haible  <bruno@clisp.org>
50235
50236         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50237
50238 2008-10-19  Bruno Haible  <bruno@clisp.org>
50239
50240         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50241         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50242         mingw.
50243
50244 2008-10-19  Bruno Haible  <bruno@clisp.org>
50245
50246         * lib/atanl.c: Don't include isnanl.h.
50247         * lib/cosl.c: Likewise.
50248         * lib/ldexpl.c: Likewise.
50249         * lib/logl.c: Likewise.
50250         * lib/sinl.c: Likewise.
50251         * lib/sqrtl.c: Likewise.
50252         * lib/tanl.c: Likewise.
50253
50254         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50255         * lib/isnanf.h: Remove file.
50256         * lib/isnand.h: Remove file.
50257         * lib/isnanl.h: Remove file.
50258         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50259         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50260         macros.
50261         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50262         HAVE_ISNANF, don't define it as a C macro.
50263         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50264         HAVE_ISNAND, don't define it as a C macro.
50265         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50266         HAVE_ISNANL, don't define it as a C macro.
50267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50268         HAVE_ISNAN[FDL].
50269         * modules/isnanf (Files): Remove lib/isnanf.h.
50270         (Depends-on): Add math.
50271         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50272         (Include): Specify <math.h> instead of isnanf.h.
50273         * modules/isnand (Files): Remove lib/isnand.h.
50274         (Depends-on): Add math.
50275         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50276         (Include): Specify <math.h> instead of isnand.h.
50277         * modules/isnanl (Files): Remove lib/isnanl.h.
50278         (Depends-on): Add math.
50279         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50280         (Include): Specify <math.h> instead of isnanl.h.
50281         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50282         HAVE_ISNAN[FDL].
50283         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50284         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50285         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50286         * NEWS: Mention the change.
50287
50288 2008-10-18  Bruno Haible  <bruno@clisp.org>
50289
50290         Add getusershell(), setusershell(), endusershell() declarations to
50291         <unistd.h>.
50292         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50293         declarations.
50294         * lib/getusershell.c: Include unistd.h.
50295         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50296         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50297         HAVE_GETUSERSHELL.
50298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50299         and HAVE_GETUSERSHELL.
50300         * modules/getusershell (Depends-on): Add unistd, extensions.
50301         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50302         (Include): Specify <unistd.h>.
50303         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50304         HAVE_GETUSERSHELL.
50305
50306 2008-10-18  Bruno Haible  <bruno@clisp.org>
50307
50308         Add a getloadavg() declaration to <stdlib.h>.
50309         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50310         getloadavg declaration.
50311         (getloadavg): New declaration.
50312         * lib/getloadavg.c: Include <stdlib.h> first.
50313         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50314         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50315         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50317         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50318         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50319         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50320         (Include): Specify <stdlib.h>.
50321         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50322         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50323
50324 2008-10-18  Bruno Haible  <bruno@clisp.org>
50325
50326         * lib/dirchownmod.c: Don't include lchmod.h.
50327
50328         Move the lchmod() declaration to <sys/stat.h>.
50329         * lib/lchmod.h: Remove file.
50330         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50331         (lchmod): New declaration, moved here from lib/lchown.h.
50332         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50333         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50334         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50335         and HAVE_LCHMOD.
50336         * modules/lchmod (Files): Remove lib/lchmod.h.
50337         (Depends-on): Add sys_stat, extensions.
50338         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50339         (Include): Specify <sys/stat.h> instead of lchmod.h.
50340         * modules/sys_stat (Depends-on): Add link-warning.
50341         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50342         definition of GL_LINK_WARNING.
50343         * NEWS: Mention the change.
50344
50345 2008-10-18  Bruno Haible  <bruno@clisp.org>
50346
50347         * lib/fchdir.c: Don't include dirfd.h.
50348         * lib/fts.c: Likewise.
50349         * lib/getcwd.c: Likewise.
50350         * lib/glob.c: Likewise.
50351
50352         Move the dirfd() declaration to <dirent.h>.
50353         * lib/dirfd.h: Remove file.
50354         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50355         (dirfd): New declaration.
50356         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50357         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50358         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50359         HAVE_DECL_DIRFD.
50360         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50361         HAVE_DECL_DIRFD.
50362         * modules/dirfd (Files): Remove lib/dirfd.h.
50363         (Depends-on): Add dirent, extensions.
50364         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50365         (Include): Specify <dirent.h> instead of dirfd.h.
50366         * modules/dirent (Depends-on): Add link-warning.
50367         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50368         definition of GL_LINK_WARNING.
50369         * NEWS: Mention the change.
50370
50371 2008-10-18  Bruno Haible  <bruno@clisp.org>
50372
50373         Move the euidaccess() declaration to <unistd.h>.
50374         * lib/euidaccess.h: Remove file.
50375         * lib/unistd.in.h (euidaccess): New declaration.
50376         * lib/euidaccess.c: Don't include euidaccess.h.
50377         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50378         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50380         and HAVE_EUIDACCESS.
50381         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50382         (Depends-on): Add unistd.
50383         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50384         (Include): Specify <unistd.h> instead of euidaccess.h.
50385         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50386         HAVE_EUIDACCESS.
50387         * NEWS: Mention the change.
50388
50389 2008-10-18  Bruno Haible  <bruno@clisp.org>
50390
50391         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50392
50393         Move the getdomainname() declaration to <unistd.h>.
50394         * lib/getdomainname.h: Remove file.
50395         * lib/unistd.in.h (getdomainname): New declaration.
50396         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50397         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50398         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50399         HAVE_GETDOMAINNAME.
50400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50401         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50402         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50403         (Depends-on): Add unistd, extensions.
50404         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50405         (Includes): Specify <unistd.h> instead of getdomainname.h.
50406         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50407         HAVE_GETDOMAINNAME.
50408         * NEWS: Mention the change.
50409
50410 2008-10-18  Bruno Haible  <bruno@clisp.org>
50411
50412         * modules/dirent: New file.
50413         * m4/dirent_h.m4: New file.
50414         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50415         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50416         * modules/fchdir (Files): Remove lib/dirent.in.h.
50417         (Depends-on): Add dirent.
50418         (Makefile.am): Move rules to modules/dirent.
50419         * doc/posix-headers/dirent.texi: Mention the new module.
50420
50421 2008-10-18  Bruno Haible  <bruno@clisp.org>
50422
50423         Avoid -Wunused-parameter warnings in public gnulib header files.
50424         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50425         macro.
50426         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50427
50428 2008-10-18  Bruno Haible  <bruno@clisp.org>
50429
50430         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50431         * doc/glibc-functions/error.texi: Mention the module 'error'.
50432         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50433         * doc/glibc-functions/getdomainname.texi: Mention the module
50434         'getdomainname'.
50435         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50436         * doc/glibc-functions/getpagesize.texi: Mention the module
50437         'getpagesize'.
50438         * doc/glibc-functions/getusershell.texi: Mention the module
50439         'getusershell'.
50440         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50441         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50442         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50443         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50444         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50445         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50446         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50447         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50448         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50449         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50450         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50451         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50452         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50453         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50454
50455 2008-10-17  Bruno Haible  <bruno@clisp.org>
50456
50457         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50458         HP-UX and IRIX, use -0.0L.
50459         * tests/test-ceill.c (minus_zero): Likewise.
50460         * tests/test-floorl.c (minus_zero): Likewise.
50461         * tests/test-frexpl.c (minus_zero): Likewise.
50462         * tests/test-isnan.c (minus_zerol): Likewise.
50463         * tests/test-isnanl.h (minus_zero): Likewise.
50464         * tests/test-ldexpl.c (minus_zero): Likewise.
50465         * tests/test-roundl.c (minus_zero): Likewise.
50466         * tests/test-signbit.c (minus_zerol): Likewise.
50467         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50468         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50469         * tests/test-truncl.c (minus_zero): Likewise.
50470         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50471         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50472         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50473         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50474
50475 2008-10-17  Bruno Haible  <bruno@clisp.org>
50476
50477         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50478         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50479         that it gets activated only for gcc >= 3.0.
50480         * lib/dirent.in.h: Likewise.
50481         * lib/errno.in.h: Likewise.
50482         * lib/fcntl.in.h: Likewise.
50483         * lib/float.in.h: Likewise.
50484         * lib/iconv.in.h: Likewise.
50485         * lib/inttypes.in.h: Likewise.
50486         * lib/locale.in.h: Likewise.
50487         * lib/math.in.h: Likewise.
50488         * lib/netdb.in.h: Likewise.
50489         * lib/netinet_in.in.h: Likewise.
50490         * lib/search.in.h: Likewise.
50491         * lib/signal.in.h: Likewise.
50492         * lib/spawn.in.h: Likewise.
50493         * lib/stdarg.in.h: Likewise.
50494         * lib/stdint.in.h: Likewise.
50495         * lib/stdio.in.h: Likewise.
50496         * lib/stdlib.in.h: Likewise.
50497         * lib/string.in.h: Likewise.
50498         * lib/strings.in.h: Likewise.
50499         * lib/sys_file.in.h: Likewise.
50500         * lib/sys_ioctl.in.h: Likewise.
50501         * lib/sys_select.in.h: Likewise.
50502         * lib/sys_socket.in.h: Likewise.
50503         * lib/sys_stat.in.h: Likewise.
50504         * lib/sys_time.in.h: Likewise.
50505         * lib/sysexits.in.h: Likewise.
50506         * lib/time.in.h: Likewise.
50507         * lib/unistd.in.h: Likewise.
50508         * lib/wchar.in.h: Likewise.
50509         * lib/wctype.in.h: Likewise.
50510         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50511
50512 2008-10-17  Jim Meyering  <meyering@redhat.com>
50513
50514         ignore-value: don't depend on inline module
50515         * modules/ignore-value (Depends-on): Remove 'inline'.
50516         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50517         Suggestion from Bruno Haible.
50518
50519 2008-10-17  Bruno Haible  <bruno@clisp.org>
50520
50521         New implementation of condition variables for Win32.
50522         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50523         (gl_linked_waitqueue_t): New type.
50524         (gl_cond_t): Use it.
50525         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50526         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50527         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50528         (glthread_cond_init_func, glthread_cond_wait_func,
50529         glthread_cond_timedwait_func, glthread_cond_signal_func,
50530         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50531         Reimplemented on the basis of gl_linked_waitqueue_t.
50532         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50533         gl_waitqueue_t.
50534         (gl_rwlock_t): Update.
50535         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50536
50537 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50538
50539         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50540         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50541
50542 2008-10-17  Jim Meyering  <meyering@redhat.com>
50543
50544         ignore-value: new module
50545         * modules/ignore-value: New file.
50546         * lib/ignore-value.h: New file.
50547         * MODULES.html.sh (Compiler warning management): New section,
50548         just for this module.  More to come.
50549
50550 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50551
50552         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50553         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50554         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50555
50556 2008-10-16  Jim Meyering  <meyering@redhat.com>
50557
50558         openat-die.c: avoid 'no previous prototype' warning
50559         * lib/openat-die.c: Include "openat.h".
50560         Reported by Reuben Thomas <rrt@sc3d.org>.
50561
50562 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50563
50564         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50565         * lib/netdb.in.h: Fix typo.
50566         Reported by Bruno Haible  <bruno@clisp.org>
50567
50568         * lib/netdb.in.h: Include sys/socket.h for platforms without
50569         netdb.h, to get structures like hostent on MinGW.
50570         * modules/netdb (Depends-on): Add sys_socket.
50571
50572 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50573
50574         * modules/netdb, modules/netdb-tests: New file.
50575         * m4/netdb_h.m4: New file.
50576         * lib/netdb.in.h: Add, currently just an empty file pending
50577         definitions.
50578         * tests/test-netdb.c: New file.
50579         * doc/posix-headers/netdb.texi: Mention that we replace it if
50580         needed.
50581         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50582         netdb.
50583
50584 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50585
50586         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50587         with code.
50588
50589 2008-10-13  Bruno Haible  <bruno@clisp.org>
50590
50591         * lib/glthread/cond.c (glthread_cond_wait_func,
50592         glthread_cond_timedwait_func): Add a comment.
50593
50594 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50595
50596         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50597         * tests/test-select.c: Likewise,
50598
50599 2008-10-13  Bruno Haible  <bruno@clisp.org>
50600
50601         * lib/glthread/cond.c (glthread_cond_wait_func,
50602         glthread_cond_timedwait_func): Fix variable name.
50603         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50604
50605 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50606
50607         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50608         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50609         struct sockaddr.sa_len.
50610         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50611
50612 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50613
50614         * build-aux/pmccabe2html: Add css and css_url parameters.
50615
50616 2008-10-12  Bruno Haible  <bruno@clisp.org>
50617
50618         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50619         calling aclx_get.
50620         Reported by Rainer Tammer <tammer@tammer.net>.
50621
50622 2008-10-12  Bruno Haible  <bruno@clisp.org>
50623
50624         Use msvcrt aware primitives for creation/termination of Win32 threads.
50625         * lib/glthread/thread.c: Include <process.h>.
50626         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50627         (wrapper_func): Update signature.
50628         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50629
50630 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50631             Bruno Haible  <bruno@clisp.org>
50632
50633         Provide a Win32 implementation of the 'cond' module.
50634         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50635         * lib/glthread/cond.c (glthread_cond_init_func,
50636         glthread_cond_wait_func, glthread_cond_timedwait_func,
50637         glthread_cond_signal_func, glthread_cond_broadcast_func,
50638         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50639         * modules/cond (Dependencies): Add gettimeofday.
50640
50641 2008-10-11  Bruno Haible  <bruno@clisp.org>
50642
50643         Make sleep work on older versions of mingw.
50644         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50645         only whether it exists.
50646         * doc/posix-functions/sleep.texi: Mention the problem with older
50647         versions of mingw.
50648
50649 2008-10-11  Bruno Haible  <bruno@clisp.org>
50650
50651         New module 'shutdown'.
50652         * modules/shutdown: New file.
50653         * lib/sys_socket.in.h (shutdown): New declaration.
50654         * lib/winsock.c (shutdown): New function.
50655         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50656         GNULIB_SHUTDOWN.
50657         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50658         * doc/posix-functions/shutdown.texi: Document the new module.
50659
50660 2008-10-11  Jim Meyering  <meyering@redhat.com>
50661
50662         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50663
50664 2008-10-11  Bruno Haible  <bruno@clisp.org>
50665
50666         New module 'fclose'.
50667         * modules/fclose: New file.
50668         * lib/stdio.in.h (fclose): New declaration.
50669         * lib/fclose.c: New file.
50670         * m4/fclose.m4: New file.
50671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50672         REPLACE_FCLOSE.
50673         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50674         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50675         REPLACE_FCLOSE.
50676         * modules/close (Depends-on): fclose.
50677         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50678
50679 2008-10-11  Bruno Haible  <bruno@clisp.org>
50680
50681         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50682         set errno and don't call _close.
50683
50684 2008-10-10  Bruno Haible  <bruno@clisp.org>
50685
50686         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50687         ACL, not afterwards. Fixes test failure on Cygwin.
50688
50689 2008-10-09  Ben Pfaff  <blp@gnu.org>
50690
50691         * build-aux/announce-gen: Fix gnulib version related part of usage
50692         message.  Die with a useful error message if no tarballs are
50693         found.
50694
50695 2008-10-10  Jim Meyering  <meyering@redhat.com>
50696
50697         bootstrap: use git's --depth=N option only if it's supported
50698         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50699         recognize the --depth option.  Reported by Pádraig Brady.
50700
50701 2008-10-09  Bruno Haible  <bruno@clisp.org>
50702
50703         New module 'ioctl'.
50704         * modules/ioctl: New file.
50705         * lib/sys_socket.in.h (ioctl): Remove declaration.
50706         * lib/winsock.c: Include <sys/ioctl.h>.
50707         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50708         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50709         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50710         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50711         * doc/posix-functions/ioctl.texi: Mention the new module.
50712
50713 2008-10-09  Bruno Haible  <bruno@clisp.org>
50714
50715         New module 'sys_ioctl'.
50716         * lib/sys_ioctl.in.h: New file.
50717         * m4/sys_ioctl_h.m4: New file.
50718         * modules/sys_ioctl: New file.
50719         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50720
50721 2008-10-09  Bruno Haible  <bruno@clisp.org>
50722
50723         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50724         * lib/winsock.c: Include <stdarg.h>.
50725         (rpl_ioctl): Change to second argument 'int' and then varargs.
50726
50727 2008-10-09  Bruno Haible  <bruno@clisp.org>
50728
50729         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50730         when the sys_socket module is present and the system has <winsock2.h>.
50731
50732 2008-10-09  Bruno Haible  <bruno@clisp.org>
50733
50734         * doc/posix-functions/close.texi: Mention module 'close' instead of
50735         module 'sys_socket'.
50736
50737 2008-10-09  Bruno Haible  <bruno@clisp.org>
50738
50739         * doc/glibc-headers/sys_ioctl.texi: New file.
50740         * doc/gnulib.texi: Include it.
50741
50742 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50743             Bruno Haible  <bruno@clisp.org>
50744
50745         Combine the two replacements of 'close'.
50746         * lib/sys_socket.in.h (close): Define to a reminder to include
50747         <unistd.h>.
50748         (_gl_close_fd_maybe_socket): New declaration.
50749         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50750         * lib/winsock.c (close): Remove undefinition.
50751         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50752         needed for the gnulib module 'close'.
50753         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50754         define to an error symbol or to a warning, if suitable.
50755         * lib/close.c: Include <sys/socket.h>.
50756         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50757         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50758         UNISTD_H_HAVE_WINSOCK2_H.
50759         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50761         UNISTD_H_HAVE_WINSOCK2_H.
50762         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50763         (configure.ac): Set a module indicator.
50764         (Makefile.am): Substitute GNULIB_CLOSE.
50765         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50766         * modules/poll-tests (Depends-on): Add close.
50767         * modules/select-tests (Depends-on): Likewise.
50768
50769 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50770             Bruno Haible  <bruno@clisp.org>
50771
50772         New module 'close'.
50773         * modules/close: New file.
50774         * lib/unistd.in.h (close): Move declaration out of the
50775         FCHDIR_REPLACEMENT scope.
50776         (_gl_unregister_fd): New declaration.
50777         * lib/close.c: New file.
50778         * lib/fchdir.c (rpl_close): Remove function.
50779         * m4/close.m4: New file.
50780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50781         close.
50782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50783         REPLACE_CLOSE.
50784         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50785         REPLACE_CLOSE.
50786         * modules/fchdir (Depends-on): Add close.
50787
50788 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50789             Bruno Haible  <bruno@clisp.org>
50790
50791         * lib/fcntl.in.h (open): Simplify conditionals.
50792         (_gl_register_fd): New declaration.
50793         * lib/fchdir.c (rpl_open): Remove function.
50794         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50795         also.
50796         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50797         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50798         open.
50799
50800 2008-10-09  Jim Meyering  <meyering@redhat.com>
50801
50802         GNUmakefile: use the more name-space-friendly "_version"
50803         * top/GNUmakefile (_dummy): Update.
50804         (_version): Rename from "version".
50805
50806 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50807             Bruno Haible  <bruno@clisp.org>
50808
50809         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50810         rpl_close.
50811         (_gl_register_fd): New function, extracted from rpl_open.
50812         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50813         (rpl_open, rpl_opendir): Use _gl_register_fd.
50814
50815 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50816
50817         Fix organization of 'open' replacement.
50818         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50819         (gl_FUNC_OPEN): Use it.
50820         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50821
50822 2008-10-08  Bruno Haible  <bruno@clisp.org>
50823
50824         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50825
50826 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50827
50828         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50829         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50830         listen).
50831
50832 2008-10-08  Eric Blake  <ebb9@byu.net>
50833
50834         GNUmakefile: add 'make version' target
50835         * top/GNUmakefile (_curr-ver): Split version update rules...
50836         (version): ...into a target.
50837
50838 2008-10-07  Bruno Haible  <bruno@clisp.org>
50839
50840         Use a more portable replacement expression for -0.0L.
50841         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50842         instead of -0.0L. Fix m4 quotation.
50843
50844         * tests/test-signbit.c: Include <float.h>.
50845         (minus_zero): New variable.
50846         (test_signbitl): Use minus_zero instead of -zero.
50847         * modules/signbit-tests (Depends-on): Add float.
50848
50849         * tests/test-ceill.c: Include <float.h>.
50850         (zero): Remove variable.
50851         (minus_zero): New variable.
50852         (main): Use minus_zero instead of -zero.
50853         * modules/ceill-tests (Depends-on): Add float.
50854
50855         * tests/test-floorl.c: Include <float.h>.
50856         (zero): Remove variable.
50857         (minus_zero): New variable.
50858         (main): Use minus_zero instead of -zero.
50859         * modules/floorl-tests (Depends-on): Add float.
50860
50861         * tests/test-roundl.c: Include <float.h>.
50862         (zero): Remove variable.
50863         (minus_zero): New variable.
50864         (main): Use minus_zero instead of -zero.
50865         * modules/roundl-tests (Depends-on): Add float.
50866
50867         * tests/test-truncl.c: Include <float.h>.
50868         (zero): Remove variable.
50869         (minus_zero): New variable.
50870         (main): Use minus_zero instead of -zero.
50871         * modules/truncl-tests (Depends-on): Add float.
50872
50873         * tests/test-frexpl.c (zero): Remove variable.
50874         (minus_zero): New variable.
50875         (main): Use minus_zero instead of -zero.
50876         * modules/frexpl-tests (Depends-on): Add float.
50877
50878         * tests/test-isnan.c (zerol): Remove variable.
50879         (minus_zerol): New variable.
50880         (test_long_double): Use minus_zerol instead of -zerol.
50881         * modules/isnan-tests (Depends-on): Add float.
50882
50883         * tests/test-isnanl.h (zero): Remove variable.
50884         (minus_zero): New variable.
50885         (main): Use minus_zero instead of -zero.
50886         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50887         * modules/isnanl-tests (Depends-on): Add float.
50888
50889         * tests/test-ldexpl.c (zero): Remove variable.
50890         (minus_zero): New variable.
50891         (main): Use minus_zero instead of -zero.
50892         * modules/ldexpl-tests (Depends-on): Add float.
50893
50894         * tests/test-snprintf-posix.h (zerol): Remove variable.
50895         (minus_zerol): New variable.
50896         (test_function): Use minus_zerol instead of -zerol.
50897         * modules/snprintf-posix-tests (Depends-on): Add float.
50898         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50899
50900         * tests/test-sprintf-posix.h (zerol): Remove variable.
50901         (minus_zerol): New variable.
50902         (test_function): Use minus_zerol instead of -zerol.
50903         * modules/sprintf-posix-tests (Depends-on): Add float.
50904         * modules/vsprintf-posix-tests (Depends-on): Add float.
50905
50906         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50907         (minus_zerol): New variable.
50908         (test_function): Use minus_zerol instead of -zerol.
50909         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50910
50911         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50912         (minus_zerol): New variable.
50913         (test_function): Use minus_zerol instead of -zerol.
50914         * modules/vasprintf-posix-tests (Depends-on): Add float.
50915
50916 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50917
50918         * MODULES.html.sh (Support for building documentation): Mention
50919         pmccabe2html.  Sort entries.
50920
50921         Add pmccabe2html module, from gnupdf.
50922         * build-aux/pmccabe.css: New file.
50923         * build-aux/pmccabe2html: New file.
50924         * m4/pmccabe2html.m4: New file.
50925         * modules/pmccabe2html: New file.
50926
50927 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
50928
50929         flock: new module
50930         * MODULES.html.sh: Add to list of modules.
50931         * lib/flock.c: flock implementation for Windows and Unix systems
50932         which have fcntl.
50933         * doc/glibc-functions/flock.texi: Update documentation.
50934         * lib/sys_file.in.h: <sys/file.h> header file.
50935         * m4/flock.m4: M4 macros.
50936         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
50937         * modules/flock: flock module.
50938         * modules/flock-tests: flock tests module.
50939         * modules/sys_file: sys/file.h module.
50940         * tests/test-flock.c: test suite for flock.
50941
50942 2008-10-06  Jim Meyering  <meyering@redhat.com>
50943
50944         bootstrap: check for LT_INIT more portably still ;-)
50945         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
50946         Spotted by Bruno Haible.
50947
50948 2008-10-06  Eric Blake  <ebb9@byu.net>
50949
50950         test-signbit: avoid tripping Irix cc bug on -0.0L
50951         * tests/test-signbit.c (minus_zerol): Delete, and replace with
50952         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
50953         entire testsuite consistent and avoids an Irix 6.2 bug.
50954
50955 2008-10-05  Bruno Haible  <bruno@clisp.org>
50956             Jim Meyering  <jim@meyering.net>
50957
50958         Add an option for ignoring EPIPE during close_stdout.
50959         * lib/closeout.h: Include <stdbool.h>.
50960         (close_stdout_set_ignore_EPIPE): New declaration.
50961         * lib/closeout.c: Include <stdbool.h>.
50962         (ignore_EPIPE): New variable.
50963         (close_stdout_set_ignore_EPIPE): New function.
50964         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
50965         * lib/close-stream.c (close_stream): Mention the possible EPIPE
50966         failure.
50967         * modules/closeout (Depends-on): Add stdbool.
50968
50969 2008-10-05  Bruno Haible  <bruno@clisp.org>
50970
50971         * modules/accept: New file.
50972         * modules/bind: New file.
50973         * modules/connect: New file.
50974         * modules/getpeername: New file.
50975         * modules/getsockname: New file.
50976         * modules/getsockopt: New file.
50977         * modules/listen: New file.
50978         * modules/recv: New file.
50979         * modules/recvfrom: New file.
50980         * modules/send: New file.
50981         * modules/sendto: New file.
50982         * modules/setsockopt: New file.
50983         * modules/socket: New file.
50984         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
50985         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50986         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
50987         the particular module is requested. Add a link warning when the
50988         particular module is not requested.
50989         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
50990         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
50991         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
50992         the particular module is requested.
50993         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
50994         gl_SYS_SOCKET_H_DEFAULTS): New macros.
50995         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
50996         * modules/sys_socket (Depends-on): Add link-warning.
50997         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
50998         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
50999         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51000         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51001         GL_LINK_WARNING.
51002         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51003         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51004         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51005         * doc/posix-functions/getpeername.texi: Mention the new module
51006         'getpeername'.
51007         * doc/posix-functions/getsockname.texi: Mention the new module
51008         'getsockname'.
51009         * doc/posix-functions/getsockopt.texi: Mention the new module
51010         'getsockopt'.
51011         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51012         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51013         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51014         * doc/posix-functions/send.texi: Mention the new module 'send'.
51015         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51016         * doc/posix-functions/setsockopt.texi: Mention the new module
51017         'setsockopt'.
51018         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51019         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51020         listen, connect, accept.
51021         * modules/select-tests (Depends-on): Likewise.
51022
51023 2008-10-05  Bruno Haible  <bruno@clisp.org>
51024
51025         * lib/winsock.c (strerror): Remove unused #undef.
51026         (rpl_close): Remove unused local variable.
51027
51028         * modules/sys_socket (Depends-on); Add errno.
51029
51030 2008-10-05  Bruno Haible  <bruno@clisp.org>
51031
51032         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51033         (select): Add a link warning when the 'select' module is not used.
51034         * modules/sys_select (Depends-on): Add link-warning.
51035         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51036         Suggested by Paolo Bonzini.
51037
51038 2008-10-05  Jim Meyering  <meyering@redhat.com>
51039
51040         bootstrap: check for LT_INIT more portably
51041         * build-aux/bootstrap: Avoid using grep -E, since it's not
51042         portable enough.  Suggestion from Bruno Haible.
51043
51044 2008-10-05  Bruno Haible  <bruno@clisp.org>
51045
51046         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51047         as being fixed by gnulib.
51048
51049 2008-10-05  Bruno Haible  <bruno@clisp.org>
51050
51051         * modules/select-tests: New file, mostly copied from
51052         modules/sys_select-tests.
51053         * tests/test-select.c: New file, mostly copied from
51054         tests/test-sys_select.c.
51055         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51056         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51057         (Makefile.am): Remove test_sys_select_LDADD.
51058
51059         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51060         to an undefined symbol, for an error message.
51061         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51062         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51063         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51064         winsock-select.c here.
51065         * modules/sys_select (Files): Remove lib/winsock-select.c.
51066         (Depends-on): Remove alloca.
51067         (Makefile.am): Substitute GNULIB_SELECT.
51068         * modules/select: New file.
51069         * doc/posix-functions/select.texi: Update.
51070
51071 2008-10-05  Bruno Haible  <bruno@clisp.org>
51072
51073         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51074         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51075         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51076         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51077         getdtablesize.
51078         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51079         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51080
51081 2008-10-05  Bruno Haible  <bruno@clisp.org>
51082
51083         * modules/getdtablesize-tests: New file.
51084         * tests/test-getdtablesize.c: New file.
51085
51086         New module 'getdtablesize'.
51087         * lib/unistd.in.h (getdtablesize): New declaration.
51088         * lib/getdtablesize.c: New file.
51089         * m4/getdtablesize.m4: New file.
51090         * modules/getdtablesize: New file.
51091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51092         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51093         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51094         HAVE_GETDTABLESIZE.
51095         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51096
51097 2008-10-05  Bruno Haible  <bruno@clisp.org>
51098
51099         * modules/sched (Makefile.am): Fix typo.
51100         Reported by Simon Josefsson.
51101
51102 2008-10-05  Jim Meyering  <meyering@redhat.com>
51103
51104         bootstrap: check for LT_INIT, too
51105         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51106         are deprecated.  Suggestion from Ralf Wildenhues.
51107
51108 2008-10-05  Bruno Haible  <bruno@clisp.org>
51109
51110         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51111         overriding them by ours.
51112         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51113
51114 2008-10-05  Jim Meyering  <meyering@redhat.com>
51115
51116         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51117         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51118         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51119
51120 2008-10-04  Bruno Haible  <bruno@clisp.org>
51121
51122         * modules/dup2 (License): Change to LGPLv2+.
51123         * modules/sleep (License): Likewise.
51124         * modules/perror (License): Likewise.
51125         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51126         Blake.
51127         * modules/signal (License): Likewise.
51128         * modules/sigprocmask (License): Likewise.
51129         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51130         Meyering.
51131
51132 2008-10-04  Bruno Haible  <bruno@clisp.org>
51133
51134         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51135         Reported by Rainer Tammer <tammer@tammer.net>.
51136
51137 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51138             Bruno Haible  <bruno@clisp.org>
51139
51140         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51141         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51142         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51143
51144 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51145
51146         filevercmp: new module
51147         * lib/filevercmp.h: New function filevercmp comparing version strings.
51148         * lib/filevercmp.c: Implementation of filevercmp function.
51149         * modules/filevercmp: Module metadata.
51150         * tests/test-filevercmp.c: Unit test for new module.
51151         * modules/filevercmp-tests: Unit test metadata.
51152         * MODULES.html.sh: Add filevercmp module.
51153
51154 2008-10-03  Bruno Haible  <bruno@clisp.org>
51155
51156         * lib/c-ctype.h: Add comment.
51157         Reported by Jim Meyering.
51158
51159 2008-10-02  Bruno Haible  <bruno@clisp.org>
51160
51161         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51162
51163 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51164
51165         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51166         name of bootstrap.conf accordingly.
51167
51168 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51169
51170         * build-aux/bootstrap: Install git-merge-changelog configuration
51171         items into .gitconfig if needed.
51172
51173 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51174
51175         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51176         git repository, and initialize/update it accordingly.
51177
51178 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51179
51180         * modules/fsync-tests: New file.
51181         * tests/test-fsync.c: New file.
51182
51183         New module 'fsync'.
51184         * lib/fsync.c: New file.
51185         * m4/fsync.m4: New file.
51186         * modules/fsync: New file.
51187         * lib/unistd.in.h (fsync): New declaration.
51188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51189         GNULIB_FSYNC and HAVE_FSYNC.
51190         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51191         * MODULES.html.sh (posix_functions): Add fsync.
51192         * doc/posix-functions/fsync.texi: Mention the new module.
51193
51194 2008-10-02  Jim Meyering  <meyering@redhat.com>
51195
51196         fts.c: sync with similar code from coreutils' remove.c
51197         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51198         Guard also with "#if defined __linux__", since for now at least,
51199         this code is Linux-kernel-specific.
51200
51201 2008-10-02  Jim Meyering  <meyering@redhat.com>
51202
51203         fts: bug fixes
51204         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51205         Include <sys/vfs.h>, not <sys/statfs.h>.
51206
51207         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51208         Include <sys/vfs.h>, not <sys/statfs.h>.
51209
51210 2008-10-01  Bruno Haible  <bruno@clisp.org>
51211
51212         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51213         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51214         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51215         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51216         * doc/posix-functions/posix_spawnp.texi: Likewise.
51217         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51218         whether posix_spawn actually works.
51219         * m4/pipe.m4 (gl_PIPE): Likewise.
51220         * modules/execute (Files): Add m4/posix_spawn.m4.
51221         * modules/pipe (Files): Add m4/posix_spawn.m4.
51222         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51223
51224 2008-10-01  Jim Meyering  <meyering@redhat.com>
51225
51226         remove trailing spaces
51227         * NEWS: Likewise.
51228         * lib/poll.c (poll): Likewise.
51229         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51230         * lib/winsock.c (rpl_close): Likewise.
51231         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51232         * modules/yield: Likewise.
51233         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51234         * tests/test-sys_select.c (connect_to_socket): Likewise.
51235
51236         fts.c: adjust a new interface to be more generally useful
51237         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51238         (fts_build): Adjust caller.
51239
51240 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51241
51242         * modules/cond-tests: New file.
51243         * tests/test-cond.c: New file.
51244
51245 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51246             Bruno Haible  <bruno@clisp.org>
51247
51248         * modules/cond (Dependencies): Add errno, time.
51249         * lib/glthread/cond.h: Include <time.h>.
51250         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51251         across platforms.
51252
51253 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51254             Bruno Haible  <bruno@clisp.org>
51255
51256         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51257
51258 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51259             Bruno Haible  <bruno@clisp.org>
51260
51261         * modules/tls-tests (Depends-on): Add thread, yield.
51262         (configure.ac): Remove all checks.
51263         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51264         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51265         gl_thread_self): Remove definitions. Include glthread/thread.h and
51266         glthread/yield.h instead.
51267         (test_tls): Pass an additional NULL argument to gl_thread_join.
51268
51269 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51270             Bruno Haible  <bruno@clisp.org>
51271
51272         * modules/lock-tests (Depends-on): Add thread, yield.
51273         (configure.ac): Remove all checks.
51274         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51275         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51276         gl_thread_self): Remove definitions. Include glthread/thread.h and
51277         glthread/yield.h instead.
51278         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51279         additional NULL argument to gl_thread_join.
51280
51281 2008-09-30  Bruno Haible  <bruno@clisp.org>
51282
51283         Fix the Win32 implementation of the 'thread' module.
51284         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51285         pointer type.
51286         (gl_thread_self): Invoke gl_thread_self_func.
51287         (gl_thread_self_func): New declaration.
51288         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51289         (do_init_self_key, init_self_key): New functions.
51290         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51291         Remove some fields.
51292         (running_threads, running_lock): Remove variables.
51293         (get_current_thread_handle): New function.
51294         (gl_thread_self_func, wrapper_func, glthread_create_func,
51295         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51296         simplified.
51297
51298 2008-09-30  Bruno Haible  <bruno@clisp.org>
51299
51300         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51301         files.
51302
51303 2008-09-30  Jim Meyering  <meyering@redhat.com>
51304
51305         fts.m4: correct the test for statfs.f_type
51306         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51307         when checking for statfs.f_type.
51308
51309 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51310
51311         tests: avoid some compiler warnings
51312         * tests/test-memchr.c (main): Pass NULL indirectly.
51313         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51314
51315 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51316
51317         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51318         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51319         exactly specified dayshifts.
51320         (dayshift): New rule.
51321         (rel): Add dayshift.
51322         (relative_time_table) [tomorrow, yesterday, today, now]:
51323         Use tDAY_SHIFT in place of tDAY_UNIT.
51324         * tests/test-getdate.c: Add tests for now-disallowed countable
51325         dayshifts, e.g., "4 yesterday ago".
51326
51327 2008-09-29  Bruno Haible  <bruno@clisp.org>
51328
51329         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51330         * tests/test-posix_spawn1.in.sh: Renamed from
51331         tests/test-posix_spawn.in.sh.
51332         * tests/test-posix_spawn2.c: New file.
51333         * tests/test-posix_spawn2.in.sh: New file.
51334         * modules/posix_spawnp-tests (Files): Update.
51335         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51336
51337 2008-09-29  Bruno Haible  <bruno@clisp.org>
51338
51339         Propagate effects of putenv/setenv/unsetenv to child processes.
51340         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51341         * lib/pipe.c (create_pipe): Likewise.
51342
51343 2008-09-29  Bruno Haible  <bruno@clisp.org>
51344
51345         Enable use of shell scripts as executables in mingw.
51346         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51347         run the program as a shell script.
51348         * lib/pipe.c (create_pipe): Likewise.
51349         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51350         resulting array.
51351
51352 2008-09-29  Eric Blake  <ebb9@byu.net>
51353
51354         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51355
51356 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51357
51358         * doc/posix-functions/accept.texi: Update mingw problems.
51359         * doc/posix-functions/bind.texi: Update mingw problems.
51360         * doc/posix-functions/close.texi: Update mingw problems.
51361         * doc/posix-functions/connect.texi: Update mingw problems.
51362         * doc/posix-functions/getpeername.texi: Update mingw problems.
51363         * doc/posix-functions/getsockname.texi: Update mingw problems.
51364         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51365         * doc/posix-functions/ioctl.texi: Update mingw problems.
51366         * doc/posix-functions/listen.texi: Update mingw problems.
51367         * doc/posix-functions/recv.texi: Update mingw problems.
51368         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51369         * doc/posix-functions/select.texi: Update mingw problems.
51370         * doc/posix-functions/send.texi: Update mingw problems.
51371         * doc/posix-functions/sendto.texi: Update mingw problems.
51372         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51373         * doc/posix-functions/socket.texi: Update mingw problems.
51374
51375 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51376             Bruno Haible  <bruno@clisp.org>
51377
51378         * lib/sys_select.in.h: Include sys/time.h.
51379         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51380         * modules/sys_select: Depend on sys_time.
51381         * tests/test-sys_select.c: Test that sys/select.h defines struct
51382         timeval fully.
51383
51384 2008-09-29  Bruno Haible  <bruno@clisp.org>
51385
51386         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51387         * lib/sys_select.in.h: Likewise.
51388
51389 2008-09-29  Bruno Haible  <bruno@clisp.org>
51390
51391         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51392
51393 2008-09-29  Bruno Haible  <bruno@clisp.org>
51394
51395         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51396         Set LIBSOCKET instead of augmenting LIBS.
51397         * modules/sockets (Link): New section.
51398         * modules/sockets-tests (test_sockets_LDADD): New variable.
51399         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51400         * modules/poll-tests (test_poll_LDADD): New variable.
51401         * NEWS: Document the change.
51402
51403 2008-09-29  Bruno Haible  <bruno@clisp.org>
51404
51405         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51406         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51407         ARPA_INET_H directly.
51408         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51409
51410 2008-09-28  Bruno Haible  <bruno@clisp.org>
51411
51412         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51413         from gl_HEADER_SYS_SOCKET.
51414         (gl_HEADER_SYS_SOCKET): Invoke it.
51415         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51416
51417 2008-09-28  Bruno Haible  <bruno@clisp.org>
51418
51419         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51420         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51421         Needed on OSF/1 4.0.
51422
51423 2008-09-28  Bruno Haible  <bruno@clisp.org>
51424
51425         Override open more carefully.
51426         * lib/open.c (orig_open): New function.
51427         (rpl_open): Use orig_open instead of open.
51428         * lib/fcntl.in.h: Add special invocation convention.
51429         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51430         (gl_FUNC_OPEN): Invoke it.
51431
51432         Override freopen more carefully.
51433         * lib/freopen.c (orig_freopen): New function.
51434         (rpl_freopen): Use orig_freopen instead of freopen.
51435         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51436         (gl_FUNC_FREOPEN): Invoke it.
51437
51438         Override fopen more carefully.
51439         * lib/fopen.c (orig_fopen): New function.
51440         (rpl_fopen): Use orig_fopen instead of fopen.
51441         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51442         (gl_FUNC_FOPEN): Invoke it.
51443         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51444
51445 2008-09-28  Bruno Haible  <bruno@clisp.org>
51446
51447         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51448         SIGPIPE.
51449
51450 2008-09-28  Bruno Haible  <bruno@clisp.org>
51451
51452         * tests/test-sigaction.c (handler, main): Disable the check whether
51453         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51454         glibc systems with LinuxThreads.
51455
51456 2008-09-28  Bruno Haible  <bruno@clisp.org>
51457
51458         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51459
51460         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51461         with AIX xlc.
51462         * lib/fcntl.in.h (open): Likewise.
51463         Reported by Rainer Tammer <tammer@tammer.net>.
51464
51465 2008-09-28  Bruno Haible  <bruno@clisp.org>
51466
51467         * modules/posix_spawnp-tests: New file.
51468         * tests/test-posix_spawn.c: New file.
51469         * tests/test-posix_spawn.in.sh: New file.
51470
51471         New module 'posix_spawnp'.
51472         * modules/posix_spawnp: New file.
51473         * lib/spawnp.c: New file, from GNU libc with modifications.
51474         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51475
51476         New module 'posix_spawn'.
51477         * modules/posix_spawn: New file.
51478         * lib/spawn.c: New file, from GNU libc with modifications.
51479         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51480
51481         New module 'posix_spawnattr_destroy'.
51482         * modules/posix_spawnattr_destroy: New file.
51483         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51484         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51485         module.
51486
51487         New module 'posix_spawnattr_setsigmask'.
51488         * modules/posix_spawnattr_setsigmask: New file.
51489         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51490         modifications.
51491         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51492         new module.
51493
51494         New module 'posix_spawnattr_getsigmask'.
51495         * modules/posix_spawnattr_getsigmask: New file.
51496         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51497         modifications.
51498         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51499         new module.
51500
51501         New module 'posix_spawnattr_setsigdefault'.
51502         * modules/posix_spawnattr_setsigdefault: New file.
51503         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51504         modifications.
51505         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51506         new module.
51507
51508         New module 'posix_spawnattr_getsigdefault'.
51509         * modules/posix_spawnattr_getsigdefault: New file.
51510         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51511         modifications.
51512         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51513         new module.
51514
51515         New module 'posix_spawnattr_setschedpolicy'.
51516         * modules/posix_spawnattr_setschedpolicy: New file.
51517         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51518         modifications.
51519         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51520         new module.
51521
51522         New module 'posix_spawnattr_getschedpolicy'.
51523         * modules/posix_spawnattr_getschedpolicy: New file.
51524         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51525         modifications.
51526         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51527         new module.
51528
51529         New module 'posix_spawnattr_setschedparam'.
51530         * modules/posix_spawnattr_setschedparam: New file.
51531         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51532         modifications.
51533         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51534         new module.
51535
51536         New module 'posix_spawnattr_getschedparam'.
51537         * modules/posix_spawnattr_getschedparam: New file.
51538         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51539         modifications.
51540         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51541         new module.
51542
51543         New module 'posix_spawnattr_setpgroup'.
51544         * modules/posix_spawnattr_setpgroup: New file.
51545         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51546         modifications.
51547         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51548         module.
51549
51550         New module 'posix_spawnattr_getpgroup'.
51551         * modules/posix_spawnattr_getpgroup: New file.
51552         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51553         modifications.
51554         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51555         module.
51556
51557         New module 'posix_spawnattr_setflags'.
51558         * modules/posix_spawnattr_setflags: New file.
51559         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51560         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51561         module.
51562
51563         New module 'posix_spawnattr_getflags'.
51564         * modules/posix_spawnattr_getflags: New file.
51565         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51566         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51567         module.
51568
51569         New module 'posix_spawnattr_init'.
51570         * modules/posix_spawnattr_init: New file.
51571         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51572         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51573         module.
51574
51575         New module 'posix_spawn_file_actions_destroy'.
51576         * modules/posix_spawn_file_actions_destroy: New file.
51577         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51578         modifications.
51579         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51580         the new module.
51581
51582         New module 'posix_spawn_file_actions_addopen'.
51583         * modules/posix_spawn_file_actions_addopen: New file.
51584         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51585         modifications.
51586         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51587         the new module.
51588
51589         New module 'posix_spawn_file_actions_adddup2'.
51590         * modules/posix_spawn_file_actions_adddup2: New file.
51591         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51592         modifications.
51593         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51594         the new module.
51595
51596         New module 'posix_spawn_file_actions_addclose'.
51597         * modules/posix_spawn_file_actions_addclose: New file.
51598         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51599         modifications.
51600         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51601         the new module.
51602
51603         New module 'posix_spawn_file_actions_init'.
51604         * modules/posix_spawn_file_actions_init: New file.
51605         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51606         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51607         new module.
51608
51609         New module 'posix_spawn-internal'.
51610         * modules/posix_spawn-internal: New file.
51611         * lib/spawn_int.h: New file, from GNU libc with modifications.
51612         * lib/spawni.c: New file, from GNU libc with modifications.
51613         * m4/posix_spawn.m4: New file.
51614
51615         New module 'spawn'.
51616         * modules/spawn: New file.
51617         * lib/spawn.in.h: New file, from GNU libc with modifications.
51618         * m4/spawn_h.m4: New file.
51619         * doc/posix-headers/spawn.texi: Mention the new module.
51620
51621 2008-09-28  Bruno Haible  <bruno@clisp.org>
51622
51623         * modules/sched-tests: New file.
51624         * tests/test-sched.c: New file.
51625
51626         New module 'sched'.
51627         * modules/sched: New file.
51628         * lib/sched.in.h: New file.
51629         * m4/sched_h.m4: New file.
51630         * doc/posix-headers/sched.texi: Mention the new module.
51631
51632 2008-09-27  Eric Blake  <ebb9@byu.net>
51633
51634         Fix previous patch, and tweak references to $0.
51635         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51636         (func_version, func_gnulib_dir): Don't call this program
51637         gnulib-tool.
51638         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51639         with using $0 in function.
51640         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51641         (func_fatal_error): Reuse the name the user invoked us with.
51642
51643 2008-09-27  Bruno Haible  <bruno@clisp.org>
51644
51645         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51646         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51647         (gl_ICONV_H): Not here.
51648         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51649         instead of assigning ICONV_H directly.
51650
51651         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51652         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51653         WCHAR_H directly.
51654
51655 2008-09-27  Bruno Haible  <bruno@clisp.org>
51656
51657         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51658         * modules/arpa_inet (Depends-on): Add link-warning.
51659         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51660         * modules/unistd (Makefile.am): Likewise.
51661
51662 2008-09-26  Bruno Haible  <bruno@clisp.org>
51663
51664         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51665         variables.
51666         (func_version): Essentially copied from gnulib-tool.
51667         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51668         func_readlink): Copied from gnulib-tool.
51669
51670 2008-09-26  Bruno Haible  <bruno@clisp.org>
51671
51672         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51673         invoking git-version-gen.
51674
51675 2008-09-26  Bruno Haible  <bruno@clisp.org>
51676
51677         * posix-modules: Update to directory names changed on 2008-01-19.
51678         Remove commas in output before splitting into words. No more need to
51679         avoid 'ftruncate' since 2007-02-19.
51680
51681 2008-09-26  Bruno Haible  <bruno@clisp.org>
51682
51683         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51684
51685 2008-09-26  Bruno Haible  <bruno@clisp.org>
51686
51687         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51688         * modules/fwriteerror (Depends-on): Add errno.
51689
51690 2008-09-26  Bruno Haible  <bruno@clisp.org>
51691
51692         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51693         * tests/test-vc-list-files-cvs.sh: Likewise.
51694
51695 2008-09-26  Bruno Haible  <bruno@clisp.org>
51696
51697         * doc/posix-headers/sys_resource.texi: Reorder items.
51698
51699 2008-09-26  Jim Meyering  <meyering@redhat.com>
51700
51701         fts: tweak inode comparison function
51702         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51703         inode numbers, as documented.
51704
51705         fts: sort dirent entries on inode number before traversing
51706         This avoids a quadratic, seek-related performance penalty when
51707         operating on a directory containing many entries (measurable at 10k;
51708         3.5 hours at 2 million entries with a cold cache) on certain types
51709         of file systems, including ext3 and ext4, but not tmpfs.
51710         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51711         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51712         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51713         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51714         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51715         (fts_build): Set the stat.st_ino member from D_INO.
51716         If it is likely to be useful, sort dirent entries on inode number.
51717
51718         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51719         and the struct statfs.f_type member.
51720         * modules/fts (Depends-on): Add d-ino.
51721
51722 2008-09-26  Bruno Haible  <bruno@clisp.org>
51723
51724         * modules/sigpipe-die (Depends-on): Add sigpipe.
51725
51726         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51727         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51728         and GNULIB_STDIO_H_SIGPIPE are set.
51729         * lib/stdio-write.c: New file.
51730         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51731         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51732         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51733         REPLACE_STDIO_WRITE_FUNCS.
51734         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51735         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51736         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51737         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51738         * modules/stdio (Files): Add lib/stdio-write.c.
51739         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51740         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51741         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51742         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51743         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51744         REPLACE_FPRINTF_POSIX.
51745         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51746         REPLACE_PRINTF_POSIX.
51747         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51748         REPLACE_VFPRINTF_POSIX.
51749         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51750         REPLACE_VPRINTF_POSIX.
51751         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51752         SIGPIPE issue.
51753         * doc/posix-functions/fputc.texi: Likewise.
51754         * doc/posix-functions/fputs.texi: Likewise.
51755         * doc/posix-functions/fwrite.texi: Likewise.
51756         * doc/posix-functions/printf.texi: Likewise.
51757         * doc/posix-functions/putc.texi: Likewise.
51758         * doc/posix-functions/putchar.texi: Likewise.
51759         * doc/posix-functions/puts.texi: Likewise.
51760         * doc/posix-functions/vfprintf.texi: Likewise.
51761         * doc/posix-functions/vprintf.texi: Likewise.
51762
51763         * modules/safe-write (Depends-on): Add write.
51764
51765         * modules/sigpipe-tests: New file.
51766         * tests/test-sigpipe.c: New file.
51767         * tests/test-sigpipe.sh: New file.
51768
51769         * modules/write: New file.
51770         * lib/unistd.in.h: Include <sys/types.h>.
51771         (write): New declaration.
51772         * lib/write.c: New file.
51773         * m4/write.m4: New file.
51774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51775         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51776         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51777         GNULIB_WRITE, REPLACE_WRITE.
51778         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51779         and the SIGPIPE issue.
51780
51781         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51782         (raise): New declaration.
51783         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51784         (ext_signal): New function.
51785         (rpl_raise): New function.
51786         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51787         GNULIB_SIGNAL_H_SIGPIPE.
51788         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51789         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51790
51791         * modules/sigpipe: New file.
51792         * m4/sigpipe.m4: New file.
51793
51794 2008-09-25  Derek Price  <derek@ximbiot.com>
51795             Bruno Haible  <bruno@clisp.org>
51796
51797         * gnulib-tool (func_import): Report all license incompatibilities, not
51798         just the first one.
51799
51800 2008-09-25  Bruno Haible  <bruno@clisp.org>
51801
51802         * gnulib-tool (func_import): When computing the edits, consider not
51803         only the Makefile.ams that exist but also those that will be generated.
51804
51805 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51806
51807         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51808         fixes gnulib-tool --test warning about duplicate dependency.
51809
51810 2008-09-25  Bruno Haible  <bruno@clisp.org>
51811
51812         * gnulib-tool: Don't ask the user to perform edits in the generated
51813         Makefile.ams.
51814         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51815         apply to the Makefile.am being generated.
51816         (func_emit_tests_Makefile_am): Execute edits that apply to the
51817         Makefile.am being generated.
51818         (func_import): Setup list of Makefile.am edits before emitting the
51819         Makefile.ams, not at the end.
51820         (func_create_testdir): Update.
51821         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51822
51823 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51824
51825         * gnulib-tool (func_import): Store the --tests-base option in the
51826         comment in gnulib-cache.m4.
51827
51828 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51829
51830         * NEWS: Document increased portability that sys_select now provides.
51831
51832         * lib/sys_select.in.h: Install select wrapper.
51833         * lib/sys_socket.in.h: Use more descriptive name when there is no
51834         select wrapper.
51835         * lib/winsock-select.c: New.
51836         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51837         Require gl_HEADER_SYS_SOCKET.
51838         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51839         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51840         * tests/test-sys_select.c: Add functional tests.
51841
51842 2008-09-24  Eric Blake  <ebb9@byu.net>
51843
51844         open, fopen: close fd leak in last patch
51845         * lib/open.c (rpl_open): Close fd before returning error.
51846         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51847         * doc/posix-functions/open.texi (open): Document that Irix also
51848         has the bug.
51849         * doc/posix-functions/fopen.texi (fopen): Likewise.
51850         Reported by Paolo Bonzini.
51851
51852 2008-09-24  Bruno Haible  <bruno@clisp.org>
51853
51854         Ensure that a filename ending in a slash cannot be used to access a
51855         non-directory.
51856         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51857         to check whether it's really a directory.
51858         * lib/fopen.c: Include fcntl.h, unistd.h.
51859         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51860         and fdopen().
51861         * modules/fopen (Depends-on): Add unistd.
51862         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51863         * tests/test-fopen.c (main): Likewise.
51864         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51865         * doc/posix-functions/fopen.texi: Likewise.
51866         Reported by Eric Blake.
51867
51868 2008-09-23  Eric Blake  <ebb9@byu.net>
51869
51870         c-stack: avoid compiler optimizations when provoking overflow
51871         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51872         recursion harder to optimize, to ensure a stack overflow occurs.
51873         * tests/test-c-stack.c (recurse): Likewise.
51874         Borrowed from libsigsegv.
51875
51876         c-stack: work around Irix sigaltstack bug
51877         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51878         whether sigaltstack uses wrong end of stack_t (copied in part from
51879         libsigsegv).
51880         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51881         Irix bug, without requiring an over-allocation.
51882         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51883         bug.
51884
51885         fopen: document mingw bug on directories
51886         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51887         not allowing a stream visiting a directory, even though reading
51888         from such a stream is not portable.
51889
51890 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51891
51892         * lib/poll.c: Rewrite.
51893         * modules/poll: Depend on alloca.
51894
51895 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51896
51897         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51898         instead define prototypes for a full set of wrappers.  Ensure
51899         that Cygwin does not use the compatibility code, which is only
51900         for MinGW.
51901         * lib/winsock.c: New.
51902         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51903         * modules/sys_socket: Add lib/winsock.c.
51904
51905         * modules/poll-tests: Add errno and perror.
51906         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51907
51908 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51909
51910         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51911
51912 2008-09-23  Bruno Haible  <bruno@clisp.org>
51913
51914         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51915         * doc/glibc-functions/*: Likewise.
51916
51917 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51918
51919         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51920         success.
51921
51922 2008-09-22  Eric Blake  <ebb9@byu.net>
51923             Bruno Haible  <bruno@clisp.org>
51924
51925         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51926         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51927         supply %A but mishandle pseudo-NaN.
51928         Reported by Simon Josefsson.
51929
51930 2008-09-21  Bruno Haible  <bruno@clisp.org>
51931
51932         * tests/test-lock.c (main): Tweak skip message.
51933         * tests/test-tls.c (main): Likewise.
51934
51935 2008-09-21  Bruno Haible  <bruno@clisp.org>
51936
51937         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
51938         whether 'struct sigaction' has sa_sigaction here...
51939         (gl_PREREQ_SIG_HANDLER_H): ... not here.
51940         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
51941
51942 2008-09-21  Bruno Haible  <bruno@clisp.org>
51943
51944         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
51945         section.
51946         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
51947         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
51948         the new section.
51949         (Support for obsolete systems lacking POSIX:2001): New section.
51950         (String handling <string.h>): Move strdup to the new section.
51951         Suggested by Simon Josefsson and Paolo Bonzini.
51952
51953 2008-09-21  Bruno Haible  <bruno@clisp.org>
51954
51955         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
51956         exponents in %e and %g results on 'long double'. Needed for mingw's
51957         improved *printf functions.
51958         * tests/test-vasprintf-posix.c (test_function): Likewise.
51959         * tests/test-snprintf-posix.h (test_function): Likewise.
51960         * tests/test-sprintf-posix.h (test_function): Likewise.
51961         Reported by Eric Blake.
51962
51963 2008-09-21  Bruno Haible  <bruno@clisp.org>
51964
51965         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
51966         * tests/test-sprintf-posix.h (test_function): Likewise.
51967
51968 2008-09-21  Bruno Haible  <bruno@clisp.org>
51969
51970         * modules/getpass (Depends-on): Add strdup-posix.
51971
51972         New module 'strdup-posix'.
51973         * modules/strdup-posix: New file.
51974         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
51975         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
51976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51977         REPLACE_STRDUP.
51978         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
51979         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
51980         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51981         strdup-posix.
51982
51983         * modules/strdup (Depends-on): Remove malloc-posix.
51984
51985 2008-09-20  Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
51988         Wildenhues.
51989
51990 2008-09-20  Bruno Haible  <bruno@clisp.org>
51991
51992         Ensure that wint_t gets defined on IRIX 5.3.
51993         * lib/wchar.in.h (wint_t): Define if not defined by the system.
51994         * lib/wctype.in.h (wint_t): Likewise.
51995         (__wctype_wint_t): Remove type.
51996         (isw*): Use wint_t instead of __wctype_wint_t.
51997         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
51998         * modules/wchar (Files): Add m4/wint_t.m4.
51999         (Makefile.am): Substitute HAVE_WINT_T.
52000         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52001         * tests/test-wctype.c: Check that wint_t is defined.
52002         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52003         * doc/posix-headers/wctype.texi: Likewise.
52004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52005
52006 2008-09-18  Bruno Haible  <bruno@clisp.org>
52007
52008         * gnulib-tool (func_exit): Update comment.
52009
52010 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52011
52012         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52013         assumes strdup exists and does not depend on strdup to return
52014         ENOMEM on out of memory conditions.
52015
52016 2008-09-18  Bruno Haible  <bruno@clisp.org>
52017
52018         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52019         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52020         digits for the exponent.
52021
52022 2008-09-18  Jim Meyering  <meyering@redhat.com>
52023             Bruno Haible  <bruno@clisp.org>
52024
52025         * lib/vasnprintf.c (decimal_point_char): Define also if
52026         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52027
52028 2008-09-16  Bruno Haible  <bruno@clisp.org>
52029         and Eric Blake  <ebb9@byu.net>
52030
52031         vasnprintf: support Irix 5.3
52032         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52033         that mishandle long double infinity.
52034         Reported by Tom G. Christensen.
52035
52036 2008-09-16  Bruno Haible  <bruno@clisp.org>
52037
52038         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52039         Solaris 9.
52040         * doc/glibc-functions/alphasort.texi: Likewise.
52041         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52042
52043 2008-09-16  Jim Meyering  <meyering@redhat.com>
52044
52045         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52046         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52047         a umask modification leak out of a subshell.  Otherwise, the
52048         opensolaris /bin/sh would be accepted and thus cause unwarranted
52049         failures in the coreutils test suite.
52050
52051 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52052
52053         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52054         to succeed.
52055
52056 2008-09-16  Jim Meyering  <meyering@redhat.com>
52057
52058         avoid spurious test failure when library is built without ACL support
52059         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52060         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52061         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52062         * tests/test-copy-acl.sh: Likewise.
52063
52064 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52065
52066         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52067         based on character occurrence counts.
52068
52069 2008-09-15  Eric Blake  <ebb9@byu.net>
52070
52071         tests: avoid some compiler warnings
52072         * tests/test-memchr.c (main): Pass NULL indirectly.
52073         * tests/test-closein.c (main): Avoid unused variable.
52074
52075 2008-09-15  Bruno Haible  <bruno@clisp.org>
52076
52077         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52078         are missing on OpenBSD 4.0 individually.
52079         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52080
52081 2008-09-15  Bruno Haible  <bruno@clisp.org>
52082
52083         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52084         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52085         * doc/posix-functions/perror.texi: Likewise.
52086         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52087         is missing.
52088         Reported by Eric Blake.
52089
52090         * lib/errno.in.h: Use replacement values >= 2000.
52091         Reported by Eric Blake.
52092
52093 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52094
52095         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52096         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52097         limit.
52098         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52099         compareseq was aborted.
52100
52101 2008-09-14  Bruno Haible  <bruno@clisp.org>
52102
52103         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52104         yvec_edit_count.
52105         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52106         (fstrcmp_bounded): Simplify result computation accordingly.
52107
52108 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52109
52110         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52111         (fstrcmp): Define in terms of fstrcmp_bounded.
52112         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52113         lower_bound argument.
52114         Return quickly if the result is certainly < lower_bound.
52115         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52116
52117 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52118
52119         * lib/diffseq.h (EARLY_ABORT): New macro.
52120         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52121         evaluates to true.
52122
52123 2008-09-14  Bruno Haible  <bruno@clisp.org>
52124
52125         * modules/perror-tests: New file.
52126         * tests/test-perror.sh: New file.
52127         * tests/test-perror.c: New file.
52128
52129         New module 'perror'.
52130         * lib/stdio.in.h (perror): New declaration.
52131         * lib/perror.c: New file.
52132         * m4/perror.m4: New file.
52133         * modules/perror: New file.
52134         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52135         * doc/posix-functions/perror.texi: Mention the perror module.
52136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52137         REPLACE_PERROR.
52138         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52139         REPLACE_PERROR.
52140
52141 2008-09-14  Bruno Haible  <bruno@clisp.org>
52142
52143         * modules/stdio (Makefile.am): Reorder to match the order in
52144         lib/stdio.in.h.
52145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52146
52147 2008-09-13  Bruno Haible  <bruno@clisp.org>
52148
52149         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52150
52151 2008-09-13  Bruno Haible  <bruno@clisp.org>
52152
52153         Extend strerror to cover the added errno values.
52154         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52155         (rpl_strerror): Provide error messages for the added errno values and
52156         for the WSA* values.
52157         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52158         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52159         strerror.
52160         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52161         * modules/strerror (Depends-on): Add errno.
52162         * doc/posix-functions/strerror.texi: Document the change.
52163         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52164         and EOVERFLOW.
52165
52166 2008-09-13  Bruno Haible  <bruno@clisp.org>
52167
52168         * modules/EOVERFLOW: Remove file.
52169         * m4/eoverflow.m4: Remove file.
52170         * modules/EOVERFLOW-tests: Remove file.
52171         * tests/test-EOVERFLOW.c: Remove file.
52172         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52173         * modules/ftell (Depends-on): Likewise.
52174         * modules/getdelim (Depends-on): Likewise.
52175         * modules/getugroups (Depends-on): Likewise.
52176         * modules/poll (Depends-on): Likewise.
52177         * modules/snprintf (Depends-on): Likewise.
52178         * modules/sprintf-posix (Depends-on): Likewise.
52179         * modules/vasnprintf (Depends-on): Likewise.
52180         * modules/vasprintf (Depends-on): Likewise.
52181         * modules/vfprintf-posix (Depends-on): Likewise.
52182         * modules/vsnprintf (Depends-on): Likewise.
52183         * modules/vsprintf-posix (Depends-on): Likewise.
52184         * modules/xvasprintf (Depends-on): Likewise.
52185         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52186         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52187         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52188         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52189         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52190         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52191         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52192         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52193         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52194         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52195         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52196         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52197         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52198         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52199         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52200         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52201         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52202         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52203         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52204         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52205         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52206         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52207         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52208         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52209         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52210         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52211         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52212         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52213         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52214         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52215         * MODULES.html.sh: Remove EOVERFLOW.
52216         * NEWS: Mention the change.
52217
52218 2008-09-13  Bruno Haible  <bruno@clisp.org>
52219
52220         * modules/errno-tests: New file.
52221         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52222
52223         * lib/errno.in.h: New file.
52224         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52225         * modules/errno: New file.
52226         * doc/posix-headers/errno.texi: Update documentation.
52227         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52228
52229 2008-09-13  Bruno Haible  <bruno@clisp.org>
52230
52231         * tests/test-poll.c: Use #if for native Windows, rather than testing
52232         __MSVCRT__.
52233
52234 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52235             Bruno Haible  <bruno@clisp.org>
52236
52237         * lib/glob.c: Don't include <pwd.h> on native Windows.
52238         (WINDOWS32): New macro.
52239         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52240
52241 2008-09-13  Bruno Haible  <bruno@clisp.org>
52242
52243         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52244         (ETIMEDOUT): Remove macro.
52245         (glthread_cond_timedwait_multithreaded): New declaration.
52246         (glthread_cond_timedwait): Use it.
52247         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52248         (glthread_cond_timedwait_multithreaded): New function.
52249
52250 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52251
52252         * modules/poll-tests: Do not check for io.h.
52253         * tests/test-poll.c: Check for __MSVCRT__ instead.
52254
52255 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52256
52257         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52258         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52259         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52260
52261 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52262
52263         * modules/poll-tests: New.
52264         * tests/test-poll.c: New.
52265
52266 2008-09-12  Eric Blake  <ebb9@byu.net>
52267
52268         frexp: test for NetBSD failure on -0.0
52269         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52270         not all, bugs from NetBSD 3.0 have been fixed.
52271         * doc/posix-functions/frexp.texi (frexp): Document bug.
52272         Reported by Thomas Klausner.
52273
52274         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52275         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52276         literal -0.0.
52277         Reported by Jonathan C. Patschke <jp@centtech.com>.
52278
52279 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52280
52281         * lib/glthread/cond.h: Use dummy implementation also if
52282         USE_WIN32_THREADS.
52283
52284 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52285
52286         * modules/fnmatch-posix (License): Change to LGPLv2+.
52287         * modules/fnmatch-gnu (License): Likewise.
52288
52289 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52290
52291         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52292
52293 2008-09-11  Jim Meyering  <meyering@redhat.com>
52294
52295         * users.txt: Add gtk-vnc.
52296
52297 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52298
52299         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52300         rotate amounts.
52301
52302         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52303         required for 16-bit and 8-bit rotates.
52304         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52305         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52306         UINT8_MAX instead of hard-coded constants.
52307         Suggested by Paul Eggert.
52308
52309 2008-09-07  Bruno Haible  <bruno@clisp.org>
52310
52311         * tests/test-striconveh.c (main): Check behaviour when converting from
52312         UTF-7.
52313
52314         Make striconveh work better with stateful encodings.
52315         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52316         that iconv does not increment the inptr when returning -1/EINVAL.
52317
52318 2008-09-07  Bruno Haible  <bruno@clisp.org>
52319
52320         * build-aux/config.rpath: Update according to libtool-2.2.6.
52321         * build-aux/config.libpath: Likewise.
52322
52323 2008-09-06  Bruno Haible  <bruno@clisp.org>
52324
52325         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52326         * lib/freadptr.c (freadptr): Likewise.
52327         * lib/freadseek.c (freadptrinc): Likewise.
52328         Reported by Simon Josefsson.
52329
52330 2008-09-06  Bruno Haible  <bruno@clisp.org>
52331
52332         * modules/freadptr (License): Change to LGPLv2+.
52333         * modules/freadseek (License): Likewise.
52334         Suggested by Eric Blake.
52335
52336         * modules/memchr2 (License): Change to LGPLv2+.
52337         Approved by Eric Blake.
52338
52339 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52340             Bruno Haible  <bruno@clisp.org>
52341
52342         Make gnulib-tool work with native 'sed' on AIX.
52343         * gnulib-tool (sed_noop): New variable.
52344         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52345         func_add_or_update, func_create_testdir): Use it to initialize sed
52346         script variables.
52347         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52348
52349 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52350             Bruno Haible  <bruno@clisp.org>
52351
52352         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52353         also works after #include directives.
52354
52355 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52356
52357         getdate.y: reject an out-of-range timezone value
52358         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52359         the range [-24...+24].  When specified with only one or two digits,
52360         * tests/test-getdate.c: Tests for the fix.
52361         * doc/getdate.texi: Document this change.
52362
52363 2008-09-03  Bruno Haible  <bruno@clisp.org>
52364
52365         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52366
52367 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52368
52369         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52370         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52371         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52372         Blake <ebb9@byu.net>.
52373
52374         * tests/test-bitrotate.c: Add more test vectors.
52375
52376 2008-09-02  Eric Blake  <ebb9@byu.net>
52377
52378         vasnprintf-posix: handle large precision via %.*d
52379         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52380         when handling it ourselves.
52381         * tests/test-vasnprintf-posix.c (test_function): Add test.
52382         * tests/test-snprintf-posix.h (test_function): Likewise.
52383         * tests/test-sprintf-posix.h (test_function): Likewise.
52384         * tests/test-vasprintf-posix.c (test_function): Likewise.
52385         Reported by Alain Guibert.
52386
52387 2008-09-01  Eric Blake  <ebb9@byu.net>
52388
52389         c-stack: make configure-time check more robust
52390         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52391         successful sigaction call.
52392         Reported by Tom G. Christensen.
52393
52394 2008-09-01  Bruno Haible  <bruno@clisp.org>
52395
52396         New module 'findprog-lgpl'.
52397         * modules/findprog-lgpl: New file.
52398         * lib/findprog-lgpl.c: New file.
52399         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52400         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52401         to decide whether to use strdup or xstrdup, concatenated_filename or
52402         xconcatenated_filename.
52403
52404 2008-09-01  Bruno Haible  <bruno@clisp.org>
52405
52406         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52407         'xconcat-filename' (GPL).
52408         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52409         (License): Change to LGPLv2+.
52410         * modules/xconcat-filename: New file.
52411         * lib/concat-filename.h (concatenated_filename): Change specification.
52412         (xconcatenated_filename): New declaration.
52413         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52414         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52415         memory situations.
52416         * lib/xconcat-filename.c: New file.
52417         * NEWS: Mention the change.
52418         * lib/findprog.c: Include concat-filename.h, not filename.h.
52419         (find_in_path): Use xconcatenated_filename instead of
52420         concatenated_filename.
52421         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52422         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52423         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52424         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52425         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52426         instead of concatenated_filename.
52427         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52428         (execute_java_class): Use xconcatenated_filename instead of
52429         concatenated_filename.
52430         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52431         * modules/javacomp (Depends-on): Likewise.
52432         * modules/javaexec (Depends-on): Likewise.
52433
52434 2008-09-01  Bruno Haible  <bruno@clisp.org>
52435
52436         Split module 'filename' into 'filename' and 'concat-filename'.
52437         * modules/filename: Keep only lib/filename.h.
52438         (License): Change to LGPLv2+.
52439         * modules/concat-filename: New file, extracted from modules/filename.
52440         * lib/filename.h (concatenated_filename): Remove declaration.
52441         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52442         * lib/concat-filename.c: Include concat-filename.h.
52443         * NEWS: Mention the change.
52444
52445 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52446
52447         * lib/bitrotate.h (rotl8, rotr8): Add.
52448
52449         * modules/bitrotate (configure.ac): Need
52450         AC_REQUIRE([AC_C_INLINE]).
52451         (Description): Mention stdint.h.  Reported by Bruno Haible
52452         <bruno@clisp.org>.
52453
52454         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52455         Paolo Bonzini <bonzini@gnu.org>.
52456
52457 2008-08-31  Bruno Haible  <bruno@clisp.org>
52458
52459         Assume Solaris specific bi-arch conventions on Solaris systems.
52460         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52461         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52462         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52463         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52464         like acl_libdirstem.
52465         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52466         acl_libdirstem.
52467         * NEWS: Mention the change.
52468         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52469
52470 2008-08-31  Jim Meyering  <meyering@redhat.com>
52471
52472         * lib/strftime.h: Add comments describing the two added arguments.
52473
52474         remove duplicate #include directives
52475         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52476         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52477
52478 2008-08-31  Bruno Haible  <bruno@clisp.org>
52479
52480         New module 'sigpipe-die'.
52481         * modules/sigpipe-die: New file.
52482         * lib/sigpipe-die.h: New file.
52483         * lib/sigpipe-die.c: New file.
52484         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52485
52486 2008-08-31  Bruno Haible  <bruno@clisp.org>
52487
52488         Don't override previously installed signal handlers.
52489         * lib/fatal-signal.c (saved_sigactions): New variable.
52490         (uninstall_handlers): Reset the signal to the saved handler, not
52491         to SIG_DFL (except when ignored).
52492         (install_handlers): Save the previous handlers.
52493
52494 2008-08-30  Bruno Haible  <bruno@clisp.org>
52495
52496         * gnulib-tool (func_reset_sigpipe): New function.
52497         (func_get_automake_snippet, func_modules_transitive_closure,
52498         func_import): Invoke it before a join command that reads from stdin,
52499         to avoid "echo: write error: Broken pipe" error messages on stderr.
52500         Reported by Sam Steingold <sds@gnu.org>.
52501
52502 2008-08-30  Bruno Haible  <bruno@clisp.org>
52503
52504         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52505         Code copied from m4/open.m4.
52506         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52507         access and the filename ends in a slash. Code copied from lib/open.c.
52508         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52509         * tests/test-fopen.c (main): Check against bug with trailing slash.
52510
52511 2008-08-29  Bruno Haible  <bruno@clisp.org>
52512
52513         Avoid some "gcc -pedantic" warnings.
52514         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52515         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52516         * lib/dirent.in.h: Likewise.
52517         * lib/fcntl.in.h: Likewise.
52518         * lib/float.in.h: Likewise.
52519         * lib/iconv.in.h: Likewise.
52520         * lib/inttypes.in.h: Likewise.
52521         * lib/locale.in.h: Likewise.
52522         * lib/math.in.h: Likewise.
52523         * lib/netinet_in.in.h: Likewise.
52524         * lib/search.in.h: Likewise.
52525         * lib/signal.in.h: Likewise.
52526         * lib/stdarg.in.h: Likewise.
52527         * lib/stdint.in.h: Likewise.
52528         * lib/stdio.in.h: Likewise.
52529         * lib/stdlib.in.h: Likewise.
52530         * lib/string.in.h: Likewise.
52531         * lib/strings.in.h: Likewise.
52532         * lib/sys_select.in.h: Likewise.
52533         * lib/sys_socket.in.h: Likewise.
52534         * lib/sys_stat.in.h: Likewise.
52535         * lib/sys_time.in.h: Likewise.
52536         * lib/sysexits.in.h: Likewise.
52537         * lib/time.in.h: Likewise.
52538         * lib/unistd.in.h: Likewise.
52539         * lib/wchar.in.h: Likewise.
52540         * lib/wctype.in.h: Likewise.
52541         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52542         * modules/fchdir (Makefile.am): Likewise.
52543         * modules/fcntl (Makefile.am): Likewise.
52544         * modules/float (Makefile.am): Likewise.
52545         * modules/iconv_open (Makefile.am): Likewise.
52546         * modules/inttypes (Makefile.am): Likewise.
52547         * modules/locale (Makefile.am): Likewise.
52548         * modules/math (Makefile.am): Likewise.
52549         * modules/netinet_in (Makefile.am): Likewise.
52550         * modules/search (Makefile.am): Likewise.
52551         * modules/signal (Makefile.am): Likewise.
52552         * modules/stdarg (Makefile.am): Likewise.
52553         * modules/stdint (Makefile.am): Likewise.
52554         * modules/stdio (Makefile.am): Likewise.
52555         * modules/stdlib (Makefile.am): Likewise.
52556         * modules/string (Makefile.am): Likewise.
52557         * modules/strings (Makefile.am): Likewise.
52558         * modules/sys_select (Makefile.am): Likewise.
52559         * modules/sys_socket (Makefile.am): Likewise.
52560         * modules/sys_stat (Makefile.am): Likewise.
52561         * modules/sys_time (Makefile.am): Likewise.
52562         * modules/sysexits (Makefile.am): Likewise.
52563         * modules/time (Makefile.am): Likewise.
52564         * modules/unistd (Makefile.am): Likewise.
52565         * modules/wchar (Makefile.am): Likewise.
52566         * modules/wctype (Makefile.am): Likewise.
52567         Reported by Reuben Thomas <rrt@sc3d.org>.
52568
52569 2008-08-29  Bruno Haible  <bruno@clisp.org>
52570
52571         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52572         any more.
52573
52574 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52575
52576         * MODULES.html.sh (Misc): Add bitrotate.
52577
52578         * modules/bitrotate: New file.
52579
52580         * lib/bitrotate.h: New file.
52581
52582         * modules/bitrotate-tests: New file.
52583
52584         * tests/test-bitrotate.c: New file.
52585
52586         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52587         on the bitrotate module.
52588
52589         * lib/arctwo.c: Use new bitrotate module.
52590
52591 2008-08-29  Jim Meyering  <meyering@redhat.com>
52592
52593         bootstrap: merge changes from coreutils
52594         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52595         of copied files.  Remove a kludge, now that this is fixed.
52596         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52597         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52598         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52599
52600 2008-08-29  Bruno Haible  <bruno@clisp.org>
52601
52602         * MODULES.html.sh: Remove --cvs-urls option.
52603
52604 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52605
52606         maint.mk: adjust to file name change
52607         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52608
52609 2008-08-28  Jim Meyering  <meyering@redhat.com>
52610
52611         * modules/getndelim2 (License): Relicense to LGPLv2+.
52612         Approved by Richard Stallman for the version of 1995, and by
52613         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52614
52615 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52616
52617         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52618         dummy if one is not available.  Do not touch them if
52619         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52620         (getc_maybe_unlocked): New.
52621         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52622
52623 2008-08-26  Eric Blake  <ebb9@byu.net>
52624
52625         doc/INSTALL: resync from autoconf
52626         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52627         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52628         moving...
52629         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52630         * INSTALL: Regenerate.
52631         * INSTALL.ISO: New file.
52632         * INSTALL.UTF-8: Likewise.
52633
52634 2008-08-26  Jim Meyering  <meyering@redhat.com>
52635
52636         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52637         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52638         these definitions conditional, so that they may be overridden, too.
52639
52640 2008-08-26  Bruno Haible  <bruno@clisp.org>
52641
52642         Generate INSTALL file variants with prettier quotes.
52643         * doc/Makefile (INSTALL_PRELUDE): New macro.
52644         (INSTALL): Use it.
52645         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52646
52647 2008-08-26  Bruno Haible  <bruno@clisp.org>
52648
52649         Run makeinfo in an English locale.
52650         * doc/Makefile (MAKEINFO): New variable.
52651
52652 2008-08-26  Bruno Haible  <bruno@clisp.org>
52653
52654         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52655         Suggested by Eric Blake.
52656
52657 2008-08-25  Bruno Haible  <bruno@clisp.org>
52658
52659         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52660
52661 2008-08-25  Eric Blake  <ebb9@byu.net>
52662
52663         c-stack: test that stack overflow can be caught
52664         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52665         that platform allows handling stack overflow; at least OS/2 EMX
52666         has sigaltstack, but crashes before transferring control to
52667         handler on stack overflow.
52668         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52669         check for HAVE_STACK_OVERFLOW_HANDLING.
52670         Reported by Elbert Pol.
52671
52672 2008-08-25  Bruno Haible  <bruno@clisp.org>
52673
52674         * doc/posix-functions/strftime.texi: Fix description of strftime
52675         module.
52676
52677 2008-08-24  Bruno Haible  <bruno@clisp.org>
52678
52679         * tests/uniwidth/test-uc_width2.c: New file.
52680         * tests/uniwidth/test-uc_width2.sh: New file.
52681         * modules/uniwidth/width-tests (Files): Add the new files.
52682         (TESTS): Add uniwidth/test-uc_width2.sh.
52683         (TESTS_ENVIRONMENT): New variable.
52684         (check_PROGRAMS): Add test-uc_width2.
52685         (test_uc_width2_SOURCES): New variable.
52686
52687         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52688         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52689         not 0x00AB.
52690         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52691
52692 2008-08-22  Eric Blake  <ebb9@byu.net>
52693
52694         test-lock, test-tls: mention why a test is skipped
52695         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52696         skipped.
52697         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52698
52699         count-one-bits: relax license
52700         * modules/count-one-bits (License): Relicense to LGPLv2+.
52701         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52702
52703 2008-08-22  Andreas Schwab  <schwab@suse.de>
52704
52705         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52706         Remove spurious space in assignment.
52707
52708 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52709
52710         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52711         Paul Eggert <eggert@CS.UCLA.EDU>.
52712
52713 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52714
52715         * modules/gettext: Add m4/threadlib.m4.
52716
52717 2008-08-19  Eric Blake  <ebb9@byu.net>
52718
52719         test-c-stack: fix compilation failure on FreeBSD 5.0
52720         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52721         headers before <sys/resource.h>.
52722         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52723         the bug.
52724         Reported by Nelson H. F. Beebe.
52725
52726         strverscmp: migrate from "strverscmp.h" to <string.h>
52727         * modules/string (Makefile.am): Add new hooks.
52728         * modules/strverscmp (Files): Remove strverscmp.h.
52729         (Depends-on): Add string.
52730         (configure.ac): Add indicator.
52731         (Include): Mention new header.
52732         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52733         defaults.
52734         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52735         results.
52736         * lib/strverscmp.h: Delete.
52737         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52738         * tests/test-strverscmp.c (includes): Adjust client.
52739         * lib/check-version.c (includes): Likewise.
52740         * NEWS: Document the change.
52741
52742         strverscmp: add unit test
52743         * modules/strverscmp-tests: New file.
52744         * tests/test-strverscmp.c: Likewise.
52745
52746 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52747
52748         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52749         regarding Windows crypto stuff, from Mono.
52750
52751 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52752
52753         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52754         if present, for intel RND.  Return error on failures.
52755
52756 2008-08-18  Ben Pfaff  <blp@gnu.org>
52757
52758         gitlog-to-changelog: give better diagnostic for failed pipe-open
52759         * build-aux/gitlog-to-changelog: Improve error message: suggest
52760         that the version of Git may be too old.
52761
52762 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52763
52764         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52765         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52766
52767 2008-08-18  Bruno Haible  <bruno@clisp.org>
52768
52769         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52770         pthread_in_use().
52771
52772 2008-08-18  Bruno Haible  <bruno@clisp.org>
52773
52774         * lib/glthread/threadlib.c: Include <pthread.h>.
52775
52776 2008-08-18  Bruno Haible  <bruno@clisp.org>
52777
52778         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52779         glthread_recursive_lock_* macros.
52780         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52781         Fix syntax error.
52782
52783 2008-08-18  Bruno Haible  <bruno@clisp.org>
52784
52785         * lib/glthread/thread.c: Avoid forcing a context switch right after
52786         thread creation.
52787
52788 2008-08-17  Bruno Haible  <bruno@clisp.org>
52789
52790         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52791         * lib/glthread/thread.h: Provide Win32 specific implementation.
52792         * modules/thread (Files): Add lib/glthread/thread.c.
52793         (Depends-on): Add lock.
52794         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52795
52796 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52797
52798         New module 'yield'.
52799         * modules/yield: New file.
52800         * lib/glthread/yield.h: New file.
52801         * m4/yield.m4: New file.
52802         * MODULES.html.sh (Multithreading): Add yield.
52803
52804 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52805
52806         New module 'thread'.
52807         * modules/thread: New file.
52808         * lib/glthread/thread.h: New file.
52809         * m4/thread.m4: New file.
52810         * MODULES.html.sh (Multithreading): Add thread.
52811
52812 2008-08-17  Bruno Haible  <bruno@clisp.org>
52813
52814         * lib/glthread/lock.h: Include <stdlib.h> always.
52815         * lib/glthread/tls.h: Likewise.
52816         * lib/glthread/cond.h: Likewise.
52817
52818 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52819
52820         New module 'cond'.
52821         * modules/cond: New file.
52822         * lib/glthread/cond.h: New file.
52823         * lib/glthread/cond.c: New file.
52824         * m4/cond.m4: New file.
52825         * MODULES.html.sh (Multithreading): Add cond.
52826
52827 2008-08-16  Eric Blake  <ebb9@byu.net>
52828
52829         c-stack: fix regression on Irix 5.3 from 2008-06-21
52830         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52831         sa_sigaction...
52832         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52833         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52834         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52835         * modules/signal (Makefile.am): Use the value.
52836         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52837         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52838         * doc/posix-headers/signal.texi (signal.h): Document this
52839         portability issue.
52840         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52841         Reported by Tom G. Christensen.
52842
52843 2008-08-17  Bruno Haible  <bruno@clisp.org>
52844
52845         New module 'threadlib'.
52846         * modules/threadlib: New file.
52847         * lib/glthread/threadlib.c: New file, extracted from
52848         lib/glthread/lock.c.
52849         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52850         functions.
52851         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52852         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52853         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52854         macros.
52855         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52856         (gl_DISABLE_THREADS): Remove macro.
52857         * modules/lock (Files): Remove build-aux/config.rpath.
52858         (Depends-on): Remove havelib. Add threadlib.
52859         (configure.ac-early): Remove section.
52860         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52861         * modules/tls (Depends-on): Remove lock. Add threadlib.
52862         (Link): New section, copied from threadlib.
52863         * MODULES.html.sh (Multithreading): Add threadlib.
52864
52865 2008-08-14  Bruno Haible  <bruno@clisp.org>
52866
52867         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52868         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52869         glthread_rwlock_unlock, glthread_rwlock_destroy,
52870         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52871         glthread_recursive_lock_destroy): Define as macros always.
52872         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52873         glthread_lock_lock.
52874         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52875         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52876         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52877         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52878         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52879         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52880         (glthread_recursive_lock_lock_func): Renamed from
52881         glthread_recursive_lock_lock.
52882         (glthread_recursive_lock_unlock_func): Renamed from
52883         glthread_recursive_lock_unlock.
52884         (glthread_recursive_lock_destroy_func): Renamed from
52885         glthread_recursive_lock_destroy.
52886
52887 2008-08-14  Bruno Haible  <bruno@clisp.org>
52888
52889         * lib/glthread/lock.h: Renamed from lib/lock.h.
52890         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52891         * lib/glthread/tls.h: Renamed from lib/tls.h.
52892         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52893         * lib/fstrcmp.c: Update includes.
52894         * lib/strsignal.c: Update includes.
52895         * modules/lock (Files, Makefile.am): Update.
52896         (Include): Change to "glthread/lock.h".
52897         * modules/tls (Files, Makefile.am): Update.
52898         (Include): Change to "glthread/tls.h".
52899         * tests/test-lock.c: Update includes.
52900         * tests/test-tls.c: Update includes.
52901         * NEWS: Mention the renamed header files.
52902
52903 2008-08-11  Jim Meyering  <meyering@redhat.com>
52904
52905         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52906
52907 2008-08-11  Eric Blake  <ebb9@byu.net>
52908
52909         test-c-stack: avoid C99-ism
52910         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52911         before statement.
52912         Reported by Alain Guibert.
52913
52914 2008-08-10  Jim Meyering  <meyering@redhat.com>
52915
52916         ensure that return value of uinttostr et al are not ignored
52917         * lib/inttostr.h (__GNUC_PREREQ): Define.
52918         (__attribute_warn_unused_result__): Define.
52919         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52920
52921 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52922
52923         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52924         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52925
52926 2008-08-07  Jim Meyering  <meyering@redhat.com>
52927
52928         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
52929
52930         * modules/mkstemp (License): Relicense under LGPLv2+.
52931         * modules/tempname (License): Likewise.
52932
52933 2008-08-06  Bruno Haible  <bruno@clisp.org>
52934
52935         * lib/poll.c (poll): Further micro-optimization.
52936
52937 2008-08-06  Jim Meyering  <meyering@redhat.com>
52938
52939         inet_pton.c: use locale-independent tolower
52940         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
52941         (inet_pton6): Use c_tolower rather than tolower.
52942         * modules/inet_pton (Depends-on): Add c-ctype.
52943
52944 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
52945
52946         * lib/poll.c (poll): Avoid division when timeout is 0, cache
52947         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
52948
52949 2008-08-06  Jim Meyering  <meyering@redhat.com>
52950
52951         * modules/inet_pton (License): Relicense under LGPLv2+.
52952
52953 2008-08-03  Bruno Haible  <bruno@clisp.org>
52954
52955         Additional non-aborting API for lock and tls.
52956         * lib/lock.h: Include <errno.h>.
52957         (glthread_lock_init): New macro/function.
52958         (gl_lock_init): Define as wrapper around glthread_lock_init.
52959         (glthread_lock_lock): New macro/function.
52960         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
52961         (glthread_lock_unlock): New macro/function.
52962         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
52963         (glthread_lock_destroy): New macro/function.
52964         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
52965         (glthread_rwlock_init): New macro/function.
52966         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
52967         (glthread_rwlock_rdlock): New macro/function.
52968         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
52969         (glthread_rwlock_wrlock): New macro/function.
52970         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
52971         (glthread_rwlock_unlock): New macro/function.
52972         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
52973         (glthread_rwlock_destroy): New macro/function.
52974         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
52975         (glthread_recursive_lock_init): New macro/function.
52976         (gl_recursive_lock_init): Define as wrapper around
52977         glthread_recursive_lock_init.
52978         (glthread_recursive_lock_lock): New macro/function.
52979         (gl_recursive_lock_lock): Define as wrapper around
52980         glthread_recursive_lock_lock.
52981         (glthread_recursive_lock_unlock): New macro/function.
52982         (gl_recursive_lock_unlock): Define as wrapper around
52983         glthread_recursive_lock_unlock.
52984         (glthread_recursive_lock_destroy): New macro/function.
52985         (gl_recursive_lock_destroy): Define as wrapper around
52986         glthread_recursive_lock_destroy.
52987         (glthread_once): New macro/function.
52988         (gl_once): Define as wrapper around glthread_once.
52989         Update function declarations.
52990         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
52991         glthread_rwlock_init. Return error code.
52992         (glthread_rwlock_rdlock_multithreaded): Renamed from
52993         glthread_rwlock_rdlock. Return error code.
52994         (glthread_rwlock_wrlock_multithreaded): Renamed from
52995         glthread_rwlock_wrlock. Return error code.
52996         (glthread_rwlock_unlock_multithreaded): Renamed from
52997         glthread_rwlock_unlock. Return error code.
52998         (glthread_rwlock_destroy_multithreaded): Renamed from
52999         glthread_rwlock_destroy. Return error code.
53000         (glthread_recursive_lock_init_multithreaded): Renamed from
53001         glthread_recursive_lock_init. Return error code.
53002         (glthread_recursive_lock_lock_multithreaded): Renamed from
53003         glthread_recursive_lock_lock. Return error code.
53004         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53005         glthread_recursive_lock_unlock. Return error code.
53006         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53007         glthread_recursive_lock_destroy. Return error code.
53008         (glthread_once_call): Make static.
53009         (glthread_once_multithreaded): Renamed from glthread_once.
53010         * lib/tls.h: Include <errno.h>.
53011         (glthread_tls_key_init): New macro/function.
53012         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53013         (glthread_tls_set): New macro/function.
53014         (gl_tls_set): Define as wrapper around glthread_tls_set.
53015         (glthread_tls_key_destroy): New macro/function.
53016         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53017         Update function declarations.
53018         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53019         glthread_tls_get.
53020         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53021
53022 2008-08-04  Eric Blake  <ebb9@byu.net>
53023
53024         gnumakefile: use space, not TAB, outside of targets
53025         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53026
53027 2008-08-02  Jim Meyering  <meyering@redhat.com>
53028
53029         getdate.y: avoid locale-dependent date parsing failure
53030         In Turkish locales, getdate would fail to recognize keywords
53031         containing a lowercase "i".  The solution is not to rely on
53032         locale-sensitive case-conversion.
53033         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53034         (lookup_word): Use c_toupper in place of toupper.
53035         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53036         Reported by Vefa Bicakci <bicave@superonline.com> in
53037         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53038         * modules/getdate (Depends-on): Add c-ctype.
53039
53040 2008-08-02  Bruno Haible  <bruno@clisp.org>
53041
53042         * gnulib-tool (func_import): When updating or creating a .gitignore
53043         file, prepend each added line with a slash, and ignore leading slashes
53044         from the existing lines.
53045         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53046
53047 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53048
53049         Portability fix for GNU make 3.79.1.
53050         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53051         versions do not understand.
53052
53053 2008-08-01  Bruno Haible  <bruno@clisp.org>
53054
53055         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53056         * tests/test-isnanf.h (zero): New variable.
53057         (main): Avoid literal -0.0f.
53058         * tests/test-isnand.h (zero): New variable.
53059         (main): Avoid literal -0.0.
53060         * tests/test-isnanl.h (zero): New variable.
53061         (main): Avoid literal -0.0L.
53062         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53063         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53064         -0.0, -0.0L.
53065         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53066         (test_signbitd): Avoid literal -0.0.
53067         (test_signbitl): Avoid literal -0.0L.
53068         * tests/test-ceilf1.c (zero): New variable.
53069         (main): Avoid literal -0.0f.
53070         * tests/test-ceill.c (zero): New variable.
53071         (main): Avoid literal -0.0L.
53072         * tests/test-floorf1.c (zero): New variable.
53073         (main): Avoid literal -0.0f.
53074         * tests/test-floorl.c (zero): New variable.
53075         (main): Avoid literal -0.0L.
53076         * tests/test-roundf1.c (zero): New variable.
53077         (main): Avoid literal -0.0f.
53078         * tests/test-round1.c (zero): New variable.
53079         (main): Avoid literal -0.0.
53080         * tests/test-roundl.c (zero): New variable.
53081         (main): Avoid literal -0.0L.
53082         * tests/test-truncf1.c (zero): New variable.
53083         (main): Avoid literal -0.0f.
53084         * tests/test-trunc1.c (zero): New variable.
53085         (main): Avoid literal -0.0.
53086         * tests/test-truncl.c (zero): New variable.
53087         (main): Avoid literal -0.0L.
53088         * tests/test-frexp.c (zero): New variable.
53089         (main): Avoid literal -0.0.
53090         * tests/test-frexpl.c (zero): New variable.
53091         (main): Avoid literal -0.0L.
53092         * tests/test-ldexpl.c (zero): New variable.
53093         (main): Avoid literal -0.0L.
53094         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53095         (zerod, zerol): New variables.
53096         (test_function): Avoid literals -0.0, -0.0L.
53097         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53098         (zerod, zerol): New variables.
53099         (test_function): Avoid literals -0.0, -0.0L.
53100         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53101         (zerod, zerol): New variables.
53102         (test_function): Avoid literals -0.0, -0.0L.
53103         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53104         (zerod, zerol): New variables.
53105         (test_function): Avoid literals -0.0, -0.0L.
53106         * tests/test-strtod.c (zero): New variable.
53107         (main): Avoid literal -0.0.
53108         Reported by Jonathan C. Patschke <jp@centtech.com>.
53109
53110 2008-07-31  Jim Meyering  <meyering@redhat.com>
53111
53112         sha256.h: correct definition of SHA224_DIGEST_SIZE
53113         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53114         Reported by Paulie Pena IV <paulie4@gmail.com>.
53115         Define as 224 / 8, rather than as a literal.
53116         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53117         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53118         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53119
53120 2008-07-31  Bruno Haible  <bruno@clisp.org>
53121
53122         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53123         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53124         Reported by Jonathan Patschke <jp@centtech.com>.
53125
53126 2008-07-31  Bruno Haible  <bruno@clisp.org>
53127
53128         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53129         Reported by Paolo Bonzini <bonzini@gnu.org>.
53130
53131 2008-07-30  Eric Blake  <ebb9@byu.net>
53132
53133         test-strtod: allow compilation without -lm
53134         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53135         Reported by Dennis Clarke <blastwave@gmail.com>.
53136
53137 2008-07-28  Jim Meyering  <meyering@redhat.com>
53138
53139         bootstrap: work also when there are no .po files in po/
53140         * build-aux/bootstrap (update_po_files): Complete the change
53141         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53142
53143 2008-07-27  Jim Meyering  <meyering@redhat.com>
53144
53145         * users.txt: Add zile.
53146
53147 2008-07-26  Ben Pfaff  <blp@gnu.org>
53148
53149         Add missing dependencies on new m4/exponent[fdl].m4 files.
53150         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53151         * modules/isnand-nolibm: Add m4/exponentd.m4.
53152         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53153         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53154         m4/isnan[fdl].m4, because the macros actually used moved.
53155         Reported by Jim Meyering.
53156
53157 2008-07-14  Ben Pfaff  <blp@gnu.org>
53158
53159         Add isinf module.
53160         * lib/isinf.c: New file.
53161         * lib/math.in.h: Define isinf macro if we have decided to replace
53162         it.
53163         * m4/isinf.m4: New file.
53164         * m4/math_h.m4: Initialize and substitute variables for isinf
53165         module.
53166         * modules/isinf: New file.
53167         * modules/isinf-tests: New file.
53168         * modules/math: Add substitutions for new module.
53169         * tests/test-isinf.c: New file.
53170         * doc/posix-functions/isinf.texi: Mention new module.
53171         * MODULES.html.sh: Mention new module.
53172
53173 2008-07-14  Ben Pfaff  <blp@gnu.org>
53174
53175         Factor out some macros for use by additional modules.
53176         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53177         exponentf.m4.
53178         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53179         exponentd.m4.
53180         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53181         file exponentl.m4.
53182         * m4/exponentf.m4: New file.
53183         * m4/exponentd.m4: New file.
53184         * m4/exponentl.m4: New file.
53185         * modules/isnanf: Use new file m4/exponentf.m4.
53186         * modules/isnand: Use new file m4/exponentd.m4.
53187         * modules/isnanl: Use new file m4/exponentl.m4.
53188
53189 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53190
53191         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53192         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53193         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53194         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53195
53196         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53197         readlink on platforms without PATH_MAX.
53198
53199 2008-07-21  Eric Blake  <ebb9@byu.net>
53200
53201         Warn, not fail, on stale version.
53202         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53203
53204         Don't allow installation with stale devel version number.
53205         * top/GNUmakefile (_is-install-target): New macro.
53206         (_curr-ver): Forbid installation with stale version number.
53207
53208 2008-07-20  Bruno Haible  <bruno@clisp.org>
53209
53210         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53211         TESTS_ENVIRONMENT.
53212         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53213
53214 2008-07-20  Bruno Haible  <bruno@clisp.org>
53215
53216         * lib/c-stack.h (c_stack_action): Add documentation.
53217         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53218
53219 2008-07-20  Bruno Haible  <bruno@clisp.org>
53220
53221         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53222         * modules/readlink (License): Likewise.
53223
53224 2008-07-17  Eric Blake  <ebb9@byu.net>
53225
53226         * modules/c-stack (Link): Fix typo.
53227
53228         Make c-stack use libsigsegv, when available.
53229         * modules/c-stack (Depends-on): Add libsigsegv.
53230         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53231         needed.
53232         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53233         (segv_handler, overflow_handler, c_stack_action)
53234         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53235         implementation when libsigsegv is available, but only when using
53236         the library is necessary.
53237         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53238         comment, explaining why XSI check fails on Linux.
53239         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53240         * tests/test-c-stack2.sh: Tweak skip message.
53241         * NEWS: Document new link-time requirements.
53242
53243 2008-07-16  Eric Blake  <ebb9@byu.net>
53244
53245         c-stack: Expose false positives when not using libsigsegv.
53246         * modules/c-stack-tests (Files): Expand test.
53247         * tests/test-c-stack.c (main): Add means to conditionally trigger
53248         non-overflow SIGSEGV.
53249         * tests/test-c-stack2.sh: New file.
53250
53251 2008-07-14  Bruno Haible  <bruno@clisp.org>
53252
53253         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53254         Reported by Eric Blake.
53255
53256 2008-07-14  Sam Steingold  <sds@gnu.org>
53257             Bruno Haible  <bruno@clisp.org>
53258
53259         New module libsigsegv.
53260         * modules/libsigsegv: New file.
53261         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53262         modifications.
53263         * MODULES.html.sh (Signal handling): New section.
53264
53265 2008-07-14  Bruno Haible  <bruno@clisp.org>
53266
53267         * modules/unictype/ctype-* (Description): Add the word "function".
53268         Improves the resulting doc in MODULES.html.
53269
53270 2008-07-12  Ben Pfaff  <blp@gnu.org>
53271
53272         Add longlong module.
53273         * modules/longlong: New file.
53274
53275 2008-07-12  Bruno Haible  <bruno@clisp.org>
53276
53277         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53278         to empty.
53279
53280 2008-07-10  Ben Pfaff  <blp@gnu.org>
53281
53282         Add isnan module.
53283         * doc/posix-functions/isnan.texi: Mention new module.
53284         * lib/math.in.h: Define isnan macro if we have decided to replace
53285         it.
53286         * m4/isnan.m4: New file.
53287         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53288         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53289         also.
53290         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53291         redundancy.
53292         * m4/math_h.m4: Initialize and substitute variables for isnan
53293         module.
53294         * modules/isnan: New file.
53295         * modules/isnan-tests: New file.
53296         * modules/math: Add substitutions for new module.
53297         * tests/test-isnan.c: New file.
53298         * MODULES.html.sh: Mention new module.
53299
53300 2008-07-10  Ben Pfaff  <blp@gnu.org>
53301
53302         Add isnanf module.
53303         * lib/isnanf.m4: New file.
53304         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53305         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53306         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53307         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53308         * modules/isnanf: New file.
53309         * modules/isnanf-tests: New file.
53310         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53311         files.
53312         * tests/test-isnanf-nolibm.c: factored most of its contents into
53313         new file tests/test-isnanf.h.
53314         * tests/test-isnanf.h: New file.
53315         * tests/test-isnanf.c: New file.
53316         * MODULES.html.sh: Mention new module.
53317         * doc/glibc-functions/isnanf.texi: Mention new module.
53318
53319 2008-07-10  Ben Pfaff  <blp@gnu.org>
53320
53321         Add isnand module.
53322         * lib/isnand.h: New file.
53323         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53324         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53325         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53326         functionality also.
53327         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53328         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53329         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53330         * modules/isnand: New file.
53331         * modules/isnand-tests: New file.
53332         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53333         files.
53334         * tests/test-isnand-nolibm.c: factored most of its contents into
53335         new file tests/test-isnand.h.
53336         * tests/test-isnand.h: New file.
53337         * tests/test-isnand.c: New file.
53338         * MODULES.html.sh: Mention new module.
53339
53340 2008-07-10  Ben Pfaff  <blp@gnu.org>
53341
53342         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53343         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53344         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53345         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53346         * modules/isnanf-nolibm: Update references to renamed files.
53347         * modules/isnand-nolibm: Likewise.
53348         * modules/isnanf-nolibm-tests: Likewise.
53349         * modules/isnand-nolibm-tests: Likewise.
53350         * lib/frexp.c: Likewise.
53351         * lib/isfinite.c: Likewise.
53352         * lib/signbitd.c: Likewise.
53353         * lib/signbitf.c: Likewise.
53354         * lib/vasnprintf.c: Likewise.
53355         * tests/test-ceilf1.c: Likewise.
53356         * tests/test-ceilf2.c: Likewise.
53357         * tests/test-floorf1.c: Likewise.
53358         * tests/test-floorf2.c: Likewise.
53359         * tests/test-frexp.c: Likewise.
53360         * tests/test-round1.c: Likewise.
53361         * tests/test-round2.c: Likewise.
53362         * tests/test-roundf1.c: Likewise.
53363         * tests/test-strtod.c: Likewise.
53364         * tests/test-trunc1.c: Likewise.
53365         * tests/test-trunc2.c: Likewise.
53366         * tests/test-truncf1.c: Likewise.
53367         * tests/test-truncf2.c: Likewise.
53368         * NEWS: Mention the renamed header files.
53369
53370 2008-07-11  Jim Meyering  <meyering@redhat.com>
53371
53372         vc-list-files: make the last-resort awk code more portable
53373         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53374         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53375         does not support it.
53376
53377 2008-07-10  Eric Blake  <ebb9@byu.net>
53378
53379         Work with tar's bootstrap.
53380         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53381         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53382         an m4 comment.
53383
53384 2008-07-09  Jim Meyering  <meyering@redhat.com>
53385
53386         posix-shell.m4: fix typo that made this test malfunction
53387         * m4/posix-shell.m4: Remove capitalization in variable name.
53388
53389 2008-07-08  Bruno Haible  <bruno@clisp.org>
53390
53391         * m4/onceonly.m4: Update comments.
53392         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53393
53394 2008-07-04  Jim Meyering  <meyering@redhat.com>
53395
53396         * users.txt: Add vc-dwim.
53397         (bison, coreutils): Use the gitweb URL.
53398
53399 2008-07-03  Jim Meyering  <meyering@redhat.com>
53400
53401         * users.txt: Add libffcall.  From Sam Steingold.
53402
53403 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53404
53405         getdate.y: do not ignore TZ with relative day, month or year offset
53406         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53407         relative-date-handling, since otherwise, the latter would clobber the
53408         sole output (an updated Start value) of the tz-handling block.
53409         * tests/test-getdate.c: Tests for the fix
53410
53411 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53412
53413         Recognize 'foo_LIBRARIES += libgnu.a'.
53414         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53415         makefile snippet has already specified an installation location,
53416         also using '+='.
53417
53418 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53419
53420         getdate.y: factor out common actions
53421         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53422         Use them in place of open-coded actions.
53423
53424 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53425
53426         Add self-test for getdate module.
53427         * modules/getdate-tests: New file.
53428         * tests/test-getdate.c: New file.
53429
53430 2008-06-29  Bruno Haible  <bruno@clisp.org>
53431
53432         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53433         .gitignore.
53434         Reported by Sylvain Beucler <beuc@beuc.net>.
53435
53436 2008-06-29  Bruno Haible  <bruno@clisp.org>
53437
53438         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53439         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53440
53441 2008-06-29  Bruno Haible  <bruno@clisp.org>
53442
53443         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53444         EXTRA_DIST.
53445         Reported by Sylvain Beucler <beuc@beuc.net>.
53446
53447 2008-06-26  Jim Meyering  <meyering@redhat.com>
53448
53449         make several modules depend on the "open" module
53450         This provides slightly increased consistency when opening-for-write
53451         the name of a non-directory spelled with a trailing slash.
53452         * modules/chdir-safer: Likewise.
53453         * modules/chown: Likewise.
53454         * modules/clean-temp: Likewise.
53455         * modules/copy-file: Likewise.
53456         * modules/fchdir: Likewise.
53457         * modules/fcntl-safer: Likewise.
53458         * modules/pipe: Likewise.
53459         * modules/utime: Likewise.
53460         Prompted by Eric Blake and Bruno Haible.
53461
53462 2008-06-24  Andreas Schwab  <schwab@suse.de>
53463
53464         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53465         literals can be used as initializers for global variables.
53466
53467 2008-06-23  Eric Blake  <ebb9@byu.net>
53468
53469         Make gnulib-cache.m4 easier to diff.
53470         * gnulib-tool (func_import): Allow newlines when reading cached
53471         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53472
53473 2008-06-23  Bruno Haible  <bruno@clisp.org>
53474
53475         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53476         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53477         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53478         m4/signalblocking.m4.
53479         (gl_PREREQ_SIGACTION): Don't invoke it.
53480         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53481         gl_PREREQ_SIG_HANDLER_H.
53482         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53483         Don't check for sigaction here.
53484
53485 2008-06-23  Bruno Haible  <bruno@clisp.org>
53486
53487         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53488         (install_handlers): Don't set the SA_RESETHAND flag.
53489
53490 2008-06-23  Bruno Haible  <bruno@clisp.org>
53491
53492         * m4/sigaction.m4: Comment fixes.
53493         * lib/signal.in.h: Likewise.
53494
53495 2008-06-23  Eric Blake  <ebb9@byu.net>
53496
53497         Fix typo.
53498         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53499
53500         Avoid SA_ namespace.
53501         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53502         Reported by Ralf Wildenhues.
53503
53504         Avoid test failure due to SA_RESTORER.
53505         * tests/test-sigaction.c (SA_MASK): New macro.
53506         (main): Avoid failing due to extension flags being set.
53507         Reported by Jim Meyering.
53508
53509         Revert use of sig-handler.h in sigprocmask.c.
53510         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53511         it requires the existence of struct sigaction.
53512         * lib/sigprocmask.c (handler_t): Restore typedef.
53513         (rpl_signal, old_handlers): Use local type.
53514
53515 2008-06-22  Bruno Haible  <bruno@clisp.org>
53516
53517         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53518         conditionally.
53519         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53520
53521 2008-06-22  Bruno Haible  <bruno@clisp.org>
53522
53523         * doc/posix-functions/siginterrupt.texi: Move note.
53524
53525         * lib/signal.in.h (SA_RESTART): New macro.
53526         * lib/sigaction.c: Update comment.
53527
53528         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53529
53530         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53531         (gl_PREREQ_SIGPROCMASK): Invoke it.
53532         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53533
53534         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53535
53536         * lib/sigprocmask.c: Update a comment.
53537
53538 2008-06-21  Eric Blake  <ebb9@byu.net>
53539
53540         Use sigaction module rather than signal().
53541         * modules/c-stack (Depends-on): Add sigaction.
53542         * modules/fatal-signal (Depends-on): Likewise.
53543         * modules/nanosleep (Depends-on): Likewise.
53544         * modules/sigprocmask (Files): Add sig-handler.h.
53545         * modules/sigaction (Files): Likewise.
53546         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53547         Eggert.
53548         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53549         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53550         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53551         (init_fatal_signals): Likewise.
53552         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53553         (siginterrupt): Delete fallback.
53554         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53555         instead.
53556         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53557         siginterrupt.
53558
53559         New module sigaction, for mingw.
53560         * modules/sigaction: New module...
53561         * modules/sigaction-tests: ...and its test.
53562         * m4/sigaction.m4: New file.
53563         * lib/sigaction.c: Likewise.
53564         * tests/test-sigaction.c: Likewise.
53565         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53566         * modules/signal (Makefile.am): Likewise.
53567         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53568         needed.
53569         * doc/posix-headers/signal.texi (signal.h): Mention provided
53570         types.
53571         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53572         that sigaction is preferable.
53573         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53574         module.
53575         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53576         sigaction.
53577
53578         Improve robustness of sigprocmask by overriding signal.
53579         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53580         is in use.
53581         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53582         (SIGKILL, SIGSTOP): Provide fallbacks.
53583         (rpl_signal): Implement.
53584         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53585         signal can be called inside handlers.
53586
53587         Fix nanosleep module on mingw.
53588         * modules/nanosleep (Depends-on): Add sys_select.
53589         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53590
53591         Fix licensing of sigprocmask.
53592         * modules/raise (License): Relicense as LGPL.
53593
53594 2008-06-21  Bruno Haible  <bruno@clisp.org>
53595
53596         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53597         result if it contains question marks.
53598         Reported by Michael Geng <linux@michaelgeng.de>.
53599
53600 2008-06-19  Bruno Haible  <bruno@clisp.org>
53601
53602         Fix CVS-ism.
53603         * doc/gnulib.texi: Include updated-stamp.texi.
53604         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53605         (updated-stamp.texi): New rule.
53606         (gnulib.info): Depend on it.
53607         * doc/.gitignore: Add updated-stamp.texi.
53608         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53609
53610 2008-06-19  Bruno Haible  <bruno@clisp.org>
53611
53612         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53613         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53614
53615 2008-06-19  Eric Blake  <ebb9@byu.net>
53616
53617         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53618         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53619         Reported by Stepan Kasal.
53620
53621 2008-06-18  Bruno Haible  <bruno@clisp.org>
53622
53623         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53624         Reported by Eric Blake.
53625
53626 2008-06-18  Eric Blake  <ebb9@byu.net>
53627
53628         Work around cygwin 1.5.25 strsignal bug.
53629         * tests/test-strsignal.c: Allow for const char *.
53630         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53631
53632 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53633
53634         * users.txt: Update URL to article and add author/date
53635         information.
53636
53637 2008-06-17  Bruno Haible  <bruno@clisp.org>
53638
53639         New macro gl_DISABLE_THREADS.
53640         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53641         if the user did not pass --enable-threads or --disable-threads option.
53642         (gl_DISABLE_THREADS): New macro.
53643         Reported by Eric Blake <ebb9@byu.net>.
53644
53645 2008-06-17  Bruno Haible  <bruno@clisp.org>
53646
53647         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53648         when the macro ignores it.
53649         Based on a patch by Eric Blake <ebb9@byu.net>.
53650
53651 2008-06-17  Bruno Haible  <bruno@clisp.org>
53652
53653         * modules/tls (License): Change to LGPLv2+.
53654         Reported by Eric Blake.
53655
53656 2008-06-17  Eric Blake  <ebb9@byu.net>
53657
53658         Simplify c-stack prerequisites.
53659         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53661         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53662         check.
53663         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53664         <sys/resource.h>.
53665
53666         Move c-stack test into testsuite.
53667         * modules/c-stack-tests: New file.
53668         * lib/c-stack.c [DEBUG]: Move test program...
53669         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53670         fail test if sigaltstack is lacking.
53671         * tests/test-c-stack.sh: New driver file.
53672
53673 2008-06-16  Eric Blake  <ebb9@byu.net>
53674
53675         Use raise module consistently.
53676         * modules/fatal-signal (Depends-on): Add raise.
53677         * modules/sigprocmask (Depends-on): Likewise.
53678         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53679         * lib/sigprocmask.c (sigprocmask): Likewise.
53680         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53681         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53682
53683         Fix compliance bug in sigpending.
53684         * lib/sigprocmask.c (sigpending): Return pending array via
53685         parameter, not return value.
53686
53687 2008-06-14  Eric Blake  <ebb9@byu.net>
53688
53689         Improve obstack-printf test code.
53690         * tests/test-obstack-printf.c (test_function): Fix comment, and
53691         simplify usage of obstack_* in macros.  Add a test for coverage.
53692         Reported by Bruno Haible.
53693
53694 2008-06-14  Bruno Haible  <bruno@clisp.org>
53695
53696         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53697         array size as a constant, not as a const variable.
53698         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53699         AC_USE_SYSTEM_EXTENSIONS.
53700         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53701         Test whether the obstack_printf function actually exists.
53702         * modules/obstack-printf (Depends-on): Add extensions.
53703         (Include): Remove obstack.h.
53704         * modules/obstack-printf-posix (Depends-on): Add extensions.
53705         (Include): Remove obstack.h.
53706
53707 2008-06-13  Eric Blake  <ebb9@byu.net>
53708
53709         Add obstack-printf and obstack-printf-posix modules.
53710         * modules/obstack-printf: New file.
53711         * modules/obstack-printf-posix: Likewise.
53712         * MODULES.html.sh (Misc): Mention them.
53713         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53714         Likewise.
53715         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53716         Likewise.
53717         * modules/stdio (Makefile.am): Accomodate new modules.
53718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53719         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53720         Declare.
53721         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53722         functions.
53723         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53724         (gl_REPLACE_OBSTACK_PRINTF): New macros
53725         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53726         * tests/test-obstack-printf.c: New file.
53727         * modules/obstack-printf-tests: Likewise.
53728         * modules/obstack-printf-posix-tests: Likewise.
53729
53730 2008-06-11  Bruno Haible  <bruno@clisp.org>
53731
53732         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53733         * lib/open.c: Include errno.h.
53734         (open): Fail when attempting to write to a file that has a trailing
53735         slash.
53736         * tests/test-open.c (main): Test against trailing slash bug.
53737         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53738
53739 2008-06-10  Bruno Haible  <bruno@clisp.org>
53740
53741         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53742         for $? to work inside the trap command, with various /bin/sh-s.
53743         * tests/test-vc-list-files-cvs.sh: Likewise.
53744
53745 2008-06-10  Bruno Haible  <bruno@clisp.org>
53746
53747         * lib/acl-internal.h: Don't include gettext.h here.
53748         * lib/set-mode-acl.c: Include gettext.h here.
53749         * lib/copy-acl.c: Likewise.
53750
53751 2008-06-10  Bruno Haible  <bruno@clisp.org>
53752
53753         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53754         * lib/wait-process.c (wait_subprocess): Likewise.
53755         * lib/execute.h (execute): Add termsigp argument.
53756         * lib/execute.c (execute): Likewise.
53757         * lib/csharpcomp.c (compile_csharp_using_pnet,
53758         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53759         * lib/csharpexec.c (execute_csharp_using_pnet,
53760         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53761         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53762         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53763         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53764         is_jikes_present): Update.
53765         * lib/javaexec.c (execute_java_class): Update.
53766         * lib/javaversion.c (execute_and_read_line): Update.
53767         * NEWS: Document the changes.
53768         Reported by Eric Blake.
53769
53770 2008-06-10  Eric Blake  <ebb9@byu.net>
53771
53772         Add missing include.
53773         * tests/test-strstr.c (includes): Add <signal.h>.
53774         * tests/test-strcasestr.c (includes): Likewise.
53775         * tests/test-memmem.c (includes): Likewise.
53776
53777 2008-06-10  Bruno Haible  <bruno@clisp.org>
53778
53779         * lib/wait-process.c (wait_subprocess): Add an assertion.
53780
53781 2008-06-10  Bruno Haible  <bruno@clisp.org>
53782
53783         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53784
53785 2008-06-10  Bruno Haible  <bruno@clisp.org>
53786
53787         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53788         using alarm().
53789         * tests/test-strcasestr.c (main): Likewise.
53790         * tests/test-strstr.c (main): Likewise.
53791
53792 2008-06-09  Bruno Haible  <bruno@clisp.org>
53793
53794         Work around the Solaris 10 ACE ACLs ABI change.
53795         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53796         declare if ACL_NO_TRIVIAL is present.
53797         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53798         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53799         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53800         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53801         define if ACL_NO_TRIVIAL is present.
53802         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53803         and use the current ABI.
53804         (file_has_acl): Use same #if condition as elsewhere.
53805         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53806         in use, and use the current ABI.
53807         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53808         Reported by Jim Meyering.
53809
53810 2008-06-09  Eric Blake  <ebb9@byu.net>
53811
53812         Work around environments that (stupidly) ignore SIGALRM.
53813         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53814         before using alarm().
53815         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53816         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53817         Reported by Ian Beckwith <ianb@erislabs.net>.
53818
53819         Produce autobuild blurb earlier in log.
53820         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53821
53822 2008-06-09  Jim Meyering  <meyering@redhat.com>
53823         and OndÅ™ej Vašík  <ovasik@redhat.com>
53824
53825         utimens.c: correct kernel bug work-around
53826         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53827         failure, not success, and the kernel bug we're trying to work
53828         around affects not just the utimensat call, but also the fallback
53829         futimens call.
53830         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53831         not success.
53832         [HAVE_FUTIMENS]: Use the same work-around, here.
53833
53834 2008-06-09  Jim Meyering  <meyering@redhat.com>
53835
53836         add more guards around definition of ACE_-related code
53837         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53838         ALLOW and ACE_OWNER are also defined.
53839
53840 2008-06-08  Bruno Haible  <bruno@clisp.org>
53841
53842         * lib/acl-internal.h: Add me as co-author.
53843         * lib/file-has-acl.c: Likewise.
53844         * lib/set-mode-acl.c: Likewise.
53845         * lib/copy-acl.c: Likewise.
53846
53847 2008-06-08  Bruno Haible  <bruno@clisp.org>
53848
53849         Add support for AIX ACLs.
53850         * lib/acl-internal.h (acl_nontrivial): New declaration.
53851         * lib/file-has-acl.c (acl_nontrivial): New function.
53852         (file_has_acl): Add implementation using AIX 4 ACL API.
53853         * lib/set-mode-acl.c (qset_acl): Likewise.
53854         * lib/copy-acl.c (qcopy_acl): Likewise.
53855
53856 2008-06-08  Bruno Haible  <bruno@clisp.org>
53857
53858         Add support for HP-UX ACLs.
53859         * lib/acl-internal.h (acl_nontrivial): New declaration.
53860         * lib/file-has-acl.c (acl_nontrivial): New function.
53861         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53862         * lib/set-mode-acl.c (qset_acl): Likewise.
53863         * lib/copy-acl.c (qcopy_acl): Likewise.
53864
53865 2008-06-08  Bruno Haible  <bruno@clisp.org>
53866
53867         Add support for Cygwin ACLs.
53868         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53869         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53870         the chmod_or_fchmod call.
53871         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53872
53873 2008-06-08  Bruno Haible  <bruno@clisp.org>
53874
53875         Fix bug with setuid modes in Solaris 10+ code.
53876         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53877         succeeded, when the mode contains some special bits.
53878
53879 2008-06-08  Bruno Haible  <bruno@clisp.org>
53880
53881         Add support for Solaris 7..10 ACLs.
53882         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53883         declarations.
53884         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53885         functions.
53886         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53887         * lib/set-mode-acl.c (qset_acl): Likewise.
53888         * lib/copy-acl.c (qcopy_acl): Likewise.
53889
53890 2008-06-08  Bruno Haible  <bruno@clisp.org>
53891
53892         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53893         declaration.
53894         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53895         (acl_access_nontrivial): Remove MacOS X case.
53896         (file_has_acl): Use acl_extended_nontrivial.
53897         * lib/copy-acl.c (qcopy_acl): Likewise.
53898
53899 2008-06-08  Bruno Haible  <bruno@clisp.org>
53900
53901         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53902
53903 2008-06-08  Jim Meyering  <meyering@redhat.com>
53904
53905         * modules/acl (Maintainer): Add Bruno Haible.
53906
53907 2008-06-07  Bruno Haible  <bruno@clisp.org>
53908
53909         Improve support for Tru64 ACLs.
53910         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53911         ACL on OSF/1.
53912
53913 2008-06-07  Bruno Haible  <bruno@clisp.org>
53914
53915         Add support for MacOS X ACLs.
53916         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53917         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53918         * lib/set-mode-acl.c (qset_acl): Likewise.
53919         * lib/copy-acl.c (qcopy_acl): Likewise.
53920
53921 2008-06-07  Bruno Haible  <bruno@clisp.org>
53922
53923         Fix memory leak introduced on 2008-05-22.
53924         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53925         use.
53926
53927 2008-06-07  Bruno Haible  <bruno@clisp.org>
53928
53929         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
53930         to construct an empty ACL.
53931
53932 2008-06-07  Bruno Haible  <bruno@clisp.org>
53933
53934         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
53935         precisely.
53936         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
53937
53938 2008-06-07  Bruno Haible  <bruno@clisp.org>
53939
53940         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
53941         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
53942
53943 2008-06-07  Bruno Haible  <bruno@clisp.org>
53944
53945         * doc/posix-functions/_setjmp.texi: Explain the use of this function
53946         regardless of POSIX.
53947         * doc/posix-functions/_longjmp.texi: Likewise.
53948         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
53949         SystemV platform in this case.
53950
53951 2008-06-06  Eric Blake  <ebb9@byu.net>
53952
53953         Document abort() bugs.
53954         * doc/posix-functions/abort.texi (abort): Mention anomalies.
53955
53956         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
53957         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
53958         sigsetjmp.
53959         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
53960         siglongjmp, but only as a macro.
53961         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
53962         is obsolete.
53963         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
53964
53965         Tweak documentation to cover cygwin argz bugs.
53966         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
53967         argz bug fix; no code change needed since no cygwin releases
53968         occurred between the last fix and the bug being tested.
53969         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
53970         module and recently fixed cygwin bugs.
53971         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
53972         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
53973         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
53974         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
53975         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
53976         Likewise.
53977         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
53978         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
53979         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
53980         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
53981         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
53982         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
53983         Likewise.
53984
53985         Avoid gcc warning on cygwin.
53986         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
53987         !ACL_NO_TRIVIAL]: Avoid unused variable.
53988
53989 2008-06-05  Eric Blake  <ebb9@byu.net>
53990
53991         Be tolerant of UNKNOWN version in gnulib-tool test dir.
53992         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
53993         git-version-gen fails to come up with a version.
53994         Reported by Simon Josefsson.
53995
53996 2008-06-05  Jim Meyering  <meyering@redhat.com>
53997             Paul Eggert  <eggert@cs.ucla.edu>
53998
53999         utimens.c: work around a probable Linux kernel bug
54000         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54001         appears to be a kernel bug that causes utimensat to return 280
54002         instead of 0, indicating success.
54003
54004 2008-06-04  Bruno Haible  <bruno@clisp.org>
54005
54006         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54007         2008-06-01 commit.
54008
54009 2008-06-04  Bruno Haible  <bruno@clisp.org>
54010
54011         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54012         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54013         (file_has_acl): Use it. Save errno afterwards.
54014         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54015
54016 2008-06-03  Bruno Haible  <bruno@clisp.org>
54017
54018         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54019         draft code. Simplify #ifs.
54020         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54021         Put Solaris code after POSIX-draft code. Fix comments regarding
54022         Solaris 10, HP-UX. Mention Cygwin.
54023         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54024
54025 2008-06-03  Eric Blake  <ebb9@byu.net>
54026
54027         Provide fallback for older kernels.
54028         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54029         Provide runtime fallback if kernel lacks support.
54030         Reported by Mike Frysinger.
54031
54032 2008-06-02  Bruno Haible  <bruno@clisp.org>
54033
54034         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54035         it exists.
54036
54037 2008-06-02  Bruno Haible  <bruno@clisp.org>
54038
54039         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54040         * lib/copy-acl.c (qcopy_acl): Update comment.
54041
54042 2008-06-02  Bruno Haible  <bruno@clisp.org>
54043
54044         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54045         like ACL APIs.
54046
54047 2008-06-02  Bruno Haible  <bruno@clisp.org>
54048
54049         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54050         * tests/test-set-mode-acl.sh: Likewise.
54051         * tests/test-copy-acl.sh: Likewise.
54052         * tests/test-copy-file.sh: Likewise.
54053
54054 2008-06-02  Bruno Haible  <bruno@clisp.org>
54055
54056         * tests/test-file-has-acl.sh: Remove unused code.
54057
54058 2008-06-01  Bruno Haible  <bruno@clisp.org>
54059
54060         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54061         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54062         messages.
54063         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54064
54065 2008-06-01  Bruno Haible  <bruno@clisp.org>
54066
54067         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54068         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54069         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54070         APIs.
54071         * modules/acl-tests (configure.ac): Remove tests now contained in
54072         m4/acl.m4.
54073
54074 2008-06-02  Jim Meyering  <meyering@redhat.com>
54075
54076         announce-gen: use a better key-server host name
54077         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54078         it may be more consistently reliable.  Suggested by Werner Koch
54079         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54080
54081 2008-06-01  Bruno Haible  <bruno@clisp.org>
54082
54083         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54084         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54085
54086 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54087
54088         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54089
54090 2008-06-01  Bruno Haible  <bruno@clisp.org>
54091
54092         New ACL tests.
54093         * tests/test-file-has-acl.sh: New file.
54094         * tests/test-file-has-acl.c: New file.
54095         * tests/test-set-mode-acl.sh: New file.
54096         * tests/test-set-mode-acl.c: New file.
54097         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54098         * tests/test-copy-acl.c: New file.
54099         * modules/acl-tests: New file, based on modules/copy-file-tests.
54100         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54101         (Depends-on): Add acl-tests.
54102         (configure.ac): Remove checks.
54103         (Makefile.am): Don't create test-sameacls program here any more.
54104
54105 2008-06-01  Bruno Haible  <bruno@clisp.org>
54106
54107         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54108         * tests/test-sameacls.c: Include progname.h.
54109         (main): Invoke set_program_name. Portability fixes for MacOS X,
54110         Solaris, HP-UX.
54111
54112 2008-06-01  Bruno Haible  <bruno@clisp.org>
54113
54114         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54115         function.
54116         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54117
54118 2008-06-01  Bruno Haible  <bruno@clisp.org>
54119
54120         * modules/rpmatch (Depends-on): Add strdup.
54121
54122 2008-06-01  Bruno Haible  <bruno@clisp.org>
54123
54124         * lib/pipe.c: Include unistd-safer.h.
54125         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54126         * modules/pipe (Depends-on): Add unistd-safer.
54127
54128 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54129
54130         * modules/autobuild (configure.ac): Call AB_INIT.
54131
54132 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54133
54134         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54135         Suggested by Bruno Haible <bruno@clisp.org>.
54136
54137 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54138
54139         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54140         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54141         <bruno@clisp.org>.
54142
54143 2008-05-29  Eric Blake  <ebb9@byu.net>
54144
54145         Prefer new POSIX 200x interfaces over futimesat.
54146         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54147         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54148         when available.
54149         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54150
54151 2008-05-28  Bruno Haible  <bruno@clisp.org>
54152
54153         * modules/stpcpy (License): Change to LGPLv2+.
54154         Requested by David Lutterkort <dlutter@redhat.com>.
54155
54156 2008-05-27  Bruno Haible  <bruno@clisp.org>
54157
54158         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54159         current mingw.
54160         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54161
54162 2008-05-27  Bruno Haible  <bruno@clisp.org>
54163
54164         * modules/iconv_open (Link): New section, from module 'iconv'.
54165         * modules/striconv (Link): Likewise.
54166         * modules/striconveh (Link): Likewise.
54167         * modules/xstriconv (Link): Likewise.
54168         * modules/unicodeio (Link): Likewise.
54169         * modules/propername (Link): Likewise.
54170         Reported by Jim Meyering.
54171
54172 2008-05-26  Jim Meyering  <meyering@redhat.com>
54173
54174         sha256: do not artificially restrict buffer length to be < 2^32
54175         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54176         uint32_t to size_t.
54177         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54178         to match.
54179
54180         avoid unaligned access errors, e.g., on sparc
54181         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54182         direct access through a possibly-unaligned uint64* pointer.
54183         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54184         direct access through a possibly-unaligned uint32* pointer.
54185         Prompted by this patch from Tom "spot" Callaway:
54186         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54187
54188         sha512.c: fix typo in comment
54189         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54190
54191 2008-05-25  Bruno Haible  <bruno@clisp.org>
54192
54193         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54194         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54195         (Makefile.am): Update lib_SOURCES.
54196
54197 2008-05-25  Bruno Haible  <bruno@clisp.org>
54198
54199         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54200
54201 2008-05-25  Jim Meyering  <meyering@redhat.com>
54202
54203         useless-if-before-free: freed expr may have white-space differences
54204         * build-aux/useless-if-before-free: Recognize cases in which the
54205         freed expression differs from the tested one in embedded white
54206         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54207         $1 was used, so we can't make any regexp shy.  Improved tests now
54208         detect this.
54209
54210         useless-if-before-free: accept white space in the expression.
54211         * build-aux/useless-if-before-free: For now, any white space
54212         in the expression must be identical in the free argument.
54213
54214         useless-if-before-free: efficiency tweak
54215         * build-aux/useless-if-before-free: Make the expression-matching
54216         regexp "shy".
54217         Make the *outer* regexp shy, not the expr-matching one.
54218
54219         update code-in-comment to accept cast of free arg
54220         * build-aux/useless-if-before-free: Update regexp.
54221
54222 2008-05-25  Bruno Haible  <bruno@clisp.org>
54223
54224         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54225         * modules/copy-file-tests (Files, Makefile.am): Update.
54226         * tests/test-copy-file.c (func_test_copy): Update.
54227
54228 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54229
54230         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54231
54232 2008-05-23  Bruno Haible  <bruno@clisp.org>
54233
54234         Improve support for ACLs on OSF/1.
54235         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54236         Remove fallback for unknown flavors of ACLs.
54237
54238 2008-05-22  Bruno Haible  <bruno@clisp.org>
54239
54240         Add support for ACLs on OSF/1.
54241         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54242         replacements.
54243         (acl_free_text): New macro fallback.
54244         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54245         acl_free.
54246         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54247         acl_free_text function. Require AC_C_INLINE.
54248
54249 2008-05-22  Bruno Haible  <bruno@clisp.org>
54250
54251         Make copy_acl work on MacOS X 10.5.
54252         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54253         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54254         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54255         If MODE_INSIDE_ACL, don't assume that every system has the same text
54256         representation for ACLs as FreeBSD.
54257         * lib/copy-acl.c (copy_acl): Add support for platforms with
54258         !MODE_INSIDE_ACL.
54259         * lib/file-has-acl.c (file_has_acl): Likewise.
54260         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54261         FreeBSD, MacOS X, or IRIX, respectively.
54262
54263 2008-05-22  Bruno Haible  <bruno@clisp.org>
54264
54265         * lib/acl.h: Don't include <sys/acl.h>.
54266         (GETACLCNT): Move fallback to lib/acl-internal.h.
54267         * lib/acl-internal.h: Include <sys/acl.h> here.
54268         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54269
54270 2008-05-22  Bruno Haible  <bruno@clisp.org>
54271
54272         Split off copy_acl function to separate file.
54273         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54274         * lib/acl.c (copy_acl): Moved function to separate file.
54275         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54276         * modules/acl (Files): Add lib/copy-acl.c.
54277         (Makefiles.am): Augment lib_SOURCES.
54278
54279 2008-05-22  Bruno Haible  <bruno@clisp.org>
54280
54281         * modules/copy-file-tests: New file.
54282         * tests/test-copy-file.sh: New file.
54283         * tests/test-copy-file.c: New file.
54284         * tests/test-copy-file-sameacls.c: New file.
54285
54286 2008-05-22  Eric Blake  <ebb9@byu.net>
54287
54288         Avoid gcc warning.
54289         * tests/test-memcmp.c (main): Pass NULL indirectly.
54290
54291 2008-05-21  Bruno Haible  <bruno@clisp.org>
54292
54293         Add reference doc about ACLs.
54294         * doc/acl-resources.txt: New file.
54295         * doc/acl-cygwin.txt: New file.
54296
54297 2008-05-21  Bruno Haible  <bruno@clisp.org>
54298
54299         Avoid one more warning from gcc.
54300         * lib/vasnprintf.c (IF_LINT): Update comments.
54301         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54302
54303 2008-05-21  Jim Meyering  <meyering@redhat.com>
54304
54305         avoid a warning from gcc
54306         * lib/vasnprintf.c (IF_LINT): Define.
54307         (scale10_round_decimal_long_double):
54308         Use it to avoid a "may be used uninitialized" warning.
54309         (scale10_round_decimal_double): Likewise.
54310
54311 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54312
54313         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54314         declared.
54315
54316 2008-05-20  Bruno Haible  <bruno@clisp.org>
54317
54318         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54319         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54320
54321 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54322
54323         * modules/memcmp-tests: New file.
54324         * tests/test-memcmp.c: New file.
54325
54326 2008-05-19  Bruno Haible  <bruno@clisp.org>
54327
54328         * modules/propername (Notice, configure.ac): Put quoted "..." into
54329         --keyword option.
54330         * lib/propername.h: Update comments accordingly.
54331         Reported by Eric Blake.
54332
54333 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54334
54335         * modules/getpass-gnu (Depends-on): Add fseeko.
54336
54337 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54338
54339         * modules/base64-tests: New file.
54340
54341 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54342
54343         * lib/base64.c (base64_decode_ctx): If a decode context structure
54344         was passed in use it to ignore newlines.  If a context structure
54345         was _not_ passed in, continue to treat newlines as garbage (this
54346         is the historical behavior).  Formerly base64_decode.
54347         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54348         takes a decode context structure.
54349         * lib/base64.h (base64_decode): Macro for four-argument calls.
54350         (base64_decode_alloc): Likewise.
54351         * lib/base64.c (base64_decode_ctx): If a decode context structure
54352         was passed in use it to ignore newlines.  If a context structure
54353         was _not_ passed in, continue to treat newlines as garbage (this
54354         is the historical behavior).  Formerly base64_decode.
54355         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54356         takes a decode context structure.
54357         * lib/base64.h (base64_decode): Macro for four-argument calls.
54358         (base64_decode_alloc): Likewise.
54359
54360 2008-05-19  Jim Meyering  <meyering@redhat.com>
54361
54362         avoid a warning from gcc
54363         * lib/trim.c (IF_LINT): Define.
54364         (trim2): Use it to avoid a "may be used uninitialized" warning.
54365
54366         Fix doc typo.
54367         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54368
54369 2008-05-19  Bruno Haible  <bruno@clisp.org>
54370
54371         * doc/glibc-functions/getpass.texi: Document limits of other
54372         implementations.
54373
54374 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54375             Bruno Haible <bruno@clisp.org>
54376
54377         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54378
54379 2008-05-18  Bruno Haible  <bruno@clisp.org>
54380
54381         * modules/propername: New file, from GNU gettext.
54382         * lib/propername.h: New file, from GNU gettext.
54383         * lib/propername.c: New file, from GNU gettext.
54384         * MODULES.html.sh (Internationalization functions): Add propername.
54385
54386 2008-05-16  Jim Meyering  <meyering@redhat.com>
54387             Bruno Haible  <bruno@clisp.org>
54388
54389         Avoid some warnings from "gcc -Wshadow".
54390         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54391
54392 2008-05-15  Eric Blake  <ebb9@byu.net>
54393
54394         Extend previous patch to cygwin 1.7.0.
54395         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54396         fast implementation in cygwin >= 1.7.0.
54397         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54398         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54399
54400 2008-05-15  Bruno Haible  <bruno@clisp.org>
54401
54402         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54403         implementation in glibc >= 2.9.
54404         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54405         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54406
54407 2008-05-15  Bruno Haible  <bruno@clisp.org>
54408
54409         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54410         (Unicode string functions): Add unilbrk/*.
54411         Reported by Karl Berry.
54412
54413 2008-05-15  Eric Blake  <ebb9@byu.net>
54414
54415         Fix violation of <stdbool.h> replacement in regex.
54416         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54417         * lib/regexec.c (re_search_internal): Likewise.
54418         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54419
54420 2008-05-15  Jim Meyering  <meyering@redhat.com>
54421
54422         avoid distracting test output when git or cvs is not found
54423         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54424         * tests/test-vc-list-files-git.sh: Likewise.
54425
54426 2008-05-15  Eric Blake  <ebb9@byu.net>
54427
54428         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54429         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54430         glibc version.
54431         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54432         * doc/posix-functions/strstr.texi (strstr): Likewise.
54433         * lib/str-two-way.h (MAX): Sychronize with glibc.
54434
54435 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54436
54437         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54438         opr.ctx_type.
54439         (calc_first): Initialize constraint field.
54440         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54441         Fix grammar.
54442         (duplicate_node): Merge constraint field for all node types.
54443         (calc_eclosure_iter): Look at constraint field for all node types.
54444         * lib/regex_internal.c (create_cd_newstate): Don't look at
54445         opr.ctx_type.
54446
54447 2008-05-14  Bruno Haible  <bruno@clisp.org>
54448
54449         Help GCC to do better code generation.
54450         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54451         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54452         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54453         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54454         Declare with attribute 'malloc' if supported.
54455
54456 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54457
54458         use "echo STR|wc -c" rather than unportable "expr length STR"
54459         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54460         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54461
54462 2008-05-14  Jim Meyering  <meyering@redhat.com>
54463
54464         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54465         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54466         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54467         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54468         via Collin Lasse.
54469
54470 2008-05-14  Eric Blake  <ebb9@byu.net>
54471
54472         Avoid quadratic growth in gl_LIBSOURCES.
54473         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54474         Suggested by Bruno Haible.
54475
54476         Test xmemdup0.
54477         * modules/xmemdup0-tests: New file.
54478         * tests/test-xmemdup0.c: Likewise.
54479
54480 2008-05-13  Eric Blake  <ebb9@byu.net>
54481
54482         Split xmemdup0 into its own module.
54483         * modules/xmemdup0: New file.
54484         * lib/xmemdup0.h: Likewise.
54485         * lib/xmemdup0.c: Likewise.
54486         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54487         * lib/xalloc.h (xmemdup0): Remove.
54488         * lib/xmalloc.c (xmemdup0): Likewise.
54489
54490 2008-05-13  Eric Blake  <ebb9@byu.net>
54491             Bruno Haible  <bruno@clisp.org>
54492
54493         Reduce number of forks required during autoconf.
54494         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54495         and gl_LIBSOURCES_DIR.
54496         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54497         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54498         m4_syscmd per file.
54499         <m4_foreach_w>: Move...
54500         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54501
54502 2008-05-13  Eric Blake  <ebb9@byu.net>
54503
54504         * gnulib-tool: Fix various comment typos.
54505
54506 2008-05-12  Bruno Haible  <bruno@clisp.org>
54507
54508         Tailor the linebreaking algorithm.
54509         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54510
54511 2008-05-12  Bruno Haible  <bruno@clisp.org>
54512
54513         Update to Unicode 5.0.0.
54514         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54515         LBP_JV, LBP_JT. Redistribute values.
54516         (unilbrk_table): Change size.
54517         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54518         Unicode TR#14 rev. 22.
54519         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54520         LBP_JV, LBP_JT. Redistribute values.
54521         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54522         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54523         Update.
54524         * lib/unilbrk/lbrkprop1.h: Regenerated.
54525         * lib/unilbrk/lbrkprop2.h: Regenerated.
54526         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54527         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54528         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54529         Likewise.
54530         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54531         Likewise.
54532         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54533         result.
54534         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54535         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54536         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54537         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54538         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54539         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54540
54541 2008-05-11  Bruno Haible  <bruno@clisp.org>
54542
54543         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54544
54545 2008-05-11  Bruno Haible  <bruno@clisp.org>
54546
54547         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54548         * modules/unilbrk/gen-lbrk: New file.
54549
54550 2008-05-11  Bruno Haible  <bruno@clisp.org>
54551
54552         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54553         * m4/sha512.m4 (gl_SHA512): Likewise.
54554
54555 2008-05-11  Jim Meyering  <meyering@redhat.com>
54556
54557         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54558         * modules/crypto/sha256: New file.
54559         * modules/crypto/sha512: Likewise.
54560         * lib/sha256.c: Likewise.
54561         * lib/sha256.h: Likewise.
54562         * lib/sha512.c: Likewise.
54563         * lib/sha512.h: Likewise.
54564         * lib/u64.h: Likewise.
54565         * m4/sha256.m4: Likewise.
54566         * m4/sha512.m4: Likewise.
54567         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54568
54569 2008-05-10  Bruno Haible  <bruno@clisp.org>
54570
54571         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54572         (Input/Output <stdio.h>): Add xprintf.
54573         (Signal handling <signal.h>): Add strsignal.
54574         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54575         (Core language properties): Add func.
54576         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54577         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54578         strings.
54579         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54580         (Input/output): New section.
54581         (File system functions): Add openat-die, stat-macros.
54582         (Networking functions): Add sockets.
54583         (Unicode string functions): Add unictype/*.
54584         (Support for building libraries and executables): Add gperf.
54585         (Support for building documentation): Add agpl-3.0.
54586         (Misc): Add nocrash.
54587
54588 2008-05-10  Bruno Haible  <bruno@clisp.org>
54589
54590         * modules/unictype/gen-ctype: New file.
54591
54592 2008-05-10  Jim Meyering  <meyering@redhat.com>
54593
54594         Make chdir-safer.c more efficient on a system with no symlinks.
54595         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54596         also if ELOOP is zero.  Suggested by Bruno Haible.
54597
54598         Make chdir-safer.c slightly safer.
54599         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54600         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54601
54602         Avoid compile failure on systems without ELOOP (like mingw).
54603         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54604         Reported by Bruno Haible.
54605
54606 2008-05-10  Bruno Haible  <bruno@clisp.org>
54607
54608         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54609         (is_utf8_encoding): Use a case-insensitive comparison.
54610         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54611         streq.
54612
54613 2008-05-10  Bruno Haible  <bruno@clisp.org>
54614
54615         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54616         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54617         * lib/unilbrk/ulc-common.h (iconv_string_length,
54618         iconv_string_keeping_offsets): Remove declarations.
54619         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54620         Don't include <iconv.h>, streq.h, xsize.h.
54621         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54622         conversion.
54623         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54624         <iconv.h>, streq.h, xsize.h.
54625         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54626         conversion.
54627         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54628         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54629         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54630         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54631
54632 2008-05-10  Bruno Haible  <bruno@clisp.org>
54633
54634         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54635         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54636
54637         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54638         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54639
54640         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54641         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54642
54643         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54644         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54645
54646         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54647         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54648
54649         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54650         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54651
54652         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54653         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54654
54655         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54656         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54657
54658 2008-05-10  Bruno Haible  <bruno@clisp.org>
54659
54660         Split up 'linebreak' module.
54661         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54662         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54663         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54664         modifications.
54665         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54666         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54667         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54668         lib/linebreak.c.
54669         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54670         lib/linebreak.c.
54671         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54672         lib/linebreak.c.
54673         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54674         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54675         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54676         lib/linebreak.c.
54677         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54678         lib/linebreak.c.
54679         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54680         lib/linebreak.c.
54681         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54682         lib/linebreak.c.
54683         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54684         lib/linebreak.c.
54685         * modules/unilbrk/base: New file.
54686         * modules/unilbrk/tables: New file.
54687         * modules/unilbrk/u8-possible-linebreaks: New file.
54688         * modules/unilbrk/u16-possible-linebreaks: New file.
54689         * modules/unilbrk/u32-possible-linebreaks: New file.
54690         * modules/unilbrk/ulc-common: New file.
54691         * modules/unilbrk/ulc-possible-linebreaks: New file.
54692         * modules/unilbrk/u8-width-linebreaks: New file.
54693         * modules/unilbrk/u16-width-linebreaks: New file.
54694         * modules/unilbrk/u32-width-linebreaks: New file.
54695         * modules/unilbrk/ulc-width-linebreaks: New file.
54696         * lib/linebreak.h: Remove file.
54697         * lib/linebreak.c: Remove file.
54698         * m4/linebreak.m4: Remove file.
54699         * modules/linebreak: Remove file.
54700         * NEWS: Mention the changes.
54701
54702 2008-05-09  Eric Blake  <ebb9@byu.net>
54703
54704         Add xmemdup0.
54705         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54706         implementation.
54707         * lib/xmalloc.c (xmemdup0): New C implementation.
54708
54709 2008-05-08  Bruno Haible  <bruno@clisp.org>
54710
54711         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54712
54713 2008-05-07  Eric Blake  <ebb9@byu.net>
54714
54715         Support cross-compilation of <wctype.h>.
54716         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54717         AC_CACHE_CHECK.
54718
54719 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54720
54721         * build-aux/vc-list-files: Add support for bzr.
54722
54723 2008-05-03  Jim Meyering  <meyering@redhat.com>
54724
54725         avoid failed assertion with tight malloc
54726         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54727
54728 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54729
54730         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54731         are needed from arpa/inet.h.
54732         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54733         Reported by Bruno Haible.
54734
54735 2008-05-02  Jim Meyering  <meyering@redhat.com>
54736
54737         avoid compilation error on FreeBSD 6
54738         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54739
54740 2008-05-01  Jim Meyering  <meyering@redhat.com>
54741
54742         useless-if-before-free: correct --help's exit status description
54743         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54744         for one or more matches, etc.  Reported by Bruno Haible.
54745
54746         vc-list-files: make the stand-alone gnulib test work
54747         * modules/vc-list-files-tests (configure.ac):
54748         Define and AC_SUBST abs_aux_dir.
54749         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54750         $(abs_top_srcdir) to each script and having each of them
54751         duplicate the work of setting PATH, set PATH here, using
54752         the new variable, abs_aux_dir instead.
54753         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54754         * tests/test-vc-list-files-git.sh: Likewise.
54755         Reported by Bruno Haible.
54756
54757 2008-05-01  Bruno Haible  <bruno@clisp.org>
54758
54759         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54760         reallocation. Rename 'done' to 'found_delimiter'.
54761
54762 2008-05-01  Jim Meyering  <meyering@redhat.com>
54763
54764         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54765         * build-aux/vc-list-files: Use `...`, not $(...).
54766
54767 2008-04-30  Jim Meyering  <meyering@redhat.com>
54768
54769         add tests for vc-list-files
54770         * modules/vc-list-files-tests: New module.
54771         * tests/test-vc-list-files-cvs.sh: New file.
54772         * tests/test-vc-list-files-git.sh: New file.
54773
54774         avoid a warning from gcc
54775         * lib/getndelim2.c (IF_LINT): Define.
54776         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54777
54778         vc-list-files: work properly with build-aux/cvsu, too
54779         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54780         to all cvs-based clauses.
54781
54782         vc-list-files: work properly in the CVS+awk case, too
54783         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54784
54785         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54786         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54787         take more than one file argument, so .  Add quotes, just in case $dir
54788         ever contains a shell meta-character.  Prompted by Soren Hansen in
54789         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54790
54791 2008-04-29  Eric Blake  <ebb9@byu.net>
54792
54793         Optimize getndelim2 to use block operations when possible.
54794         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54795         freadseek, and memchr2.
54796         * lib/getndelim2.c (getndelim2): Use them for block reads.
54797
54798 2008-04-29  Bruno Haible  <bruno@clisp.org>
54799
54800         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54801         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54802         * modules/inet_ntop (Depends-on): Add extensions.
54803         * modules/inet_pton (Depends-on): Likewise.
54804         Reported by Simon Josefsson.
54805
54806 2008-04-29  Jim Meyering  <meyering@redhat.com>
54807
54808         When the is more than one match in a block, match all of them.
54809         * build-aux/useless-if-before-free: Iterate through each block
54810         until there are no more matches.
54811
54812         Fix broken useless-if-before-free script.
54813         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54814         the expression to match cast of argument to free-like function.
54815
54816 2008-04-29  Eric Blake  <ebb9@byu.net>
54817
54818         Use new header.
54819         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54820
54821 2008-04-29  Jim Meyering  <meyering@redhat.com>
54822
54823         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54824         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54825         by gnulib to exist and to declare e.g., inet_ntop.
54826         Don't include "inet_ntop.h", now removed.
54827
54828         * m4/arpa_inet_h.m4: Remove trailing blanks.
54829
54830 2008-04-29  Eric Blake  <ebb9@byu.net>
54831
54832         Silence valgrind on safe reads beyond potential array bounds.
54833         * lib/rawmemchr.valgrind: New file.
54834         * lib/strchrnul.valgrind: Likewise.
54835         * modules/rawmemchr (Files): Distribute new file.
54836         * modules/strchrnul (Files): Likewise.
54837         Suggested by Bruno Haible.
54838
54839 2008-04-29  Bruno Haible  <bruno@clisp.org>
54840
54841         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54842         (inet_ntop, inet_pton): Change portability warning's wording.
54843         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54844         Invoke gl_CHECK_NEXT_HEADERS.
54845         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54846         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54847         set ARPA_INET_H.
54848         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54849         * modules/arpa_inet (Description): No longer only for systems that
54850         lack it.
54851         (Depends-on): Add include_next.
54852         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54853         HAVE_ARPA_INET_H.
54854
54855 2008-04-29  Jim Meyering  <meyering@redhat.com>
54856
54857         * modules/mkdir (License): Re-license as LGPLv2+.
54858
54859 2008-04-29  Bruno Haible  <bruno@clisp.org>
54860
54861         * modules/rawmemchr (Maintainer): Set to Eric.
54862         * modules/strchrnul (Maintainer): Likewise.
54863
54864 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54865
54866         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54867         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54868
54869         * modules/arpa_inet (arpa/inet.h): Use them.
54870
54871 2008-04-28  Eric Blake  <ebb9@byu.net>
54872
54873         Test getndelim2.
54874         * modules/getndelim2-tests: New file.
54875         * tests/test-getndelim2.c: Likewise.
54876         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54877         stream.
54878         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54879
54880         * MODULES.html.sh: Document new module.
54881
54882 2008-04-20  Bruno Haible  <bruno@clisp.org>
54883
54884         * lib/c-stack.c (die): Use raise.
54885         * modules/c-stack (Depends-on): Add raise.
54886
54887 2008-04-28  Bruno Haible  <bruno@clisp.org>
54888
54889         Expect rpmatch to be declared.
54890         * lib/yesno.c (rpmatch): Remove declaration.
54891
54892         Declare rpmatch.
54893         * lib/stdlib.in.h (rpmatch): New declaration.
54894         * lib/rpmatch.c: Include <stdlib.h> first.
54895         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54896         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54898         HAVE_RPMATCH.
54899         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54900         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54901         (Include): Set to <stdlib.h>.
54902         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54903         HAVE_RPMATCH.
54904         * NEWS: Document the change.
54905
54906 2008-04-28  Bruno Haible  <bruno@clisp.org>
54907
54908         Change rpmatch to use nl_langinfo when appropriate.
54909         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54910         (N_): New macro.
54911         (localized_pattern): New function/macro.
54912         (try): Remove match, nomatch arguments. Copy the pattern into safe
54913         memory before caching it.
54914         (rpmatch): Use localized_pattern. Add translator comments.
54915         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54916         Suggested by Eric Blake.
54917         * modules/rpmatch (Depends-on): Add stdbool.
54918
54919 2008-04-28  Eric Blake  <ebb9@byu.net>
54920
54921         Add rawmemchr module, matching glibc.
54922         * modules/string (Makefile.am): New indicator.
54923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54924         * lib/string.in.h (rawmemchr): Declare when appropriate.
54925         * modules/rawmemchr: New file.
54926         * m4/rawmemchr.m4: Likewise.
54927         * lib/rawmemchr.c: Likewise.
54928         * modules/rawmemchr-tests: Likewise.
54929         * tests/test-rawmemchr.c: Likewise.
54930         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
54931         module.
54932         * modules/strchrnul (Depends-on): Add rawmemchr.
54933         * lib/strchrnul.c (strchrnul): Optimize a corner case.
54934
54935         Whitespace cleanup.
54936         * tests/test-strchrnul.c: Reindent.
54937         * lib/strchrnul.c: Likewise.
54938
54939         Optimize and test strchrnul.
54940         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
54941         * modules/strchrnul-tests: New file.
54942         * tests/test-strchrnul.c: Likewise.
54943
54944         Remove intprops dependency.
54945         * modules/memchr (Depends-on): Remove intprops.
54946         * modules/memrchr (Depends-on): Likewise.
54947         * modules/memchr2 (Depends-on): Likewise.
54948         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
54949         * lib/memrchr.c (__memrchr): Likewise.
54950         * lib/memrchr2.c (memchr2): Likewise.
54951         Reported by Simon Josefsson.
54952
54953 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54954
54955         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
54956         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54957
54958 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54959
54960         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
54961
54962         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
54963
54964         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
54965
54966         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
54967         declarations.
54968         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
54969
54970         * m4/inet_pton.m4: Don't check for header files.
54971
54972         * m4/inet_ntop.m4: Don't check for header files.
54973
54974 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54975
54976         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
54977         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
54978         trigger for cygwin).
54979         Reported by Bruno Haible  <bruno@clisp.org>.
54980
54981 2008-04-28  Bruno Haible  <bruno@clisp.org>
54982
54983         * doc/posix-functions/strdup.texi: Mention mingw problem.
54984
54985 2008-04-27  Bruno Haible  <bruno@clisp.org>
54986
54987         * modules/stat-time-tests (Depends-on): Add sleep.
54988         * tests/test-stat-time.c (force_unlink): New function.
54989         (cleanup): Use it.
54990         (test_mtime): Remove the ctime related tests.
54991         (test_ctime): New function, containing the ctime related tests.
54992         (main): Call test_ctime, except on native Windows platforms.
54993
54994 2008-04-27  Bruno Haible  <bruno@clisp.org>
54995
54996         * lib/rpmatch.c (rpmatch): Add some comments.
54997         Reported by James Youngman <jay@gnu.org>.
54998
54999 2008-04-27  Bruno Haible  <bruno@clisp.org>
55000
55001         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55002         quiet NaNs.
55003
55004 2008-04-27  Bruno Haible  <bruno@clisp.org>
55005
55006         Make test-yesno.sh work on mingw.
55007         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55008         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55009         (main): Set stdin to binary mode.
55010         * modules/yesno-tests (Depends-on): Add binary-io.
55011
55012 2008-04-27  Bruno Haible  <bruno@clisp.org>
55013
55014         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55015         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55016         argument that lie outside the IEEE 854 domain.
55017         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55018         (gl_ISFINITE): Use it.
55019         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55020
55021 2008-04-27  Bruno Haible  <bruno@clisp.org>
55022
55023         Allow local renaming in config.h.
55024         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55025
55026 2008-04-27  Bruno Haible  <bruno@clisp.org>
55027
55028         * lib/memchr.c (__memchr): Change type of 'i'.
55029         * lib/memchr2.c (memchr2): Likewise.
55030
55031 2008-04-26  Eric Blake  <ebb9@byu.net>
55032         and Bruno Haible  <bruno@clisp.org>
55033
55034         Optimize and test memrchr.
55035         * modules/memrchr (Depends-on): Add intprops.
55036         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55037         * modules/memrchr-tests: New file.
55038         * tests/test-memrchr.c: New file.
55039
55040 2008-04-26  Bruno Haible  <bruno@clisp.org>
55041
55042         Add tentative support for DragonFly BSD.
55043         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55044         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55045         fp.
55046         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55047         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55048         * lib/fpurge.c (fpurge): Likewise.
55049         * lib/freadable.c (freaadable): Likewise.
55050         * lib/freadahead.c (freadahead): Likewise.
55051         * lib/freading.c (freading): Likewise.
55052         * lib/freadptr.c (freadptr): Likewise.
55053         * lib/freadseek.c (freadptrinc): Likewise.
55054         * lib/fseeko.c (fseeko): Likewise.
55055         * lib/fseterr.c (fseterr): Likewise.
55056         * lib/fwritable.c (fwritable): Likewise.
55057         * lib/fwriting.c (fwriting): Likewise.
55058
55059 2008-04-26  Bruno Haible  <bruno@clisp.org>
55060
55061         * lib/stdio-impl.h: New file.
55062         * lib/fbufmode.c: Include stdio-impl.h.
55063         (fbufmode): Use fp_, remove redundant #defines.
55064         * lib/fflush.c: Include stdio-impl.h.
55065         (clear_ungetc_buffer): Remove redundant #defines.
55066         * lib/fpurge.c: Include stdio-impl.h.
55067         (fpurge): Remove redundant #defines.
55068         * lib/freadable.c: Include stdio-impl.h.
55069         (freadable): Remove redundant #defines.
55070         * lib/freadahead.c: Include stdio-impl.h.
55071         (freadahead): Remove redundant #defines.
55072         * lib/freading.c: Include stdio-impl.h.
55073         (freading): Remove redundant #defines.
55074         * lib/freadptr.c: Include stdio-impl.h.
55075         (freadptr): Remove redundant #defines.
55076         * lib/freadseek.c: Include stdio-impl.h.
55077         (freadptrinc): Remove redundant #defines.
55078         * lib/fseeko.c: Include stdio-impl.h.
55079         (rpl_fseeko): Remove redundant #defines.
55080         * lib/fseterr.c: Include stdio-impl.h.
55081         (fseterr): Remove redundant #defines.
55082         * lib/fwritable.c: Include stdio-impl.h.
55083         (fwritable: Remove redundant #defines.
55084         * lib/fwriting.c: Include stdio-impl.h.
55085         (fwriting): Remove redundant #defines.
55086         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55087         * modules/fflush (Files): Likewise.
55088         * modules/fpurge (Files): Likewise.
55089         * modules/freadable (Files): Likewise.
55090         * modules/freadahead (Files): Likewise.
55091         * modules/freading (Files): Likewise.
55092         * modules/freadptr (Files): Likewise.
55093         * modules/freadseek (Files): Likewise.
55094         * modules/fseeko (Files): Likewise.
55095         * modules/fseterr (Files): Likewise.
55096         * modules/fwritable (Files): Likewise.
55097         * modules/fwriting (Files): Likewise.
55098
55099 2008-04-26  Bruno Haible  <bruno@clisp.org>
55100
55101         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55102         restore_seek_optimization, update_fpos_cache): New functions, extracted
55103         from rpl_fflush.
55104         (rpl_fflush): Use them.
55105         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55106         (gl_REPLACE_FFLUSH): Use it.
55107
55108 2008-04-26  Bruno Haible  <bruno@clisp.org>
55109
55110         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55111         on Solaris.
55112         * tests/test-xstrtoimax.sh: Likewise.
55113         * tests/test-xstrtoumax.sh: Likewise.
55114         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55115
55116 2008-04-26  Bruno Haible  <bruno@clisp.org>
55117
55118         * modules/memchr-tests: New file.
55119         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55120
55121 2008-04-26  Eric Blake  <ebb9@byu.net>
55122             Bruno Haible  <bruno@clisp.org>
55123
55124         * lib/memchr.c: Include intprops.h.
55125         (__memchr): Optimize parallel detection of matching bytes. Rename local
55126         variables. Add explanatory comments.
55127
55128 2008-04-26  Bruno Haible  <bruno@clisp.org>
55129
55130         Fix module 'memchr', broken since 2000-10-28.
55131         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55132
55133 2008-04-26  Bruno Haible  <bruno@clisp.org>
55134
55135         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55136         comments.
55137
55138 2008-04-25  Eric Blake  <ebb9@byu.net>
55139
55140         Use native fstatat on cygwin 1.7.0.
55141         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55142         first.
55143
55144 2008-04-23  Eric Blake  <ebb9@byu.net>
55145
55146         Improve memchr2 performance.
55147         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55148         NUL bytes.
55149         * modules/memchr2 (Depends-on): Use intprops.h.
55150
55151 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55152
55153         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55154         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55155         <blp@cs.stanford.edu>.
55156
55157 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55158
55159         * lib/arpa_inet.in.h: New file.
55160
55161         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55162         (Makefile.am): Sed in substitute header file.
55163
55164         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55165         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55166
55167         * modules/inet_ntop (configure.ac): Use
55168         gl_ARPA_INET_MODULE_INDICATOR.
55169
55170         * modules/inet_pton (configure.ac): Use
55171         gl_ARPA_INET_MODULE_INDICATOR.
55172
55173 2008-04-22  Jim Meyering  <meyering@redhat.com>
55174
55175         * modules/verify (License): Re-license as LGPLv2+.
55176
55177 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55178
55179         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55180         parameter to void* as per POSIX standard (MinGW uses char*).
55181
55182 2008-04-21  Bruno Haible  <bruno@clisp.org>
55183
55184         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55185         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55186         Define to replacements if REPLACE_ISWCNTRL is 1.
55187         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55188         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55189         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55190         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55191         what it fixes.
55192         * doc/posix-functions/iswalpha.texi: Likewise.
55193         * doc/posix-functions/iswblank.texi: Likewise.
55194         * doc/posix-functions/iswcntrl.texi: Likewise.
55195         * doc/posix-functions/iswdigit.texi: Likewise.
55196         * doc/posix-functions/iswgraph.texi: Likewise.
55197         * doc/posix-functions/iswlower.texi: Likewise.
55198         * doc/posix-functions/iswprint.texi: Likewise.
55199         * doc/posix-functions/iswpunct.texi: Likewise.
55200         * doc/posix-functions/iswspace.texi: Likewise.
55201         * doc/posix-functions/iswupper.texi: Likewise.
55202         * doc/posix-functions/iswxdigit.texi: Likewise.
55203         Reported by Alain Guibert.
55204
55205 2008-04-21  Bruno Haible  <bruno@clisp.org>
55206
55207         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55208         Patch by Alain Guibert.
55209
55210 2008-04-21  Bruno Haible  <bruno@clisp.org>
55211
55212         Fix test failures on mingw.
55213         * tests/test-xstrtol.c (print_no_progname): New function.
55214         (main): Install it in error_print_progname hook.
55215         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55216         * tests/test-xstrtoimax.sh: Likewise.
55217         * tests/test-xstrtoumax.sh: Likewise.
55218
55219 2008-04-21  Bruno Haible  <bruno@clisp.org>
55220
55221         Fix test failure on mingw.
55222         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55223
55224 2008-04-21  Bruno Haible  <bruno@clisp.org>
55225
55226         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55227         Actually assign a value.
55228
55229 2008-04-20  Bruno Haible  <bruno@clisp.org>
55230
55231         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55232         take 2.
55233         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55234         'canonicalize-lgpl' module is also used.
55235         * lib/canonicalize-lgpl.c: Undo last change.
55236         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55237
55238 2008-04-20  Bruno Haible  <bruno@clisp.org>
55239
55240         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55241         config.h. Provide _mkdir based fallback for mingw.
55242         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55243         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55244         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55245         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55246         rather than defining mkdir in config.h.
55247         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55248         (gl_SYS_STAT_H_DEFAULTS): New macro.
55249         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55250         HAVE_IO_H any more.
55251         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55252         HAVE_DECL_MKDIR and HAVE_IO_H.
55253
55254 2008-04-20  Bruno Haible  <bruno@clisp.org>
55255
55256         * lib/isapipe.c: Port to native Windows platforms.
55257
55258 2008-04-20  Bruno Haible  <bruno@clisp.org>
55259
55260         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55261
55262 2008-04-21  Eric Blake  <ebb9@byu.net>
55263
55264         Work around preprocessors that don't handle UINTMAX_MAX.
55265         * lib/memchr2.c (memchr2): Avoid embedded #if.
55266         Reported by Alain Guibert, fix suggested by Bruno Haible.
55267
55268 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55269
55270         * doc/posix-functions/strftime.texi (strftime): Explain better
55271         Windows incompatibility.  Suggested by Micah Cowan
55272         <micah@cowan.name>.
55273
55274 2008-04-20  Bruno Haible  <bruno@clisp.org>
55275
55276         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55277         unistr/u8-mblen.
55278
55279 2008-04-20  Bruno Haible  <bruno@clisp.org>
55280
55281         Fix test failure on platforms with non-GNU iconv.
55282         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55283         (U_TO_U8): Use it, rather than u16_to_u8.
55284         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55285         units at the end of the input string.
55286         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55287
55288 2008-04-20  Bruno Haible  <bruno@clisp.org>
55289
55290         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55291         when the resulting length is 0.
55292         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55293
55294 2008-04-20  Bruno Haible  <bruno@clisp.org>
55295
55296         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55297         works.
55298         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55299
55300 2008-04-20  Bruno Haible  <bruno@clisp.org>
55301
55302         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55303         * modules/tsearch-tests (configure.ac): Test for initstate function.
55304
55305 2008-04-20  Bruno Haible  <bruno@clisp.org>
55306
55307         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55308         for nlink_t if missing.
55309         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55310
55311 2008-04-19  Bruno Haible  <bruno@clisp.org>
55312
55313         Work around snprintf bug on Linux libc5.
55314         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55315         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55316         gl_SNPRINTF_SIZE1.
55317         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55318         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55319         that test failed.
55320         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55321         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55322         * modules/snprintf (Files): Add m4/printf.m4.
55323         * modules/vsnprintf (Files): Likewise.
55324         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55325         * doc/posix-functions/vsnprintf.texi: Likewise.
55326
55327 2008-04-19  Bruno Haible  <bruno@clisp.org>
55328
55329         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55330         from 0.0058 to less than 10^-7.
55331
55332 2008-04-19  Bruno Haible  <bruno@clisp.org>
55333
55334         Fix rounding when a precision is given.
55335         * lib/vasnprintf.c (is_borderline): New function.
55336         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55337         9...9x.
55338         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55339         %e, %g.
55340         * tests/test-vasprintf-posix.c (test_function): Likewise.
55341         * tests/test-snprintf-posix.h (test_function): Likewise.
55342         * tests/test-sprintf-posix.h (test_function): Likewise.
55343         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55344         * tests/test-printf-posix.h (test_function): Likewise.
55345         * tests/test-printf-posix.output: Update.
55346         Reported by John Darrington <john@darrington.wattle.id.au> via
55347         Ben Pfaff <blp@cs.stanford.edu>.
55348
55349 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55350
55351         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55352         Suggested by Bruno Haible <bruno@clisp.org>.
55353
55354 2008-04-17  Bruno Haible  <bruno@clisp.org>
55355
55356         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55357         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55358         implementation.
55359         Patch by Bruce Merry <bmerry@gmail.com>.
55360
55361 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55362
55363         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55364         doesn't work under Windows.
55365
55366 2008-04-16  Bruno Haible  <bruno@clisp.org>
55367
55368         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55369         New macros.
55370         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55371         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55372         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55373         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55374         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55375         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55376         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55377         macros.
55378         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55379         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55380         Northern Sotho, Uighur.
55381
55382 2008-04-16  Bruno Haible  <bruno@clisp.org>
55383
55384         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55385         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55386         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55387         Reported by Daniel Bergström <daniel@octocode.com>.
55388
55389 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55390             Bruno Haible  <bruno@clisp.org>
55391
55392         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55393         function.
55394         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55395         New functions, mostly extracted from gl_locale_name_default.
55396         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55397
55398 2008-04-16  Eric Blake  <ebb9@byu.net>
55399
55400         Adjust strtod detection to catch glibc 2.7 bug.
55401         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55402         Reported by John Gatewood Ham.
55403
55404 2008-04-16  Bruno Haible  <bruno@clisp.org>
55405
55406         Add tentative support for Linux libc5.
55407         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55408         * lib/fpurge.c (fpurge): Likewise.
55409         * lib/freadable.c (freadable): Likewise.
55410         * lib/freadahead.c (freadahead): Likewise.
55411         * lib/freading.c (freading): Likewise.
55412         * lib/freadptr.c (freadptr): Likewise.
55413         * lib/freadseek.c (freadptrinc): Likewise.
55414         * lib/fseeko.c (rpl_fseeko): Likewise.
55415         * lib/fseterr.c (fseterr): Likewise.
55416         * lib/fwritable.c (fwritable): Likewise.
55417         * lib/fwriting.c (fwriting): Likewise.
55418         Reported by Alain Guibert <alguibert+bts@free.fr>.
55419
55420 2008-04-15  Bruno Haible  <bruno@clisp.org>
55421
55422         * modules/mathl (configure.ac): Define module indicator.
55423
55424 2008-04-15  Bruno Haible  <bruno@clisp.org>
55425
55426         * lib/logl.c (logl): Remove unused variables.
55427
55428 2008-04-15  Bruno Haible  <bruno@clisp.org>
55429
55430         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55431         fails.
55432
55433 2008-04-15  Bruno Haible  <bruno@clisp.org>
55434
55435         * lib/trim.c (trim2): Fix argument of isspace() macro.
55436
55437 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55438
55439         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55440         to 0.
55441         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55442
55443 2008-04-14  Bruno Haible  <bruno@clisp.org>
55444
55445         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55446         AC_LANG_PROGRAM argument.
55447         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55448         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55450         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55451         * m4/math_h.m4 (gl_MATH_H): Likewise.
55452         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55453         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55454         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55455         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55456         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55457         * m4/regex.m4 (gl_REGEX): Likewise.
55458         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55459         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55460         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55461         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55462         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55463         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55464         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55465         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55466
55467 2008-04-14  Jim Meyering  <meyering@redhat.com>
55468
55469         test-strtod: fix typos: s/abs/fabs/
55470         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55471
55472 2008-04-13  Bruno Haible  <bruno@clisp.org>
55473
55474         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55475         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55476         module is also used and while not building the reloc-wrapper.
55477
55478 2008-04-13  Bruno Haible  <bruno@clisp.org>
55479
55480         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55481
55482 2008-04-13  Bruno Haible  <bruno@clisp.org>
55483
55484         Fix AIX compilation failure introduced on 2008-04-02.
55485         * tests/test-frexp.c (exp): Undefine before redefining.
55486         * tests/test-frexpl.c (exp): Likewise.
55487
55488 2008-04-13  Bruno Haible  <bruno@clisp.org>
55489
55490         Work around a HP-UX stdio bug.
55491         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55492         * tests/test-ftello.c (main): Likewise.
55493         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55494         * doc/posix-functions/ftello.texi: Likewise.
55495
55496 2008-04-13  Bruno Haible  <bruno@clisp.org>
55497
55498         Make test-signbit pass on HP-UX/hppa.
55499         * tests/test-signbit.c (minus_zerol): New variable.
55500         (test_signbitl): Use it.
55501
55502 2008-04-13  Bruno Haible  <bruno@clisp.org>
55503
55504         Make truncl work on OSF/1 4.0.
55505         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55506         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55507         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55509         HAVE_DECL_TRUNCL.
55510         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55511         HAVE_DECL_TRUNCL.
55512         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55513
55514 2008-04-13  Bruno Haible  <bruno@clisp.org>
55515
55516         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55517
55518 2008-04-13  Bruno Haible  <bruno@clisp.org>
55519
55520         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55521         expression, so as to avoid HP-UX 11 cc compiler bug.
55522
55523 2008-04-13  Bruno Haible  <bruno@clisp.org>
55524
55525         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55526
55527 2008-04-13  Bruno Haible  <bruno@clisp.org>
55528
55529         * lib/git-merge-changelog.c: Remove empty declaration outside of
55530         functions.
55531
55532 2008-04-13  Bruno Haible  <bruno@clisp.org>
55533
55534         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55535
55536 2008-04-13  Bruno Haible  <bruno@clisp.org>
55537
55538         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55539         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55540         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55541         also if it exists but lacks definitions of the SHUT_* macros.
55542         * modules/sys_socket (Description): Update.
55543         Reported by Elbert Pol <e.pol@chello.nl>.
55544
55545 2008-04-13  Bruno Haible  <bruno@clisp.org>
55546
55547         * lib/localcharset.c (OS2): Don't redefine if already defined.
55548         Reported by Elbert Pol <e.pol@chello.nl>.
55549
55550 2008-04-13  Bruno Haible  <bruno@clisp.org>
55551
55552         * lib/binary-io.h [__EMX__]: Include <io.h>.
55553         Reported by Elbert Pol <e.pol@chello.nl>.
55554
55555 2008-04-12  Bruno Haible  <bruno@clisp.org>
55556
55557         * lib/fpucw.h: Enable the definitions also for x86_64.
55558         Needed for NetBSD/x86_64.
55559         Reported by Thomas Klausner <tk@giga.or.at>.
55560
55561 2008-04-12  Bruno Haible  <bruno@clisp.org>
55562
55563         * tests/test-strtod.c: Include isnand.h.
55564         (main): Use isnand instead of isnan.
55565         Reported by Jim Meyering.
55566
55567 2008-04-12  Bruno Haible  <bruno@clisp.org>
55568
55569         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55570         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55571
55572 2008-04-12  Jim Meyering  <meyering@redhat.com>
55573
55574         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55575
55576 2008-04-12  Bruno Haible  <bruno@clisp.org>
55577
55578         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55579         Reported by Elbert Pol <e.pol@chello.nl>.
55580
55581 2008-04-12  Eric Blake  <ebb9@byu.net>
55582
55583         Work around Solaris 10 math.h bug.
55584         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55585         (gl_MATH_H_DEFAULTS): Set up default.
55586         * modules/math (Makefile.am): Replace new indicators.
55587         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55588         * tests/test-math.c (main): Test this.
55589         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55590         * doc/posix-headers/math.texi (math.h): Mention bug.
55591         Reported by Nelson H. F. Beebe and Jim Meyering.
55592
55593 2008-04-11  Bruno Haible  <bruno@clisp.org>
55594
55595         Adapt to future versions of Apple GCC.
55596         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55597         Reported by Peter O'Gorman <peter@pogma.com>.
55598
55599 2008-04-11  Bruno Haible  <bruno@clisp.org>
55600
55601         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55602
55603 2008-04-11  Bruno Haible  <bruno@clisp.org>
55604
55605         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55606
55607         * modules/getaddrinfo-tests (Makefile.am): Define
55608         test_getaddrinfo_LDADD.
55609
55610 2008-04-11  Bruno Haible  <bruno@clisp.org>
55611
55612         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55613         (init): Fix syntax error.
55614         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55615         is declared.
55616
55617 2008-04-11  Bruno Haible  <bruno@clisp.org>
55618
55619         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55620         * modules/glob (Depends-on): Add stdbool.
55621
55622 2008-04-11  Bruno Haible  <bruno@clisp.org>
55623
55624         * lib/trim.c: Include <string.h>.
55625
55626 2008-04-11  Eric Blake  <ebb9@byu.net>
55627
55628         Avoid compile failure on OS/2.
55629         * lib/regex_internal.h (internal_function): Disable optimization
55630         on OS/2 (__EMX__), where it caused compiler error.
55631         Reported by Elbert Pol.
55632
55633 2008-04-11  Bruno Haible  <bruno@clisp.org>
55634
55635         Flush the standard error stream before aborting. Needed on mingw.
55636         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55637         * tests/test-array_list.c (ASSERT): Likewise.
55638         * tests/test-array_oset.c (ASSERT): Likewise.
55639         * tests/test-avltree_list.c (ASSERT): Likewise.
55640         * tests/test-avltree_oset.c (ASSERT): Likewise.
55641         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55642         * tests/test-binary-io.c (ASSERT): Likewise.
55643         * tests/test-byteswap.c (ASSERT): Likewise.
55644         * tests/test-c-ctype.c (ASSERT): Likewise.
55645         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55646         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55647         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55648         * tests/test-c-strstr.c (ASSERT): Likewise.
55649         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55650         * tests/test-canonicalize.c (ASSERT): Likewise.
55651         * tests/test-carray_list.c (ASSERT): Likewise.
55652         * tests/test-ceilf1.c (ASSERT): Likewise.
55653         * tests/test-ceilf2.c (ASSERT): Likewise.
55654         * tests/test-ceill.c (ASSERT): Likewise.
55655         * tests/test-count-one-bits.c (ASSERT): Likewise.
55656         * tests/test-fbufmode.c (ASSERT): Likewise.
55657         * tests/test-fflush2.c (ASSERT): Likewise.
55658         * tests/test-floorf1.c (ASSERT): Likewise.
55659         * tests/test-floorf2.c (ASSERT): Likewise.
55660         * tests/test-floorl.c (ASSERT): Likewise.
55661         * tests/test-fopen.c (ASSERT): Likewise.
55662         * tests/test-fpending.c (ASSERT): Likewise.
55663         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55664         * tests/test-fpurge.c (ASSERT): Likewise.
55665         * tests/test-freadable.c (ASSERT): Likewise.
55666         * tests/test-freadahead.c (ASSERT): Likewise.
55667         * tests/test-freading.c (ASSERT): Likewise.
55668         * tests/test-freadptr.c (ASSERT): Likewise.
55669         * tests/test-freadptr2.c (ASSERT): Likewise.
55670         * tests/test-freadseek.c (ASSERT): Likewise.
55671         * tests/test-freopen.c (ASSERT): Likewise.
55672         * tests/test-frexp.c (ASSERT): Likewise.
55673         * tests/test-frexpl.c (ASSERT): Likewise.
55674         * tests/test-fseek.c (ASSERT): Likewise.
55675         * tests/test-fseeko.c (ASSERT): Likewise.
55676         * tests/test-fstrcmp.c (ASSERT): Likewise.
55677         * tests/test-ftell.c (ASSERT): Likewise.
55678         * tests/test-ftello.c (ASSERT): Likewise.
55679         * tests/test-func.c (ASSERT): Likewise.
55680         * tests/test-fwritable.c (ASSERT): Likewise.
55681         * tests/test-fwriting.c (ASSERT): Likewise.
55682         * tests/test-getdelim.c (ASSERT): Likewise.
55683         * tests/test-getline.c (ASSERT): Likewise.
55684         * tests/test-i-ring.c (ASSERT): Likewise.
55685         * tests/test-iconv-utf.c (ASSERT): Likewise.
55686         * tests/test-iconv.c (ASSERT): Likewise.
55687         * tests/test-isfinite.c (ASSERT): Likewise.
55688         * tests/test-isnand.c (ASSERT): Likewise.
55689         * tests/test-isnanf.c (ASSERT): Likewise.
55690         * tests/test-isnanl.h (ASSERT): Likewise.
55691         * tests/test-ldexpl.c (ASSERT): Likewise.
55692         * tests/test-linked_list.c (ASSERT): Likewise.
55693         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55694         * tests/test-localename.c (ASSERT): Likewise.
55695         * tests/test-lseek.c (ASSERT): Likewise.
55696         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55697         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55698         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55699         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55700         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55701         * tests/test-mbschr.c (ASSERT): Likewise.
55702         * tests/test-mbscspn.c (ASSERT): Likewise.
55703         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55704         * tests/test-mbspbrk.c (ASSERT): Likewise.
55705         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55706         * tests/test-mbsrchr.c (ASSERT): Likewise.
55707         * tests/test-mbsspn.c (ASSERT): Likewise.
55708         * tests/test-mbsstr1.c (ASSERT): Likewise.
55709         * tests/test-mbsstr2.c (ASSERT): Likewise.
55710         * tests/test-mbsstr3.c (ASSERT): Likewise.
55711         * tests/test-memchr2.c (ASSERT): Likewise.
55712         * tests/test-memmem.c (ASSERT): Likewise.
55713         * tests/test-open.c (ASSERT): Likewise.
55714         * tests/test-printf-frexp.c (ASSERT): Likewise.
55715         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55716         * tests/test-printf-posix.c (ASSERT): Likewise.
55717         * tests/test-quotearg.c (ASSERT): Likewise.
55718         * tests/test-rbtree_list.c (ASSERT): Likewise.
55719         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55720         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55721         * tests/test-round1.c (ASSERT): Likewise.
55722         * tests/test-roundf1.c (ASSERT): Likewise.
55723         * tests/test-roundl.c (ASSERT): Likewise.
55724         * tests/test-signbit.c (ASSERT): Likewise.
55725         * tests/test-sleep.c (ASSERT): Likewise.
55726         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55727         * tests/test-snprintf.c (ASSERT): Likewise.
55728         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55729         * tests/test-stat-time.c (ASSERT): Likewise.
55730         * tests/test-strcasestr.c (ASSERT): Likewise.
55731         * tests/test-strerror.c (ASSERT): Likewise.
55732         * tests/test-striconv.c (ASSERT): Likewise.
55733         * tests/test-striconveh.c (ASSERT): Likewise.
55734         * tests/test-striconveha.c (ASSERT): Likewise.
55735         * tests/test-strsignal.c (ASSERT): Likewise.
55736         * tests/test-strstr.c (ASSERT): Likewise.
55737         * tests/test-strtod.c (ASSERT): Likewise.
55738         * tests/test-trunc1.c (ASSERT): Likewise.
55739         * tests/test-trunc2.c (ASSERT): Likewise.
55740         * tests/test-truncf1.c (ASSERT): Likewise.
55741         * tests/test-truncf2.c (ASSERT): Likewise.
55742         * tests/test-truncl.c (ASSERT): Likewise.
55743         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55744         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55745         * tests/test-vasnprintf.c (ASSERT): Likewise.
55746         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55747         * tests/test-vasprintf.c (ASSERT): Likewise.
55748         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55749         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55750         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55751         * tests/test-vsnprintf.c (ASSERT): Likewise.
55752         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55753         * tests/test-wcwidth.c (ASSERT): Likewise.
55754         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55755         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55756         * tests/test-xvasprintf.c (ASSERT): Likewise.
55757         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55758         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55759         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55760         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55761         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55762         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55763         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55764         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55765         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55766         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55767         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55768         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55769         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55770         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55771         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55772         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55773         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55774         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55775         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55776         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55777         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55778         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55779         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55780         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55781         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55782         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55783         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55784         * tests/unictype/test-combining.c (ASSERT): Likewise.
55785         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55786         * tests/unictype/test-digit.c (ASSERT): Likewise.
55787         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55788         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55789         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55790         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55791         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55792         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55793         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55794         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55795         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55796         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55797         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55798         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55799         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55800         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55801         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55802         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55803         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55804         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55805         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55806         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55807         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55808         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55809         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55810         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55811         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55812         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55813         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55814         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55815         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55816         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55817         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55818         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55819         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55820         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55821         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55822         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55823         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55824         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55825         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55826         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55827         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55828         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55829         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55830         Reported by Eric Blake.
55831
55832 2008-04-11  Bruno Haible  <bruno@clisp.org>
55833
55834         * lib/wchar.in.h: Tweak comment.
55835
55836 2008-04-11  Bruno Haible  <bruno@clisp.org>
55837
55838         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55839         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55840         gl_COMMON.
55841         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55842
55843 2008-04-11  Bruno Haible  <bruno@clisp.org>
55844
55845         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55846
55847 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55848
55849         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55850         of attempting to use non-existing /dev/*random.  Based on patch
55851         from Adam Strzelecki <ono@java.pl> in
55852         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55853
55854 2008-04-08  Bruno Haible  <bruno@clisp.org>
55855
55856         Add tentative support for emx+gcc.
55857         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55858         * lib/fpurge.c (fpurge): Likewise.
55859         * lib/freadable.c (freadable): Likewise.
55860         * lib/freadahead.c (freadahead): Likewise.
55861         * lib/freading.c (freading): Likewise.
55862         * lib/freadptr.c (freadptr): Likewise.
55863         * lib/freadseek.c (freadptrinc): Likewise.
55864         * lib/fseeko.c (rpl_fseeko): Likewise.
55865         * lib/fseterr.c (fseterr): Likewise.
55866         * lib/fwritable.c (fwritable): Likewise.
55867         * lib/fwriting.c (fwriting): Likewise.
55868         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55869
55870 2008-04-09  Eric Blake  <ebb9@byu.net>
55871
55872         Avoid some autoconf warnings.
55873         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55874         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55875         * m4/afs.m4 (gl_AFS): Likewise.
55876         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55877         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55878         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55879         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55880         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55881         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55882         (AC_CHECK_DECLS_ONCE): Likewise.
55883         Rename file...
55884         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55885         gnulib-tool requires autoconf 2.59 or better.
55886         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55887
55888 2008-04-08  Eric Blake  <ebb9@byu.net>
55889
55890         Use 'git describe --match' if present (added in git 1.5.5).
55891         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55892         if possible.
55893
55894 2008-04-08  Bruno Haible  <bruno@clisp.org>
55895
55896         Add tentative support for OpenServer.
55897         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55898         _ptr, _cnt.
55899         * lib/fpurge.c (fpurge): Likewise.
55900         * lib/freadable.c (freadable): Likewise.
55901         * lib/freadahead.c (freadahead): Likewise.
55902         * lib/freading.c (freading): Likewise.
55903         * lib/freadptr.c (freadptr): Likewise.
55904         * lib/freadseek.c (freadptrinc): Likewise.
55905         * lib/fseeko.c (rpl_fseeko): Likewise.
55906         * lib/fseterr.c (fseterr): Likewise.
55907         * lib/fwritable.c (fwritable): Likewise.
55908         * lib/fwriting.c (fwriting): Likewise.
55909         Reported by Roger Cornelius <rac@tenzing.org> and
55910         Brian K. White <brian@aljex.com>.
55911
55912 2008-04-06  Jim Meyering  <meyering@redhat.com>
55913
55914         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55915
55916 2008-04-06  Bruno Haible  <bruno@clisp.org>
55917
55918         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55919         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55920         * tests/test-printf-posix.sh: Likewise.
55921         * tests/test-vfprintf-posix.sh: Likewise.
55922         * tests/test-vprintf-posix.sh: Likewise.
55923         * tests/test-xprintf-posix.sh: Likewise.
55924
55925 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55926
55927         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
55928         hide error from 'ls', needed on OS/2.
55929         Report by Elbert Pol <elbert.pol@gmail.com>.
55930
55931 2008-04-04  Eric Blake  <ebb9@byu.net>
55932
55933         Make test-fseeko.c failures meaningful.
55934         * tests/test-fseeko.c: Print line number on failure.
55935         * tests/test-fseek.c: Likewise.
55936         Reported by Nelson H. F. Beebe.
55937
55938         Improve strtod bug detection check.
55939         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
55940         required for Solaris 10.
55941         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
55942
55943 2008-04-04  Bruno Haible  <bruno@clisp.org>
55944
55945         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
55946         by m4/setenv.m4.
55947
55948 2008-04-03  Eric Blake  <ebb9@byu.net>
55949
55950         Ensure sane .version contents.
55951         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
55952         version string.
55953         * build-aux/git-version-gen: Improve documentation.
55954
55955         Make GNU make output nicer.
55956         * top/GNUmakefile [!_have-Makefile]: Add dependency on
55957         MAKECMDGOALS to enforce message for all command line targets.  Set
55958         srcdir for use in maint.mk.
55959
55960         Another maintainer tweak.
55961         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
55962         a target that regenerates version.
55963
55964 2008-04-03  Jim Meyering  <meyering@redhat.com>
55965
55966         vc-list-files: don't cause coreutils "make po-check" failure
55967         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
55968
55969 2008-04-03  Eric Blake  <ebb9@byu.net>
55970
55971         Allow VPATH usage of vc-list-files.
55972         * build-aux/vc-list-files (scriptversion): Add timestamp.
55973         (options): Add --help, --version, -C.
55974         (CVS): Support installed cvsu.
55975
55976 2008-04-02  Bruno Haible  <bruno@clisp.org>
55977
55978         Avoid some "statement with no effect" warnings from gcc.
55979         * tests/test-wctype.c (main): Explicitly ignore unused values.
55980         Reported by Jim Meyering.
55981
55982 2008-04-02  Jim Meyering  <meyering@redhat.com>
55983
55984         Avoid some warnings from "gcc -Wshadow".
55985         * tests/test-frexp.c (exp): Define to a different identifier.
55986         * tests/test-frexpl.c (exp): Likewise.
55987
55988 2008-04-03  Jim Meyering  <meyering@redhat.com>
55989
55990         bootstrap: remove dangling *.[ch] symlinks from lib
55991         * build-aux/bootstrap [dangling symlink removal]: Move find's
55992         -depth option to precede all others, to avoid a warning.
55993         Remove *.[ch] files too, and from "$source_base" (usually lib/).
55994
55995 2008-04-02  Bruno Haible  <bruno@clisp.org>
55996
55997         Avoid some warnings from "gcc -Wshadow".
55998         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
55999         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56000         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56001         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56002         Reported by Jim Meyering.
56003
56004 2008-04-01  Bruno Haible  <bruno@clisp.org>
56005
56006         Fix test to work on IRIX 6.5 with cc.
56007         * tests/test-math.c (numeric_equal): New function.
56008         (main): Use it.
56009
56010 2008-04-01  Bruno Haible  <bruno@clisp.org>
56011
56012         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56013
56014 2008-04-01  Bruno Haible  <bruno@clisp.org>
56015
56016         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56017         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56018         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56019         (Depends-on): Remove math.
56020
56021         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56022         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56023         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56024         (Depends-on): Remove math.
56025
56026         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56027         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56028         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56029         (Depends-on): Remove math.
56030         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56031         (Depends-on): Remove math.
56032
56033         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56034         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56035         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56036         (Depends-on): Remove math.
56037         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56038         (Depends-on): Remove math.
56039
56040         * tests/test-round1.c: Include nan.h.
56041         (main): Use NaNd instead of NAN.
56042         * modules/round-tests (Files): Add tests/nan.h.
56043
56044         * tests/test-trunc1.c: Include nan.h.
56045         (main): Use NaNd instead of NAN.
56046         * modules/trunc-tests (Files): Add tests/nan.h.
56047
56048         * tests/test-roundf1.c: Include nan.h.
56049         (main): Use NaNf instead of NAN.
56050         * modules/roundf-tests (Files): Add tests/nan.h.
56051
56052         * tests/test-truncf1.c: Include nan.h.
56053         (main): Use NaNf instead of NAN.
56054         * modules/truncf-tests (Files): Add tests/nan.h.
56055
56056         * tests/test-ceilf1.c: Include nan.h.
56057         (main): Use NaNf instead of NAN.
56058         * modules/ceilf-tests (Files): Add tests/nan.h.
56059
56060         * tests/test-floorf1.c: Include nan.h.
56061         (main): Use NaNf instead of NAN.
56062         * modules/floorf-tests (Files): Add tests/nan.h.
56063
56064         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56065         (main): Use NaNf instead of NAN.
56066         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56067
56068         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56069         (main): Use NaNd instead of NAN.
56070         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56071
56072         * tests/test-frexp.c: Include nan.h.
56073         (main): Use NaNd instead of NAN.
56074         * modules/frexp-tests (Files): Add tests/nan.h.
56075
56076         * lib/isnan.c: Don't include <math.h>.
56077         (FUNC): Don't use NAN macro.
56078         * modules/isnand-nolibm (Depends-on): Remove math.
56079         * modules/isnanf-nolibm (Depends-on): Remove math.
56080         * modules/isnanl (Depends-on): Remove math.
56081         * modules/isnanl-nolibm (Depends-on): Remove math.
56082
56083         * tests/nan.h: New file.
56084
56085 2008-04-01  Eric Blake  <ebb9@byu.net>
56086
56087         Fix typos.
56088         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56089         values to be the right type.
56090
56091         For now, cater to gnulib strtod inaccuracies.
56092         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56093         fractional results.  While not as nice from a QoI perspective, it
56094         is a quicker patch than correctly implementing decimal to binary
56095         rounding.
56096
56097 2008-03-31  Eric Blake  <ebb9@byu.net>
56098
56099         Guarantee a definition of NAN.
56100         * lib/math.in.h (NAN): Define if missing.
56101         * tests/test-math.c (main): Test it.
56102         * doc/posix-headers/math.texi (math.h): Document this.
56103         * lib/isnan.c (rpl_isnand): Use it.
56104         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56105         * tests/test-floorf1.c (NaN): Likewise.
56106         * tests/test-frexp.c (NaN): Likewise.
56107         * tests/test-isnand.c (NaN): Likewise.
56108         * tests/test-isnanf.c (NaN): Likewise.
56109         * tests/test-round1.c (NaN): Likewise.
56110         * tests/test-roundf1.c (NaN): Likewise.
56111         * tests/test-snprintf-posix.h (NaN): Likewise.
56112         * tests/test-sprintf-posix.h (NaN): Likewise.
56113         * tests/test-trunc1.c (NaN): Likewise.
56114         * tests/test-truncf1.c (NaN): Likewise.
56115         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56116         * tests/test-vasprintf-posix.c (NaN): Likewise.
56117         * modules/isnand-nolibm (Depends-on): Add math.
56118         * modules/isnanf-nolibm (Depends-on): Likewise.
56119         * modules/isnanl (Depends-on): Likewise.
56120         * modules/isnanl-nolibm (Depends-on): Likewise.
56121         * modules/snprintf-posix-tests (Depends-on): Likewise.
56122         * modules/sprintf-posix-tests (Depends-on): Likewise.
56123         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56124         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56125         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56126         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56127
56128 2008-03-31  Bruno Haible  <bruno@clisp.org>
56129
56130         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56131         * doc/posix-functions/strtod.texi: Likewise.
56132
56133 2008-03-31  Bruno Haible  <bruno@clisp.org>
56134
56135         * tests/test-strtod.c (main): Don't use C99 syntax.
56136
56137 2008-03-31  Bruno Haible  <bruno@clisp.org>
56138
56139         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56140         Reported by Eric Blake.
56141
56142 2008-03-31  Jim Meyering  <meyering@redhat.com>
56143
56144         Don't compare actual signbit return values.
56145         * tests/test-strtod.c (main): Rather, compare only their
56146         zero/non-zero nature.
56147
56148 2008-03-31  Eric Blake  <ebb9@byu.net>
56149
56150         More strtod documentation.
56151         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56152         failures as distinct bugs.
56153
56154 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56155
56156         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56157         Problem reported by Erik Benada in
56158         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56159
56160 2008-03-30  Bruno Haible  <bruno@clisp.org>
56161
56162         * tests/test-strtod.c: Add comments about which assertion fails on which
56163         platform.
56164         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56165
56166 2008-03-30  Eric Blake  <ebb9@byu.net>
56167
56168         Test signbit behavior on zeros.
56169         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56170         (test_signbitd, test_signbitl): Likewise.
56171
56172         More strtod touchups.
56173         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56174         sign of negative underflow, for now.  Use .5, not .1.
56175         * doc/posix-functions/strtod.texi (strtod): Mention these
56176         limitations.
56177         Reported by Jim Meyering.
56178
56179 2008-03-30  Bruno Haible  <bruno@clisp.org>
56180
56181         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56182         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56183
56184 2008-03-30  Bruno Haible  <bruno@clisp.org>
56185
56186         Avoid failure when attempting to return empty iconv results on some
56187         platforms.
56188         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56189         allocation, don't report ENOMEM when the resulting string is empty.
56190
56191 2008-03-30  Bruno Haible  <bruno@clisp.org>
56192
56193         Fix buffer overrun.
56194         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56195         Don't consider the width for tmp_length. Check count against tmp_length
56196         before doing the padding. Ensure enough allocation during padding.
56197
56198 2008-03-30  Eric Blake  <ebb9@byu.net>
56199
56200         strtod touchups.
56201         * lib/strtod.c (strtod): Avoid compiler warnings.
56202         Reported by Jim Meyering.
56203
56204 2008-03-30  Bruno Haible  <bruno@clisp.org>
56205
56206         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56207         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56208         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56209         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56210         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56211         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56212         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56213         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56214
56215         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56216         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56217         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56218         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56219         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56220         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56221         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56222         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56223
56224         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56225         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56226         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56227         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56228         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56229         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56230         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56231         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56232
56233         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56234         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56235
56236         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56237         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56238
56239         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56240         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56241
56242         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56243         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56244         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56245
56246         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56247         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56248         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56249
56250         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56251         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56252         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56253
56254         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56255         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56256         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56257
56258         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56259         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56260         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56261         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56262         (Depends-on): Add EOVERFLOW.
56263         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56264         (Depends-on): Add EOVERFLOW.
56265         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56266         (Depends-on): Add EOVERFLOW.
56267         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56268         (Depends-on): Add EOVERFLOW.
56269         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56270         (Depends-on): Add EOVERFLOW.
56271         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56272         (Depends-on): Add EOVERFLOW.
56273         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56274         (Depends-on): Add EOVERFLOW.
56275         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56276         (Depends-on): Add EOVERFLOW.
56277
56278         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56279         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56280         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56281
56282         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56283         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56284         * modules/snprintf (Depends-on): Add EOVERFLOW.
56285
56286         * lib/poll.c (EOVERFLOW): Remove fallback.
56287         * modules/poll (Depends-on): Add EOVERFLOW.
56288
56289         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56290         * modules/getugroups (Depends-on): Add EOVERFLOW.
56291
56292         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56293         * modules/getdelim (Depends-on): Add EOVERFLOW.
56294
56295         * lib/ftell.c (EOVERFLOW): Remove fallback.
56296         * modules/ftell (Depends-on): Add EOVERFLOW.
56297
56298         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56299         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56300         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56301
56302         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56303
56304         * modules/EOVERFLOW-tests: New file.
56305         * tests/test-EOVERFLOW.c: New file.
56306
56307         * modules/EOVERFLOW: New file.
56308         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56309
56310 2008-03-30  Bruno Haible  <bruno@clisp.org>
56311
56312         Fix bug introduced on 2007-06-10.
56313         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56314         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56315
56316 2008-03-30  Bruno Haible  <bruno@clisp.org>
56317
56318         Improve freadseek's efficiency after ungetc.
56319         * lib/freadseek.c: Include freadahead.h.
56320         (freadptrinc): New function, extracted from freadseek.
56321         (freadseek): Use it in a loop. Use freadahead to determine the number
56322         of loop iterations.
56323         * modules/freadseek (Depends-on): Add freadahead.
56324         (configure.ac): Require AC_C_INLINE.
56325
56326 2008-03-30  Bruno Haible  <bruno@clisp.org>
56327
56328         * lib/freadseek.c (freadseek): Don't ignore the return value of
56329         freadptr.
56330
56331 2008-03-29  Eric Blake  <ebb9@byu.net>
56332
56333         Add hex float support.
56334         * modules/strtod (Depends-on): Add c-ctype.
56335         (Link): Mention POW_LIB.
56336         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56337         whitespace between 'e' and exponent.
56338         * tests/test-strtod.c (main): Enable hex float tests.
56339         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56340         now provides.
56341
56342         Document various strtod bugs, with some fixes.
56343         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56344         "-0x", "inf", "nan", and hex constants.
56345         * doc/posix-functions/atof.texi (atof): Likewise.
56346         * modules/stdlib (Makefile.am): Support strtod.
56347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56348         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56349         detect additional strtod bugs.
56350         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56351         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56352         bool where appropriate.  Parse 'inf' and 'nan'.
56353         * tests/test-strtod.c: New file.
56354         * modules/strtod (Depends-on): Add stdbool, stdlib.
56355         (configure.ac): Turn on module indicator.
56356         * modules/strtod-tests: New module.
56357
56358 2008-03-29  Eric Blake  <ebb9@byu.net>
56359
56360         Fix ftell on mingw.
56361         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56362         * modules/ftell-tests (Depends-on): Add binary-io.
56363         * modules/ftello-tests (Depends-on): Likewise.
56364         * tests/test-ftell.c (main): Enhance test to cover behavior after
56365         ungetc.  Enforce binary mode.
56366         * tests/test-ftello.c (main): Likewise.
56367
56368         Pass test-freadseek on cygwin.
56369         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56370         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56371         ungetc buffer.
56372
56373         * tests/test-fflush2.c (main): Fix typo.
56374
56375 2008-03-29  Bruno Haible  <bruno@clisp.org>
56376
56377         * tests/test-fflush2.c (main): Temporarily disable the contents of
56378         this test.
56379         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56380         Reported by Eric Blake.
56381
56382 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56383
56384         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56385         (GC_SHA224_DIGEST_SIZE): Add.
56386
56387         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56388         (gc_hash_digest_length): Likewise.
56389         (gc_hash_buffer): Likewise.
56390
56391 2008-03-25  Bruno Haible  <bruno@clisp.org>
56392
56393         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56394         detail which gettext release to use.
56395         Reported by Simon Josefsson.
56396
56397 2008-03-26  Jim Meyering  <meyering@redhat.com>
56398
56399         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56400         * modules/gnumakefile (clean-GNUmakefile): Also, use
56401         test ... && ... || : syntax rather than if-then ... fi.
56402
56403         gnumakefile: Don't double-quote-expand $(VPATH) value.
56404         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56405
56406 2008-03-24  Eric Blake  <ebb9@byu.net>
56407
56408         Alter GNUmakefile to install into top directory.
56409         * modules/maintainer-makefile: Split, and add dependency...
56410         * modules/gnumakefile: to this new module.
56411         * build-aux/GNUmakefile: Move...
56412         * top/GNUmakefile: ...here.
56413         * build-aux/maint.mk: Move...
56414         * top/maint.mk: ...here.
56415         * MODULES.html.sh (Support for maintaining...): Document new
56416         module.
56417
56418 2008-03-23  Bruno Haible  <bruno@clisp.org>
56419
56420         * gnulib-tool: New options --vc-files, --no-vc-files.
56421         (func_usage): Document them.
56422         (vc_files): New variable.
56423         (func_import): Consider vc_files.
56424         (func_create_testdir): Set vc_files to empty.
56425         Suggested by Jim Meyering and Karl Berry.
56426
56427 2008-03-23  Bruno Haible  <bruno@clisp.org>
56428
56429         Fix regex compilation error on HP-UX 11.
56430         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56431         * modules/regex (Files): Add m4/mbstate_t.m4.
56432         Reported by Ton Voon <ton.voon@altinity.com>.
56433
56434 2008-03-23  Bruno Haible  <bruno@clisp.org>
56435
56436         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56437
56438 2008-03-23  Eric Blake  <ebb9@byu.net>
56439             Bruno Haible  <bruno@clisp.org>
56440
56441         Install files from top/ in the destination directory.
56442         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56443         augmentation also for the files from top/.
56444         (func_import, func_create_testdir): Rewrite file names:
56445         top/filename -> filename.
56446
56447 2008-03-23  Bruno Haible  <bruno@clisp.org>
56448
56449         Tweak "gnulib --version" output.
56450         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56451
56452 2008-03-23  Bruno Haible  <bruno@clisp.org>
56453
56454         Tweak "gnulib --version" output.
56455         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56456         rather than contents of ChangeLog, when possible.
56457
56458 2008-03-21  Eric Blake  <ebb9@byu.net>
56459
56460         More --version tweaks.
56461         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56462         date of last ChangeLog entry.
56463
56464 2008-03-21  Jim Meyering  <meyering@redhat.com>
56465
56466         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56467
56468 2008-03-20  Eric Blake  <ebb9@byu.net>
56469
56470         VPATH fix.
56471         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56472
56473 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56474
56475         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56476         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56477
56478 2008-03-20  Eric Blake  <ebb9@byu.net>
56479
56480         Sync GNUmakefile with coreutils.
56481         * build-aux/GNUmakefile (have-Makefile): Rename...
56482         (_have-Makefile): ...to this, for namespace consideration.
56483         (GNUmakefile.cfg): Include, if present.
56484         (_autoreconf): Define a default.
56485         (_is-dist-target): New rule for rebuilds to pick up intra-release
56486         version.
56487         (maint-cfg.mk): Rename...
56488         (cfg.mk): ...to this.
56489
56490 2008-03-18  Jim Meyering  <meyering@redhat.com>
56491
56492         New script and module: mktempd
56493         * MODULES.html.sh (maint+release support): Add mktempd.
56494         * build-aux/mktempd: New file.
56495         * modules/mktempd: New file.
56496
56497 2008-03-15  Jim Meyering  <meyering@redhat.com>
56498
56499         Undo last change.
56500         * lib/sha1.c, lib/md5.c: 63 != ~63.
56501         Reported by Andreas Schwab.
56502
56503         sha1.c, md5.c: Hoist a redundant expression.
56504         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56505         "ctx->buflen" only once, before calling *_process_block.
56506         * lib/md5.c (md5_process_bytes): Likewise.
56507
56508 2008-03-14  Eric Blake  <ebb9@byu.net>
56509
56510         Bump copyright year in files generated by gnulib-tool.
56511         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56512         gnulib-tool, rather than hard-coding it.
56513
56514         Fix 'gnulib-tool --version' output to work with git.
56515         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56516         (startup): ...here.
56517         (func_version): Use it to invoke git-version-gen, rather than
56518         relying on CVS keyword expansion.  Modernize wording.
56519         (cvsdatestamp, last_checkin_date, version): Kill unused
56520         variables.
56521
56522 2008-03-12  Jim Meyering  <meyering@redhat.com>
56523
56524         Recognize optional cast of the argument to free.
56525         * build-aux/useless-if-before-free: Update regexps.
56526
56527         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56528
56529 2008-03-11  Bruno Haible  <bruno@clisp.org>
56530
56531         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56532         by a single package.
56533         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56534         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56535         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56536         Reported by Sam Steingold <sds@gnu.org>.
56537
56538 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56539
56540         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56541         repositories.
56542
56543 2008-03-11  Bruno Haible  <bruno@clisp.org>
56544
56545         Avoid conflicts between local macro definitions.
56546         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56547         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56548
56549 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56550             Bruno Haible  <bruno@clisp.org>
56551
56552         Make va_copy work with some version of xlc on AIX 5.1.
56553         * lib/stdarg.in.h: New file.
56554         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56555         On AIX, use a <stdarg.h> file substitute.
56556         * modules/stdarg (Files): Add lib/stdarg.in.h.
56557         (Depends-on): Add include_next.
56558         (Makefile.am): Build a stdarg.h substitute if requested.
56559         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56560
56561 2008-03-10  Bruno Haible  <bruno@clisp.org>
56562
56563         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56564         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56565         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56566
56567 2008-03-10  Bruno Haible  <bruno@clisp.org>
56568
56569         * modules/stdlib (Depends-on): Add include_next, remove
56570         absolute-header.
56571
56572 2008-03-09  Bruno Haible  <bruno@clisp.org>
56573
56574         * lib/freadahead.h (freadahead): Document more precisely.
56575         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56576         the sum of both buffer sizes.
56577         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56578         * NEWS: Document the change.
56579
56580 2008-03-09  Bruno Haible  <bruno@clisp.org>
56581
56582         Extend freadptr to return also the buffer size.
56583         * lib/freadptr.h (freadptr): Add sizep argument.
56584         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56585         (freadptr): Add sizep argument. Determine buffer size like freadahead
56586         does.
56587         * tests/test-freadptr.c: Don't include freadahead.h.
56588         (main): Adapt for new calling convention of freadptr.
56589         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56590         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56591         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56592         tests/test-freadptr2.sh.
56593         (Depends): Remove freadahead.
56594         (TESTS): Add test-freadptr2.sh.
56595         (check_PROGRAMS): Add test-freadptr2.
56596
56597 2008-03-09  Bruno Haible  <bruno@clisp.org>
56598
56599         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56600         Report and solution by Simon Josefsson.
56601
56602 2008-03-06  Bruno Haible  <bruno@clisp.org>
56603
56604         Make fflush after ungetc work on BSD platforms.
56605         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56606         * tests/test-fflush2.c: New file.
56607         * tests/test-fflush2.sh: New file.
56608         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56609         tests/test-fflush2.c.
56610         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56611         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56612
56613 2008-03-06  Eric Blake  <ebb9@byu.net>
56614
56615         Likewise for ftello.
56616         * modules/ftello (Dependencies): Add extensions.
56617         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56618
56619 2008-03-06  Bruno Haible  <bruno@clisp.org>
56620
56621         * modules/fseeko (Dependencies): Add extensions.
56622         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56623         Needed on glibc systems.
56624
56625 2008-03-06  Bruno Haible  <bruno@clisp.org>
56626
56627         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56628         email address.
56629         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56630
56631 2008-03-06  Bruno Haible  <bruno@clisp.org>
56632
56633         * users.txt: Add libgnupdf.
56634
56635 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56636
56637         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56638         (Header File Substitutes, Function Substitutes,
56639         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56640         (Build robot for gnulib): Fix typo.
56641
56642 2008-03-06  Bruno Haible  <bruno@clisp.org>
56643
56644         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56645         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56646
56647 2008-03-06  Bruno Haible  <bruno@clisp.org>
56648
56649         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56650         * doc/gnulib.texi: Include it.
56651
56652 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56653
56654         * modules/func (License): Change license to unlimited; there was
56655         no LGPL parts in the module anyway.
56656
56657 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56658
56659         * modules/__func__: Renamed to modules/func.
56660         * modules/__func__-tests: Renamed to modules/func-tests.
56661         * tests/test-__func__.c: Renamed to tests/test-func.c.
56662         * m4/__func__.m4: Renamed to m4/func.m4.
56663         * doc/gnulib.texi (__func__): Section renamed to func.
56664         Suggested by Eric Blake <ebb9@byu.net>.
56665
56666 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56667
56668         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56669         about __func__.  Make example self-contained.  Suggested by Eric
56670         Blake <ebb9@byu.net>.
56671
56672         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56673         Suggested by Eric Blake <ebb9@byu.net>.
56674
56675 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56676
56677         * modules/__func__: New file.
56678         * modules/__func__-tests: New file.
56679         * tests/test-__func__.c: New file.
56680         * m4/__func__.m4: New file.
56681         * doc/gnulib.texi (__func__): Document __func__ module.
56682
56683 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56684
56685         * modules/byteswap (License): Re-license as LGPLv2+.
56686
56687 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56688
56689         * doc/Makefile: Add pdf target.
56690
56691 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56692
56693         * modules/inline (License): Use 'unlimited', since there are only
56694         *.m4 files in this module.
56695
56696 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56697             Bruno Haible  <bruno@clisp.org>
56698
56699         Add support for HP C 7.1 on OpenVMS 8.3.
56700         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56701
56702 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56703
56704         Update VMS specifics.
56705         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56706
56707 2008-03-02  Jim Meyering  <meyering@redhat.com>
56708
56709         Remove the last dependency on the "free" module.
56710         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56711         Reported by Bob Proulx.
56712
56713         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56714
56715         Remove useless "if" tests before free.  Deprecate "free" module.
56716         * doc/posix-functions/free.texi: Mention that this
56717         module is no longer useful.
56718         * modules/free (Notice): Say this module is obsolete.
56719         * modules/readutmp (Depends-on): Remove free.
56720         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56721         * lib/putenv.c (putenv): Likewise.
56722         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56723         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56724         * tests/test-c-strcasestr.c (main): Likewise.
56725         * tests/test-c-strstr.c (main): Likewise.
56726         * tests/test-mbscasestr1.c (main): Likewise.
56727         * tests/test-mbscasestr2.c (main): Likewise.
56728         * tests/test-mbsstr1.c (main): Likewise.
56729         * tests/test-mbsstr2.c (main): Likewise.
56730         * tests/test-memmem.c (main): Likewise.
56731         * tests/test-strcasestr.c (main): Likewise.
56732         * tests/test-striconv.c (main): Likewise.
56733         * tests/test-striconveh.c (main): Likewise.
56734         * tests/test-striconveha.c (main): Likewise.
56735         * tests/test-strstr.c (main): Likewise.
56736
56737         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56738
56739         bootstrap: sync from coreutils again
56740         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56741
56742 2008-03-01  Jim Meyering  <meyering@redhat.com>
56743
56744         bootstrap: sync from coreutils
56745         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56746         also when the target doesn't exist.
56747
56748 2008-03-01  Eric Blake  <ebb9@byu.net>
56749
56750         Fix bugs in last patch.
56751         * lib/memchr2.c (memchr2): Fix typo.
56752         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56753         extension.
56754         Reported by Bruce Korb.
56755
56756         New module 'memchr2'.
56757         * modules/memchr2: New file.
56758         * modules/memchr2-tests: Likewise.
56759         * lib/memchr2.h: Likewise.
56760         * lib/memchr2.c: Likewise, based on memchr.c.
56761         * tests/test-memchr2.c: New test.
56762         * MODULES.html.sh (String handling): Add memchr2.
56763
56764 2008-02-29  Bruno Haible  <bruno@clisp.org>
56765
56766         * modules/freadseek-tests: New file.
56767         * tests/test-freadseek.sh: New file.
56768         * tests/test-freadseek.c: New file.
56769
56770         New module 'freadseek'.
56771         * modules/freadseek: New file.
56772         * lib/freadseek.h: New file.
56773         * lib/freadseek.c: New file.
56774         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56775
56776 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56777
56778         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56779         wydawca.
56780
56781         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56782         program_invocation_name and program_invocation_short_name are
56783         present.
56784
56785 2008-02-28  Bruno Haible  <bruno@clisp.org>
56786
56787         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56788         * tests/test-freadptr.sh: Also test non-seekable stdin.
56789
56790 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56791
56792         * build-aux/bootstrap (source_base, m4_base)
56793         (doc_base, tests_base): New variables.
56794         (gnulib_tool_options): Do not hardcode base directories, use
56795         the above variables instead.
56796
56797 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56798
56799         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56800
56801 2008-02-28  Bruno Haible  <bruno@clisp.org>
56802
56803         * modules/freadptr-tests: New file.
56804         * tests/test-freadptr.sh: New file.
56805         * tests/test-freadptr.c: New file.
56806
56807         New module 'freadptr'.
56808         * modules/freadptr: New file.
56809         * lib/freadptr.h: New file.
56810         * lib/freadptr.c: New file.
56811         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56812
56813 2008-02-26  Karl Berry  <karl@freefriends.org>
56814
56815         Sync from Libtool:
56816         * libltdl/argz.c (argz_add, argz_count): New functions.
56817         * libltdl/argz.in.h: Declare them.
56818         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56819
56820 2008-02-22  Bruno Haible  <bruno@clisp.org>
56821
56822         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56823         is a pointer type.  Needed for HP-UX 10.
56824         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56825         * doc/posix-functions/gmtime_r.texi: Likewise.
56826         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56827
56828 2008-02-24  Bruno Haible  <bruno@clisp.org>
56829
56830         * modules/environ-tests: New file.
56831         * tests/test-environ.c: New file.
56832
56833         New module 'environ'.
56834         * modules/environ: New file.
56835         * lib/unistd.in.h (environ): New declaration.
56836         * m4/environ.m4: New file.
56837         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56838         after use.
56839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56840         HAVE_DECL_ENVIRON.
56841         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56842         HAVE_DECL_ENVIRON.
56843         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56844         wrong claim that 'environ' is missing on some systems.
56845         * modules/execute (Depends-on): Add environ.
56846         * lib/execute.c (environ): Remove fallback declaration.
56847         * modules/pipe (Depends-on): Add environ.
56848         * lib/pipe.c (environ): Remove fallback declaration.
56849         * modules/setenv (Depends-on): Add environ.
56850         * lib/setenv.c (environ): Remove fallback declaration.
56851         * modules/unsetenv (Depends-on): Add environ.
56852         * lib/unsetenv.c (environ): Remove fallback declaration.
56853         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56854         m4/environ.m4.
56855         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56856         (gl_PREREQ_UNSETENV): Likewise.
56857
56858 2008-02-24  Bruno Haible  <bruno@clisp.org>
56859
56860         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56861
56862 2008-02-20  Bob Proulx  <bob@proulx.com>
56863
56864         Enable use of older two part flavor 'git describe'.
56865         * build-aux/git-version-gen: If using the older two part flavor of
56866         git version then recreate the third part now present in the
56867         newer three part flavor of git describe.
56868
56869 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56870
56871         * lib/fts.c (fts_build): Typo correction to comment.
56872
56873 2008-02-17  Bruno Haible  <bruno@clisp.org>
56874
56875         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56876         generating no-op conflicts.
56877
56878 2008-02-17  Bruno Haible  <bruno@clisp.org>
56879
56880         Speed up by 10%.
56881         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56882         result_entries, rather than an index-based loop.
56883
56884 2008-02-17  Bruno Haible  <bruno@clisp.org>
56885
56886         Speed up by 25%.
56887         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56888         'hashcode_cached'.
56889         (entry_create): New function.
56890         (entry_hashcode): Use the cached hashcode if possible.
56891         (read_changelog_file, try_split_merged_entry): Use entry_create.
56892
56893 2008-02-17  Bruno Haible  <bruno@clisp.org>
56894
56895         Speed up from O(n^2) to O(n) for long ChangeLog files.
56896         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56897         (read_changelog_file): Change implementation of entries_reversed list
56898         to rbtreehash.
56899         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56900
56901 2008-02-17  Bruno Haible  <bruno@clisp.org>
56902
56903         New option --split-merged-entry.
56904         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56905         (find_paragraph_end, try_split_merged_entry): New functions.
56906         (long_options): Add option --split-merged-entry.
56907         (usage): Document option --split-merged-entry.
56908         (main): Implement option --split-merged-entry.
56909         Reported by Eric Blake.
56910
56911 2008-02-17  Bruno Haible  <bruno@clisp.org>
56912
56913         * lib/git-merge-changelog.c: Include c-strstr.h.
56914         (main): Support the "git pull --rebase" situation.
56915         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56916         Reported by Eric Blake.
56917
56918 2008-02-16  Eric Blake  <ebb9@byu.net>
56919
56920         Avoid doubling \ in common case of "c-maybe" quoting style.
56921         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56922         eliding outer quotes.
56923         * lib/quotearg.h: Document this.
56924         * tests/test-quotearg.c (result_strings, inputs, results_g)
56925         (flag_results, locale_results): Test it by adding a new string to
56926         each test group.
56927         (compare_strings): Test new string.
56928
56929 2008-02-13  Eric Blake  <ebb9@byu.net>
56930
56931         Avoid trigraph quoting in default output.
56932         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56933         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
56934         unless explicitly requested.
56935         * tests/test-quotearg.c (flag_results, main): Add additional tests.
56936
56937 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
56938
56939         Don't rely on signed integer overflowing to negative value.
56940         * lib/getugroups.c (getugroups): Include <limits.h>.
56941         Instead, compare against INT_MAX, and increment only if the test passes.
56942
56943 2008-02-13  Jim Meyering  <meyering@redhat.com>
56944         and Eric Blake  <ebb9@byu.net>
56945
56946         Avoid shadowing warning and compile errors on Linux.
56947         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
56948         forwarding macros on Linux.
56949         (dcgettext): Define a stub, for Linux.
56950         (results_g, main): Avoid warnings.
56951
56952 2008-02-12  Eric Blake  <ebb9@byu.net>
56953
56954         Silence warning in last patch.
56955         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
56956
56957         Quotearg part 4: add tests, fix c-maybe colon quoting.
56958         * lib/quotearg.h: Improve documentation.
56959         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
56960         escapes when adding outer quotes.  When quoting trigraphs, use
56961         valid C notation.  When quoting NUL, omit extra characters if next
56962         character is not digit.  Alter prototype.
56963         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
56964         callers.
56965         * modules/quotearg-tests: New module.
56966         * tests/test-quotearg.c: New test.
56967
56968 2008-02-07  Eric Blake  <ebb9@byu.net>
56969
56970         Quotearg part 3: add flag to control outer quote elision.
56971         * lib/quotearg.h (c_maybe_quoting_style): New style.
56972         (enum quoting_flags): Better documentation of flags.
56973         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
56974         c-maybe style.
56975         (quotearg_buffer_restyled): Handle new flag to elide outer
56976         quotes.
56977
56978         Quotearg part 2: add flag that can control NUL elision.
56979         * lib/quotearg.h (set_quoting_flags): New prototype.
56980         * lib/quotearg.c (struct quoting_options): Add flag field.
56981         (set_quoting_flags): New function.
56982         (quotearg_buffer_restyled): Add flags parameter.
56983         (quotearg_alloc_mem): Set the flag if length cannot be returned.
56984         (quotearg_n_options): Set the flag, since length cannot be
56985         returned.
56986         (quoting_options_from_style): Default flags correctly.
56987
56988         Quotearg part 1: more wrappers, restore quotearg_char state.
56989         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
56990         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
56991         (quotearg_colon_mem): New wrappers.
56992         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
56993         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
56994         functions.
56995         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
56996         (quotearg_colon_mem): New functions.
56997
56998 2008-02-11  Bruno Haible  <bruno@clisp.org>
56999
57000         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57001         library in the current directory: it does not work with parallel make.
57002         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57003
57004 2008-02-11  Bruno Haible  <bruno@clisp.org>
57005
57006         * .gitattributes: New file.
57007
57008 2008-02-11  Jim Meyering  <meyering@redhat.com>
57009
57010         useless-if-before-free: Fix reversed exit values.
57011         * build-aux/useless-if-before-free: Use correct values
57012         for EXIT_MATCH and EXIT_NO_MATCH.
57013
57014         * build-aux/useless-if-before-free: Close stdout carefully.
57015
57016 2008-02-10  Bruno Haible  <bruno@clisp.org>
57017
57018         New module 'git-merge-changelog'.
57019         * modules/git-merge-changelog: New file.
57020         * lib/git-merge-changelog.c: New file.
57021
57022 2008-02-10  Jim Meyering  <meyering@redhat.com>
57023
57024         useless-if-before-free: New option: --list (-l).
57025
57026         useless-if-before-free: Don't exit immediately upon open failure.
57027         * build-aux/useless-if-before-free: Exit 2 for errors.
57028         Upon failure to open a file, don't exit immediately.
57029         Rather, just warn and continue with any remaining files.
57030
57031 2008-02-10  Bruno Haible  <bruno@clisp.org>
57032
57033         New abstract list operation 'node_set_value'.
57034         * lib/gl_list.h (gl_list_node_set_value): New function.
57035         (struct gl_list_implementation): New field node_set_value.
57036         * lib/gl_list.c (gl_list_node_set_value): New function.
57037         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57038         (gl_array_list_implementation): Update.
57039         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57040         (gl_carray_list_implementation): Update.
57041         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57042         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57043         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57044         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57045         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57046         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57047         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57048         Update.
57049         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57050         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57051         (gl_sublist_list_implementation): Update.
57052
57053 2008-02-10  Bruno Haible  <bruno@clisp.org>
57054
57055         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57056         Needed when ELEMENT is #defined to 'some_type *'.
57057
57058 2008-02-10  Jim Meyering  <meyering@redhat.com>
57059
57060         New script and module: useless-if-before-free
57061         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57062         * build-aux/useless-if-before-free: New file.
57063         * modules/useless-if-before-free: New file.
57064
57065         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57066
57067         xstrtol_error: Fix typo.
57068         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57069         s/exit_failure/exit_status/.
57070
57071 2008-02-09  Jim Meyering  <meyering@redhat.com>
57072
57073         New script and module: gitlog-to-changelog
57074         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57075         * modules/gitlog-to-changelog: New file.
57076         * build-aux/gitlog-to-changelog: New file.
57077
57078 2008-02-08  Jim Meyering  <meyering@redhat.com>
57079
57080         Avoid two "parameter unused" warnings.
57081         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57082         Mark "st" as used.
57083
57084         Use "git COMMAND", not "git-COMMAND".
57085         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57086         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57087         * build-aux/git-version-gen: Use "git status", not "git-status".
57088
57089 2008-02-07  Bruno Haible  <bruno@clisp.org>
57090
57091         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57092         Avoids a crash on Windows Vista.
57093         Reported by Adam Strzelecki <ono@java.pl> via
57094         Simon Josefsson <simon@josefsson.org>.
57095
57096 2008-02-06  Bruno Haible  <bruno@clisp.org>
57097
57098         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57099         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57100         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57101         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57102         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57103         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57104         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57105         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57106         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57107         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57108         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57109         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57110         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57111         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57112         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57113         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57114         left-adjust flag.
57115         * tests/test-snprintf-posix.h (test_function): Likewise.
57116         * tests/test-sprintf-posix.h (test_function): Likewise.
57117         * tests/test-vasprintf-posix.c (test_function): Likewise.
57118         * doc/posix-functions/fprintf.texi: Update.
57119         * doc/posix-functions/printf.texi: Update.
57120         * doc/posix-functions/snprintf.texi: Update.
57121         * doc/posix-functions/sprintf.texi: Update.
57122         * doc/posix-functions/vfprintf.texi: Update.
57123         * doc/posix-functions/vprintf.texi: Update.
57124         * doc/posix-functions/vsnprintf.texi: Update.
57125         * doc/posix-functions/vsprintf.texi: Update.
57126         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57127
57128 2008-02-06  Bruno Haible  <bruno@clisp.org>
57129
57130         Fix bug introduced on 2008-01-26.
57131         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57132
57133 2008-02-06  Bruno Haible  <bruno@clisp.org>
57134
57135         Fix bug introduced on 2007-06-10.
57136         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57137         !NEED_PRINTF_FLAG_ZERO.
57138
57139 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57140
57141         getloadavg: use libperfstat on AIX5
57142         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57143
57144 2008-02-03  Bruno Haible  <bruno@clisp.org>
57145
57146         * lib/diffseq.h: Add comments about required #includes.
57147         Reported by Michael Biggs <gnulib@doubleplum.net>.
57148
57149 2008-02-01  Bruno Haible  <bruno@clisp.org>
57150
57151         * users.txt: Add gnuit.
57152
57153 2008-01-31  Bruno Haible  <bruno@clisp.org>
57154
57155         * lib/md4.c (set_uint32): Mark as inline.
57156         * lib/md5.c (set_uint32): Likewise.
57157         * lib/sha1.c (set_uint32): Likewise.
57158         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57159         * m4/md5.m4 (gl_MD5): Likewise.
57160         * m4/sha1.m4 (gl_SHA1): Likewise.
57161
57162 2008-01-31  Jim Meyering  <meyering@redhat.com>
57163
57164         Use "sizeof VAR", rather than a literal "4".
57165         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57166         * lib/md4.c (md4_read_ctx): Likewise.
57167         * lib/sha1.c (sha1_read_ctx): Likewise.
57168
57169 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57170
57171         * tests/test-sha1.c: New file, based on test-md5.c.
57172
57173         * modules/crypto/sha1-tests: New file.
57174
57175 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57176
57177         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57178
57179 2008-01-31  Jim Meyering  <meyering@redhat.com>
57180
57181         Prefer "sizeof v" over the equivalent "4".
57182         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57183         * lib/md5.c (set_uint32): Likewise.
57184         * lib/sha1.c (set_uint32): Likewise.
57185
57186 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57187
57188         * lib/sha1.c (set_uint32): Mark function as static.
57189
57190 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57191
57192         md2: clarify comments to say that alignment is not required.
57193         * lib/md2.h: Remove warning about alignment in comment.
57194         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57195         never been required.
57196
57197 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57198
57199         md4: adapt alignment constraint fix from sha1.
57200         * lib/md4.c (set_uint32): New function, from sha1.c
57201         (md4_read_ctx): Use it.
57202         (md4_finish_ctx): Doc fix.
57203         * lib/md4.h: Doc fix.
57204
57205 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57206
57207         md5: adapt alignment constraint fix from sha1.
57208         * lib/md5.c (set_uint32): New function, from sha1.c
57209         (md5_read_ctx): Use it.
57210         (md5_finish_ctx): Doc fix.
57211         * lib/md5.h: Doc fix.
57212
57213 2008-01-30  Peter Palfrader  <weasel@debian.org>
57214
57215         sha1: remove the result buffer alignment constraint
57216         * lib/sha1.c (set_uint32): New function.
57217         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57218         constraint.
57219         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57220         * lib/sha1.h: Likewise.
57221
57222 2008-01-30  Andreas Schwab  <schwab@suse.de>
57223             Bruno Haible  <bruno@clisp.org>
57224
57225         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57226         correct definition of LDBL_MIN_EXP.
57227
57228 2008-01-30  Karl Berry  <karl@gnu.org>
57229
57230         * config/srclist-update: try to preserve x bit on updates.
57231         * config/srclistvars.sh: update for karl.
57232
57233 2008-01-29  Jim Meyering  <meyering@redhat.com>
57234
57235         vasnprintf.c: Avoid warning about unused label
57236         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57237         "overflow" label definition and associated code with the
57238         same cpp condition that guards the sole use of that label.
57239
57240 2008-01-26  Bruno Haible  <bruno@clisp.org>
57241
57242         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57243         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57244         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57245         * lib/isnanl-nolibm.h (isnanl): Likewise.
57246         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57247
57248 2008-01-26  Bruno Haible  <bruno@clisp.org>
57249
57250         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57251         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57252
57253 2008-01-26  Bruno Haible  <bruno@clisp.org>
57254
57255         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57256         GCC >= 4.0 built-in.
57257         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57258
57259 2008-01-26  Bruno Haible  <bruno@clisp.org>
57260
57261         Rename isnan, applicable to 'double' only, to isnand.
57262         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57263         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57264         (configure.ac): Update.
57265         (Include): Replace "isnan.h" with "isnand.h".
57266         * m4/isnand.m4: Renamed from m4/isnan.m4.
57267         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57268         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57269         instead of isnan.c.
57270         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57271         instead of HAVE_ISNAN_IN_LIBC.
57272         (isnand): Renamed from isnan.
57273         * lib/isnand.c: New file.
57274         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57275         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57276         (Makefile.am): Update.
57277         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57278         Include isnand.h instead of isnan.h.
57279         (main): Test isnand instead of isnan.
57280         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57281         isnan-nolibm.
57282         * modules/frexp (Depends-on): Likewise.
57283         * modules/frexp-tests (Depends-on): Likewise.
57284         * modules/frexp-nolibm (Depends-on): Likewise.
57285         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57286         * modules/isfinite (Depends-on): Likewise.
57287         * modules/round-tests (Depends-on): Likewise.
57288         * modules/signbit (Depends-on): Likewise.
57289         * modules/signbit-tests (Depends-on): Likewise.
57290         * modules/snprintf-posix (Depends-on): Likewise.
57291         * modules/sprintf-posix (Depends-on): Likewise.
57292         * modules/trunc-tests (Depends-on): Likewise.
57293         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57294         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57295         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57296         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57297         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57298         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57299         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57300         * modules/vasnprintf-posix (Depends-on): Likewise.
57301         * modules/vasprintf-posix (Depends-on): Likewise.
57302         * modules/vfprintf-posix (Depends-on): Likewise.
57303         * modules/vsnprintf-posix (Depends-on): Likewise.
57304         * modules/vsprintf-posix (Depends-on): Likewise.
57305         * lib/frexp.c: Include isnand.h instead of isnan.h.
57306         (ISNAN): Set to isnand instead of isnan.
57307         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57308         (gl_isfinited): Use isnand instead of isnan.
57309         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57310         (gl_signbitd): Use isnand instead of isnan.
57311         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57312         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57313         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57314         (main): Use isnand instead of isnan.
57315         * tests/test-round1.c: Include isnand.h.
57316         (main): Use isnand instead of isnan.
57317         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57318         (ISNAN): Set to isnand instead of isnan.
57319         * tests/test-trunc1.c: Include isnand.h.
57320         (main): Use isnand instead of isnan.
57321         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57322         (equal): Use isnand instead of isnan.
57323         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57324         isnand-nolibm.
57325         * NEWS: Mention the change.
57326
57327 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57328             Bruno Haible  <bruno@clisp.org>
57329
57330         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57331         the GCC builtins for signbits are present and set
57332         REPLACE_SIGNBIT_USING_GCC if so.
57333         * lib/math.in.h (signbit): Define using GCC builtins if
57334         REPLACE_SIGNBIT_USING_GCC is set.
57335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57336         REPLACE_SIGNBIT_USING_GCC.
57337         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57338
57339 2008-01-25  Jim Meyering  <meyering@redhat.com>
57340
57341         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57342         * lib/poll.c: Include <config.h>, not "config.h".
57343         * tests/test-getaddrinfo.c: Likewise.
57344
57345 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57346
57347         * modules/sockets-tests: New file.
57348
57349 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57350
57351         * modules/sockets: New module, can be used to call WSA_Startup and
57352         WSA_Cleanup when needed.
57353
57354         * lib/sockets.h, lib/sockets.c: New files.
57355
57356         * m4/sockets.m4: New file.
57357
57358         * tests/test-sockets.c: New file.
57359
57360 2008-01-19  Bruno Haible  <bruno@clisp.org>
57361
57362         * doc/posix-headers: Renamed from doc/headers.
57363         * doc/posix-functions: Renamed from doc/functions.
57364         * doc/gnulib.texi: Update.
57365
57366 2008-01-19  Bruno Haible  <bruno@clisp.org>
57367
57368         * doc/glibc-functions/strcasestr.texi: Include contents of
57369         doc/functions/strcasestr.texi, fixing the list of platforms.
57370         * doc/functions/strcasestr.texi: Remove file.
57371
57372 2008-01-19  Bruno Haible  <bruno@clisp.org>
57373
57374         * doc/glibc-functions/memmem.texi: Include contents of
57375         doc/functions/memmem.texi.
57376         * doc/functions/memmem.texi: Remove file.
57377
57378 2008-01-18  Bruno Haible  <bruno@clisp.org>
57379
57380         * doc/glibc-functions/*.texi: New files.
57381         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57382         to use the new files.
57383
57384 2008-01-17  Bruno Haible  <bruno@clisp.org>
57385
57386         * tests/test-gethostname.c (main): Fix printf statement.
57387
57388 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57389
57390         * modules/gethostname-tests: New file.
57391
57392         * tests/test-gethostname.c: New file.
57393
57394 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57395
57396         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57397         used by the UNAME case.  Reported by Bruno Haible
57398         <bruno@clisp.org>.
57399
57400 2008-01-17  Eric Blake  <ebb9@byu.net>
57401
57402         Convert c-strcasestr to be more efficient.
57403         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57404         (Depends-on): Add c-strcase, remove malloca, strnlen.
57405         * tests/test-c-strcasestr.c (main): Enhance test.
57406         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57407
57408 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57409
57410         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57411         Use it in creating po/Makevars.
57412
57413 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57414
57415         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57416         Applications that requires it should initialize libgcrypt
57417         manually.
57418
57419 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57420
57421         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57422
57423 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57424
57425         Fix problem with getdate on mingw32 reported by Simon Josefsson
57426         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57427         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57428         tzname", when deciding whether to declare tzname.
57429         * lib/strftime.c (tzname): Likewise.
57430
57431 2008-01-15  Bruno Haible  <bruno@clisp.org>
57432
57433         Work around a MacOS X 10.5 bug in frexpl().
57434         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57435         * doc/functions/frexpl.texi: Document the bug.
57436         Reported by Elias Pipping <pipping@gentoo.org>.
57437
57438 2008-01-14  Eric Blake  <ebb9@byu.net>
57439
57440         Touch up previous patch.
57441         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57442         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57443
57444         Convert strcasestr module to use Two-Way algorithm.
57445         * modules/strcasestr-simple: New module, based on the old
57446         strcasestr, but with Two-Way rather than KMP.
57447         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57448         * lib/string.in.h (rpl_strcasestr): Declare.
57449         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57450         performance.
57451         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57452         * modules/string (Makefile.am): Support strcasestr.
57453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57454         * modules/strcasestr-tests (Depends-on): Check for alarm.
57455         * tests/test-strcasestr.c: Augment test.
57456         * lib/str-two-way.h: Clean up stray macro.
57457         * NEWS: Document new module.
57458         * MODULES.html.sh (string handling): Likewise.
57459         * doc/functions/strcasestr.texi: New file.
57460         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57461         here, since it is not a POSIX function.
57462
57463 2008-01-14  Colin Watson  <cjwatson@debian.org>
57464             Bruno Haible  <bruno@clisp.org>
57465
57466         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57467         works fine; if not, set REPLACE_STRSIGNAL.
57468         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57469         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57470         REPLACE_STRSIGNAL.
57471         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57472         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57473         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57474
57475 2008-01-14  Bruno Haible  <bruno@clisp.org>
57476
57477         * modules/strsignal (Include): Change to <string.h>.
57478
57479 2008-01-14  Colin Watson  <cjwatson@debian.org>
57480
57481         * modules/argp (Notice): Add a notice recommending to change
57482         XGETTEXT_OPTIONS.
57483         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57484
57485 2008-01-13  Colin Watson  <cjwatson@debian.org>
57486
57487         * modules/strsignal-tests: New file.
57488         * tests/test-strsignal.c: New file.
57489
57490         * lib/strsignal.c: New file, from glibc with modifications.
57491         * lib/siglist.h: New file, from glibc with modifications.
57492         * lib/string.in.h (strsignal): New declaration.
57493         * m4/strsignal.m4: New file.
57494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57495         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57496         * modules/strsignal: New file.
57497         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57498         HAVE_DECL_STRSIGNAL.
57499
57500 2008-01-13  Bruno Haible  <bruno@clisp.org>
57501
57502         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57503         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57504         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57505         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57506
57507 2008-01-13  Bruno Haible  <bruno@clisp.org>
57508
57509         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57510         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57511         * lib/argp.h (__attribute__): Likewise.
57512         * lib/c-stack.c (__attribute__): Likewise.
57513         * lib/error.h (__attribute__): Likewise.
57514         * lib/fts.c (__attribute__): Likewise.
57515         * lib/openat.h (__attribute__): Likewise.
57516         * lib/stdio.in.h (__attribute__): Likewise.
57517         * lib/string.in.h (__attribute__): Likewise.
57518         * lib/utimens.c (__attribute__): Likewise.
57519         * lib/vasnprintf.h (__attribute__): Likewise.
57520         * lib/xalloc.h (__attribute__): Likewise.
57521         * lib/xprintf.h (__attribute__): Likewise.
57522         * lib/xstrtol.h (__attribute__): Likewise.
57523         * lib/xvasprintf.h (__attribute__): Likewise.
57524
57525 2008-01-12  Bruno Haible  <bruno@clisp.org>
57526
57527         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57528         * doc/glibc-headers/a.out.texi: New file.
57529         * doc/glibc-headers/aliases.texi: New file.
57530         * doc/glibc-headers/alloca.texi: New file.
57531         * doc/glibc-headers/ar.texi: New file.
57532         * doc/glibc-headers/argp.texi: New file.
57533         * doc/glibc-headers/argz.texi: New file.
57534         * doc/glibc-headers/byteswap.texi: New file.
57535         * doc/glibc-headers/crypt.texi: New file.
57536         * doc/glibc-headers/endian.texi: New file.
57537         * doc/glibc-headers/envz.texi: New file.
57538         * doc/glibc-headers/err.texi: New file.
57539         * doc/glibc-headers/error.texi: New file.
57540         * doc/glibc-headers/execinfo.texi: New file.
57541         * doc/glibc-headers/fpu_control.texi: New file.
57542         * doc/glibc-headers/fstab.texi: New file.
57543         * doc/glibc-headers/fts.texi: New file.
57544         * doc/glibc-headers/getopt.texi: New file.
57545         * doc/glibc-headers/ieee754.texi: New file.
57546         * doc/glibc-headers/ifaddrs.texi: New file.
57547         * doc/glibc-headers/libintl.texi: New file.
57548         * doc/glibc-headers/mcheck.texi: New file.
57549         * doc/glibc-headers/mntent.texi: New file.
57550         * doc/glibc-headers/obstack.texi: New file.
57551         * doc/glibc-headers/paths.texi: New file.
57552         * doc/glibc-headers/printf.texi: New file.
57553         * doc/glibc-headers/pty.texi: New file.
57554         * doc/glibc-headers/resolv.texi: New file.
57555         * doc/glibc-headers/shadow.texi: New file.
57556         * doc/glibc-headers/sysexits.texi: New file.
57557         * doc/glibc-headers/ttyent.texi: New file.
57558
57559 2008-01-12  Jim Meyering  <meyering@redhat.com>
57560
57561         announce-gen: emit Gnulib's git-based version string.
57562         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57563         New option --gnulib-version=V, where V is expected to be
57564         the output of running git describe in the gnulib directory.
57565         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57566         not useful, and plan to stop publishing an xdelta file with each
57567         coreutils release.
57568
57569         * build-aux/announce-gen: Also check for lzma-compressed files.
57570
57571 2008-01-11  Bruno Haible  <bruno@clisp.org>
57572
57573         * tests/test-memmem.c (main): Increase maximum allowed time.
57574         * tests/test-strstr.c (main): Likewise.
57575
57576 2008-01-11  Bruno Haible  <bruno@clisp.org>
57577
57578         * doc/functions/memmem.texi: Add more precisions about platforms.
57579         * doc/functions/strstr.texi: Likewise.
57580
57581 2008-01-10  Eric Blake  <ebb9@byu.net>
57582
57583         * m4/strstr.m4: Delete cruft from copy-n-paste.
57584         Reported by Bruno Haible.
57585
57586 2008-01-10  Bruno Haible  <bruno@clisp.org>
57587
57588         Make c-strstr rely on strstr.
57589         * lib/c-strstr.c: Don't include str-kmp.h.
57590         (c_strstr): Define in terms of strstr.
57591         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57592         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57593
57594 2008-01-10  Bruno Haible  <bruno@clisp.org>
57595
57596         * doc/gnulib.texi (String Functions in C Locale): New section.
57597         * doc/c-ctype.texi: New file.
57598         * doc/c-strcase.texi: New file.
57599         * doc/c-strcaseeq.texi: New file.
57600         * doc/c-strcasestr.texi: New file.
57601         * doc/c-strstr.texi: New file.
57602         * doc/c-strtod.texi: New file.
57603         * doc/c-strtold.texi: New file.
57604
57605 2008-01-10  Eric Blake  <ebb9@byu.net>
57606
57607         * lib/relocatable.h: Fix a comment.
57608
57609 2008-01-10  Eric Blake  <ebb9@byu.net>
57610
57611         Share two-way algorithm.
57612         * lib/str-two-way.h: New file, merged from...
57613         * lib/memmem.c: ...here...
57614         * lib/strstr.c: ...and here.
57615         * modules/memmem (Files): Use it.
57616         * modules/strstr (Files): Likewise.
57617
57618         Avoid quadratic strstr implementations.
57619         * lib/strstr.c: New file.
57620         * m4/strstr.m4: Likewise.
57621         * modules/strstr: Likewise.
57622         * modules/strstr-tests: Likewise.
57623         * tests/test-strstr.c: Likewise.
57624         * lib/string.in.h (rpl_strstr): Declare.
57625         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57626         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57627         * modules/string (Makefile.am): Likewise.
57628         * MODULES.html.sh (string handling): Mention new module.
57629         * doc/functions/strstr.texi (strstr): Document the bug.
57630
57631 2008-01-10  Bruno Haible  <bruno@clisp.org>
57632
57633         * lib/relocatable.h (relocate): State whether result is freshly
57634         allocated or not.
57635         * lib/relocatable.c (relocate): Return a freshly allocated string
57636         instead of a pointer to a privately held string.
57637         Reported by Sylvain Beucler <beuc@gnu.org>.
57638
57639 2008-01-10  Colin Watson  <cjwatson@debian.org>
57640
57641         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57642         s/S_ISNLK/S_ISLNK/.
57643
57644 2008-01-09  Bruno Haible  <bruno@clisp.org>
57645
57646         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57647         and other files.
57648         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57649         if it's only a guess.
57650         * modules/memmem: Simplify by depending on memmem-simple.
57651
57652 2008-01-09  Bruno Haible  <bruno@clisp.org>
57653
57654         Work around OpenBSD 4.0 tdelete() bug.
57655         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57656         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57657         macros and don't redefine the enum values.
57658         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57659         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57660         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57661
57662 2008-01-09  Bruno Haible  <bruno@clisp.org>
57663
57664         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57665         (main): Don't perform the tests if setlocale did not install a UTF-8
57666         locale. Needed on OpenBSD 4.0.
57667         * modules/wcwidth-tests (Depends-on): Add localcharset.
57668
57669 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57670
57671         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57672         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57673         * NEWS: announce this.
57674         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57675
57676 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57677         and Eric Blake  <ebb9@byu.net>
57678
57679         Add memmem-simple module.
57680         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57681         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57682         * modules/memmem-simple: New file.
57683         * modules/memmem (Description): Tweak.
57684         * MODULES.html.sh (string handling): Mention new module.
57685         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57686         addressed by memmem-simple.
57687         * NEWS: Document the difference.
57688
57689 2008-01-09  Eric Blake  <ebb9@byu.net>
57690
57691         Give gcc some memmem optimization hints.
57692         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57693         (strcasestr): Declare as pure.
57694         * modules/memmem (Maintainer): Claim my implementation.
57695
57696 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57697
57698         Support AIX 6.1 and higher.
57699         * build-aux/config.libpath: Likewise.
57700         * build-aux/config.rpath: Likewise.
57701
57702 2008-01-08  Jim Meyering  <meyering@redhat.com>
57703             Bruno Haible  <bruno@clisp.org>
57704
57705         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57706         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57707         Reported by Peter Fales in
57708         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57709
57710 2008-01-08  Bruno Haible  <bruno@clisp.org>
57711
57712         * modules/unictype/category-of (Depends-on): Add
57713         unictype/category-none.
57714         * modules/unictype/category-and-tests (Depends-on): Add
57715         unictype/category-{L,N,Lu,Nd}.
57716         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57717         * modules/unictype/category-or-tests (Depends-on): Add
57718         unictype/category-{L,N}.
57719         * modules/unictype/category-name-tests (Depends-on): Add
57720         unictype/category-{Z,Nl}.
57721         Reported by Simon Josefsson.
57722
57723 2008-01-08  Bruno Haible  <bruno@clisp.org>
57724
57725         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57726         convention better.
57727         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57728         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57729         Reported by Peter Miller <millerp@canb.auug.org.au>.
57730
57731 2008-01-08  Eric Blake  <ebb9@byu.net>
57732
57733         Rewrite memmem to guarantee linear complexity without malloc.
57734         * lib/memmem.c (memmem): Use Two-Way rather than
57735         Knuth-Morris-Pratt, to allow O(1) space usage.
57736         (critical_factorization, two_way_short_needle)
57737         (two_way_long_needle): New functions.
57738         (knuth_morris_pratt): Delete.
57739         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57740         Add stdint.
57741         * tests/test-memmem.c (main): Add tests for periodic needle and
57742         sublinear performance.
57743         * doc/functions/memmem.texi (memmem): Document other deficiencies
57744         in cygwin and older glibc.
57745
57746 2008-01-08  Bruno Haible  <bruno@clisp.org>
57747
57748         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57749         augmentation.
57750
57751 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57752
57753         Add a configure time option: --disable-acl.
57754         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57755         AC_ARG_ENABLE(acl).
57756
57757 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57758
57759         * tests/test-localename.c: Don't include obsolete "setenv.h".
57760
57761         * modules/localename-tests (Depends-on): Need unsetenv.
57762
57763 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57764
57765         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57766
57767 2008-01-06  Colin Watson  <cjwatson@debian.org>
57768
57769         * users.txt: Add man-db.
57770
57771 2008-01-07  Bruno Haible  <bruno@clisp.org>
57772
57773         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57774         previous section name.
57775
57776 2008-01-07  Bruno Haible  <bruno@clisp.org>
57777
57778         * lib/progname.c (set_program_name): Don't strip off a leading
57779         "lt-" prefix outside a .libs directory.
57780         Suggested by Paul Eggert.
57781
57782 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57783             Bruno Haible  <bruno@clisp.org>
57784
57785         Improve memory cleanup in 'relocatable' module.
57786         * lib/relocatable.h (compute_curr_prefix): Change return type to
57787         'char *'.
57788         * lib/relocatable.c (compute_curr_prefix): Change return type to
57789         'char *'. Free curr_installdir after use.
57790         (relocate): Free curr_prefix_better after use.
57791         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57792
57793 2008-01-01  Bruno Haible  <bruno@clisp.org>
57794
57795         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57796         failure on older glibc systems.
57797         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57798
57799 2008-01-05  Eric Blake  <ebb9@byu.net>
57800
57801         Avoid quadratic system memmem.
57802         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57803         Reported by Ralf Wildenhues.
57804
57805         Fix memmem test for mingw.
57806         * modules/memmem-tests (configure.ac): Check for alarm.
57807         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57808         it.
57809         * doc/functions/memmem.texi: New file.
57810         * doc/gnulib.texi (Function Substitutes): Add memmem.
57811         Reported by Bruno Haible.
57812
57813 2008-01-04  Bruno Haible  <bruno@clisp.org>
57814
57815         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57816         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57817         gl_HEADER_STRING_H_DEFAULTS.
57818
57819 2008-01-04  Eric Blake  <ebb9@byu.net>
57820
57821         Shorten duration of memmem test.
57822         * tests/test-memmem.c (main): Use alarm to declare failure if test
57823         is taking too long.
57824         Reported by Ralf Wildenhues.
57825
57826 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57827
57828         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57829         string, needed by strerror.
57830
57831 2008-01-03  Colin Watson  <cjwatson@debian.org>
57832             Bruno Haible  <bruno@clisp.org>
57833
57834         * doc/gnulib-tool.texi (Localization): New section.
57835
57836 2008-01-02  Bruno Haible  <bruno@clisp.org>
57837
57838         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57839         variables to 'unsigned char *' type.
57840         Reported by Paul Eggert.
57841
57842 2008-01-02  Jim Meyering  <jim@meyering.net>
57843
57844         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57845
57846 2007-12-31  Jim Meyering  <jim@meyering.net>
57847
57848         Avoid use of private FTS type name.
57849         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57850
57851 2007-12-30  Karl Berry  <karl@gnu.org>
57852
57853         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57854         work around defect in Texinfo and/or the standalone Info browser.
57855
57856 2007-12-30  Bruno Haible  <bruno@clisp.org>
57857
57858         Unify 5 copies of the KMP code.
57859         * lib/str-kmp.h: New file.
57860         * lib/c-strcasestr.c: Include str-kmp.h.
57861         (knuth_morris_pratt): Remove function.
57862         (c_strcasestr): Update.
57863         * lib/c-strstr.c: Include str-kmp.h.
57864         (knuth_morris_pratt): Remove function.
57865         (c_strcasestr): Update.
57866         * lib/mbscasestr.c: Include str-kmp.h.
57867         (knuth_morris_pratt_unibyte): Remove function.
57868         * lib/mbsstr.c: Include str-kmp.h.
57869         (knuth_morris_pratt_unibyte): Remove function.
57870         * lib/strcasestr.c: Include str-kmp.h.
57871         (knuth_morris_pratt): Remove function.
57872         (strcasestr): Update.
57873         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57874         * modules/c-strstr (Files): Likewise.
57875         * modules/mbscasestr (Files): Likewise.
57876         * modules/mbsstr (Files): Likewise.
57877         * modules/strcasestr (Files): Likewise.
57878         Suggested by Paul Eggert.
57879
57880 2007-12-30  Bruno Haible  <bruno@clisp.org>
57881
57882         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57883         defined.
57884
57885 2007-12-30  Bruno Haible  <bruno@clisp.org>
57886
57887         * lib/xmalloca.h: Include xalloc.h.
57888         (xnmalloca): New macro.
57889
57890 2007-12-30  Bruno Haible  <bruno@clisp.org>
57891
57892         * lib/malloca.h (nmalloca): New macro.
57893         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57894         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57895         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57896         knuth_morris_pratt_multibyte): Likewise.
57897         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57898         knuth_morris_pratt_multibyte): Likewise.
57899         * lib/memmem.c (knuth_morris_pratt): Likewise.
57900         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57901
57902 2007-12-25  Bruno Haible  <bruno@clisp.org>
57903
57904         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57905         * lib/glob.c: Don't include openat.h.
57906         (link_exists2_p): Add back the code that deals with the
57907         !GLOB_ALTDIRFUNC case.
57908         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57909         let it do the filename concatenation.
57910         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57911         * modules/glob (Depends-on): Remove openat.
57912
57913 2007-12-31  Bruno Haible  <bruno@clisp.org>
57914
57915         * modules/dirfd (License): Change to LGPLv2+.
57916         Approved by Jim Meyering.
57917
57918 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57919
57920         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57921         when multiplying M by sizeof (size_t).
57922
57923 2007-12-10  Martin Lambers  <marlam@marlam.de>
57924
57925         Override getpagesize on mingw.
57926         * lib/getpagesize.c: New file.
57927         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
57928         * modules/getpagesize (Files): Add lib/getpagesize.c.
57929         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
57930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57931         REPLACE_GETPAGESIZE.
57932         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
57933
57934 2007-12-25  Bruno Haible  <bruno@clisp.org>
57935
57936         * modules/localcharset (Notice): New field.
57937         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
57938         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57939
57940 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57941             Bruno Haible  <bruno@clisp.org>
57942
57943         Avoid using the syntax symbol() in formatted documentation.
57944         * MODULES.html.sh (func_module): When replacing symbol() with a
57945         hyperlink, remove the parentheses. Show an error if some remain.
57946         Recognize and render the '...' syntax.
57947         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
57948         Rework. Add paragraph about GCC's inlining.
57949         * doc/alloca.texi: Likewise.
57950         * doc/error.texi: Remove parentheses from symbol reference.
57951         * doc/gnulib-intro.texi: Likewise.
57952         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
57953         * modules/fnmatch (Description): Reword to say "the ... function".
57954         * modules/full-read (Description): Likewise.
57955         * modules/full-write (Description): Likewise.
57956         * modules/safe-read (Description): Likewise.
57957         * modules/safe-write (Description): Likewise.
57958         * modules/strchrnul (Description): Likewise.
57959         * modules/trim (Description): Likewise.
57960         * modules/error (Description): Remove parentheses from symbol
57961         references.
57962         * modules/verror (Description): Likewise.
57963         Reported by Karl Berry.
57964
57965 2007-12-25  Bruno Haible  <bruno@clisp.org>
57966
57967         Fixup after 2007-10-16 commit.
57968         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
57969
57970 2007-12-24  Bruno Haible  <bruno@clisp.org>
57971
57972         Make --enable-relocatable work with DESTDIR.
57973         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
57974         to compute installdir from destprog.
57975         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
57976         also set the RELOC_DESTDIR variable.
57977         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57978
57979 2007-12-24  Bruno Haible  <bruno@clisp.org>
57980
57981         Fix link error due to xalloc_die().
57982         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
57983         of xreadlink.
57984         * lib/relocwrapper.c: Update comments.
57985         * build-aux/install-reloc: Remove xreadlink.c from file list.
57986         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
57987         xreadlink.c.
57988         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57989
57990 2007-12-24  Bruno Haible  <bruno@clisp.org>
57991
57992         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
57993         * lib/setenv.h: Remove file.
57994         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
57995         lib/setenv.h.
57996         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
57997         (Depends-on): Add stdlib.
57998         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
57999         gl_FUNC_UNSETENV.
58000         (Include): Replace setenv.h with <stdlib.h>.
58001         * modules/unsetenv: New file.
58002         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58003         * lib/unsetenv.c: Include <stdlib.h> first.
58004         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58005         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58006         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58007         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58008         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58009         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58011         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58012         * doc/functions/unsetenv.texi: Update.
58013         * modules/xsetenv (Depends-on): Add unsetenv.
58014         * modules/getdate (Depends-on): Likewise.
58015         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58016         * lib/xsetenv.c: Don't include setenv.h.
58017         * lib/getdate.y: Likewise.
58018         * lib/relocwrapper.c: Likewise.
58019         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58020         (Depends-on): Add stdlib.
58021         * NEWS: Mention the changes.
58022         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58023
58024 2007-12-23  Bruno Haible  <bruno@clisp.org>
58025
58026         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58027         indentation.
58028
58029 2007-12-23  Bruno Haible  <bruno@clisp.org>
58030
58031         * lib/c-strcasestr.c: Add more comments.
58032         * lib/c-strstr.c: Likewise.
58033         * lib/mbscasestr.c: Likewise.
58034         * lib/mbsstr.c: Likewise.
58035         * lib/strcasestr.c: Likewise.
58036         * lib/memmem.c: Likewise.
58037
58038 2007-12-23  Bruno Haible  <bruno@clisp.org>
58039
58040         * tests/test-memmem.c: Include <string.h> first.
58041
58042 2007-12-22  Bruno Haible  <bruno@clisp.org>
58043
58044         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58045         the contents of $testsbase.
58046         Reported by Ralf Wildenhues.
58047
58048 2007-12-22  Bruno Haible  <bruno@clisp.org>
58049
58050         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58051         two variables local_ldadd_before, local_ldadd_last.
58052
58053 2007-12-20  Eric Blake  <ebb9@byu.net>
58054
58055         Work around circular library issue when cross-compiling.
58056         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58057         that progname.o does not need to pull in rpl_memcmp.
58058
58059 2007-12-19  Eric Blake  <ebb9@byu.net>
58060
58061         Fix memmem to avoid O(n^2) worst-case complexity.
58062         * lib/memmem.c (knuth_morris_pratt): New function.
58063         (memmem): Use it if first few naive iterations fail.
58064         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58065         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58066         * modules/memchr (License): Likewise.
58067         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58068         malloca.
58069         * tests/test-memmem.c: Rewrite, borrowing ideas from
58070         test-mbsstr1.c; the old version wouldn't even compile!
58071         * modules/memmem-tests: New file.
58072         * lib/string.in.h (rpl_memmem): Add declaration.
58073         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58074         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58075         REPLACE_MEMMEM.
58076
58077 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58078
58079         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58080         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58081         before any system include files, and undef after them all.  This
58082         should fix a problem on VMS reported by John E. Malmberg in
58083         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58084
58085 2007-12-17  Eric Blake  <ebb9@byu.net>
58086
58087         Revert addition of verify, for BSD/OS.
58088         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58089         can't handle large files, for the sake of obsolete platforms.
58090         * modules/fseeko (Depends-on): Remove verify.
58091         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58092         * doc/functions/ftello.texi (ftello): Likewise.
58093         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58094         Reported by Larry Jones.
58095
58096 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58097
58098         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58099         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58100
58101 2007-12-17  Jim Meyering  <meyering@redhat.com>
58102
58103         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58104         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58105         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58106         * modules/getcwd (Depends-on): Add openat.
58107         Reported by Petr Salinger.
58108
58109 2007-12-17  Bruno Haible  <bruno@clisp.org>
58110
58111         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58112         avoid a segmentation fault of the configure test on x86_64 systems.
58113
58114 2007-12-15  Jim Meyering  <meyering@redhat.com>
58115
58116         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58117
58118 2007-12-13  Eric Blake  <ebb9@byu.net>
58119
58120         Another fseek test.
58121         * tests/test-fseek.c (main): Also test ungetc handling.
58122         * tests/test-fseeko.c (main): Likewise.
58123         * modules/fseeko (Depends-on): Add verify.
58124         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58125         large.
58126         Reported by Larry Jones.
58127
58128         Fix fseeko on mingw.
58129         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58130         seek.
58131
58132         Beef up fseek tests.
58133         * tests/test-fseek.c (main): Also test eof handling.
58134         * tests/test-fseeko.c (main): Likewise.
58135         Reported by Larry Jones.
58136
58137 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58138
58139         Fix fseeko on BSD-based platforms.
58140         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58141         successful seek.
58142
58143 2007-12-12  Eric Blake  <ebb9@byu.net>
58144
58145         Allow circular dependency of separate libtests.a
58146         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58147         when use_libtests.
58148
58149 2007-12-11  Eric Blake  <ebb9@byu.net>
58150
58151         Fix bug with -0.0L in previous patch.
58152         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58153         * tests/test-isnan.c (main): Also test on zeroes.
58154         * tests/test-isnanf.c (main): Likewise.
58155         * tests/test-isnanl.h (main): Likewise.
58156
58157         Detect pseudo-denormals on x86 even when cross-compiling.
58158         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58159         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58160         invalid bit patterns that happen to satisfy ==.
58161
58162         Avoid link failures with separate libtests.a.
58163         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58164         last, to satisfy circular dependencies.
58165
58166 2007-12-11  Eric Blake  <ebb9@byu.net>
58167         and Bruno Haible  <bruno@clisp.org>
58168
58169         Fix OpenBSD 4.0 <float.h> handling of long double.
58170         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58171         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58172         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58173
58174 2007-12-11  Jim Meyering  <meyering@redhat.com>
58175
58176         * users.txt: Add libvirt.
58177
58178         Support versions of autoconf prior to 2.59c.
58179         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58180         if it is not already defined.
58181
58182 2007-12-09  Bruno Haible  <bruno@clisp.org>
58183
58184         Let 'gnulib-tool --import' collect sources needed for the tests in
58185         tests/ rather than in lib/.
58186         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58187         argument. If true, add rules to generate libtests.a, and put libtests.a
58188         into $(LDADD). Consider source files in subdirectories and set
58189         uses_subdirs.
58190         (func_emit_initmacro_start, func_emit_initmacro_end,
58191         func_emit_initmacro_done): Pass all arguments explicitly.
58192         (func_import): Determine two module lists main_modules,
58193         testsrelated_modules. Determine use_libtests. Determine two variables
58194         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58195         instead of just sed_transform_lib_file. Determine two variables
58196         main_files and testsrelated_files. Compute 'files' as the union of
58197         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58198         func_add_or_update. In the generated gnulib-comp.m4, collect the
58199         object files for tests/ in different variables than those for lib/.
58200         Substitute LIBTESTS_LIBDEPS.
58201         (func_create_testdir): Combine the uses_subdirs results from
58202         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58203
58204 2007-12-09  Bruno Haible  <bruno@clisp.org>
58205
58206         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58207         the build-aux directory.
58208
58209 2007-12-09  Bruno Haible  <bruno@clisp.org>
58210
58211         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58212         introduced on 2006-09-09.
58213
58214 2007-12-07  Jim Meyering  <meyering@redhat.com>
58215
58216         Let these macros work also with autoconf-2.59.
58217         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58218         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58219         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58220
58221 2007-12-06  Jim Meyering  <meyering@redhat.com>
58222
58223         Avoid a configure-time syntax error in gl_FUNC_ACL.
58224         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58225         function in each branch, before testing the cache variable.
58226
58227 2007-12-04  Eric Blake  <ebb9@byu.net>
58228
58229         Make scripts executable.
58230         * build-aux/config.guess: Add execute permissions.
58231         * build-aux/config.sub: Likewise.
58232         * build-aux/gendocs.sh: Likewise.
58233
58234         Fix frexp on mingw.
58235         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58236         cross-compiling.
58237         * doc/functions/frexp.texi (frexp): Document the bug.
58238
58239         Make cygwin fseeko check more reliable.
58240         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58241         version numbers, rather than unrelated feature check.
58242         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58243         * doc/functions/ftello.texi (ftello): Likewise.
58244         Reported by Bruno Haible.
58245
58246         * m4/strerror.m4: Bump version number.
58247
58248 2007-12-03  Bruno Haible  <bruno@clisp.org>
58249
58250         * doc/functions/mprotect.texi: Mention the mingw problem.
58251
58252 2007-12-03  Eric Blake  <ebb9@byu.net>
58253
58254         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58255         REPLACE_STRERROR is initialized before this macro.
58256
58257 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58258
58259         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58260         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58261         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58262         put -lsec in even for programs other than 'ls'.  This fixes a problem
58263         for gettext reported by Bruno Haible in
58264         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58265         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58266         Add support for Solaris 10.  This isn't efficient, but should get the
58267         job done for now.
58268
58269 2007-12-03  James Youngman  <jay@gnu.org>
58270
58271         * doc/regexprops-generic.texi: change "an close-group" to "a
58272         close-group" and "illegal" to "not allowed".
58273
58274 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58275
58276         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58277         pr_byname.h. Needed for the rare case when the maintainer has done
58278         "make maintainer-clean" in the source directory and then attempts a
58279         build outside the source directory.
58280         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58281         scripts_byname.h.
58282
58283 2007-12-02  Martin Lambers <marlam@marlam.de>
58284             Bruno Haible  <bruno@clisp.org>
58285
58286         * lib/getpagesize.h: Remove file.
58287         * lib/unistd.in.h: Include declaration of getpagesize here.
58288         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58289         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58290         HAVE_SYS_PARAM_H.
58291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58292         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58293         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58294         (Depends-on): Add unistd.
58295         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58296         (Include): Use <unistd.h> instead of getpagesize.h.
58297         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58298         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58299         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58300         gl_GETPAGESIZE invocation, already handled by module dependency.
58301         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58302
58303 2007-12-02  Bruno Haible  <bruno@clisp.org>
58304
58305         * modules/strings-tests: New file.
58306         * tests/test-strings.c: New file.
58307
58308         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58309         * lib/strings.in.h: New file.
58310         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58311         * m4/strings_h.m4: New file.
58312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58313         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58314         * modules/strings: New file.
58315         * modules/string (Makefile.am): Update.
58316         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58317         Reported by Karl Berry.
58318
58319 2007-12-01  Eric Blake  <ebb9@byu.net>
58320
58321         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58322         accomodate fix in cygwin 1.5.25.
58323
58324 2007-12-01  Jim Meyering  <meyering@redhat.com>
58325
58326         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58327         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58328         that would inhibit utf8-optimization of a regexp containing line-
58329         or buffer-anchors, e.g., `^', `$'.
58330
58331 2007-11-30  Bruno Haible  <bruno@clisp.org>
58332
58333         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58334         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58335         glthread_recursive_lock_init.
58336         * lib/lock.c (glthread_recursive_lock_init)
58337         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58338         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58339
58340 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58341
58342         New function qset_acl, like set_acl but with syscall semantics.
58343         * lib/acl.h (qset_acl): New decl.
58344         * lib/acl.c (qset_acl): New function.
58345         (set_acl): Use new function.  Use more-consistent diagnostics.
58346
58347 2007-11-28  Jim Meyering  <meyering@redhat.com>
58348
58349         * modules/physmem (License): Change from GPL to LGPLv2+.
58350
58351 2007-11-26  Bruno Haible  <bruno@clisp.org>
58352
58353         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58354         'long double' type has excess precision.
58355         Reported by Jim Meyering in
58356         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58357
58358 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58359
58360         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58361         Sync from <http://gnu.org/licenses>.
58362         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58363         with license text from same location.
58364         * doc/maintain.texi, doc/standards.texi:  Sync from
58365         <http://savannah.gnu.org/projects/gnustandards>.
58366
58367 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58368         and Jim Meyering  <meyering@redhat.com>
58369
58370         Adjust getdate' grammar to accept a slightly more regular language.
58371         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58372         Before, the former was rejected.
58373         * lib/getdate.y (digits_to_date_time): New function, factored
58374         out of ...
58375         (number): ...here.  Just call digits_to_date_time.
58376         (hybrid): New non-terminal to handle an <unsigned number,
58377         signed relative offset> sequence consistently.
58378
58379 2007-11-18  Jim Meyering  <meyering@redhat.com>
58380
58381         Pull my changes from coreutils:
58382         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58383         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58384         use of $gnulib_tool_option_extras, so that it's separated from the
58385         preceding argument.
58386
58387         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58388         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58389         parent destination directories before copying a file into place.
58390
58391 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58392
58393         bootstrap: work also with 4-argument variant of AC_INIT
58394         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58395
58396 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58397
58398         Port test-getaddrinfo to Solaris.
58399         Problem reported by Bruno Haible in
58400         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58401         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58402         explanation of setting 'hints'.
58403         Don't reject an implementation merely because it returns EAI_SERVICE.
58404         (EAI_SERVICE): Define to 0 if not defined.
58405
58406 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58407
58408         The license of gnu-make and posix-shell is now "GPLed build tool".
58409         * modules/gnu-make (License): Likewise.
58410         * modules/posix-shell (License): Likewise.
58411
58412         New module posix-shell, for determining a POSIX shell
58413         or perhaps something that is close enough to a POSIX shell.
58414         * m4/posix-shell.m4: New file.
58415         * modules/posix-shell: New file.
58416
58417         * MODULES.html.sh: Mention new module.
58418
58419         New module gnu-make, for determining whether we're using GNU Make.
58420         * m4/gnu-make.m4: New file.
58421         * modules/gnu-make: New file.
58422         * MODULES.html.sh: Mention new module.
58423
58424 2007-11-14  Jim Meyering  <meyering@redhat.com>
58425
58426         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58427         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58428         use this macro to create a function _definition_.
58429         Remove useless "#undef ARGMATCH_DIE".
58430
58431 2007-11-14  Bruno Haible  <bruno@clisp.org>
58432
58433         * lib/config.charset: Update for OpenBSD 4.1.
58434         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58435
58436 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58437
58438         Document 64-bit #if problems in stdint.texi.
58439         * doc/headers/stdint.texi (stdint.h): Mention problems with
58440         64-bit-#if, and how to work around them.
58441
58442         Don't insist on 'long long int' support in the preprocessor.  It
58443         breaks too many things.  For example, PRIdMAX still uses a 'long
58444         long int' format with the latest Sun compiler, even though
58445         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58446         preprocessor problem.  This causes the latest coreutils to dump
58447         core on Solaris 10 sparc with the Sun C compiler.
58448         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58449         the troublesome expressions at configure-time, not at #if-time.
58450         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58451         preprocessor.
58452         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58453         compile-time C checks, done at 'configure'-time.
58454         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58455         * modules/inttypes (Makefile): Substitute the new symbols that
58456         gl_INTTYPES_H now generates.
58457         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58458
58459 2007-11-12  Bruno Haible  <bruno@clisp.org>
58460
58461         Tests for Unicode character classification functions.
58462
58463         * modules/unictype/bidicategory-byname-tests: New file.
58464         * modules/unictype/bidicategory-name-tests: New file.
58465         * modules/unictype/bidicategory-of-tests: New file.
58466         * modules/unictype/bidicategory-test-tests: New file.
58467         * modules/unictype/block-list-tests: New file.
58468         * modules/unictype/block-of-tests: New file.
58469         * modules/unictype/block-test-tests: New file.
58470         * modules/unictype/category-C-tests: New file.
58471         * modules/unictype/category-Cc-tests: New file.
58472         * modules/unictype/category-Cf-tests: New file.
58473         * modules/unictype/category-Cn-tests: New file.
58474         * modules/unictype/category-Co-tests: New file.
58475         * modules/unictype/category-Cs-tests: New file.
58476         * modules/unictype/category-L-tests: New file.
58477         * modules/unictype/category-Ll-tests: New file.
58478         * modules/unictype/category-Lm-tests: New file.
58479         * modules/unictype/category-Lo-tests: New file.
58480         * modules/unictype/category-Lt-tests: New file.
58481         * modules/unictype/category-Lu-tests: New file.
58482         * modules/unictype/category-M-tests: New file.
58483         * modules/unictype/category-Mc-tests: New file.
58484         * modules/unictype/category-Me-tests: New file.
58485         * modules/unictype/category-Mn-tests: New file.
58486         * modules/unictype/category-N-tests: New file.
58487         * modules/unictype/category-Nd-tests: New file.
58488         * modules/unictype/category-Nl-tests: New file.
58489         * modules/unictype/category-No-tests: New file.
58490         * modules/unictype/category-P-tests: New file.
58491         * modules/unictype/category-Pc-tests: New file.
58492         * modules/unictype/category-Pd-tests: New file.
58493         * modules/unictype/category-Pe-tests: New file.
58494         * modules/unictype/category-Pf-tests: New file.
58495         * modules/unictype/category-Pi-tests: New file.
58496         * modules/unictype/category-Po-tests: New file.
58497         * modules/unictype/category-Ps-tests: New file.
58498         * modules/unictype/category-S-tests: New file.
58499         * modules/unictype/category-Sc-tests: New file.
58500         * modules/unictype/category-Sk-tests: New file.
58501         * modules/unictype/category-Sm-tests: New file.
58502         * modules/unictype/category-So-tests: New file.
58503         * modules/unictype/category-Z-tests: New file.
58504         * modules/unictype/category-Zl-tests: New file.
58505         * modules/unictype/category-Zp-tests: New file.
58506         * modules/unictype/category-Zs-tests: New file.
58507         * modules/unictype/category-and-not-tests: New file.
58508         * modules/unictype/category-and-tests: New file.
58509         * modules/unictype/category-byname-tests: New file.
58510         * modules/unictype/category-name-tests: New file.
58511         * modules/unictype/category-none-tests: New file.
58512         * modules/unictype/category-of-tests: New file.
58513         * modules/unictype/category-or-tests: New file.
58514         * modules/unictype/category-test-withtable-tests: New file.
58515         * modules/unictype/combining-class-tests: New file.
58516         * modules/unictype/ctype-alnum-tests: New file.
58517         * modules/unictype/ctype-alpha-tests: New file.
58518         * modules/unictype/ctype-blank-tests: New file.
58519         * modules/unictype/ctype-cntrl-tests: New file.
58520         * modules/unictype/ctype-digit-tests: New file.
58521         * modules/unictype/ctype-graph-tests: New file.
58522         * modules/unictype/ctype-lower-tests: New file.
58523         * modules/unictype/ctype-print-tests: New file.
58524         * modules/unictype/ctype-punct-tests: New file.
58525         * modules/unictype/ctype-space-tests: New file.
58526         * modules/unictype/ctype-upper-tests: New file.
58527         * modules/unictype/ctype-xdigit-tests: New file.
58528         * modules/unictype/decimal-digit-tests: New file.
58529         * modules/unictype/digit-tests: New file.
58530         * modules/unictype/mirror-tests: New file.
58531         * modules/unictype/numeric-tests: New file.
58532         * modules/unictype/property-alphabetic-tests: New file.
58533         * modules/unictype/property-ascii-hex-digit-tests: New file.
58534         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58535         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58536         * modules/unictype/property-bidi-block-separator-tests: New file.
58537         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58538         * modules/unictype/property-bidi-common-separator-tests: New file.
58539         * modules/unictype/property-bidi-control-tests: New file.
58540         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58541         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58542         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58543         * modules/unictype/property-bidi-european-digit-tests: New file.
58544         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58545         * modules/unictype/property-bidi-left-to-right-tests: New file.
58546         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58547         * modules/unictype/property-bidi-other-neutral-tests: New file.
58548         * modules/unictype/property-bidi-pdf-tests: New file.
58549         * modules/unictype/property-bidi-segment-separator-tests: New file.
58550         * modules/unictype/property-bidi-whitespace-tests: New file.
58551         * modules/unictype/property-byname-tests: New file.
58552         * modules/unictype/property-combining-tests: New file.
58553         * modules/unictype/property-composite-tests: New file.
58554         * modules/unictype/property-currency-symbol-tests: New file.
58555         * modules/unictype/property-dash-tests: New file.
58556         * modules/unictype/property-decimal-digit-tests: New file.
58557         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58558         * modules/unictype/property-deprecated-tests: New file.
58559         * modules/unictype/property-diacritic-tests: New file.
58560         * modules/unictype/property-extender-tests: New file.
58561         * modules/unictype/property-format-control-tests: New file.
58562         * modules/unictype/property-grapheme-base-tests: New file.
58563         * modules/unictype/property-grapheme-extend-tests: New file.
58564         * modules/unictype/property-grapheme-link-tests: New file.
58565         * modules/unictype/property-hex-digit-tests: New file.
58566         * modules/unictype/property-hyphen-tests: New file.
58567         * modules/unictype/property-id-continue-tests: New file.
58568         * modules/unictype/property-id-start-tests: New file.
58569         * modules/unictype/property-ideographic-tests: New file.
58570         * modules/unictype/property-ids-binary-operator-tests: New file.
58571         * modules/unictype/property-ids-trinary-operator-tests: New file.
58572         * modules/unictype/property-ignorable-control-tests: New file.
58573         * modules/unictype/property-iso-control-tests: New file.
58574         * modules/unictype/property-join-control-tests: New file.
58575         * modules/unictype/property-left-of-pair-tests: New file.
58576         * modules/unictype/property-line-separator-tests: New file.
58577         * modules/unictype/property-logical-order-exception-tests: New file.
58578         * modules/unictype/property-lowercase-tests: New file.
58579         * modules/unictype/property-math-tests: New file.
58580         * modules/unictype/property-non-break-tests: New file.
58581         * modules/unictype/property-not-a-character-tests: New file.
58582         * modules/unictype/property-numeric-tests: New file.
58583         * modules/unictype/property-other-alphabetic-tests: New file.
58584         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58585         * modules/unictype/property-other-grapheme-extend-tests: New file.
58586         * modules/unictype/property-other-id-continue-tests: New file.
58587         * modules/unictype/property-other-id-start-tests: New file.
58588         * modules/unictype/property-other-lowercase-tests: New file.
58589         * modules/unictype/property-other-math-tests: New file.
58590         * modules/unictype/property-other-uppercase-tests: New file.
58591         * modules/unictype/property-paired-punctuation-tests: New file.
58592         * modules/unictype/property-paragraph-separator-tests: New file.
58593         * modules/unictype/property-pattern-syntax-tests: New file.
58594         * modules/unictype/property-pattern-white-space-tests: New file.
58595         * modules/unictype/property-private-use-tests: New file.
58596         * modules/unictype/property-punctuation-tests: New file.
58597         * modules/unictype/property-quotation-mark-tests: New file.
58598         * modules/unictype/property-radical-tests: New file.
58599         * modules/unictype/property-sentence-terminal-tests: New file.
58600         * modules/unictype/property-soft-dotted-tests: New file.
58601         * modules/unictype/property-space-tests: New file.
58602         * modules/unictype/property-terminal-punctuation-tests: New file.
58603         * modules/unictype/property-test-tests: New file.
58604         * modules/unictype/property-titlecase-tests: New file.
58605         * modules/unictype/property-unassigned-code-value-tests: New file.
58606         * modules/unictype/property-unified-ideograph-tests: New file.
58607         * modules/unictype/property-uppercase-tests: New file.
58608         * modules/unictype/property-variation-selector-tests: New file.
58609         * modules/unictype/property-white-space-tests: New file.
58610         * modules/unictype/property-xid-continue-tests: New file.
58611         * modules/unictype/property-xid-start-tests: New file.
58612         * modules/unictype/property-zero-width-tests: New file.
58613         * modules/unictype/scripts-tests: New file.
58614         * modules/unictype/syntax-c-ident-tests: New file.
58615         * modules/unictype/syntax-c-whitespace-tests: New file.
58616         * modules/unictype/syntax-java-ident-tests: New file.
58617         * modules/unictype/syntax-java-whitespace-tests: New file.
58618         * tests/unictype/test-bidi_byname.c: New file.
58619         * tests/unictype/test-bidi_name.c: New file.
58620         * tests/unictype/test-bidi_of.c: New file.
58621         * tests/unictype/test-bidi_test.c: New file.
58622         * tests/unictype/test-block_list.c: New file.
58623         * tests/unictype/test-block_of.c: New file.
58624         * tests/unictype/test-block_test.c: New file.
58625         * tests/unictype/test-categ_and.c: New file.
58626         * tests/unictype/test-categ_and_not.c: New file.
58627         * tests/unictype/test-categ_byname.c: New file.
58628         * tests/unictype/test-categ_name.c: New file.
58629         * tests/unictype/test-categ_none.c: New file.
58630         * tests/unictype/test-categ_of.c: New file.
58631         * tests/unictype/test-categ_or.c: New file.
58632         * tests/unictype/test-categ_test_withtable.c: New file.
58633         * tests/unictype/test-combining.c: New file.
58634         * tests/unictype/test-decdigit.c: New file.
58635         * tests/unictype/test-digit.c: New file.
58636         * tests/unictype/test-mirror.c: New file.
58637         * tests/unictype/test-numeric.c: New file.
58638         * tests/unictype/test-pr_byname.c: New file.
58639         * tests/unictype/test-pr_test.c: New file.
58640         * tests/unictype/test-predicate-part1.h: New file.
58641         * tests/unictype/test-predicate-part2.h: New file.
58642         * tests/unictype/test-scripts.c: New file.
58643         * tests/unictype/test-sy_c_ident.c: New file.
58644         * tests/unictype/test-sy_java_ident.c: New file.
58645
58646         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58647         for Unicode 5.0.0.
58648         * tests/unictype/test-categ_Cc.c: Likewise.
58649         * tests/unictype/test-categ_Cf.c: Likewise.
58650         * tests/unictype/test-categ_Cn.c: Likewise.
58651         * tests/unictype/test-categ_Co.c: Likewise.
58652         * tests/unictype/test-categ_Cs.c: Likewise.
58653         * tests/unictype/test-categ_L.c: Likewise.
58654         * tests/unictype/test-categ_Ll.c: Likewise.
58655         * tests/unictype/test-categ_Lm.c: Likewise.
58656         * tests/unictype/test-categ_Lo.c: Likewise.
58657         * tests/unictype/test-categ_Lt.c: Likewise.
58658         * tests/unictype/test-categ_Lu.c: Likewise.
58659         * tests/unictype/test-categ_M.c: Likewise.
58660         * tests/unictype/test-categ_Mc.c: Likewise.
58661         * tests/unictype/test-categ_Me.c: Likewise.
58662         * tests/unictype/test-categ_Mn.c: Likewise.
58663         * tests/unictype/test-categ_N.c: Likewise.
58664         * tests/unictype/test-categ_Nd.c: Likewise.
58665         * tests/unictype/test-categ_Nl.c: Likewise.
58666         * tests/unictype/test-categ_No.c: Likewise.
58667         * tests/unictype/test-categ_P.c: Likewise.
58668         * tests/unictype/test-categ_Pc.c: Likewise.
58669         * tests/unictype/test-categ_Pd.c: Likewise.
58670         * tests/unictype/test-categ_Pe.c: Likewise.
58671         * tests/unictype/test-categ_Pf.c: Likewise.
58672         * tests/unictype/test-categ_Pi.c: Likewise.
58673         * tests/unictype/test-categ_Po.c: Likewise.
58674         * tests/unictype/test-categ_Ps.c: Likewise.
58675         * tests/unictype/test-categ_S.c: Likewise.
58676         * tests/unictype/test-categ_Sc.c: Likewise.
58677         * tests/unictype/test-categ_Sk.c: Likewise.
58678         * tests/unictype/test-categ_Sm.c: Likewise.
58679         * tests/unictype/test-categ_So.c: Likewise.
58680         * tests/unictype/test-categ_Z.c: Likewise.
58681         * tests/unictype/test-categ_Zl.c: Likewise.
58682         * tests/unictype/test-categ_Zp.c: Likewise.
58683         * tests/unictype/test-categ_Zs.c: Likewise.
58684         * tests/unictype/test-ctype_alnum.c: Likewise.
58685         * tests/unictype/test-ctype_alpha.c: Likewise.
58686         * tests/unictype/test-ctype_blank.c: Likewise.
58687         * tests/unictype/test-ctype_cntrl.c: Likewise.
58688         * tests/unictype/test-ctype_digit.c: Likewise.
58689         * tests/unictype/test-ctype_graph.c: Likewise.
58690         * tests/unictype/test-ctype_lower.c: Likewise.
58691         * tests/unictype/test-ctype_print.c: Likewise.
58692         * tests/unictype/test-ctype_punct.c: Likewise.
58693         * tests/unictype/test-ctype_space.c: Likewise.
58694         * tests/unictype/test-ctype_upper.c: Likewise.
58695         * tests/unictype/test-ctype_xdigit.c: Likewise.
58696         * tests/unictype/test-decdigit.h: Likewise.
58697         * tests/unictype/test-digit.h: Likewise.
58698         * tests/unictype/test-numeric.h: Likewise.
58699         * tests/unictype/test-pr_alphabetic.c: Likewise.
58700         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58701         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58702         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58703         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58704         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58705         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58706         * tests/unictype/test-pr_bidi_control.c: Likewise.
58707         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58708         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58709         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58710         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58711         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58712         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58713         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58714         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58715         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58716         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58717         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58718         * tests/unictype/test-pr_combining.c: Likewise.
58719         * tests/unictype/test-pr_composite.c: Likewise.
58720         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58721         * tests/unictype/test-pr_dash.c: Likewise.
58722         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58723         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58724         * tests/unictype/test-pr_deprecated.c: Likewise.
58725         * tests/unictype/test-pr_diacritic.c: Likewise.
58726         * tests/unictype/test-pr_extender.c: Likewise.
58727         * tests/unictype/test-pr_format_control.c: Likewise.
58728         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58729         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58730         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58731         * tests/unictype/test-pr_hex_digit.c: Likewise.
58732         * tests/unictype/test-pr_hyphen.c: Likewise.
58733         * tests/unictype/test-pr_id_continue.c: Likewise.
58734         * tests/unictype/test-pr_id_start.c: Likewise.
58735         * tests/unictype/test-pr_ideographic.c: Likewise.
58736         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58737         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58738         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58739         * tests/unictype/test-pr_iso_control.c: Likewise.
58740         * tests/unictype/test-pr_join_control.c: Likewise.
58741         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58742         * tests/unictype/test-pr_line_separator.c: Likewise.
58743         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58744         * tests/unictype/test-pr_lowercase.c: Likewise.
58745         * tests/unictype/test-pr_math.c: Likewise.
58746         * tests/unictype/test-pr_non_break.c: Likewise.
58747         * tests/unictype/test-pr_not_a_character.c: Likewise.
58748         * tests/unictype/test-pr_numeric.c: Likewise.
58749         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58750         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58751         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58752         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58753         * tests/unictype/test-pr_other_id_start.c: Likewise.
58754         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58755         * tests/unictype/test-pr_other_math.c: Likewise.
58756         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58757         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58758         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58759         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58760         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58761         * tests/unictype/test-pr_private_use.c: Likewise.
58762         * tests/unictype/test-pr_punctuation.c: Likewise.
58763         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58764         * tests/unictype/test-pr_radical.c: Likewise.
58765         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58766         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58767         * tests/unictype/test-pr_space.c: Likewise.
58768         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58769         * tests/unictype/test-pr_titlecase.c: Likewise.
58770         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58771         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58772         * tests/unictype/test-pr_uppercase.c: Likewise.
58773         * tests/unictype/test-pr_variation_selector.c: Likewise.
58774         * tests/unictype/test-pr_white_space.c: Likewise.
58775         * tests/unictype/test-pr_xid_continue.c: Likewise.
58776         * tests/unictype/test-pr_xid_start.c: Likewise.
58777         * tests/unictype/test-pr_zero_width.c: Likewise.
58778         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58779         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58780
58781 2007-11-12  Bruno Haible  <bruno@clisp.org>
58782
58783         Unicode character classification functions.
58784         * lib/unictype.h: New file.
58785         * modules/unictype/base: New file.
58786         * modules/unictype/category-L: New file.
58787         * modules/unictype/category-Lu: New file.
58788         * modules/unictype/category-Ll: New file.
58789         * modules/unictype/category-Lt: New file.
58790         * modules/unictype/category-Lm: New file.
58791         * modules/unictype/category-Lo: New file.
58792         * modules/unictype/category-M: New file.
58793         * modules/unictype/category-Mn: New file.
58794         * modules/unictype/category-Mc: New file.
58795         * modules/unictype/category-Me: New file.
58796         * modules/unictype/category-N: New file.
58797         * modules/unictype/category-Nd: New file.
58798         * modules/unictype/category-Nl: New file.
58799         * modules/unictype/category-No: New file.
58800         * modules/unictype/category-P: New file.
58801         * modules/unictype/category-Pc: New file.
58802         * modules/unictype/category-Pd: New file.
58803         * modules/unictype/category-Ps: New file.
58804         * modules/unictype/category-Pe: New file.
58805         * modules/unictype/category-Pi: New file.
58806         * modules/unictype/category-Pf: New file.
58807         * modules/unictype/category-Po: New file.
58808         * modules/unictype/category-S: New file.
58809         * modules/unictype/category-Sm: New file.
58810         * modules/unictype/category-Sc: New file.
58811         * modules/unictype/category-Sk: New file.
58812         * modules/unictype/category-So: New file.
58813         * modules/unictype/category-Z: New file.
58814         * modules/unictype/category-Zs: New file.
58815         * modules/unictype/category-Zl: New file.
58816         * modules/unictype/category-Zp: New file.
58817         * modules/unictype/category-C: New file.
58818         * modules/unictype/category-Cc: New file.
58819         * modules/unictype/category-Cf: New file.
58820         * modules/unictype/category-Cs: New file.
58821         * modules/unictype/category-Co: New file.
58822         * modules/unictype/category-Cn: New file.
58823         * modules/unictype/category-or: New file.
58824         * modules/unictype/category-of: New file.
58825         * modules/unictype/category-test: New file.
58826         * modules/unictype/category-test-withtable: New file.
58827         * modules/unictype/category-byname: New file.
58828         * modules/unictype/category-none: New file.
58829         * modules/unictype/category-and: New file.
58830         * modules/unictype/category-and-not: New file.
58831         * modules/unictype/category-name: New file.
58832         * modules/unictype/combining-class: New file.
58833         * modules/unictype/category-all: New file.
58834         * modules/unictype/bidicategory-all: New file.
58835         * modules/unictype/bidicategory-byname: New file.
58836         * modules/unictype/bidicategory-name: New file.
58837         * modules/unictype/bidicategory-of: New file.
58838         * modules/unictype/bidicategory-test: New file.
58839         * modules/unictype/decimal-digit: New file.
58840         * modules/unictype/digit: New file.
58841         * modules/unictype/numeric: New file.
58842         * modules/unictype/mirror: New file.
58843         * modules/unictype/property-white-space: New file.
58844         * modules/unictype/property-alphabetic: New file.
58845         * modules/unictype/property-other-alphabetic: New file.
58846         * modules/unictype/property-not-a-character: New file.
58847         * modules/unictype/property-default-ignorable-code-point: New file.
58848         * modules/unictype/property-other-default-ignorable-code-point: New
58849         file.
58850         * modules/unictype/property-deprecated: New file.
58851         * modules/unictype/property-logical-order-exception: New file.
58852         * modules/unictype/property-variation-selector: New file.
58853         * modules/unictype/property-private-use: New file.
58854         * modules/unictype/property-unassigned-code-value: New file.
58855         * modules/unictype/property-uppercase: New file.
58856         * modules/unictype/property-other-uppercase: New file.
58857         * modules/unictype/property-lowercase: New file.
58858         * modules/unictype/property-other-lowercase: New file.
58859         * modules/unictype/property-titlecase: New file.
58860         * modules/unictype/property-soft-dotted: New file.
58861         * modules/unictype/property-id-start: New file.
58862         * modules/unictype/property-other-id-start: New file.
58863         * modules/unictype/property-id-continue: New file.
58864         * modules/unictype/property-other-id-continue: New file.
58865         * modules/unictype/property-xid-start: New file.
58866         * modules/unictype/property-xid-continue: New file.
58867         * modules/unictype/property-pattern-white-space: New file.
58868         * modules/unictype/property-pattern-syntax: New file.
58869         * modules/unictype/property-join-control: New file.
58870         * modules/unictype/property-grapheme-base: New file.
58871         * modules/unictype/property-grapheme-extend: New file.
58872         * modules/unictype/property-other-grapheme-extend: New file.
58873         * modules/unictype/property-grapheme-link: New file.
58874         * modules/unictype/property-bidi-control: New file.
58875         * modules/unictype/property-bidi-left-to-right: New file.
58876         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58877         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58878         * modules/unictype/property-bidi-european-digit: New file.
58879         * modules/unictype/property-bidi-eur-num-separator: New file.
58880         * modules/unictype/property-bidi-eur-num-terminator: New file.
58881         * modules/unictype/property-bidi-arabic-digit: New file.
58882         * modules/unictype/property-bidi-common-separator: New file.
58883         * modules/unictype/property-bidi-block-separator: New file.
58884         * modules/unictype/property-bidi-segment-separator: New file.
58885         * modules/unictype/property-bidi-whitespace: New file.
58886         * modules/unictype/property-bidi-non-spacing-mark: New file.
58887         * modules/unictype/property-bidi-boundary-neutral: New file.
58888         * modules/unictype/property-bidi-pdf: New file.
58889         * modules/unictype/property-bidi-embedding-or-override: New file.
58890         * modules/unictype/property-bidi-other-neutral: New file.
58891         * modules/unictype/property-hex-digit: New file.
58892         * modules/unictype/property-ascii-hex-digit: New file.
58893         * modules/unictype/property-ideographic: New file.
58894         * modules/unictype/property-unified-ideograph: New file.
58895         * modules/unictype/property-radical: New file.
58896         * modules/unictype/property-ids-binary-operator: New file.
58897         * modules/unictype/property-ids-trinary-operator: New file.
58898         * modules/unictype/property-zero-width: New file.
58899         * modules/unictype/property-space: New file.
58900         * modules/unictype/property-non-break: New file.
58901         * modules/unictype/property-iso-control: New file.
58902         * modules/unictype/property-format-control: New file.
58903         * modules/unictype/property-dash: New file.
58904         * modules/unictype/property-hyphen: New file.
58905         * modules/unictype/property-punctuation: New file.
58906         * modules/unictype/property-line-separator: New file.
58907         * modules/unictype/property-paragraph-separator: New file.
58908         * modules/unictype/property-quotation-mark: New file.
58909         * modules/unictype/property-sentence-terminal: New file.
58910         * modules/unictype/property-terminal-punctuation: New file.
58911         * modules/unictype/property-currency-symbol: New file.
58912         * modules/unictype/property-math: New file.
58913         * modules/unictype/property-other-math: New file.
58914         * modules/unictype/property-paired-punctuation: New file.
58915         * modules/unictype/property-left-of-pair: New file.
58916         * modules/unictype/property-combining: New file.
58917         * modules/unictype/property-composite: New file.
58918         * modules/unictype/property-decimal-digit: New file.
58919         * modules/unictype/property-numeric: New file.
58920         * modules/unictype/property-diacritic: New file.
58921         * modules/unictype/property-extender: New file.
58922         * modules/unictype/property-ignorable-control: New file.
58923         * modules/unictype/property-test: New file.
58924         * modules/unictype/property-byname: New file.
58925         * modules/unictype/property-all: New file.
58926         * modules/unictype/scripts: New file.
58927         * modules/unictype/scripts-all: New file.
58928         * modules/unictype/block-of: New file.
58929         * modules/unictype/block-test: New file.
58930         * modules/unictype/block-list: New file.
58931         * modules/unictype/block-all: New file.
58932         * modules/unictype/syntax-c-whitespace: New file.
58933         * modules/unictype/syntax-java-whitespace: New file.
58934         * modules/unictype/syntax-c-ident: New file.
58935         * modules/unictype/syntax-java-ident: New file.
58936         * modules/unictype/ctype-alnum: New file.
58937         * modules/unictype/ctype-alpha: New file.
58938         * modules/unictype/ctype-cntrl: New file.
58939         * modules/unictype/ctype-digit: New file.
58940         * modules/unictype/ctype-graph: New file.
58941         * modules/unictype/ctype-lower: New file.
58942         * modules/unictype/ctype-print: New file.
58943         * modules/unictype/ctype-punct: New file.
58944         * modules/unictype/ctype-space: New file.
58945         * modules/unictype/ctype-upper: New file.
58946         * modules/unictype/ctype-xdigit: New file.
58947         * modules/unictype/ctype-blank: New file.
58948         * lib/unictype/bidi_byname.c: New file.
58949         * lib/unictype/bidi_name.c: New file.
58950         * lib/unictype/bidi_of.c: New file.
58951         * lib/unictype/bidi_test.c: New file.
58952         * lib/unictype/bitmap.h: New file.
58953         * lib/unictype/block_test.c: New file.
58954         * lib/unictype/blocks.c: New file.
58955         * lib/unictype/categ_C.c: New file.
58956         * lib/unictype/categ_Cc.c: New file.
58957         * lib/unictype/categ_Cf.c: New file.
58958         * lib/unictype/categ_Cn.c: New file.
58959         * lib/unictype/categ_Co.c: New file.
58960         * lib/unictype/categ_Cs.c: New file.
58961         * lib/unictype/categ_L.c: New file.
58962         * lib/unictype/categ_Ll.c: New file.
58963         * lib/unictype/categ_Lm.c: New file.
58964         * lib/unictype/categ_Lo.c: New file.
58965         * lib/unictype/categ_Lt.c: New file.
58966         * lib/unictype/categ_Lu.c: New file.
58967         * lib/unictype/categ_M.c: New file.
58968         * lib/unictype/categ_Mc.c: New file.
58969         * lib/unictype/categ_Me.c: New file.
58970         * lib/unictype/categ_Mn.c: New file.
58971         * lib/unictype/categ_N.c: New file.
58972         * lib/unictype/categ_Nd.c: New file.
58973         * lib/unictype/categ_Nl.c: New file.
58974         * lib/unictype/categ_No.c: New file.
58975         * lib/unictype/categ_P.c: New file.
58976         * lib/unictype/categ_Pc.c: New file.
58977         * lib/unictype/categ_Pd.c: New file.
58978         * lib/unictype/categ_Pe.c: New file.
58979         * lib/unictype/categ_Pf.c: New file.
58980         * lib/unictype/categ_Pi.c: New file.
58981         * lib/unictype/categ_Po.c: New file.
58982         * lib/unictype/categ_Ps.c: New file.
58983         * lib/unictype/categ_S.c: New file.
58984         * lib/unictype/categ_Sc.c: New file.
58985         * lib/unictype/categ_Sk.c: New file.
58986         * lib/unictype/categ_Sm.c: New file.
58987         * lib/unictype/categ_So.c: New file.
58988         * lib/unictype/categ_Z.c: New file.
58989         * lib/unictype/categ_Zl.c: New file.
58990         * lib/unictype/categ_Zp.c: New file.
58991         * lib/unictype/categ_Zs.c: New file.
58992         * lib/unictype/categ_and.c: New file.
58993         * lib/unictype/categ_and_not.c: New file.
58994         * lib/unictype/categ_byname.c: New file.
58995         * lib/unictype/categ_name.c: New file.
58996         * lib/unictype/categ_none.c: New file.
58997         * lib/unictype/categ_of.c: New file.
58998         * lib/unictype/categ_or.c: New file.
58999         * lib/unictype/categ_test.c: New file.
59000         * lib/unictype/combining.c: New file.
59001         * lib/unictype/ctype_alnum.c: New file.
59002         * lib/unictype/ctype_alpha.c: New file.
59003         * lib/unictype/ctype_blank.c: New file.
59004         * lib/unictype/ctype_cntrl.c: New file.
59005         * lib/unictype/ctype_digit.c: New file.
59006         * lib/unictype/ctype_graph.c: New file.
59007         * lib/unictype/ctype_lower.c: New file.
59008         * lib/unictype/ctype_print.c: New file.
59009         * lib/unictype/ctype_punct.c: New file.
59010         * lib/unictype/ctype_space.c: New file.
59011         * lib/unictype/ctype_upper.c: New file.
59012         * lib/unictype/ctype_xdigit.c: New file.
59013         * lib/unictype/decdigit.c: New file.
59014         * lib/unictype/digit.c: New file.
59015         * lib/unictype/identsyntaxmap.h: New file.
59016         * lib/unictype/mirror.c: New file.
59017         * lib/unictype/numeric.c: New file.
59018         * lib/unictype/pr_alphabetic.c: New file.
59019         * lib/unictype/pr_ascii_hex_digit.c: New file.
59020         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59021         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59022         * lib/unictype/pr_bidi_block_separator.c: New file.
59023         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59024         * lib/unictype/pr_bidi_common_separator.c: New file.
59025         * lib/unictype/pr_bidi_control.c: New file.
59026         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59027         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59028         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59029         * lib/unictype/pr_bidi_european_digit.c: New file.
59030         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59031         * lib/unictype/pr_bidi_left_to_right.c: New file.
59032         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59033         * lib/unictype/pr_bidi_other_neutral.c: New file.
59034         * lib/unictype/pr_bidi_pdf.c: New file.
59035         * lib/unictype/pr_bidi_segment_separator.c: New file.
59036         * lib/unictype/pr_bidi_whitespace.c: New file.
59037         * lib/unictype/pr_byname.c: New file.
59038         * lib/unictype/pr_byname.gperf: New file.
59039         * lib/unictype/pr_combining.c: New file.
59040         * lib/unictype/pr_composite.c: New file.
59041         * lib/unictype/pr_currency_symbol.c: New file.
59042         * lib/unictype/pr_dash.c: New file.
59043         * lib/unictype/pr_decimal_digit.c: New file.
59044         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59045         * lib/unictype/pr_deprecated.c: New file.
59046         * lib/unictype/pr_diacritic.c: New file.
59047         * lib/unictype/pr_extender.c: New file.
59048         * lib/unictype/pr_format_control.c: New file.
59049         * lib/unictype/pr_grapheme_base.c: New file.
59050         * lib/unictype/pr_grapheme_extend.c: New file.
59051         * lib/unictype/pr_grapheme_link.c: New file.
59052         * lib/unictype/pr_hex_digit.c: New file.
59053         * lib/unictype/pr_hyphen.c: New file.
59054         * lib/unictype/pr_id_continue.c: New file.
59055         * lib/unictype/pr_id_start.c: New file.
59056         * lib/unictype/pr_ideographic.c: New file.
59057         * lib/unictype/pr_ids_binary_operator.c: New file.
59058         * lib/unictype/pr_ids_trinary_operator.c: New file.
59059         * lib/unictype/pr_ignorable_control.c: New file.
59060         * lib/unictype/pr_iso_control.c: New file.
59061         * lib/unictype/pr_join_control.c: New file.
59062         * lib/unictype/pr_left_of_pair.c: New file.
59063         * lib/unictype/pr_line_separator.c: New file.
59064         * lib/unictype/pr_logical_order_exception.c: New file.
59065         * lib/unictype/pr_lowercase.c: New file.
59066         * lib/unictype/pr_math.c: New file.
59067         * lib/unictype/pr_non_break.c: New file.
59068         * lib/unictype/pr_not_a_character.c: New file.
59069         * lib/unictype/pr_numeric.c: New file.
59070         * lib/unictype/pr_other_alphabetic.c: New file.
59071         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59072         * lib/unictype/pr_other_grapheme_extend.c: New file.
59073         * lib/unictype/pr_other_id_continue.c: New file.
59074         * lib/unictype/pr_other_id_start.c: New file.
59075         * lib/unictype/pr_other_lowercase.c: New file.
59076         * lib/unictype/pr_other_math.c: New file.
59077         * lib/unictype/pr_other_uppercase.c: New file.
59078         * lib/unictype/pr_paired_punctuation.c: New file.
59079         * lib/unictype/pr_paragraph_separator.c: New file.
59080         * lib/unictype/pr_pattern_syntax.c: New file.
59081         * lib/unictype/pr_pattern_white_space.c: New file.
59082         * lib/unictype/pr_private_use.c: New file.
59083         * lib/unictype/pr_punctuation.c: New file.
59084         * lib/unictype/pr_quotation_mark.c: New file.
59085         * lib/unictype/pr_radical.c: New file.
59086         * lib/unictype/pr_sentence_terminal.c: New file.
59087         * lib/unictype/pr_soft_dotted.c: New file.
59088         * lib/unictype/pr_space.c: New file.
59089         * lib/unictype/pr_terminal_punctuation.c: New file.
59090         * lib/unictype/pr_test.c: New file.
59091         * lib/unictype/pr_titlecase.c: New file.
59092         * lib/unictype/pr_unassigned_code_value.c: New file.
59093         * lib/unictype/pr_unified_ideograph.c: New file.
59094         * lib/unictype/pr_uppercase.c: New file.
59095         * lib/unictype/pr_variation_selector.c: New file.
59096         * lib/unictype/pr_white_space.c: New file.
59097         * lib/unictype/pr_xid_continue.c: New file.
59098         * lib/unictype/pr_xid_start.c: New file.
59099         * lib/unictype/pr_zero_width.c: New file.
59100         * lib/unictype/scripts.c: New file.
59101         * lib/unictype/sy_c_ident.c: New file.
59102         * lib/unictype/sy_c_whitespace.c: New file.
59103         * lib/unictype/sy_java_ident.c: New file.
59104         * lib/unictype/sy_java_whitespace.c: New file.
59105
59106         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59107         Unicode 5.0.0.
59108         * lib/unictype/blocks.h: Likewise.
59109         * lib/unictype/categ_C.h: Likewise.
59110         * lib/unictype/categ_Cc.h: Likewise.
59111         * lib/unictype/categ_Cf.h: Likewise.
59112         * lib/unictype/categ_Cn.h: Likewise.
59113         * lib/unictype/categ_Co.h: Likewise.
59114         * lib/unictype/categ_Cs.h: Likewise.
59115         * lib/unictype/categ_L.h: Likewise.
59116         * lib/unictype/categ_Ll.h: Likewise.
59117         * lib/unictype/categ_Lm.h: Likewise.
59118         * lib/unictype/categ_Lo.h: Likewise.
59119         * lib/unictype/categ_Lt.h: Likewise.
59120         * lib/unictype/categ_Lu.h: Likewise.
59121         * lib/unictype/categ_M.h: Likewise.
59122         * lib/unictype/categ_Mc.h: Likewise.
59123         * lib/unictype/categ_Me.h: Likewise.
59124         * lib/unictype/categ_Mn.h: Likewise.
59125         * lib/unictype/categ_N.h: Likewise.
59126         * lib/unictype/categ_Nd.h: Likewise.
59127         * lib/unictype/categ_Nl.h: Likewise.
59128         * lib/unictype/categ_No.h: Likewise.
59129         * lib/unictype/categ_P.h: Likewise.
59130         * lib/unictype/categ_Pc.h: Likewise.
59131         * lib/unictype/categ_Pd.h: Likewise.
59132         * lib/unictype/categ_Pe.h: Likewise.
59133         * lib/unictype/categ_Pf.h: Likewise.
59134         * lib/unictype/categ_Pi.h: Likewise.
59135         * lib/unictype/categ_Po.h: Likewise.
59136         * lib/unictype/categ_Ps.h: Likewise.
59137         * lib/unictype/categ_S.h: Likewise.
59138         * lib/unictype/categ_Sc.h: Likewise.
59139         * lib/unictype/categ_Sk.h: Likewise.
59140         * lib/unictype/categ_Sm.h: Likewise.
59141         * lib/unictype/categ_So.h: Likewise.
59142         * lib/unictype/categ_Z.h: Likewise.
59143         * lib/unictype/categ_Zl.h: Likewise.
59144         * lib/unictype/categ_Zp.h: Likewise.
59145         * lib/unictype/categ_Zs.h: Likewise.
59146         * lib/unictype/categ_of.h: Likewise.
59147         * lib/unictype/combining.h: Likewise.
59148         * lib/unictype/ctype_alnum.h: Likewise.
59149         * lib/unictype/ctype_alpha.h: Likewise.
59150         * lib/unictype/ctype_blank.h: Likewise.
59151         * lib/unictype/ctype_cntrl.h: Likewise.
59152         * lib/unictype/ctype_digit.h: Likewise.
59153         * lib/unictype/ctype_graph.h: Likewise.
59154         * lib/unictype/ctype_lower.h: Likewise.
59155         * lib/unictype/ctype_print.h: Likewise.
59156         * lib/unictype/ctype_punct.h: Likewise.
59157         * lib/unictype/ctype_space.h: Likewise.
59158         * lib/unictype/ctype_upper.h: Likewise.
59159         * lib/unictype/ctype_xdigit.h: Likewise.
59160         * lib/unictype/decdigit.h: Likewise.
59161         * lib/unictype/digit.h: Likewise.
59162         * lib/unictype/mirror.h: Likewise.
59163         * lib/unictype/numeric.h: Likewise.
59164         * lib/unictype/pr_alphabetic.h: Likewise.
59165         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59166         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59167         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59168         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59169         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59170         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59171         * lib/unictype/pr_bidi_control.h: Likewise.
59172         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59173         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59174         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59175         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59176         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59177         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59178         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59179         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59180         * lib/unictype/pr_bidi_pdf.h: Likewise.
59181         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59182         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59183         * lib/unictype/pr_combining.h: Likewise.
59184         * lib/unictype/pr_composite.h: Likewise.
59185         * lib/unictype/pr_currency_symbol.h: Likewise.
59186         * lib/unictype/pr_dash.h: Likewise.
59187         * lib/unictype/pr_decimal_digit.h: Likewise.
59188         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59189         * lib/unictype/pr_deprecated.h: Likewise.
59190         * lib/unictype/pr_diacritic.h: Likewise.
59191         * lib/unictype/pr_extender.h: Likewise.
59192         * lib/unictype/pr_format_control.h: Likewise.
59193         * lib/unictype/pr_grapheme_base.h: Likewise.
59194         * lib/unictype/pr_grapheme_extend.h: Likewise.
59195         * lib/unictype/pr_grapheme_link.h: Likewise.
59196         * lib/unictype/pr_hex_digit.h: Likewise.
59197         * lib/unictype/pr_hyphen.h: Likewise.
59198         * lib/unictype/pr_id_continue.h: Likewise.
59199         * lib/unictype/pr_id_start.h: Likewise.
59200         * lib/unictype/pr_ideographic.h: Likewise.
59201         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59202         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59203         * lib/unictype/pr_ignorable_control.h: Likewise.
59204         * lib/unictype/pr_iso_control.h: Likewise.
59205         * lib/unictype/pr_join_control.h: Likewise.
59206         * lib/unictype/pr_left_of_pair.h: Likewise.
59207         * lib/unictype/pr_line_separator.h: Likewise.
59208         * lib/unictype/pr_logical_order_exception.h: Likewise.
59209         * lib/unictype/pr_lowercase.h: Likewise.
59210         * lib/unictype/pr_math.h: Likewise.
59211         * lib/unictype/pr_non_break.h: Likewise.
59212         * lib/unictype/pr_not_a_character.h: Likewise.
59213         * lib/unictype/pr_numeric.h: Likewise.
59214         * lib/unictype/pr_other_alphabetic.h: Likewise.
59215         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59216         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59217         * lib/unictype/pr_other_id_continue.h: Likewise.
59218         * lib/unictype/pr_other_id_start.h: Likewise.
59219         * lib/unictype/pr_other_lowercase.h: Likewise.
59220         * lib/unictype/pr_other_math.h: Likewise.
59221         * lib/unictype/pr_other_uppercase.h: Likewise.
59222         * lib/unictype/pr_paired_punctuation.h: Likewise.
59223         * lib/unictype/pr_paragraph_separator.h: Likewise.
59224         * lib/unictype/pr_pattern_syntax.h: Likewise.
59225         * lib/unictype/pr_pattern_white_space.h: Likewise.
59226         * lib/unictype/pr_private_use.h: Likewise.
59227         * lib/unictype/pr_punctuation.h: Likewise.
59228         * lib/unictype/pr_quotation_mark.h: Likewise.
59229         * lib/unictype/pr_radical.h: Likewise.
59230         * lib/unictype/pr_sentence_terminal.h: Likewise.
59231         * lib/unictype/pr_soft_dotted.h: Likewise.
59232         * lib/unictype/pr_space.h: Likewise.
59233         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59234         * lib/unictype/pr_titlecase.h: Likewise.
59235         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59236         * lib/unictype/pr_unified_ideograph.h: Likewise.
59237         * lib/unictype/pr_uppercase.h: Likewise.
59238         * lib/unictype/pr_variation_selector.h: Likewise.
59239         * lib/unictype/pr_white_space.h: Likewise.
59240         * lib/unictype/pr_xid_continue.h: Likewise.
59241         * lib/unictype/pr_xid_start.h: Likewise.
59242         * lib/unictype/pr_zero_width.h: Likewise.
59243         * lib/unictype/scripts.h: Likewise.
59244         * lib/unictype/scripts_byname.gperf: Likewise.
59245         * lib/unictype/sy_c_ident.h: Likewise.
59246         * lib/unictype/sy_c_whitespace.h: Likewise.
59247         * lib/unictype/sy_java_ident.h: Likewise.
59248         * lib/unictype/sy_java_whitespace.h: Likewise.
59249
59250         * lib/unictype/Makefile: New file.
59251         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59252         glibc.
59253         * lib/unictype/3level.h: New file, copied from glibc.
59254         * lib/unictype/3levelbit.h: New file.
59255
59256 2007-11-11  Bruno Haible  <bruno@clisp.org>
59257
59258         * modules/gperf: New file.
59259         * modules/iconv_open (Depends-on): Add it.
59260         (Makefile.am): Remove the GPERF definition.
59261
59262 2007-11-11  Bruno Haible  <bruno@clisp.org>
59263
59264         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59265         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59266
59267 2007-11-11  Bruno Haible  <bruno@clisp.org>
59268
59269         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59270         (usage): Remove function.
59271
59272 2007-11-11  Bruno Haible  <bruno@clisp.org>
59273
59274         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59275         gl_FUNC_CEILF_LIBS.
59276         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59277         gl_FUNC_CEIL_LIBS.
59278         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59279         gl_FUNC_CEILL_LIBS.
59280         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59281         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59282         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59283
59284 2007-11-11  Bruno Haible  <bruno@clisp.org>
59285
59286         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59287         roundf were declared but do not exist on functions.
59288         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59289         roundl were declared but do not exist on functions.
59290         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59291         HAVE_FLOORL_AND_CEILL, respectively.
59292         Needed for Sun C on Solaris 10.
59293
59294 2007-11-11  Bruno Haible  <bruno@clisp.org>
59295
59296         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59297         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59298         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59299         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59300         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59301         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59302         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59303         HAVE_DECL_ROUNDF.
59304         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59305         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59307         of HAVE_DECL_ROUND*.
59308         * modules/math (Makefile.am): Update.
59309
59310 2007-11-10  Bruno Haible  <bruno@clisp.org>
59311
59312         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59313         ptrdiff_t as m4/intl.m4.
59314
59315 2007-11-10  Jim Meyering  <meyering@redhat.com>
59316
59317         Avoid link failure for the argmatch test.
59318         * tests/test-argmatch.c (usage): Define function to avoid a link
59319         failure: argmatch_die requires a usage function.
59320
59321 2007-11-09  Bruno Haible  <bruno@clisp.org>
59322
59323         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59324         * doc/functions/vsnprintf.texi: Likewise.
59325         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59326         with a size argument < 2.
59327
59328 2007-11-09  Bruno Haible  <bruno@clisp.org>
59329
59330         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59331         buffer. Fixes an inefficiency introduced on 2007-11-03.
59332
59333 2007-11-09  Bruno Haible  <bruno@clisp.org>
59334
59335         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59336         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59337
59338 2007-11-08  Jim Meyering  <meyering@redhat.com>
59339
59340         Change cache variable name prefix "jm_" to "gl_" everywhere.
59341         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59342         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59343         * m4/uptime.m4: s/gl_/jm_/
59344
59345 2007-11-07  Bruno Haible  <bruno@clisp.org>
59346
59347         Update to GNU gettext 0.17.
59348         * m4/intl.m4: Update to GNU gettext 0.17.
59349         * m4/po.m4: Likewise.
59350         * modules/gettext (Files): Remove m4/ulonglong.m4.
59351         (configure.ac): Require gettext infrastructure from version 0.17.
59352
59353 2007-11-06  Bruno Haible  <bruno@clisp.org>
59354
59355         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59356         symbolic values are not defined in a public header.
59357         * lib/freadable.c (freadable) [QNX]: Likewise.
59358         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59359         * lib/freading.c (freading) [QNX]: Likewise.
59360         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59361         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59362         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59363         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59364         Reported by Alain Magloire.
59365
59366         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59367
59368 2007-11-05  Bruno Haible  <bruno@clisp.org>
59369
59370         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59371         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59372         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59373         Reported by Eric Blake.
59374
59375 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59376             Bruno Haible  <bruno@clisp.org>
59377
59378         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59379         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59380         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59381         (malloc): Undefine also before including <stdlib.h>.
59382         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59383         Needed on OSF/1 4.0.
59384
59385 2007-11-05  Jim Meyering  <meyering@redhat.com>
59386
59387         git-version-gen: sync from coreutils.
59388         * build-aux/git-version-gen: Add comments.
59389         Change the first '-' to '.' in the snapshot version string,
59390         e.g., 6.9-377-08144 -> 6.9.377-08144
59391         Remove first parameter.
59392         Don't declare a version "-dirty" merely because a time
59393         stamp has changed.
59394
59395 2007-11-04  Bruno Haible  <bruno@clisp.org>
59396
59397         * lib/lock.h: Protect all macro definitions containing an 'if'
59398         statement through a "do { ... } while (0)".
59399         * lib/tls.h: Likewise.
59400
59401 2007-11-04  Bruno Haible  <bruno@clisp.org>
59402
59403         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59404
59405 2007-11-04  Bruno Haible  <bruno@clisp.org>
59406
59407         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59408         * modules/fprintf-posix (Depends-on): Add nocrash.
59409         * modules/snprintf-posix (Depends-on): Likewise.
59410         * modules/sprintf-posix (Depends-on): Likewise.
59411         * modules/vasnprintf-posix (Depends-on): Likewise.
59412         * modules/vasprintf-posix (Depends-on): Likewise.
59413         * modules/vfprintf-posix (Depends-on): Likewise.
59414         * modules/vsnprintf-posix (Depends-on): Likewise.
59415         * modules/vsprintf-posix (Depends-on): Likewise.
59416         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59417         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59418         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59419         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59420         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59421         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59422         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59423
59424 2007-11-04  Bruno Haible  <bruno@clisp.org>
59425
59426         * modules/nocrash: New file.
59427         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59428         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59429
59430 2007-11-04  Bruno Haible  <bruno@clisp.org>
59431
59432         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59433         precision handling.
59434         * tests/test-vasprintf-posix.c (test_function): Likewise.
59435         * tests/test-snprintf-posix.h (test_function): Likewise.
59436         * tests/test-sprintf-posix.h (test_function): Likewise.
59437
59438         Fix *printf behaviour for large precisions on mingw and BeOS.
59439         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59440         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59441         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59442         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59443         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59444         gl_PRINTF_PRECISION and test its result. Invoke
59445         gl_PREREQ_VASNPRINTF_PRECISION.
59446         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59447         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59448         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59449         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59450         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59451         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59452         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59453         * doc/functions/fprintf.texi: Update.
59454         * doc/functions/printf.texi: Update.
59455         * doc/functions/snprintf.texi: Update.
59456         * doc/functions/sprintf.texi: Update.
59457         * doc/functions/vfprintf.texi: Update.
59458         * doc/functions/vprintf.texi: Update.
59459         * doc/functions/vsnprintf.texi: Update.
59460         * doc/functions/vsprintf.texi: Update.
59461
59462 2007-11-04  Bruno Haible  <bruno@clisp.org>
59463
59464         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59465
59466 2007-11-04  Bruno Haible  <bruno@clisp.org>
59467
59468         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59469         Reported by Sylvain Beucler <beuc@gnu.org>.
59470
59471 2007-11-03  Bruno Haible  <bruno@clisp.org>
59472
59473         * tests/test-fprintf-posix2.sh: New file.
59474         * tests/test-fprintf-posix2.c: New file.
59475         * modules/fprintf-posix-tests (Files): Add them.
59476         (TESTS): Add test-fprintf-posix2.sh.
59477         (configure.ac): Check for getrlimit and setrlimit.
59478         (check_PROGRAMS): Add test-fprintf-posix2.
59479
59480         * tests/test-printf-posix2.sh: New file.
59481         * tests/test-printf-posix2.c: New file.
59482         * modules/printf-posix-tests (Files): Add them.
59483         (TESTS): Add test-printf-posix2.sh.
59484         (configure.ac): Check for getrlimit and setrlimit.
59485         (check_PROGRAMS): Add test-printf-posix2.
59486
59487         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59488         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59489         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59490         (decode_double): New function, copied from decode_long_double.
59491         (scale10_round_decimal_decoded): New function, extracted from
59492         scale10_round_decimal_long_double.
59493         (scale10_round_decimal_long_double): Use it.
59494         (scale10_round_decimal_double): New function.
59495         (floorlog10): New function.
59496         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59497         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59498         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59499         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59500         gl_PRINTF_ENOMEM and test its result. Invoke
59501         gl_PREREQ_VASNPRINTF_ENOMEM.
59502         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59503         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59504         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59505         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59506         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59507         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59508         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59509         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59510         * modules/snprintf-posix (Depends-on): Likewise.
59511         * modules/sprintf-posix (Depends-on): Likewise.
59512         * modules/vasnprintf-posix (Depends-on): Likewise.
59513         * modules/vasprintf-posix (Depends-on): Likewise.
59514         * modules/vfprintf-posix (Depends-on): Likewise.
59515         * modules/vsnprintf-posix (Depends-on): Likewise.
59516         * modules/vsprintf-posix (Depends-on): Likewise.
59517         * doc/functions/fprintf.texi: Update.
59518         * doc/functions/printf.texi: Update.
59519         * doc/functions/snprintf.texi: Update.
59520         * doc/functions/sprintf.texi: Update.
59521         * doc/functions/vfprintf.texi: Update.
59522         * doc/functions/vprintf.texi: Update.
59523         * doc/functions/vsnprintf.texi: Update.
59524         * doc/functions/vsprintf.texi: Update.
59525
59526 2007-11-03  Bruno Haible  <bruno@clisp.org>
59527
59528         * modules/frexp-nolibm-tests: New file.
59529
59530         * modules/frexp-nolibm: New file.
59531         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59532
59533 2007-11-03  Bruno Haible  <bruno@clisp.org>
59534
59535         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59536         value is C99 compliant.
59537         Needed for OSF/1 5.1.
59538
59539 2007-11-03  Bruno Haible  <bruno@clisp.org>
59540
59541         Fix out-of-memory handling of vasnprintf.
59542         * lib/printf-parse.c: Include <errno.h>.
59543         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59544         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59545         is already set.
59546
59547 2007-11-02  Eric Blake  <ebb9@byu.net>
59548
59549         Fix tests on cygwin.
59550         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59551
59552 2007-11-01  Bruno Haible  <bruno@clisp.org>
59553
59554         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59555         warning.
59556         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59557         needed for POSIX compatibility.
59558
59559 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59560
59561         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59562         for compatibility with GNU.
59563
59564 2007-11-01  Bruno Haible  <bruno@clisp.org>
59565
59566         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59567         (putenv): Renamed from rpl_putenv. Change argument type from
59568         'const char *' to 'char *'.
59569         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59570         of defining putenv in config.h, just set REPLACE_PUTENV.
59571         * modules/putenv (Depends-on): Add stdlib.
59572         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59573         (Include): Use <stdlib.h>.
59574         * lib/stdlib.in.h (putenv): New declaration.
59575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59576         REPLACE_PUTENV.
59577         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59578         REPLACE_PUTENV.
59579         Needed for MacOS X 10.5.0.
59580         Reported by Peter O'Gorman <peter@pogma.com>.
59581
59582 2007-11-01  Jim Meyering  <meyering@redhat.com>
59583
59584         Treat an empty date string exactly like "0".
59585         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59586         if the remaining date string (to be parsed) is empty, use "0".
59587         Reported by Mischa Molhoek and discussed in this thread:
59588         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59589
59590 2007-10-31  Bruno Haible  <bruno@clisp.org>
59591
59592         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59593         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59594         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59595         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59596         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59597         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59598
59599 2007-10-31  Bruno Haible  <bruno@clisp.org>
59600
59601         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59602         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59603         (AC_TYPE_LONG_LONG_INT): Use it.
59604         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59605         it as well.
59606         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59607         to m4/longlong.m4.
59608         * modules/stdint (Files): Remove m4/ulonglong.m4.
59609         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59610         m4/ulonglong.m4.
59611         * modules/strtoumax (Files): Likewise.
59612
59613 2007-10-30  Bruno Haible  <bruno@clisp.org>
59614
59615         * modules/xvasprintf-posix: New file.
59616         Suggested by Eric Blake.
59617
59618 2007-10-30  Bruno Haible  <bruno@clisp.org>
59619
59620         * modules/xprintf-posix-tests: New file.
59621         * tests/test-xprintf-posix.sh: New file.
59622         * tests/test-xprintf-posix.c: New file.
59623         * tests/test-xfprintf-posix.c: New file.
59624
59625         * modules/xprintf-posix: New file.
59626
59627 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59628
59629         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59630         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59631         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59632
59633 2007-10-29  Bruno Haible  <bruno@clisp.org>
59634
59635         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59636         contain the special marker '_cv_'.
59637         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59638         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59639         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59640         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59641         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59642         Reported by Ralf Wildenhues.
59643
59644 2007-10-29  Bruno Haible  <bruno@clisp.org>
59645
59646         * gnulib-tool (func_import): When --lgpl is not specified, set
59647         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59648         GPLv3.
59649         Reported by Simon Josefsson.
59650
59651 2007-10-28  Bruno Haible  <bruno@clisp.org>
59652
59653         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59654         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59655         HAVE_DECL_ISFINITE.
59656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59657         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59658         HAVE_DECL_ISFINITE.
59659
59660 2007-10-28  Bruno Haible  <bruno@clisp.org>
59661
59662         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59663         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59664
59665 2007-10-28  Bruno Haible  <bruno@clisp.org>
59666
59667         Fix link errors with Sun C 5.0 on Solaris 10.
59668         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59669         function is declared but not present in the compiler's libm.
59670         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59671         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59672         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59673         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59674         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59675         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59676         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59678         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59679         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59680         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59681         HAVE_DECL_FLOORL.
59682
59683 2007-10-28  Bruno Haible  <bruno@clisp.org>
59684
59685         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59686         gl_FUNC_FLOORL. Cache the result.
59687         (gl_FUNC_FLOORL): Use it.
59688         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59689         gl_FUNC_CEILL. Cache the result.
59690         (gl_FUNC_CEILL): Use it.
59691
59692         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59693         gl_FUNC_FLOOR. Cache the result.
59694         (gl_FUNC_FLOOR): Use it.
59695         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59696         gl_FUNC_CEIL. Cache the result.
59697         (gl_FUNC_CEIL): Use it.
59698
59699         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59700         gl_FUNC_FLOORF. Cache the result.
59701         (gl_FUNC_FLOORF): Use it.
59702         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59703         gl_FUNC_CEILF. Cache the result.
59704         (gl_FUNC_CEILF): Use it.
59705
59706 2007-10-28  Bruno Haible  <bruno@clisp.org>
59707
59708         * gnulib-tool: Allow specifying the LGPL version number through
59709         --lgpl=2 or --lgpl=3.
59710         (func_usage): Document --lgpl with argument.
59711         Handle --lgpl=... arguments.
59712         (func_import): Recognize also gl_LGPL calls with an argument. When
59713         --lgpl=2 is used and the module's license is just LGPL, report an
59714         error. Set sed_transform_lib_file according to the lgpl variable. In
59715         the generated files, use --lgpl or gl_LGPL invocations with argument,
59716         if necessary.
59717         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59718         an LGPv2+ license.
59719         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59720         gl_LGPL macro.
59721
59722 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59723             Bruno Haible  <bruno@clisp.org>
59724
59725         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59726         (u16_uctomb_aux): Likewise.
59727         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59728         !HAVE_INLINE.
59729         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59730
59731 2007-10-28  Bruno Haible  <bruno@clisp.org>
59732
59733         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59734         Invoke AM_GETTEXT_OPTION if it exists.
59735         * modules/vasprintf: Likewise.
59736         * modules/verror: Likewise.
59737         * modules/xprintf: Likewise.
59738         * modules/xvasprintf: Likewise.
59739
59740 2007-10-27  Ben Pfaff  <blp@gnu.org>
59741
59742         * lib/math.in.h: Define isfinite macro and prototypes for
59743         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59744         implementations.
59745         * m4/math_h.m4: New substitutions for isfinite module.
59746         * lib/isfinite.c: New file.
59747         * m4/isfinite.m4: New file.
59748         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59749         * modules/isfinite: New file.
59750         * modules/isfinite-tests: New file.
59751         * tests/tests-isfinite.c: New file.
59752         * doc/functions/isfinite.texi: Mention isfinite module.
59753         * MODULES.html.sh: Mention new module.
59754
59755 2007-10-27  Ben Pfaff  <blp@gnu.org>
59756
59757         Ralf Wildenhues reported that Tru64 4.0D declares the round
59758         functions but does not have definitions.
59759         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59760         cannot be found in any library, set the output variable to
59761         "missing" instead of "".
59762         * m4/round.m4: Also use our substitute if we cannot find round in
59763         any library, even if it is declared.
59764         * m4/roundf.m4: Likewise for roundf.
59765         * m4/roundl.m4: Likewise for roundl.
59766         * lib/math.in.h: Undefine roundf, round, roundl before defining
59767         their replacements, to allow for hypothetical systems where these
59768         may be defined as macros but not available in libraries.
59769
59770 2007-10-27  Bruno Haible  <bruno@clisp.org>
59771
59772         * doc/gnulib.texi: Invoke @firstparagraphindent.
59773         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59774         changes in gnulib.
59775         (Source changes): New section.
59776
59777 2007-10-26  Bruno Haible  <bruno@clisp.org>
59778
59779         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59780         borrowed from autoconf.
59781
59782 2007-10-26  Bruno Haible  <bruno@clisp.org>
59783
59784         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59785         strerror returned the empty string. Needed on HP-UX 11.00.
59786
59787 2007-10-24  Micah Cowan  <micah@cowan.name>
59788
59789         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59790         * build-aux/bootstrap: Remove support for now-unnecessary option,
59791         --cvs-user, and envvars CVS_USER, CVS_RSH.
59792
59793 2007-10-24  Jim Meyering  <meyering@redhat.com>
59794
59795         Avoid diagnostics from sha1sum when there is no cached checksum.
59796         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59797         if the po.s1 file hasn't been created yet.
59798
59799         * build-aux/bootstrap: Sync from coreutils:
59800         2007-10-24  Jim Meyering  <meyering@redhat.com>
59801         Get gnulib from the git repository, not from an obsolete cvs one.
59802         * build-aux/bootstrap: Suggestion from Micah Cowan.
59803         2007-10-04  Jim Meyering  <jim@meyering.net>
59804         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59805         (update_po_files): Work also when there are no .po files in po/.
59806
59807 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59808
59809         * README: Append ".git" to git and cg examples.
59810         Problem reported by Benoit Sigoure.
59811
59812 2007-10-23  Micah Cowan  <micah@cowan.name>
59813
59814         * users.txt: Add wget.
59815
59816 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59817
59818         Fix linking of some unistdio tests on FreeBSD.
59819         * modules/unistdio/u16-vsnprintf-tests
59820         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59821         * modules/unistdio/u16-vsprintf-tests
59822         (test_u16_vsnprintf1_LDADD): Likewise.
59823         * modules/unistdio/u32-vsnprintf-tests
59824         (test_u32_vsnprintf1_LDADD): Likewise.
59825         * modules/unistdio/u32-vsprintf-tests
59826         (test_u32_vsprintf1_LDADD): Likewise.
59827         * modules/unistdio/u8-vsnprintf-tests
59828         (test_u8_vsnprintf1_LDADD): Likewise.
59829         * modules/unistdio/u8-vsprintf-tests
59830         (test_u8_vsprintf1_LDADD): Likewise.
59831         * modules/unistdio/ulc-vsnprintf-tests
59832         (test_ulc_vsnprintf1_LDADD): Likewise.
59833         * modules/unistdio/ulc-vsprintf-tests
59834         (test_ulc_vsprintf1_LDADD): Likewise.
59835
59836         Fix linking of some uniconv tests on FreeBSD.
59837         * modules/uniconv/u16-conv-from-enc-tests
59838         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59839         * modules/uniconv/u16-conv-to-enc-tests
59840         (test_u16_conv_to_enc_LDADD): Likewise.
59841         * modules/uniconv/u16-strconv-from-enc-tests
59842         (test_u16_strconv_from_enc_LDADD): Likewise.
59843         * modules/uniconv/u16-strconv-to-enc-tests
59844         (test_u16_strconv_to_enc_LDADD): Likewise.
59845         * modules/uniconv/u32-conv-from-enc-tests
59846         (test_u32_conv_from_enc_LDADD): Likewise.
59847         * modules/uniconv/u32-conv-to-enc-tests
59848         (test_u32_conv_to_enc_LDADD): Likewise.
59849         * modules/uniconv/u32-strconv-from-enc-tests
59850         (test_u32_strconv_from_enc_LDADD): Likewise.
59851         * modules/uniconv/u32-strconv-to-enc-tests
59852         (test_u32_strconv_to_enc_LDADD): Likewise.
59853         * modules/uniconv/u8-conv-from-enc-tests
59854         (test_u8_conv_from_enc_LDADD): Likewise.
59855         * modules/uniconv/u8-conv-to-enc-tests
59856         (test_u8_conv_to_enc_LDADD): Likewise.
59857         * modules/uniconv/u8-strconv-from-enc-tests
59858         (test_u8_strconv_from_enc_LDADD): Likewise.
59859         * modules/uniconv/u8-strconv-to-enc-tests
59860         (test_u8_strconv_to_enc_LDADD): Likewise.
59861
59862 2007-10-22  Bruno Haible  <bruno@clisp.org>
59863
59864         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59865         size.
59866
59867 2007-10-22  Eric Blake  <ebb9@byu.net>
59868
59869         Tweak x*printf documentation.
59870         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59871         variable name and comments.
59872         Suggested by Bruno Haible.
59873
59874 2007-10-22  Bruno Haible  <bruno@clisp.org>
59875
59876         * lib/acl.c (copy_acl): Fix file name in comment.
59877
59878 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59879
59880         Fix Tru64 problem with stdbool.h.
59881         * lib/stdbool.in.h (false, true):
59882         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59883         Don't declare as an enum in this situation; it runs afoul of Tru64.
59884         Problem reported by Steven M. Schweda in
59885         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59886
59887 2007-10-22  Eric Blake  <ebb9@byu.net>
59888
59889         Also wrap vf?printf.
59890         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59891         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59892         (xvprintf, xvfprintf): New functions.
59893
59894 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59895
59896         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59897         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59898
59899         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59900         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59901
59902 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59903
59904         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59905         by Bruno Haible.
59906
59907 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59908
59909         * lib/getloadavg.c
59910         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59911         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59912
59913         * tests/test-i-ring.c: Work for C89.
59914
59915 2007-10-22  Bruno Haible  <bruno@clisp.org>
59916
59917         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59918         -1u, in preprocessor expression, so that we don't test for the bug
59919         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59920         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59921
59922 2007-10-22  Eric Blake  <ebb9@byu.net>
59923
59924         * tests/test-yesno.sh: Silence stderr during test.
59925
59926 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59927
59928         * modules/crypto/gc-camellia: New file.
59929
59930         * m4/gc-camellia.m4: New file.
59931
59932         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
59933
59934         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
59935
59936 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59937
59938         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
59939         --help to stdout.  Reported by sms@antinode.org (Steven
59940         M. Schweda).
59941
59942 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59943
59944         * users.txt: Fix link to libksba.
59945
59946 2007-10-21  Ben Pfaff  <blp@gnu.org>
59947
59948         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
59949         round.c roundf implementation that depends on floorf and ceilf to
59950         be tested unconditionally.
59951
59952 2007-10-21  Ben Pfaff  <blp@gnu.org>
59953
59954         * m4/check-libm-func.m4: Removed.
59955         * m4/check-math-lib.m4: New file.
59956         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
59957         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
59958         definition and lack of AC_LIBOBJ([roundf]).
59959         * m4/roundl.m4: Ditto, and similarly for roundl.
59960         * modules/round: Reference new m4 file.
59961         * modules/roundf: Ditto.
59962         * modules/roundl: Ditto.
59963         * tests/test-round2.c (main): Use ROUND instead of round.
59964         Bug report from Bruno Haible.
59965
59966 2007-10-21  Bruno Haible  <bruno@clisp.org>
59967
59968         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
59969         context.
59970
59971 2007-10-21  Bruno Haible  <bruno@clisp.org>
59972
59973         * tests/test-wcwidth.c (main): Allow negative result for some control
59974         characters.
59975
59976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
59977         Needed on OSF/1 5.1.
59978
59979 2007-10-21  Bruno Haible  <bruno@clisp.org>
59980
59981         * tests/test-floorf1.c: Include isnanf.h.
59982         (main): Use isnanf() instead of isnan().
59983         * tests/test-ceilf1.c: Include isnanf.h.
59984         (main): Use isnanf() instead of isnan().
59985         * tests/test-truncf1.c: Include isnanf.h.
59986         (main): Use isnanf() instead of isnan().
59987         * tests/test-roundf1.c: Include isnanf.h.
59988         (main): Use isnanf() instead of isnan().
59989
59990 2007-10-21  Eric Blake  <ebb9@byu.net>
59991
59992         * users.txt: Update URL for m4.
59993
59994 2007-10-21  Bruno Haible  <bruno@clisp.org>
59995
59996         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
59997
59998 2007-10-21  Bruno Haible  <bruno@clisp.org>
59999
60000         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60001         Git's management files if the CVS files are not present.
60002
60003 2007-10-20  Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60006         gcc-3.4.x.
60007
60008 2007-10-20  Ben Pfaff  <blp@gnu.org>
60009
60010         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60011         implementations.
60012         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60013         * lib/round.c: New file.
60014         * lib/roundf.c: New file.
60015         * lib/roundl.c: New file.
60016         * m4/round.m4: New file.
60017         * m4/roundf.m4: New file.
60018         * m4/roundl.m4: New file.
60019         * m4/check-libm-func-m4: New file.
60020         * modules/math: Replace round, roundf, roundl related @VARS@ in
60021         math.in.h.
60022         * modules/round: New file.
60023         * modules/round-tests: New file.
60024         * modules/roundf: New file.
60025         * modules/roundf-tests: New file.
60026         * modules/roundl: New file.
60027         * modules/roundl-tests: New file.
60028         * tests/test-round1.c: New file.
60029         * tests/test-round2.c: New file.
60030         * tests/test-roundf1.c: New file.
60031         * tests/test-roundf2.c: New file.
60032         * tests/test-roundl.c: New file.
60033         * doc/functions/round.texi: Mention round module.
60034         * doc/functions/roundf.texi: Mention roundf module.
60035         * doc/functions/roundl.texi: Mention roundl module.
60036         * MODULES.html.sh: Mention new modules.
60037         Thanks to Bruno Haible for suggestions.
60038
60039 2007-10-20  Jim Meyering  <meyering@redhat.com>
60040
60041         * lib/xprintf.c: Include <config.h> unconditionally.
60042
60043         Change xprintf's license to GPL.
60044         * modules/xprintf (License): s/LGPL/GPL/, since this module
60045         depends on modules (exit and exitfail) which are GPL.
60046         Suggestion from Bruno Haible.
60047
60048         xprintf fixes.
60049         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60050         Use a clearer diagnostic.
60051         Patch from Bruno Haible.
60052
60053 2007-10-20  Bruno Haible  <bruno@clisp.org>
60054
60055         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60056         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60057         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60058
60059 2007-10-20  Bruno Haible  <bruno@clisp.org>
60060
60061         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60062         precision in the comparison result > x - 1 or similar.
60063         * tests/test-ceilf2.c (correct_result_p): Likewise.
60064         * tests/test-truncf2.c (correct_result_p): Likewise.
60065         * tests/test-trunc2.c (correct_result_p): Likewise.
60066         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60067
60068 2007-10-20  Bruno Haible  <bruno@clisp.org>
60069
60070         * modules/ceil: New file.
60071         * m4/ceil.m4: New file.
60072         * doc/functions/ceil.texi: Mention the 'ceil' module.
60073
60074 2007-10-20  Bruno Haible  <bruno@clisp.org>
60075
60076         * modules/floor: New file.
60077         * m4/floor.m4: New file.
60078         * doc/functions/floor.texi: Mention the 'floor' module.
60079
60080 2007-10-20  Bruno Haible  <bruno@clisp.org>
60081
60082         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60083         of %a.
60084         * modules/floorf-tests (Depends-on): Likewise.
60085         * modules/truncf-tests (Depends-on): Likewise.
60086         * modules/trunc-tests (Depends-on): Likewise.
60087         Reported by Ben Pfaff.
60088
60089 2007-10-19  Jim Meyering  <meyering@redhat.com>
60090
60091         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60092         Don't bother testing specific errno values.  Just test ferror.
60093
60094         New module: xprintf
60095         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60096
60097 2007-10-19  Bruno Haible  <bruno@clisp.org>
60098
60099         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60100         syntax.
60101         * modules/javaexec (Makefile.am): Likewise.
60102         * modules/relocatable-prog (Makefile.am): Likewise.
60103         Suggested by Jim Meyering.
60104
60105 2007-10-18  Bruno Haible  <bruno@clisp.org>
60106
60107         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60108         Reported by Jim Meyering.
60109
60110 2007-10-18  Eric Blake  <ebb9@byu.net>
60111
60112         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60113
60114 2007-10-18  Bruno Haible  <bruno@clisp.org>
60115
60116         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60117         the format string into writable memory. Needed in Fortify conditions.
60118
60119 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60120             Bruno Haible  <bruno@clisp.org>
60121
60122         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60123         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60124         * modules/trim (Depends-on): Add mbchar.
60125         (configure.ac): Add gl_FUNC_MBRTOWC.
60126         (Makefile.am): Augment lib_SOURCES.
60127
60128 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60129
60130         Modify glob.c to use fstatat and dirfd, to simplify it.
60131         Suggested by Eric Blake.
60132         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60133         Don't include <stdbool.h>; not used.
60134         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60135         (link_exists_p): Simplify implementation, since we can now assume
60136         dirfd and fstatat.
60137         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60138
60139 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60140
60141         * gnulib-tool (func_get_dependencies): Fix sed script to
60142         match only tests.
60143
60144 2007-10-17  Bruno Haible  <bruno@clisp.org>
60145
60146         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60147         allow locale names without encoding suffix.
60148         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60149         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60150
60151 2007-10-16  Bruno Haible  <bruno@clisp.org>
60152
60153         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60154         * lib/getgroups.c (getgroups): Likewise.
60155         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60156
60157 2007-10-16  Bruno Haible  <bruno@clisp.org>
60158
60159         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60160         * modules/malloc-posix (License): Likewise.
60161         * modules/realloc-posix (License): Likewise.
60162         * modules/calloc-posix (License): Likewise.
60163         * modules/intprops (License): Change from GPL to LGPL, with
60164         Paul Eggert's approval.
60165
60166 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60167
60168         Merge glibc changes into lib/glob.c.
60169
60170         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60171         2007-10-15 04:59:03 UTC.  Here are the changes:
60172
60173         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60174
60175         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60176
60177         * lib/glob.c: Add some branch prediction throughout.
60178
60179         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60180
60181         [BZ #5103]
60182         * lib/glob.c (glob): Recognize patterns starting \/.
60183
60184         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60185
60186         [BZ #3996]
60187         * lib/glob.c (attribute_hidden): Define if not defined.
60188         (glob): Unescape dirname, filename or username when needed and not
60189         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60190         is NULL.  Handle unescaped [ in pattern without closing ].
60191         Don't pass GLOB_CHECK down to recursive glob for directories.
60192         (__glob_pattern_type): New function.
60193         (__glob_pattern_p): Implement using __glob_pattern_type.
60194         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60195         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60196         Remove unreachable code.
60197
60198         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60199
60200         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60201         explain why there are no leaks.
60202
60203         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60204
60205         [BZ #3253]
60206         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60207         time, rather allocate increasingly bigger arrays of pointers, if
60208         possible with alloca, if too large with malloc.
60209
60210 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60211
60212         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60213         Problem reported by H.Merijn Brand in
60214         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60215         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60216         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60217
60218 2007-10-15  Bruno Haible  <bruno@clisp.org>
60219
60220         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60221         with explicit rpl_ prefix.
60222         * lib/fopen.c (fopen): Likewise.
60223         * lib/freopen.c (freopen): Likewise.
60224         * lib/iconv.c (iconv): Likewise.
60225         * lib/iconv_close.c (iconv_close): Likewise.
60226
60227 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60228
60229         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60230
60231 2007-10-15  Bruno Haible  <bruno@clisp.org>
60232
60233         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60234         <stddef.h> instead of <stdlib.h> since we only need NULL.
60235         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60236
60237 2007-10-15  Bruno Haible  <bruno@clisp.org>
60238
60239         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60240         Replace paragraph talking about LIBOBJS.
60241         Reported by Colin Watson <cjwatson@debian.org>.
60242
60243 2007-10-15  Bruno Haible  <bruno@clisp.org>
60244
60245         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60246         <stdlib.h> before using NULL.
60247
60248 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60249
60250         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60251         Reported by Albert Chin <china@thewrittenword.com>.
60252
60253 2007-10-14  Bruno Haible  <bruno@clisp.org>
60254
60255         * modules/iconv_open-utf-tests: New file.
60256         * tests/test-iconv-utf.c: New file.
60257
60258         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60259         * modules/iconv_open-utf: New file.
60260         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60261         (iconv, iconv_close): New declarations.
60262         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60263         be defined.
60264         (iconv_open): Add special handling of conversion between UTF-8 and
60265         UTF-{16,32}{BE,LE}.
60266         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60267         * lib/iconv_close.c: New file.
60268         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60269         gl_FUNC_ICONV_OPEN.
60270         (gl_FUNC_ICONV_OPEN): Use it.
60271         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60272         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60273         and REPLACE_ICONV_UTF.
60274         * modules/iconv_open (Depends-on): Add c-strcase.
60275         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60276         ICONV_CONST.
60277         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60278
60279 2007-10-13  Albert Chin  <china@thewrittenword.com>
60280             Bruno Haible  <bruno@clisp.org>
60281
60282         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60283         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60284
60285 2007-10-13  Bruno Haible  <bruno@clisp.org>
60286
60287         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60288         defined, use the ISO C99 inline semantics.
60289         * lib/argp.h (ARGP_EI): Likewise.
60290
60291 2007-10-13  Bruno Haible  <bruno@clisp.org>
60292
60293         Handle 'inline' change in gcc 4.3.0.
60294         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60295         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60296         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60297         argp_fmtstream_point): Disable 'extern' declaration if the function
60298         definition is going to be provided inline.
60299         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60300         semantics, not the ISO C99 inline semantics.
60301         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60302         'extern' declaration if the function definition is going to be provided
60303         inline.
60304         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60305         the GNU C inline semantics, not the ISO C99 inline semantics. With
60306         GCC 4.2, avoid a warning.
60307
60308 2007-10-13  Bruno Haible  <bruno@clisp.org>
60309
60310         * lib/freading.h (freading): Enable the use of __freading for
60311         glibc >= 2.7.
60312         * lib/freading.c (freading): Likewise.
60313
60314 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60315
60316         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60317         "warning: C99 inline functions are not supported; using GNU89".
60318
60319 2007-10-12  Bruno Haible  <bruno@clisp.org>
60320
60321         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60322         of 2.
60323         * tests/test-ceilf2.c: New file.
60324         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60325
60326         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60327         * modules/ceilf-tests: Update.
60328
60329 2007-10-12  Bruno Haible  <bruno@clisp.org>
60330
60331         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60332         of 2.
60333         * tests/test-floorf2.c: New file.
60334         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60335
60336         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60337         * modules/floorf-tests: Update.
60338
60339 2007-10-12  Bruno Haible  <bruno@clisp.org>
60340
60341         * tests/test-trunc2.c: New file.
60342         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60343
60344         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60345         * modules/trunc-tests: Update.
60346
60347 2007-10-12  Bruno Haible  <bruno@clisp.org>
60348
60349         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60350         of 2.
60351         * tests/test-truncf2.c: New file.
60352         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60353
60354         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60355         * modules/truncf-tests: Update.
60356
60357 2007-10-11  Eric Blake  <ebb9@byu.net>
60358
60359         Don't claim strerror is broken on Interix.
60360         * doc/functions/strerror.texi (strerror): Known broken systems are
60361         now Solaris 8, and not Interix.
60362         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60363         Interix on cross-compile.
60364         Reported by Martin Koeppe in
60365         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60366
60367 2007-10-11  Bruno Haible  <bruno@clisp.org>
60368
60369         * modules/i-ring-tests: New file.
60370         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60371         instead of assert.
60372
60373 2007-10-11  Bruno Haible  <bruno@clisp.org>
60374
60375         * modules/filenamecat-tests: New file.
60376         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60377         * lib/filenamecat.c: Remove test code.
60378
60379 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60380
60381         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60382
60383         * lib/strerror.c: Include <string.h> always, to test interface,
60384         and to remove the need for the dummy.
60385         Include intprops.h to compute width instead of doing it ourselves
60386         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60387         (strerror): Define it to return NULL if there's no system strerror.
60388         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60389         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60390         ancient pre-strerror Unix systems well any more.  Saying "unknown
60391         system error" is enough.
60392         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60393         simpler strerror.c implementation.
60394         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60395         Simplify the tests to reflect the simpler strerror implementation.
60396         * modules/strerror (Depends-on): Add intprops.
60397
60398 2007-10-09  Eric Blake  <ebb9@byu.net>
60399
60400         Silence test-fpending.
60401         * modules/fpending-tests (Files): Add wrapper script.
60402         * tests/test-fpending.sh: New file.
60403
60404 2007-10-09  Bruno Haible  <bruno@clisp.org>
60405
60406         * MODULES.html.sh (func_module): Don't create a hyperlink for
60407         function names like 'printf_frexp'.
60408         (Misc): Add crc, memxor.
60409         (Characteristics of floating types): New section.
60410         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60411         isnanf-nolibm, signbit, trunc, truncf, truncl.
60412         (Enhancements for ISO C 99 functions): New subsection Input/output.
60413         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60414         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60415         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60416         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60417         (Enhancements for POSIX:2001 functions): Add chdir-long.
60418         (File system functions): Add areadlink, chdir-safer, read-file.
60419         Remove cycle-check.
60420         (File system as inode set): New section.
60421         (Date and time): Add gethrxtime.
60422         (Multithreading): Add openmp.
60423         (Internationalization functions): Add localename.
60424         (Unicode string functions): Add unistr/u*-mbsnlen.
60425         (Support for maintaining and releasing projects): Add git-version-gen.
60426         (Lone files): Remove directories.
60427
60428 2007-10-08  Ben Pfaff  <blp@gnu.org>
60429
60430         * lib/xmalloca.h: Fix typo in comment.
60431
60432 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60433
60434         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60435         when avoiding problems with integer overflow.  Use a portable test
60436         instead.
60437
60438 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60439
60440         * modules/dummy (License): Change to LGPLv2+.
60441         * modules/float (License): Likewise
60442         * modules/realloc (License): Likewise
60443         * modules/stdlib (License): Likewise
60444
60445 2007-10-07  Bruno Haible  <bruno@clisp.org>
60446
60447         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60448         * floor.c (TWO_MANT_DIG): Likewise.
60449         * ceil.c (TWO_MANT_DIG): Likewise.
60450         Reported by Ben Pfaff.
60451
60452 2007-10-07  Bruno Haible  <bruno@clisp.org>
60453
60454         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60455         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60456         * lib/frexp.c (FUNC): Likewise.
60457         * lib/printf-frexp.h (printf_frexp): Likewise.
60458         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60459         * lib/printf-frexp.c (FUNC): Likewise.
60460         Suggested by Jim Meyering.
60461
60462 2007-10-07  Jim Meyering  <meyering@redhat.com>
60463
60464         Make xnanosleep's integer overflow test more robust.
60465         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60466         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60467
60468 2007-10-07  Bruno Haible  <bruno@clisp.org>
60469
60470         * NEWS: Mention the license change.
60471
60472         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60473         abbreviations in the modules files.
60474
60475         Change copyright notice from GPLv2+ to GPLv3+.
60476         * README: Change copyright notice.
60477         * MODULES.html.sh: Likewise.
60478         * build-aux/bootstrap.conf: Likewise.
60479         * build-aux/config.libpath: Likewise.
60480         * build-aux/csharpcomp.sh.in: Likewise.
60481         * build-aux/csharpexec.sh.in: Likewise.
60482         * build-aux/install-reloc: Likewise.
60483         * build-aux/javacomp.sh.in: Likewise.
60484         * build-aux/javaexec.sh.in: Likewise.
60485         * build-aux/ldd.sh.in: Likewise.
60486         * build-aux/reloc-ldflags: Likewise.
60487         * build-aux/relocatable.sh.in: Likewise.
60488         * build-aux/x-to-1.in: Likewise.
60489         * check-module: Likewise.
60490         * config/srclistvars.sh: Likewise.
60491         * gnulib-tool: Likewise.
60492         * lib/acl-internal.h: Likewise.
60493         * lib/acl.c: Likewise.
60494         * lib/acl.h: Likewise.
60495         * lib/acl_entries.c: Likewise.
60496         * lib/areadlink-with-size.c: Likewise.
60497         * lib/areadlink.c: Likewise.
60498         * lib/areadlink.h: Likewise.
60499         * lib/argmatch.c: Likewise.
60500         * lib/argmatch.h: Likewise.
60501         * lib/argp-ba.c: Likewise.
60502         * lib/argp-eexst.c: Likewise.
60503         * lib/argp-fmtstream.c: Likewise.
60504         * lib/argp-fmtstream.h: Likewise.
60505         * lib/argp-fs-xinl.c: Likewise.
60506         * lib/argp-help.c: Likewise.
60507         * lib/argp-namefrob.h: Likewise.
60508         * lib/argp-parse.c: Likewise.
60509         * lib/argp-pin.c: Likewise.
60510         * lib/argp-pv.c: Likewise.
60511         * lib/argp-pvh.c: Likewise.
60512         * lib/argp-xinl.c: Likewise.
60513         * lib/argp.h: Likewise.
60514         * lib/at-func.c: Likewise.
60515         * lib/atanl.c: Likewise.
60516         * lib/backupfile.c: Likewise.
60517         * lib/backupfile.h: Likewise.
60518         * lib/basename.c: Likewise.
60519         * lib/binary-io.h: Likewise.
60520         * lib/byteswap.in.h: Likewise.
60521         * lib/c-stack.c: Likewise.
60522         * lib/c-stack.h: Likewise.
60523         * lib/c-strcasestr.c: Likewise.
60524         * lib/c-strcasestr.h: Likewise.
60525         * lib/c-strstr.c: Likewise.
60526         * lib/c-strstr.h: Likewise.
60527         * lib/c-strtod.c: Likewise.
60528         * lib/calloc.c: Likewise.
60529         * lib/canon-host.c: Likewise.
60530         * lib/canon-host.h: Likewise.
60531         * lib/canonicalize-lgpl.c: Likewise.
60532         * lib/canonicalize.c: Likewise.
60533         * lib/canonicalize.h: Likewise.
60534         * lib/ceil.c: Likewise.
60535         * lib/ceilf.c: Likewise.
60536         * lib/ceill.c: Likewise.
60537         * lib/chdir-long.c: Likewise.
60538         * lib/chdir-long.h: Likewise.
60539         * lib/chdir-safer.c: Likewise.
60540         * lib/chdir-safer.h: Likewise.
60541         * lib/chown.c: Likewise.
60542         * lib/classpath.c: Likewise.
60543         * lib/classpath.h: Likewise.
60544         * lib/clean-temp.c: Likewise.
60545         * lib/clean-temp.h: Likewise.
60546         * lib/cloexec.c: Likewise.
60547         * lib/close-stream.c: Likewise.
60548         * lib/closein.c: Likewise.
60549         * lib/closein.h: Likewise.
60550         * lib/closeout.c: Likewise.
60551         * lib/closeout.h: Likewise.
60552         * lib/concat-filename.c: Likewise.
60553         * lib/copy-file.c: Likewise.
60554         * lib/copy-file.h: Likewise.
60555         * lib/count-one-bits.h: Likewise.
60556         * lib/crc.c: Likewise.
60557         * lib/crc.h: Likewise.
60558         * lib/creat-safer.c: Likewise.
60559         * lib/csharpcomp.c: Likewise.
60560         * lib/csharpcomp.h: Likewise.
60561         * lib/csharpexec.c: Likewise.
60562         * lib/csharpexec.h: Likewise.
60563         * lib/cycle-check.c: Likewise.
60564         * lib/cycle-check.h: Likewise.
60565         * lib/diacrit.c: Likewise.
60566         * lib/diacrit.h: Likewise.
60567         * lib/diffseq.h: Likewise.
60568         * lib/dirchownmod.c: Likewise.
60569         * lib/dirent.in.h: Likewise.
60570         * lib/dirfd.c: Likewise.
60571         * lib/dirfd.h: Likewise.
60572         * lib/dirname.c: Likewise.
60573         * lib/dirname.h: Likewise.
60574         * lib/dummy.c: Likewise.
60575         * lib/dup-safer.c: Likewise.
60576         * lib/dup2.c: Likewise.
60577         * lib/eealloc.h: Likewise.
60578         * lib/error.c: Likewise.
60579         * lib/error.h: Likewise.
60580         * lib/euidaccess.c: Likewise.
60581         * lib/exclude.c: Likewise.
60582         * lib/exclude.h: Likewise.
60583         * lib/execute.c: Likewise.
60584         * lib/execute.h: Likewise.
60585         * lib/exitfail.c: Likewise.
60586         * lib/exitfail.h: Likewise.
60587         * lib/expl.c: Likewise.
60588         * lib/fatal-signal.c: Likewise.
60589         * lib/fatal-signal.h: Likewise.
60590         * lib/fbufmode.c: Likewise.
60591         * lib/fbufmode.h: Likewise.
60592         * lib/fchdir.c: Likewise.
60593         * lib/fchmodat.c: Likewise.
60594         * lib/fchownat.c: Likewise.
60595         * lib/fcntl--.h: Likewise.
60596         * lib/fcntl-safer.h: Likewise.
60597         * lib/fcntl.in.h: Likewise.
60598         * lib/fd-safer.c: Likewise.
60599         * lib/fflush.c: Likewise.
60600         * lib/file-has-acl.c: Likewise.
60601         * lib/file-set.c: Likewise.
60602         * lib/file-type.c: Likewise.
60603         * lib/file-type.h: Likewise.
60604         * lib/fileblocks.c: Likewise.
60605         * lib/filemode.c: Likewise.
60606         * lib/filemode.h: Likewise.
60607         * lib/filename.h: Likewise.
60608         * lib/filenamecat.c: Likewise.
60609         * lib/filenamecat.h: Likewise.
60610         * lib/findprog.c: Likewise.
60611         * lib/findprog.h: Likewise.
60612         * lib/float.in.h: Likewise.
60613         * lib/floor.c: Likewise.
60614         * lib/floorf.c: Likewise.
60615         * lib/floorl.c: Likewise.
60616         * lib/fopen-safer.c: Likewise.
60617         * lib/fopen.c: Likewise.
60618         * lib/fpending.c: Likewise.
60619         * lib/fpending.h: Likewise.
60620         * lib/fprintf.c: Likewise.
60621         * lib/fprintftime.h: Likewise.
60622         * lib/fpucw.h: Likewise.
60623         * lib/fpurge.c: Likewise.
60624         * lib/fpurge.h: Likewise.
60625         * lib/freadable.c: Likewise.
60626         * lib/freadable.h: Likewise.
60627         * lib/freadahead.c: Likewise.
60628         * lib/freadahead.h: Likewise.
60629         * lib/freading.c: Likewise.
60630         * lib/freading.h: Likewise.
60631         * lib/free.c: Likewise.
60632         * lib/freopen.c: Likewise.
60633         * lib/frexp.c: Likewise.
60634         * lib/frexpl.c: Likewise.
60635         * lib/fseek.c: Likewise.
60636         * lib/fseterr.c: Likewise.
60637         * lib/fseterr.h: Likewise.
60638         * lib/fstatat.c: Likewise.
60639         * lib/fstrcmp.c: Likewise.
60640         * lib/fstrcmp.h: Likewise.
60641         * lib/fsusage.c: Likewise.
60642         * lib/fsusage.h: Likewise.
60643         * lib/ftell.c: Likewise.
60644         * lib/ftello.c: Likewise.
60645         * lib/fts-cycle.c: Likewise.
60646         * lib/fts.c: Likewise.
60647         * lib/fts_.h: Likewise.
60648         * lib/full-read.c: Likewise.
60649         * lib/full-read.h: Likewise.
60650         * lib/full-write.c: Likewise.
60651         * lib/full-write.h: Likewise.
60652         * lib/fwritable.c: Likewise.
60653         * lib/fwritable.h: Likewise.
60654         * lib/fwriteerror.c: Likewise.
60655         * lib/fwriteerror.h: Likewise.
60656         * lib/fwriting.c: Likewise.
60657         * lib/fwriting.h: Likewise.
60658         * lib/gcd.c: Likewise.
60659         * lib/gcd.h: Likewise.
60660         * lib/getcwd.c: Likewise.
60661         * lib/getdate.h: Likewise.
60662         * lib/getdate.y: Likewise.
60663         * lib/getdomainname.c: Likewise.
60664         * lib/getdomainname.h: Likewise.
60665         * lib/getgroups.c: Likewise.
60666         * lib/gethostname.c: Likewise.
60667         * lib/gethrxtime.c: Likewise.
60668         * lib/gethrxtime.h: Likewise.
60669         * lib/getloadavg.c: Likewise.
60670         * lib/getndelim2.c: Likewise.
60671         * lib/getndelim2.h: Likewise.
60672         * lib/getnline.c: Likewise.
60673         * lib/getnline.h: Likewise.
60674         * lib/getopt.c: Likewise.
60675         * lib/getopt.in.h: Likewise.
60676         * lib/getopt1.c: Likewise.
60677         * lib/getopt_int.h: Likewise.
60678         * lib/getpagesize.h: Likewise.
60679         * lib/getsubopt.c: Likewise.
60680         * lib/gettime.c: Likewise.
60681         * lib/getugroups.c: Likewise.
60682         * lib/getugroups.h: Likewise.
60683         * lib/getusershell.c: Likewise.
60684         * lib/gl_anyavltree_list1.h: Likewise.
60685         * lib/gl_anyavltree_list2.h: Likewise.
60686         * lib/gl_anyhash_list1.h: Likewise.
60687         * lib/gl_anyhash_list2.h: Likewise.
60688         * lib/gl_anylinked_list1.h: Likewise.
60689         * lib/gl_anylinked_list2.h: Likewise.
60690         * lib/gl_anyrbtree_list1.h: Likewise.
60691         * lib/gl_anyrbtree_list2.h: Likewise.
60692         * lib/gl_anytree_list1.h: Likewise.
60693         * lib/gl_anytree_list2.h: Likewise.
60694         * lib/gl_anytree_oset.h: Likewise.
60695         * lib/gl_anytreehash_list1.h: Likewise.
60696         * lib/gl_anytreehash_list2.h: Likewise.
60697         * lib/gl_array_list.c: Likewise.
60698         * lib/gl_array_list.h: Likewise.
60699         * lib/gl_array_oset.c: Likewise.
60700         * lib/gl_array_oset.h: Likewise.
60701         * lib/gl_avltree_list.c: Likewise.
60702         * lib/gl_avltree_list.h: Likewise.
60703         * lib/gl_avltree_oset.c: Likewise.
60704         * lib/gl_avltree_oset.h: Likewise.
60705         * lib/gl_avltreehash_list.c: Likewise.
60706         * lib/gl_avltreehash_list.h: Likewise.
60707         * lib/gl_carray_list.c: Likewise.
60708         * lib/gl_carray_list.h: Likewise.
60709         * lib/gl_linked_list.c: Likewise.
60710         * lib/gl_linked_list.h: Likewise.
60711         * lib/gl_linkedhash_list.c: Likewise.
60712         * lib/gl_linkedhash_list.h: Likewise.
60713         * lib/gl_list.c: Likewise.
60714         * lib/gl_list.h: Likewise.
60715         * lib/gl_oset.c: Likewise.
60716         * lib/gl_oset.h: Likewise.
60717         * lib/gl_rbtree_list.c: Likewise.
60718         * lib/gl_rbtree_list.h: Likewise.
60719         * lib/gl_rbtree_oset.c: Likewise.
60720         * lib/gl_rbtree_oset.h: Likewise.
60721         * lib/gl_rbtreehash_list.c: Likewise.
60722         * lib/gl_rbtreehash_list.h: Likewise.
60723         * lib/gl_sublist.c: Likewise.
60724         * lib/gl_sublist.h: Likewise.
60725         * lib/group-member.c: Likewise.
60726         * lib/group-member.h: Likewise.
60727         * lib/hard-locale.c: Likewise.
60728         * lib/hard-locale.h: Likewise.
60729         * lib/hash-pjw.c: Likewise.
60730         * lib/hash-pjw.h: Likewise.
60731         * lib/hash-triple.c: Likewise.
60732         * lib/hash.c: Likewise.
60733         * lib/hash.h: Likewise.
60734         * lib/human.c: Likewise.
60735         * lib/human.h: Likewise.
60736         * lib/i-ring.c: Likewise.
60737         * lib/i-ring.h: Likewise.
60738         * lib/idcache.c: Likewise.
60739         * lib/imaxabs.c: Likewise.
60740         * lib/imaxdiv.c: Likewise.
60741         * lib/inet_pton.c: Likewise.
60742         * lib/inet_pton.h: Likewise.
60743         * lib/intprops.h: Likewise.
60744         * lib/inttostr.c: Likewise.
60745         * lib/inttostr.h: Likewise.
60746         * lib/inttypes.in.h: Likewise.
60747         * lib/isapipe.c: Likewise.
60748         * lib/isdir.c: Likewise.
60749         * lib/isnan.c: Likewise.
60750         * lib/isnan.h: Likewise.
60751         * lib/isnanf.c: Likewise.
60752         * lib/isnanf.h: Likewise.
60753         * lib/isnanl-nolibm.h: Likewise.
60754         * lib/isnanl.c: Likewise.
60755         * lib/isnanl.h: Likewise.
60756         * lib/javacomp.c: Likewise.
60757         * lib/javacomp.h: Likewise.
60758         * lib/javaexec.c: Likewise.
60759         * lib/javaexec.h: Likewise.
60760         * lib/javaversion.c: Likewise.
60761         * lib/javaversion.h: Likewise.
60762         * lib/javaversion.java: Likewise.
60763         * lib/lbrkprop.h: Likewise.
60764         * lib/lchmod.h: Likewise.
60765         * lib/lchown.c: Likewise.
60766         * lib/ldexpl.c: Likewise.
60767         * lib/linebreak.c: Likewise.
60768         * lib/linebreak.h: Likewise.
60769         * lib/linebuffer.c: Likewise.
60770         * lib/linebuffer.h: Likewise.
60771         * lib/locale.in.h: Likewise.
60772         * lib/logl.c: Likewise.
60773         * lib/long-options.c: Likewise.
60774         * lib/long-options.h: Likewise.
60775         * lib/lstat.c: Likewise.
60776         * lib/lstat.h: Likewise.
60777         * lib/math.in.h: Likewise.
60778         * lib/mbchar.c: Likewise.
60779         * lib/mbchar.h: Likewise.
60780         * lib/mbfile.h: Likewise.
60781         * lib/mbiter.h: Likewise.
60782         * lib/mbscasecmp.c: Likewise.
60783         * lib/mbscasestr.c: Likewise.
60784         * lib/mbschr.c: Likewise.
60785         * lib/mbscspn.c: Likewise.
60786         * lib/mbslen.c: Likewise.
60787         * lib/mbsncasecmp.c: Likewise.
60788         * lib/mbsnlen.c: Likewise.
60789         * lib/mbspbrk.c: Likewise.
60790         * lib/mbspcasecmp.c: Likewise.
60791         * lib/mbsrchr.c: Likewise.
60792         * lib/mbssep.c: Likewise.
60793         * lib/mbsspn.c: Likewise.
60794         * lib/mbsstr.c: Likewise.
60795         * lib/mbstok_r.c: Likewise.
60796         * lib/mbswidth.c: Likewise.
60797         * lib/mbswidth.h: Likewise.
60798         * lib/mbuiter.h: Likewise.
60799         * lib/memcasecmp.c: Likewise.
60800         * lib/memcasecmp.h: Likewise.
60801         * lib/memchr.c: Likewise.
60802         * lib/memcmp.c: Likewise.
60803         * lib/memcoll.c: Likewise.
60804         * lib/memcoll.h: Likewise.
60805         * lib/memcpy.c: Likewise.
60806         * lib/memrchr.c: Likewise.
60807         * lib/mkancesdirs.c: Likewise.
60808         * lib/mkdir-p.c: Likewise.
60809         * lib/mkdir-p.h: Likewise.
60810         * lib/mkdir.c: Likewise.
60811         * lib/mkdirat.c: Likewise.
60812         * lib/mkdtemp.c: Likewise.
60813         * lib/mkstemp-safer.c: Likewise.
60814         * lib/mkstemp.c: Likewise.
60815         * lib/modechange.c: Likewise.
60816         * lib/modechange.h: Likewise.
60817         * lib/mountlist.c: Likewise.
60818         * lib/mountlist.h: Likewise.
60819         * lib/mpsort.c: Likewise.
60820         * lib/nanosleep.c: Likewise.
60821         * lib/obstack.c: Likewise.
60822         * lib/obstack.h: Likewise.
60823         * lib/open-safer.c: Likewise.
60824         * lib/open.c: Likewise.
60825         * lib/openat-die.c: Likewise.
60826         * lib/openat-priv.h: Likewise.
60827         * lib/openat-proc.c: Likewise.
60828         * lib/openat.c: Likewise.
60829         * lib/openat.h: Likewise.
60830         * lib/pagealign_alloc.c: Likewise.
60831         * lib/pagealign_alloc.h: Likewise.
60832         * lib/physmem.c: Likewise.
60833         * lib/physmem.h: Likewise.
60834         * lib/pipe-safer.c: Likewise.
60835         * lib/pipe.c: Likewise.
60836         * lib/pipe.h: Likewise.
60837         * lib/posixtm.c: Likewise.
60838         * lib/posixtm.h: Likewise.
60839         * lib/posixver.c: Likewise.
60840         * lib/printf-frexp.c: Likewise.
60841         * lib/printf-frexp.h: Likewise.
60842         * lib/printf-frexpl.c: Likewise.
60843         * lib/printf-frexpl.h: Likewise.
60844         * lib/printf.c: Likewise.
60845         * lib/progname.c: Likewise.
60846         * lib/progname.h: Likewise.
60847         * lib/progreloc.c: Likewise.
60848         * lib/putenv.c: Likewise.
60849         * lib/quote.c: Likewise.
60850         * lib/quote.h: Likewise.
60851         * lib/quotearg.c: Likewise.
60852         * lib/quotearg.h: Likewise.
60853         * lib/raise.c: Likewise.
60854         * lib/readline.c: Likewise.
60855         * lib/readline.h: Likewise.
60856         * lib/readlink.c: Likewise.
60857         * lib/readtokens.c: Likewise.
60858         * lib/readtokens.h: Likewise.
60859         * lib/readtokens0.c: Likewise.
60860         * lib/readtokens0.h: Likewise.
60861         * lib/readutmp.c: Likewise.
60862         * lib/readutmp.h: Likewise.
60863         * lib/realloc.c: Likewise.
60864         * lib/relocwrapper.c: Likewise.
60865         * lib/rename-dest-slash.c: Likewise.
60866         * lib/rename.c: Likewise.
60867         * lib/rmdir.c: Likewise.
60868         * lib/rpmatch.c: Likewise.
60869         * lib/safe-read.c: Likewise.
60870         * lib/safe-read.h: Likewise.
60871         * lib/safe-write.c: Likewise.
60872         * lib/safe-write.h: Likewise.
60873         * lib/same-inode.h: Likewise.
60874         * lib/same.c: Likewise.
60875         * lib/same.h: Likewise.
60876         * lib/save-cwd.c: Likewise.
60877         * lib/save-cwd.h: Likewise.
60878         * lib/savedir.c: Likewise.
60879         * lib/savedir.h: Likewise.
60880         * lib/savewd.c: Likewise.
60881         * lib/savewd.h: Likewise.
60882         * lib/search.in.h: Likewise.
60883         * lib/setenv.c: Likewise.
60884         * lib/setenv.h: Likewise.
60885         * lib/settime.c: Likewise.
60886         * lib/sh-quote.c: Likewise.
60887         * lib/sh-quote.h: Likewise.
60888         * lib/sig2str.c: Likewise.
60889         * lib/sig2str.h: Likewise.
60890         * lib/signal.in.h: Likewise.
60891         * lib/signbitd.c: Likewise.
60892         * lib/signbitf.c: Likewise.
60893         * lib/signbitl.c: Likewise.
60894         * lib/sigprocmask.c: Likewise.
60895         * lib/sincosl.c: Likewise.
60896         * lib/sleep.c: Likewise.
60897         * lib/sprintf.c: Likewise.
60898         * lib/sqrtl.c: Likewise.
60899         * lib/stat-time.h: Likewise.
60900         * lib/stdio--.h: Likewise.
60901         * lib/stdio-safer.h: Likewise.
60902         * lib/stdlib--.h: Likewise.
60903         * lib/stdlib-safer.h: Likewise.
60904         * lib/stdlib.in.h: Likewise.
60905         * lib/stpcpy.c: Likewise.
60906         * lib/stpncpy.c: Likewise.
60907         * lib/strchrnul.c: Likewise.
60908         * lib/strcspn.c: Likewise.
60909         * lib/strerror.c: Likewise.
60910         * lib/strftime.c: Likewise.
60911         * lib/strftime.h: Likewise.
60912         * lib/striconveh.c: Likewise.
60913         * lib/striconveh.h: Likewise.
60914         * lib/striconveha.c: Likewise.
60915         * lib/striconveha.h: Likewise.
60916         * lib/stripslash.c: Likewise.
60917         * lib/strnlen1.c: Likewise.
60918         * lib/strnlen1.h: Likewise.
60919         * lib/strtod.c: Likewise.
60920         * lib/strtoimax.c: Likewise.
60921         * lib/strtok_r.c: Likewise.
60922         * lib/strtol.c: Likewise.
60923         * lib/strtoll.c: Likewise.
60924         * lib/strtoul.c: Likewise.
60925         * lib/strtoull.c: Likewise.
60926         * lib/sysexits.in.h: Likewise.
60927         * lib/tempname.c: Likewise.
60928         * lib/tempname.h: Likewise.
60929         * lib/timespec.h: Likewise.
60930         * lib/tls.c: Likewise.
60931         * lib/tls.h: Likewise.
60932         * lib/tmpdir.c: Likewise.
60933         * lib/tmpdir.h: Likewise.
60934         * lib/tmpfile-safer.c: Likewise.
60935         * lib/tmpfile.c: Likewise.
60936         * lib/trigl.c: Likewise.
60937         * lib/trigl.h: Likewise.
60938         * lib/trim.c: Likewise.
60939         * lib/trim.h: Likewise.
60940         * lib/trunc.c: Likewise.
60941         * lib/truncf.c: Likewise.
60942         * lib/truncl.c: Likewise.
60943         * lib/tsearch.c: Likewise.
60944         * lib/unicodeio.c: Likewise.
60945         * lib/unicodeio.h: Likewise.
60946         * lib/unistd--.h: Likewise.
60947         * lib/unistd-safer.h: Likewise.
60948         * lib/unistdio/ulc-fprintf.c: Likewise.
60949         * lib/unistdio/ulc-vfprintf.c: Likewise.
60950         * lib/unlinkdir.c: Likewise.
60951         * lib/unlinkdir.h: Likewise.
60952         * lib/unlocked-io.h: Likewise.
60953         * lib/unsetenv.c: Likewise.
60954         * lib/userspec.c: Likewise.
60955         * lib/utime.c: Likewise.
60956         * lib/utimecmp.c: Likewise.
60957         * lib/utimecmp.h: Likewise.
60958         * lib/utimens.c: Likewise.
60959         * lib/verify.h: Likewise.
60960         * lib/verror.c: Likewise.
60961         * lib/verror.h: Likewise.
60962         * lib/version-etc-fsf.c: Likewise.
60963         * lib/version-etc.c: Likewise.
60964         * lib/version-etc.h: Likewise.
60965         * lib/vfprintf.c: Likewise.
60966         * lib/vprintf.c: Likewise.
60967         * lib/vsprintf.c: Likewise.
60968         * lib/w32spawn.h: Likewise.
60969         * lib/wait-process.c: Likewise.
60970         * lib/wait-process.h: Likewise.
60971         * lib/wcwidth.c: Likewise.
60972         * lib/write-any-file.c: Likewise.
60973         * lib/xalloc-die.c: Likewise.
60974         * lib/xalloc.h: Likewise.
60975         * lib/xasprintf.c: Likewise.
60976         * lib/xgetcwd.c: Likewise.
60977         * lib/xgetcwd.h: Likewise.
60978         * lib/xgetdomainname.c: Likewise.
60979         * lib/xgetdomainname.h: Likewise.
60980         * lib/xgethostname.c: Likewise.
60981         * lib/xmalloc.c: Likewise.
60982         * lib/xmalloca.c: Likewise.
60983         * lib/xmalloca.h: Likewise.
60984         * lib/xmemcoll.c: Likewise.
60985         * lib/xnanosleep.c: Likewise.
60986         * lib/xreadlink.c: Likewise.
60987         * lib/xreadlink.h: Likewise.
60988         * lib/xsetenv.c: Likewise.
60989         * lib/xsetenv.h: Likewise.
60990         * lib/xstriconv.c: Likewise.
60991         * lib/xstriconv.h: Likewise.
60992         * lib/xstrndup.c: Likewise.
60993         * lib/xstrndup.h: Likewise.
60994         * lib/xstrtod.c: Likewise.
60995         * lib/xstrtod.h: Likewise.
60996         * lib/xstrtol-error.c: Likewise.
60997         * lib/xstrtol.c: Likewise.
60998         * lib/xstrtol.h: Likewise.
60999         * lib/xtime.h: Likewise.
61000         * lib/xvasprintf.c: Likewise.
61001         * lib/xvasprintf.h: Likewise.
61002         * lib/yesno.c: Likewise.
61003         * lib/yesno.h: Likewise.
61004         * posix-modules: Likewise.
61005         * tests/test-alloca-opt.c: Likewise.
61006         * tests/test-arcfour.c: Likewise.
61007         * tests/test-arctwo.c: Likewise.
61008         * tests/test-argmatch.c: Likewise.
61009         * tests/test-argp-2.sh: Likewise.
61010         * tests/test-argp.c: Likewise.
61011         * tests/test-arpa_inet.c: Likewise.
61012         * tests/test-array_list.c: Likewise.
61013         * tests/test-array_oset.c: Likewise.
61014         * tests/test-atexit.c: Likewise.
61015         * tests/test-avltree_list.c: Likewise.
61016         * tests/test-avltree_oset.c: Likewise.
61017         * tests/test-avltreehash_list.c: Likewise.
61018         * tests/test-base64.c: Likewise.
61019         * tests/test-binary-io.c: Likewise.
61020         * tests/test-byteswap.c: Likewise.
61021         * tests/test-c-ctype.c: Likewise.
61022         * tests/test-c-strcasecmp.c: Likewise.
61023         * tests/test-c-strcasestr.c: Likewise.
61024         * tests/test-c-strncasecmp.c: Likewise.
61025         * tests/test-c-strstr.c: Likewise.
61026         * tests/test-canonicalize-lgpl.c: Likewise.
61027         * tests/test-canonicalize.c: Likewise.
61028         * tests/test-carray_list.c: Likewise.
61029         * tests/test-ceilf.c: Likewise.
61030         * tests/test-ceill.c: Likewise.
61031         * tests/test-count-one-bits.c: Likewise.
61032         * tests/test-crc.c: Likewise.
61033         * tests/test-dirname.c: Likewise.
61034         * tests/test-fbufmode.c: Likewise.
61035         * tests/test-fcntl.c: Likewise.
61036         * tests/test-fflush.c: Likewise.
61037         * tests/test-floorf.c: Likewise.
61038         * tests/test-floorl.c: Likewise.
61039         * tests/test-fopen.c: Likewise.
61040         * tests/test-fprintf-posix.c: Likewise.
61041         * tests/test-fprintf-posix.h: Likewise.
61042         * tests/test-fpurge.c: Likewise.
61043         * tests/test-freadable.c: Likewise.
61044         * tests/test-freadahead.c: Likewise.
61045         * tests/test-freading.c: Likewise.
61046         * tests/test-freopen.c: Likewise.
61047         * tests/test-frexp.c: Likewise.
61048         * tests/test-frexpl.c: Likewise.
61049         * tests/test-fseek.c: Likewise.
61050         * tests/test-fseeko.c: Likewise.
61051         * tests/test-fseterr.c: Likewise.
61052         * tests/test-fstrcmp.c: Likewise.
61053         * tests/test-ftell.c: Likewise.
61054         * tests/test-ftello.c: Likewise.
61055         * tests/test-fwritable.c: Likewise.
61056         * tests/test-fwriting.c: Likewise.
61057         * tests/test-getaddrinfo.c: Likewise.
61058         * tests/test-getpass.c: Likewise.
61059         * tests/test-gettimeofday.c: Likewise.
61060         * tests/test-hmac-md5.c: Likewise.
61061         * tests/test-hmac-sha1.c: Likewise.
61062         * tests/test-iconv.c: Likewise.
61063         * tests/test-iconvme.c: Likewise.
61064         * tests/test-inttypes.c: Likewise.
61065         * tests/test-isnan.c: Likewise.
61066         * tests/test-isnanf.c: Likewise.
61067         * tests/test-isnanl-nolibm.c: Likewise.
61068         * tests/test-isnanl.c: Likewise.
61069         * tests/test-isnanl.h: Likewise.
61070         * tests/test-ldexpl.c: Likewise.
61071         * tests/test-linked_list.c: Likewise.
61072         * tests/test-linkedhash_list.c: Likewise.
61073         * tests/test-locale.c: Likewise.
61074         * tests/test-localename.c: Likewise.
61075         * tests/test-lock.c: Likewise.
61076         * tests/test-lseek.c: Likewise.
61077         * tests/test-malloca.c: Likewise.
61078         * tests/test-math.c: Likewise.
61079         * tests/test-mbscasecmp.c: Likewise.
61080         * tests/test-mbscasestr1.c: Likewise.
61081         * tests/test-mbscasestr2.c: Likewise.
61082         * tests/test-mbscasestr3.c: Likewise.
61083         * tests/test-mbscasestr4.c: Likewise.
61084         * tests/test-mbschr.c: Likewise.
61085         * tests/test-mbscspn.c: Likewise.
61086         * tests/test-mbsncasecmp.c: Likewise.
61087         * tests/test-mbspbrk.c: Likewise.
61088         * tests/test-mbspcasecmp.c: Likewise.
61089         * tests/test-mbsrchr.c: Likewise.
61090         * tests/test-mbsspn.c: Likewise.
61091         * tests/test-mbsstr1.c: Likewise.
61092         * tests/test-mbsstr2.c: Likewise.
61093         * tests/test-mbsstr3.c: Likewise.
61094         * tests/test-md5.c: Likewise.
61095         * tests/test-memmem.c: Likewise.
61096         * tests/test-netinet_in.c: Likewise.
61097         * tests/test-open.c: Likewise.
61098         * tests/test-printf-frexp.c: Likewise.
61099         * tests/test-printf-frexpl.c: Likewise.
61100         * tests/test-printf-posix.c: Likewise.
61101         * tests/test-printf-posix.h: Likewise.
61102         * tests/test-rbtree_list.c: Likewise.
61103         * tests/test-rbtree_oset.c: Likewise.
61104         * tests/test-rbtreehash_list.c: Likewise.
61105         * tests/test-read-file.c: Likewise.
61106         * tests/test-rijndael.c: Likewise.
61107         * tests/test-search.c: Likewise.
61108         * tests/test-signbit.c: Likewise.
61109         * tests/test-sleep.c: Likewise.
61110         * tests/test-snprintf-posix.c: Likewise.
61111         * tests/test-snprintf-posix.h: Likewise.
61112         * tests/test-snprintf.c: Likewise.
61113         * tests/test-sprintf-posix.c: Likewise.
61114         * tests/test-sprintf-posix.h: Likewise.
61115         * tests/test-stat-time.c: Likewise.
61116         * tests/test-stdbool.c: Likewise.
61117         * tests/test-stdint.c: Likewise.
61118         * tests/test-stdio.c: Likewise.
61119         * tests/test-stdlib.c: Likewise.
61120         * tests/test-stpncpy.c: Likewise.
61121         * tests/test-strcasestr.c: Likewise.
61122         * tests/test-striconv.c: Likewise.
61123         * tests/test-striconveh.c: Likewise.
61124         * tests/test-striconveha.c: Likewise.
61125         * tests/test-string.c: Likewise.
61126         * tests/test-sys_select.c: Likewise.
61127         * tests/test-sys_socket.c: Likewise.
61128         * tests/test-sys_stat.c: Likewise.
61129         * tests/test-sys_time.c: Likewise.
61130         * tests/test-sysexits.c: Likewise.
61131         * tests/test-time.c: Likewise.
61132         * tests/test-tls.c: Likewise.
61133         * tests/test-trunc.c: Likewise.
61134         * tests/test-truncf.c: Likewise.
61135         * tests/test-truncl.c: Likewise.
61136         * tests/test-unistd.c: Likewise.
61137         * tests/test-vasnprintf-posix.c: Likewise.
61138         * tests/test-vasnprintf-posix2.c: Likewise.
61139         * tests/test-vasnprintf.c: Likewise.
61140         * tests/test-vasprintf-posix.c: Likewise.
61141         * tests/test-vasprintf.c: Likewise.
61142         * tests/test-verify.c: Likewise.
61143         * tests/test-vfprintf-posix.c: Likewise.
61144         * tests/test-vprintf-posix.c: Likewise.
61145         * tests/test-vsnprintf-posix.c: Likewise.
61146         * tests/test-vsnprintf.c: Likewise.
61147         * tests/test-vsprintf-posix.c: Likewise.
61148         * tests/test-wchar.c: Likewise.
61149         * tests/test-wctype.c: Likewise.
61150         * tests/test-wcwidth.c: Likewise.
61151         * tests/test-xstrtol.c: Likewise.
61152         * tests/test-xvasprintf.c: Likewise.
61153         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61154         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61155         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61156         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61157         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61158         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61159         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61160         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61161         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61162         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61163         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61164         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61165         * tests/uniname/test-uninames.c: Likewise.
61166         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61167         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61168         * tests/unistdio/test-u16-printf1.h: Likewise.
61169         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61170         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61171         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61172         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61173         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61174         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61175         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61176         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61177         * tests/unistdio/test-u32-printf1.h: Likewise.
61178         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61179         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61180         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61181         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61182         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61183         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61184         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61185         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61186         * tests/unistdio/test-u8-printf1.h: Likewise.
61187         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61188         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61189         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61190         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61191         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61192         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61193         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61194         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61195         * tests/unistdio/test-ulc-printf1.h: Likewise.
61196         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61197         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61198         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61199         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61200         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61201         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61202         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61203         * tests/uniwidth/test-u16-width.c: Likewise.
61204         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61205         * tests/uniwidth/test-u32-width.c: Likewise.
61206         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61207         * tests/uniwidth/test-u8-width.c: Likewise.
61208         * tests/uniwidth/test-uc_width.c: Likewise.
61209         * config/srclist-update: Likewise.
61210         (fixlicense): Update to GPLv3+.
61211
61212         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61213         * tests/test-tsearch.c: Change copyright notice.
61214
61215         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61216         * lib/c-strcaseeq.h: Change copyright notice.
61217         * lib/streq.h: Likewise.
61218         * lib/uniconv.h: Likewise.
61219         * lib/uniconv/u-conv-from-enc.h: Likewise.
61220         * lib/uniconv/u-conv-to-enc.h: Likewise.
61221         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61222         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61223         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61224         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61225         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61226         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61227         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61228         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61229         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61230         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61231         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61232         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61233         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61234         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61235         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61236         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61237         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61238         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61239         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61240         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61241         * lib/uniname.h: Likewise.
61242         * lib/uniname/uniname.c: Likewise.
61243         * lib/unistdio.h: Likewise.
61244         * lib/unistdio/u-asnprintf.h: Likewise.
61245         * lib/unistdio/u-asprintf.h: Likewise.
61246         * lib/unistdio/u-printf-args.c: Likewise.
61247         * lib/unistdio/u-printf-args.h: Likewise.
61248         * lib/unistdio/u-printf-parse.h: Likewise.
61249         * lib/unistdio/u-snprintf.h: Likewise.
61250         * lib/unistdio/u-sprintf.h: Likewise.
61251         * lib/unistdio/u-vasprintf.h: Likewise.
61252         * lib/unistdio/u-vsnprintf.h: Likewise.
61253         * lib/unistdio/u-vsprintf.h: Likewise.
61254         * lib/unistdio/u16-asnprintf.c: Likewise.
61255         * lib/unistdio/u16-asprintf.c: Likewise.
61256         * lib/unistdio/u16-printf-parse.c: Likewise.
61257         * lib/unistdio/u16-snprintf.c: Likewise.
61258         * lib/unistdio/u16-sprintf.c: Likewise.
61259         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61260         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61261         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61262         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61263         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61264         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61265         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61266         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61267         * lib/unistdio/u16-vasnprintf.c: Likewise.
61268         * lib/unistdio/u16-vasprintf.c: Likewise.
61269         * lib/unistdio/u16-vsnprintf.c: Likewise.
61270         * lib/unistdio/u16-vsprintf.c: Likewise.
61271         * lib/unistdio/u32-asnprintf.c: Likewise.
61272         * lib/unistdio/u32-asprintf.c: Likewise.
61273         * lib/unistdio/u32-printf-parse.c: Likewise.
61274         * lib/unistdio/u32-snprintf.c: Likewise.
61275         * lib/unistdio/u32-sprintf.c: Likewise.
61276         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61277         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61278         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61279         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61280         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61281         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61282         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61283         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61284         * lib/unistdio/u32-vasnprintf.c: Likewise.
61285         * lib/unistdio/u32-vasprintf.c: Likewise.
61286         * lib/unistdio/u32-vsnprintf.c: Likewise.
61287         * lib/unistdio/u32-vsprintf.c: Likewise.
61288         * lib/unistdio/u8-asnprintf.c: Likewise.
61289         * lib/unistdio/u8-asprintf.c: Likewise.
61290         * lib/unistdio/u8-printf-parse.c: Likewise.
61291         * lib/unistdio/u8-snprintf.c: Likewise.
61292         * lib/unistdio/u8-sprintf.c: Likewise.
61293         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61294         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61295         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61296         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61297         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61298         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61299         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61300         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61301         * lib/unistdio/u8-vasnprintf.c: Likewise.
61302         * lib/unistdio/u8-vasprintf.c: Likewise.
61303         * lib/unistdio/u8-vsnprintf.c: Likewise.
61304         * lib/unistdio/u8-vsprintf.c: Likewise.
61305         * lib/unistdio/ulc-asnprintf.c: Likewise.
61306         * lib/unistdio/ulc-asprintf.c: Likewise.
61307         * lib/unistdio/ulc-printf-parse.c: Likewise.
61308         * lib/unistdio/ulc-snprintf.c: Likewise.
61309         * lib/unistdio/ulc-sprintf.c: Likewise.
61310         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61311         * lib/unistdio/ulc-vasprintf.c: Likewise.
61312         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61313         * lib/unistdio/ulc-vsprintf.c: Likewise.
61314         * lib/unistr.h: Likewise.
61315         * lib/unistr/u-cpy-alloc.h: Likewise.
61316         * lib/unistr/u-cpy.h: Likewise.
61317         * lib/unistr/u-endswith.h: Likewise.
61318         * lib/unistr/u-move.h: Likewise.
61319         * lib/unistr/u-set.h: Likewise.
61320         * lib/unistr/u-startswith.h: Likewise.
61321         * lib/unistr/u-stpcpy.h: Likewise.
61322         * lib/unistr/u-stpncpy.h: Likewise.
61323         * lib/unistr/u-strcat.h: Likewise.
61324         * lib/unistr/u-strcpy.h: Likewise.
61325         * lib/unistr/u-strcspn.h: Likewise.
61326         * lib/unistr/u-strdup.h: Likewise.
61327         * lib/unistr/u-strlen.h: Likewise.
61328         * lib/unistr/u-strncat.h: Likewise.
61329         * lib/unistr/u-strncpy.h: Likewise.
61330         * lib/unistr/u-strnlen.h: Likewise.
61331         * lib/unistr/u-strpbrk.h: Likewise.
61332         * lib/unistr/u-strspn.h: Likewise.
61333         * lib/unistr/u-strstr.h: Likewise.
61334         * lib/unistr/u-strtok.h: Likewise.
61335         * lib/unistr/u16-check.c: Likewise.
61336         * lib/unistr/u16-chr.c: Likewise.
61337         * lib/unistr/u16-cmp.c: Likewise.
61338         * lib/unistr/u16-cpy-alloc.c: Likewise.
61339         * lib/unistr/u16-cpy.c: Likewise.
61340         * lib/unistr/u16-endswith.c: Likewise.
61341         * lib/unistr/u16-mblen.c: Likewise.
61342         * lib/unistr/u16-mbsnlen.c: Likewise.
61343         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61344         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61345         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61346         * lib/unistr/u16-mbtouc.c: Likewise.
61347         * lib/unistr/u16-mbtoucr.c: Likewise.
61348         * lib/unistr/u16-move.c: Likewise.
61349         * lib/unistr/u16-next.c: Likewise.
61350         * lib/unistr/u16-prev.c: Likewise.
61351         * lib/unistr/u16-set.c: Likewise.
61352         * lib/unistr/u16-startswith.c: Likewise.
61353         * lib/unistr/u16-stpcpy.c: Likewise.
61354         * lib/unistr/u16-stpncpy.c: Likewise.
61355         * lib/unistr/u16-strcat.c: Likewise.
61356         * lib/unistr/u16-strchr.c: Likewise.
61357         * lib/unistr/u16-strcmp.c: Likewise.
61358         * lib/unistr/u16-strcpy.c: Likewise.
61359         * lib/unistr/u16-strcspn.c: Likewise.
61360         * lib/unistr/u16-strdup.c: Likewise.
61361         * lib/unistr/u16-strlen.c: Likewise.
61362         * lib/unistr/u16-strmblen.c: Likewise.
61363         * lib/unistr/u16-strmbtouc.c: Likewise.
61364         * lib/unistr/u16-strncat.c: Likewise.
61365         * lib/unistr/u16-strncmp.c: Likewise.
61366         * lib/unistr/u16-strncpy.c: Likewise.
61367         * lib/unistr/u16-strnlen.c: Likewise.
61368         * lib/unistr/u16-strpbrk.c: Likewise.
61369         * lib/unistr/u16-strrchr.c: Likewise.
61370         * lib/unistr/u16-strspn.c: Likewise.
61371         * lib/unistr/u16-strstr.c: Likewise.
61372         * lib/unistr/u16-strtok.c: Likewise.
61373         * lib/unistr/u16-to-u32.c: Likewise.
61374         * lib/unistr/u16-to-u8.c: Likewise.
61375         * lib/unistr/u16-uctomb-aux.c: Likewise.
61376         * lib/unistr/u16-uctomb.c: Likewise.
61377         * lib/unistr/u32-check.c: Likewise.
61378         * lib/unistr/u32-chr.c: Likewise.
61379         * lib/unistr/u32-cmp.c: Likewise.
61380         * lib/unistr/u32-cpy-alloc.c: Likewise.
61381         * lib/unistr/u32-cpy.c: Likewise.
61382         * lib/unistr/u32-endswith.c: Likewise.
61383         * lib/unistr/u32-mblen.c: Likewise.
61384         * lib/unistr/u32-mbsnlen.c: Likewise.
61385         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61386         * lib/unistr/u32-mbtouc.c: Likewise.
61387         * lib/unistr/u32-mbtoucr.c: Likewise.
61388         * lib/unistr/u32-move.c: Likewise.
61389         * lib/unistr/u32-next.c: Likewise.
61390         * lib/unistr/u32-prev.c: Likewise.
61391         * lib/unistr/u32-set.c: Likewise.
61392         * lib/unistr/u32-startswith.c: Likewise.
61393         * lib/unistr/u32-stpcpy.c: Likewise.
61394         * lib/unistr/u32-stpncpy.c: Likewise.
61395         * lib/unistr/u32-strcat.c: Likewise.
61396         * lib/unistr/u32-strchr.c: Likewise.
61397         * lib/unistr/u32-strcmp.c: Likewise.
61398         * lib/unistr/u32-strcpy.c: Likewise.
61399         * lib/unistr/u32-strcspn.c: Likewise.
61400         * lib/unistr/u32-strdup.c: Likewise.
61401         * lib/unistr/u32-strlen.c: Likewise.
61402         * lib/unistr/u32-strmblen.c: Likewise.
61403         * lib/unistr/u32-strmbtouc.c: Likewise.
61404         * lib/unistr/u32-strncat.c: Likewise.
61405         * lib/unistr/u32-strncmp.c: Likewise.
61406         * lib/unistr/u32-strncpy.c: Likewise.
61407         * lib/unistr/u32-strnlen.c: Likewise.
61408         * lib/unistr/u32-strpbrk.c: Likewise.
61409         * lib/unistr/u32-strrchr.c: Likewise.
61410         * lib/unistr/u32-strspn.c: Likewise.
61411         * lib/unistr/u32-strstr.c: Likewise.
61412         * lib/unistr/u32-strtok.c: Likewise.
61413         * lib/unistr/u32-to-u16.c: Likewise.
61414         * lib/unistr/u32-to-u8.c: Likewise.
61415         * lib/unistr/u32-uctomb.c: Likewise.
61416         * lib/unistr/u8-check.c: Likewise.
61417         * lib/unistr/u8-chr.c: Likewise.
61418         * lib/unistr/u8-cmp.c: Likewise.
61419         * lib/unistr/u8-cpy-alloc.c: Likewise.
61420         * lib/unistr/u8-cpy.c: Likewise.
61421         * lib/unistr/u8-endswith.c: Likewise.
61422         * lib/unistr/u8-mblen.c: Likewise.
61423         * lib/unistr/u8-mbsnlen.c: Likewise.
61424         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61425         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61426         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61427         * lib/unistr/u8-mbtouc.c: Likewise.
61428         * lib/unistr/u8-mbtoucr.c: Likewise.
61429         * lib/unistr/u8-move.c: Likewise.
61430         * lib/unistr/u8-next.c: Likewise.
61431         * lib/unistr/u8-prev.c: Likewise.
61432         * lib/unistr/u8-set.c: Likewise.
61433         * lib/unistr/u8-startswith.c: Likewise.
61434         * lib/unistr/u8-stpcpy.c: Likewise.
61435         * lib/unistr/u8-stpncpy.c: Likewise.
61436         * lib/unistr/u8-strcat.c: Likewise.
61437         * lib/unistr/u8-strchr.c: Likewise.
61438         * lib/unistr/u8-strcmp.c: Likewise.
61439         * lib/unistr/u8-strcpy.c: Likewise.
61440         * lib/unistr/u8-strcspn.c: Likewise.
61441         * lib/unistr/u8-strdup.c: Likewise.
61442         * lib/unistr/u8-strlen.c: Likewise.
61443         * lib/unistr/u8-strmblen.c: Likewise.
61444         * lib/unistr/u8-strmbtouc.c: Likewise.
61445         * lib/unistr/u8-strncat.c: Likewise.
61446         * lib/unistr/u8-strncmp.c: Likewise.
61447         * lib/unistr/u8-strncpy.c: Likewise.
61448         * lib/unistr/u8-strnlen.c: Likewise.
61449         * lib/unistr/u8-strpbrk.c: Likewise.
61450         * lib/unistr/u8-strrchr.c: Likewise.
61451         * lib/unistr/u8-strspn.c: Likewise.
61452         * lib/unistr/u8-strstr.c: Likewise.
61453         * lib/unistr/u8-strtok.c: Likewise.
61454         * lib/unistr/u8-to-u16.c: Likewise.
61455         * lib/unistr/u8-to-u32.c: Likewise.
61456         * lib/unistr/u8-uctomb-aux.c: Likewise.
61457         * lib/unistr/u8-uctomb.c: Likewise.
61458         * lib/unitypes.h: Likewise.
61459         * lib/uniwidth.h: Likewise.
61460         * lib/uniwidth/cjk.h: Likewise.
61461         * lib/uniwidth/u16-strwidth.c: Likewise.
61462         * lib/uniwidth/u16-width.c: Likewise.
61463         * lib/uniwidth/u32-strwidth.c: Likewise.
61464         * lib/uniwidth/u32-width.c: Likewise.
61465         * lib/uniwidth/u8-strwidth.c: Likewise.
61466         * lib/uniwidth/u8-width.c: Likewise.
61467         * lib/uniwidth/width.c: Likewise.
61468
61469 2007-10-07  Bruno Haible  <bruno@clisp.org>
61470
61471         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61472         The file is still under LGPL (see modules/inttypes).
61473
61474 2007-10-06  Bruno Haible  <bruno@clisp.org>
61475
61476         * modules/trunc (Dependencies): Add 'extensions'.
61477         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61478         Reported by Ben Pfaff <blp@gnu.org>.
61479
61480 2007-10-06  Bruno Haible  <bruno@clisp.org>
61481
61482         * modules/freopen-tests: New file.
61483         * tests/test-freopen.c: New file.
61484
61485         * modules/fopen-tests: New file.
61486         * tests/test-fopen.c: New file.
61487
61488         * modules/fopen: New file.
61489         * lib/fopen.c: New file.
61490         * m4/fopen.m4: New file.
61491         * modules/freopen: New file.
61492         * lib/freopen.c: New file.
61493         * m4/freopen.m4: New file.
61494         * lib/stdio.in.h (fopen, freopen): New declarations.
61495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61496         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61497         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61498         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61499         * doc/functions/fopen.texi: Mention the 'fopen' module.
61500         * doc/functions/freopen.texi: Mention the 'freopen' module.
61501
61502 2007-10-06  Bruno Haible  <bruno@clisp.org>
61503
61504         * modules/open-tests: New file.
61505         * tests/test-open.c: New file.
61506
61507         * modules/open: New file.
61508         * lib/open.c: New file.
61509         * m4/open.m4: New file.
61510         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61511         lib/open.c does.
61512         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61513         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61514         macros.
61515         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61516         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61517         REPLACE_OPEN.
61518         * doc/functions/open.texi: Mention the 'open' module.
61519
61520 2007-10-04  Bruno Haible  <bruno@clisp.org>
61521
61522         * modules/ceill-tests: New file.
61523         * tests/test-ceill.c: New file.
61524
61525         * modules/ceill: New file.
61526         * lib/ceill.c: Replace entire file.
61527         * m4/ceill.m4: New file.
61528         * lib/math.in.h (ceill): Replace declaration.
61529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61530         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61531         * doc/functions/ceill.texi: Mention the 'ceill' module.
61532         * modules/mathl (Files): Remove lib/ceill.c.
61533         (Depends-on): Add ceill.
61534
61535 2007-10-04  Bruno Haible  <bruno@clisp.org>
61536
61537         * modules/ceilf-tests: New file.
61538         * tests/test-ceilf.c: New file.
61539
61540         * modules/ceilf: New file.
61541         * lib/ceil.c: New file.
61542         * lib/ceilf.c: New file.
61543         * m4/ceilf.m4: New file.
61544         * lib/math.in.h (ceilf): New declaration.
61545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61546         HAVE_DECL_CEILF.
61547         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61548         HAVE_DECL_CEILF.
61549         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61550
61551 2007-10-04  Bruno Haible  <bruno@clisp.org>
61552
61553         * modules/floorl-tests: New file.
61554         * tests/test-floorl.c: New file.
61555
61556         * modules/floorl: New file.
61557         * lib/floorl.c: Replace entire file.
61558         * m4/floorl.m4: New file.
61559         * lib/math.in.h (floorl): Replace declaration.
61560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61561         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61562         * doc/functions/floorl.texi: Mention the 'floorl' module.
61563         * modules/mathl (Files): Remove lib/floorl.c.
61564         (Depends-on): Add floorl.
61565
61566 2007-10-04  Bruno Haible  <bruno@clisp.org>
61567
61568         * modules/floorf-tests: New file.
61569         * tests/test-floorf.c: New file.
61570
61571         * modules/floorf: New file.
61572         * lib/floor.c: New file.
61573         * lib/floorf.c: New file.
61574         * m4/floorf.m4: New file.
61575         * lib/math.in.h (floorf): New declaration.
61576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61577         HAVE_DECL_FLOORF.
61578         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61579         HAVE_DECL_FLOORF.
61580         * doc/functions/floorf.texi: Mention the 'floorf' module.
61581
61582 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61583             Bruno Haible  <bruno@clisp.org>
61584
61585         Advertise for the Git server instead of the CVS server.
61586         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61587         repository instead of the CVS one.
61588         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61589         about all VCS systems generically.
61590         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61591
61592 2007-10-04  Bruno Haible  <bruno@clisp.org>
61593
61594         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61595         means.
61596         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61597
61598 2007-10-04  Bruno Haible  <bruno@clisp.org>
61599
61600         * modules/truncl-tests: New file.
61601         * tests/test-truncl.c: New file.
61602
61603         * modules/truncl: New file.
61604         * lib/truncl.c: New file.
61605         * m4/truncl.m4: New file.
61606         * lib/math.in.h (truncl): New declaration.
61607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61608         HAVE_DECL_TRUNCL.
61609         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61610         HAVE_DECL_TRUNCL.
61611         * doc/functions/truncl.texi: Mention the 'truncl' module.
61612
61613 2007-10-04  Bruno Haible  <bruno@clisp.org>
61614
61615         * modules/truncf-tests: New file.
61616         * tests/test-truncf.c: New file.
61617
61618         * modules/truncf: New file.
61619         * lib/trunc.c: Make paramerizable through USE_* macros.
61620         * lib/truncf.c: New file.
61621         * m4/truncf.m4: New file.
61622         * lib/math.in.h (truncf): New declaration.
61623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61624         HAVE_DECL_TRUNCF.
61625         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61626         HAVE_DECL_TRUNCF.
61627         * doc/functions/truncf.texi: Mention the 'truncf' module.
61628
61629 2007-10-03  Bruno Haible  <bruno@clisp.org>
61630
61631         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61632         augmentation also for tests modules.
61633         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61634         * modules/atexit-tests (Makefile.am): Likewise.
61635         * modules/binary-io-tests (Makefile.am): Likewise.
61636         * modules/c-strcase-tests (Makefile.am): Likewise.
61637         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61638         * modules/canonicalize-tests (Makefile.am): Likewise.
61639         * modules/closein-tests (Makefile.am): Likewise.
61640         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61641         * modules/freadahead-tests (Makefile.am): Likewise.
61642         * modules/fseek-tests (Makefile.am): Likewise.
61643         * modules/fseeko-tests (Makefile.am): Likewise.
61644         * modules/ftell-tests (Makefile.am): Likewise.
61645         * modules/ftello-tests (Makefile.am): Likewise.
61646         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61647         * modules/isnanl-tests (Makefile.am): Likewise.
61648         * modules/lseek-tests (Makefile.am): Likewise.
61649         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61650         * modules/mbscasestr-tests (Makefile.am): Likewise.
61651         * modules/mbschr-tests (Makefile.am): Likewise.
61652         * modules/mbscspn-tests (Makefile.am): Likewise.
61653         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61654         * modules/mbspbrk-tests (Makefile.am): Likewise.
61655         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61656         * modules/mbsrchr-tests (Makefile.am): Likewise.
61657         * modules/mbsspn-tests (Makefile.am): Likewise.
61658         * modules/mbsstr-tests (Makefile.am): Likewise.
61659         * modules/printf-posix-tests (Makefile.am): Likewise.
61660         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61661         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61662         * modules/tsearch-tests (Makefile.am): Likewise.
61663         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61664         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61665         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61666         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61667         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61668         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61669         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61670         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61671         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61672         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61673         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61674         * modules/xstrtol-tests (Makefile.am): Likewise.
61675         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61676         * modules/yesno-tests (Makefile.am): Likewise.
61677
61678 2007-10-03  Bruno Haible  <bruno@clisp.org>
61679
61680         * modules/trunc-tests: New file.
61681         * tests/test-trunc.c: New file.
61682
61683         * modules/trunc: New file.
61684         * lib/trunc.c: New file.
61685         * m4/trunc.m4: New file.
61686         * lib/math.in.h (trunc): New declaration.
61687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61688         HAVE_DECL_TRUNC.
61689         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61690         HAVE_DECL_TRUNC.
61691         * doc/functions/trunc.texi: Mention the 'trunc' module.
61692
61693 2007-10-03  Bruno Haible  <bruno@clisp.org>
61694
61695         * tests/test-fpending.c: New file, mostly copied
61696         from coreutils/lib/t-fpending.c.
61697         * modules/fpending-tests: New file.
61698
61699 2007-10-03  Bruno Haible  <bruno@clisp.org>
61700
61701         Port the stdio extensions to QNX (untested).
61702         * lib/fseterr.c (fseterr): Add support for QNX.
61703         * lib/fbufmode.c (fbufmode): Likewise.
61704         * lib/freadable.c (freadable): Likewise.
61705         * lib/fwritable.c (fwritable): Likewise.
61706         * lib/freading.c (freading): Likewise.
61707         * lib/fwriting.c (fwriting): Likewise.
61708         * lib/freadahead.c (freadahed): Likewise.
61709         * lib/fpurge.c (fpurge): Likewise.
61710         * lib/fseeko.c (rpl_fseeko): Likewise.
61711
61712 2007-10-03  Bruno Haible  <bruno@clisp.org>
61713             Jim Meyering  <jim@meyering.net>
61714             Eric Blake  <ebb9@byu.net>
61715
61716         * doc/relocatable.texi: Use @command instead of @program.
61717
61718 2007-10-02  Jim Meyering  <jim@meyering.net>
61719
61720         Perform one more "_.h" -> ".in.h" substitution.
61721         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61722         instead of unistd_.h here, too.
61723
61724 2007-10-01  Bruno Haible  <bruno@clisp.org>
61725
61726         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61727         Needed for the alloca-opt module.
61728
61729 2007-09-30  Bruno Haible  <bruno@clisp.org>
61730
61731         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61732         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61733         alloca_.h.
61734         * lib/argz.in.h: Renamed from lib/argz_.h.
61735         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61736         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61737         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61738         byteswap_.h.
61739         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61740         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61741         dirent_.h.
61742         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61743         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61744         fcntl_.h.
61745         * lib/float.in.h: Renamed from lib/float_.h.
61746         * modules/float (Files, Makefile.am): Use float.in.h instead of
61747         float_.h.
61748         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61749         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61750         fnmatch_.h.
61751         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61752         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61753         getopt_.h.
61754         * lib/glob.in.h: Renamed from lib/glob_.h.
61755         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61756         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61757         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61758         iconv_.h.
61759         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61760         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61761         inttypes_.h.
61762         * lib/locale.in.h: Renamed from lib/locale_.h.
61763         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61764         locale_.h.
61765         * lib/math.in.h: Renamed from lib/math_.h.
61766         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61767         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61768         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61769         of netinet_in_.h. Add dependency.
61770         * lib/poll.in.h: Renamed from lib/poll_.h.
61771         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61772         * lib/search.in.h: Renamed from lib/search_.h.
61773         * modules/search (Files, Makefile.am): Use search.in.h instead of
61774         search_.h.
61775         * lib/signal.in.h: Renamed from lib/signal_.h.
61776         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61777         _signal.h.
61778         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61779         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61780         stdbool_.h.
61781         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61782         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61783         stdint_.h.
61784         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61785         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61786         stdio_.h.
61787         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61788         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61789         stdlib_.h.
61790         * lib/string.in.h: Renamed from lib/string_.h.
61791         * modules/string (Files, Makefile.am): Use string.in.h instead of
61792         string_.h.
61793         * doc/gnulib-tool.texi (Initial import): Update.
61794         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61795         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61796         of sys_select_.h. Add dependency.
61797         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61798         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61799         of sys_socket_.h.
61800         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61801         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61802         sys_stat_.h.
61803         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61804         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61805         sys_time_.h.
61806         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61807         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61808         sysexits_.h.
61809         * lib/time.in.h: Renamed from lib/time_.h.
61810         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61811         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61812         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61813         unistd_.h.
61814         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61815         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61816         wchar_.h.
61817         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61818         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61819         wctype_.h.
61820         * build-aux/bootstrap (slurp): Update.
61821         * lib/.cppi-disable: Update.
61822
61823 2007-09-30  Bruno Haible  <bruno@clisp.org>
61824
61825         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61826         Needed on BeOS.
61827
61828 2007-09-30  Bruno Haible  <bruno@clisp.org>
61829
61830         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61831
61832 2007-09-29  Bruno Haible  <bruno@clisp.org>
61833
61834         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61835
61836 2007-09-29  Bruno Haible  <bruno@clisp.org>
61837
61838         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61839         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61840         * build-aux/install-reloc: Compile also areadlink.c.
61841         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61842
61843 2007-09-29  Bruno Haible  <bruno@clisp.org>
61844
61845         * gnulib-tool (func_emit_initmacro_done): Indentation.
61846
61847 2007-09-29  Bruno Haible  <bruno@clisp.org>
61848
61849         * README: Add CVS checkout update instructions.
61850         Info from Bob Proulx <bob@proulx.com>.
61851
61852 2007-09-28  Eric Blake  <ebb9@byu.net>
61853
61854         Provide move-if-change.
61855         * build-aux/move-if-change: New file, based on best practice
61856         rather than any canonical upstream location.
61857
61858 2007-09-28  Jim Meyering  <jim@meyering.net>
61859
61860         Fix canonicalize loop-detection corner case.
61861         Do not attempt to stat the symlink values stored via seen_triple.
61862         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61863         on linux-2.6.18, (but not 2.6.22).
61864         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61865         triple_compare.  The former compares dev,ino,filename, while the latter
61866         would actually stat dirname(filename) when dev and ino were equal.
61867         * lib/hash-triple.c: Install <string.h>.
61868         (STREQ): Define.
61869         (triple_compare_ino_str): New function.
61870         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61871
61872 2007-09-28  Eric Blake  <ebb9@byu.net>
61873
61874         Enforce that AC_REPLACE_FUNCS files exist.
61875         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61876         override check for typos.
61877
61878         Fix test-closein on Solaris 10.
61879         * tests/test-closein.c (main): Don't assume stdin can be inherited
61880         closed on all systems.
61881         * tests/test-closein.sh: Likewise.
61882         Reported by Piotr Tarnowski.
61883
61884 2007-09-28  Jim Meyering  <jim@meyering.net>
61885
61886         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61887
61888 2007-09-27  Jim Meyering  <jim@meyering.net>
61889
61890         canonicalize: Avoid a false-positive cycle failure.
61891         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61892         Sort.  Remove cycle-check.
61893         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61894         not cycle-check.h.
61895         (seen_triple): New function.
61896         (canonicalize_filename_mode): Use it instead of cycle-check.
61897         * tests/test-canonicalize.c: Add a test for this bug.
61898         * tests/test-canonicalize.sh: Set up and run the test.
61899
61900         New module, file-set, from coreutils.
61901         * modules/file-set: Define it.
61902         * lib/file-set.c, lib/file-set.h: Implement.
61903
61904         New module, hash-triple, from coreutils.
61905         * modules/hash-triple: Define it.
61906         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61907
61908 2007-09-25  Eric Blake  <ebb9@byu.net>
61909
61910         Fix strerror on Interix.
61911         * lib/string_.h (strerror): Declare replacement.
61912         * doc/functions/strerror.texi (strerror): Document the Interix
61913         shortcoming.
61914         * modules/string (Makefile.am): Support new hooks.
61915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61916         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61917         gl_FUNC_STRERROR_SEPARATE.
61918         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61919         * lib/strerror.c (rpl_strerror): Provide replacement.
61920         * modules/strerror (Depends-on): Add string.
61921         (configure.ac): Detect use of module.
61922         * tests/test-strerror.c: New file.
61923         * modules/strerror-tests: New test module.
61924         * modules/argp (Depends-on): Add strerror.
61925         * modules/error (Depends-on): Likewise.
61926         Reported by Martin Koeppe.
61927
61928 2007-09-24  Bruno Haible  <bruno@clisp.org>
61929
61930         * README: Update git instructions.
61931
61932 2007-09-24  Eric Blake  <ebb9@byu.net>
61933
61934         Revert fpending breakage from 2007-09-08.
61935         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
61936         __fpending.c.
61937
61938 2007-09-24  Jim Meyering  <jim@meyering.net>
61939
61940         filenamecat.c: Add a test.
61941         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
61942         showing how the function works when DIR is the empty string.
61943
61944 2007-09-21  Simon Josefsson  <simon@josefsson.org>
61945
61946         * tests/test-canonicalize.sh: Turn on executable bit.
61947
61948 2007-09-19  Eric Blake  <ebb9@byu.net>
61949
61950         * README: Update CVS instructions.
61951
61952 2007-09-18  Bruno Haible  <bruno@clisp.org>
61953
61954         * modules/areadlink: New file.
61955         * lib/areadlink.h (areadlink): New declaration.
61956         * lib/areadlink.c: New file, based on lib/xreadlink.c.
61957
61958 2007-09-17  Jim Meyering  <jim@meyering.net>
61959
61960         * lib/savewd.c (ESTALE) [!defined]: Define.
61961         Reported to be required on Interix by Martin Koeppe.
61962
61963 2007-09-17  Bruno Haible  <bruno@clisp.org>
61964
61965         * gnulib-tool (func_version): Use $version.
61966
61967 2007-09-16  Bruno Haible  <bruno@clisp.org>
61968
61969         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
61970         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
61971         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
61972         Reported by Greg Schafer <gschafer@zip.com.au>.
61973
61974 2007-09-15  Bruno Haible  <bruno@clisp.org>
61975
61976         * gnulib-tool (sed): Try a little harder to make bash understand the
61977         alias.
61978         Reported by Bruce Korb <bruce.korb@gmail.com>.
61979
61980 2007-09-13  Eric Blake  <ebb9@byu.net>
61981
61982         * ChangeLog: Remove conflict markers.
61983
61984 2007-09-13  Simon Josefsson  <simon@josefsson.org>
61985
61986         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
61987         Reported by Bruno Haible <bruno@clisp.org>.
61988
61989 2007-09-12  Bruno Haible  <bruno@clisp.org>
61990
61991         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
61992         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
61993         is not defined.
61994
61995 2007-09-12  Eric Blake  <ebb9@byu.net>
61996
61997         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
61998         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
61999         Autoconf definition.
62000         * modules/euidaccess (Depends-on): Add extensions, for
62001         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62002         * modules/fnmatch (Depends-on): Likewise.
62003         * modules/getaddrinfo (Depends-on): Likewise.
62004         * modules/getdelim (Depends-on): Likewise.
62005         * modules/getline (Depends-on): Likewise.
62006         * modules/getsubopt (Depends-on): Likewise.
62007         * modules/gettext (Depends-on): Likewise.
62008         * modules/group-member (Depends-on): Likewise.
62009         * modules/mbchar (Depends-on): Likewise.
62010         * modules/memmem (Depends-on): Likewise.
62011         * modules/mempcpy (Depends-on): Likewise.
62012         * modules/memrchr (Depends-on): Likewise.
62013         * modules/pagealign_alloc (Depends-on): Likewise.
62014         * modules/readutmp (Depends-on): Likewise.
62015         * modules/stpcpy (Depends-on): Likewise.
62016         * modules/stpncpy (Depends-on): Likewise.
62017         * modules/strchrnul (Depends-on): Likewise.
62018         * modules/strndup (Depends-on): Likewise.
62019         * modules/strsep (Depends-on): Likewise.
62020         * modules/strverscmp (Depends-on): Likewise.
62021         * modules/vasprintf (Depends-on): Likewise.
62022         * modules/wcwidth (Depends-on): Likewise.
62023         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62024         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62025         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62026         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62027         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62028         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62029         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62030         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62031         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62032         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62033         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62034         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62035         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62036         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62037         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62038         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62039         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62040         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62041         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62042         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62043         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62044         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62045         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62046         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62047         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62048         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62049         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62050         so that lock.m4 can be used in gettext without extensions module.
62051
62052 2007-09-11  Bruno Haible  <bruno@clisp.org>
62053
62054         * m4/isc-posix.m4: Remove file.
62055         Suggested by Eric Blake.
62056
62057 2007-09-11  Eric Blake  <ebb9@byu.net>
62058
62059         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62060
62061 2007-09-10  Bruno Haible  <bruno@clisp.org>
62062
62063         * posix-modules: Fix typo in error message.
62064         Reported by Matt <mkraai@beckman.com>.
62065
62066 2007-09-09  Bruno Haible  <bruno@clisp.org>
62067
62068         * doc/functions/getdelim.texi: Update list of platforms lacking the
62069         function.
62070         * doc/functions/getline.texi: Likewise.
62071
62072 2007-09-09  Jim Meyering  <jim@meyering.net>
62073
62074         * lib/hash.c (hash_initialize): Detect calloc failure.
62075         Reported by Bruno Haible.
62076
62077 2007-09-09  Bruno Haible  <bruno@clisp.org>
62078
62079         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62080         malloc or realloc fails.
62081
62082 2007-09-09  Bruno Haible  <bruno@clisp.org>
62083
62084         * modules/getcwd (Depends-on): Add malloc-posix.
62085         * modules/glob (Depends-on): Likewise.
62086         * modules/putenv (Depends-on): Likewise.
62087         * modules/strdup (Depends-on): Likewise.
62088         * modules/getdelim (Depends-on): Add realloc-posix.
62089         * modules/read-file (Depends-on): Likewise.
62090
62091 2007-09-09  Bruno Haible  <bruno@clisp.org>
62092
62093         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62094         (gl_FUNC_MALLOC_POSIX): Require it.
62095         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62096         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62097         * modules/realloc (Files): Add m4/malloc.m4.
62098         * modules/calloc (Files): Likewise.
62099
62100 2007-09-09  Bruno Haible  <bruno@clisp.org>
62101
62102         * modules/malloc-posix: New file.
62103         * modules/malloc (Depends-on): Add malloc-posix.
62104         * lib/malloc.c: Include errno.h.
62105         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62106         and a POSIX-compatible malloc into a single function. Set ENOMEM
62107         when returning NULL.
62108         * m4/malloc.m4: New file.
62109         * doc/functions/malloc.texi: Mention the malloc-posix module.
62110         * lib/stdlib_.h (malloc): New declaration.
62111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62112         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62113         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62114         and HAVE_MALLOC_POSIX.
62115
62116 2007-09-09  Bruno Haible  <bruno@clisp.org>
62117
62118         * modules/realloc-posix: New file.
62119         * modules/realloc (Depends-on): Add realloc-posix.
62120         * lib/realloc.c: Include errno.h.
62121         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62122         and a POSIX-compatible realloc into a single function. Set ENOMEM
62123         when returning NULL.
62124         * m4/realloc.m4: New file.
62125         * doc/functions/realloc.texi: Mention the realloc-posix module.
62126         * lib/stdlib_.h (realloc): New declaration.
62127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62128         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62129         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62130         and HAVE_REALLOC_POSIX.
62131
62132 2007-09-09  Bruno Haible  <bruno@clisp.org>
62133
62134         * modules/calloc-posix: New file.
62135         * modules/calloc (Depends-on): Add calloc-posix.
62136         * lib/calloc.c: Include errno.h.
62137         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62138         and a POSIX-compatible calloc into a single function. Set ENOMEM
62139         when returning NULL.
62140         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62141         * doc/functions/calloc.texi: Mention the calloc-posix module.
62142         * lib/stdlib_.h (calloc): New declaration.
62143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62144         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62145         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62146         and HAVE_CALLOC_POSIX.
62147
62148 2007-09-09  Bruno Haible  <bruno@clisp.org>
62149
62150         Allow for modules to show an arbitrary notice.
62151         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62152         * gnulib-tool: New option --extract-notice.
62153         (func_usage): Document it.
62154         (sed_extract_prog): Update.
62155         (func_get_notice): New function.
62156         (func_modules_notice): New function.
62157         (func_import, func_create_testdir): Invoke it.
62158         Suggested by Jim Meyering.
62159
62160 2007-09-09  Bruno Haible  <bruno@clisp.org>
62161
62162         * gnulib-tool: New options --verbose, --quiet.
62163         (func_usage): Document them.
62164         (verbose): New variable.
62165         (func_execute_command): New function.
62166         (func_import): Don't show the module list and the file list if
62167         $verbose < 0.
62168         (func_create_testdir): Likewise. Use func_execute_command.
62169         (func_create_megatestdir): Use func_execute_command.
62170
62171 2007-09-08  Bruno Haible  <bruno@clisp.org>
62172
62173         * gnulib-tool (func_import): Prefer rsync over wget when available,
62174         for fetching the PO files.
62175
62176 2007-09-08  Bruno Haible  <bruno@clisp.org>
62177
62178         * posix-modules: New file. Portions copied from gnulib-tool.
62179         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62180
62181 2007-09-08  Jim Meyering  <jim@meyering.net>
62182
62183         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62184         * lib/fpending.h: Rename from __fpending.h.
62185         * lib/fpending.c: Rename from __fpending.c.
62186         Include "fpending.h", not "__fpending.h".
62187         * lib/__fpending.h, lib/__fpending.c: Remove files.
62188         * modules/fpending (Files): Reflect new file names.
62189         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62190
62191 2007-09-08  Bruno Haible  <bruno@clisp.org>
62192
62193         * m4/inttypes-h.m4: Remove stub file.
62194
62195 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62196
62197         * doc/headers/stdint.texi: Discuss #include_next issue.
62198
62199 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62200
62201         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62202
62203 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62204
62205         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62206         in variable name.
62207
62208 2007-09-03  Jim Meyering  <jim@meyering.net>
62209
62210         New module: git-version-gen.
62211         * modules/git-version-gen: New file.
62212
62213         Import changes from coreutils for bootstrap script.
62214
62215         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62216
62217         bootstrap: uses rsync to download the .po files
62218         * build-aux/bootstrap (po_download_command_format): New global.
62219         (download_po_files): Use rsync.
62220         (update_po_files): Don't remove .po files after download,
62221         so future rsync runs can take advantage of the copies.
62222
62223         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62224
62225         Solve the unnecessary-.po-file-regeneration problem once and for all.
62226         * build-aux/bootstrap (download_po_files): New function, renamed from
62227         get_translations.  Now, downloads, but doesn't update LINGUAS.
62228         (update_po_files): New function.
62229
62230         bootstrap: Ignore more.
62231         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62232         uniwidth to e.g., lib/.gitignore.
62233         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62234
62235         * build-aux/bootstrap: New setting: vc_ignore.
62236         (insert_sorted_if_absent): Create $file if absent.
62237         Adapt to new, possibly empty, list: $vc_ignore.
62238
62239         bootstrap: generate more ignorable names
62240         * build-aux/bootstrap (slurp): When generating ignorable names,
62241         also map .sin to .sed, .gperf to .c, and .y to .c.
62242
62243 2007-09-03  Jim Meyering  <jim@meyering.net>
62244
62245         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62246         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62247
62248 2007-09-02  Bruno Haible  <bruno@clisp.org>
62249
62250         Fix mis-recognition of 'mcs' on QNX 6.
62251         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62252         output contains the string "Mono".
62253         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62254         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62255
62256 2007-09-01  Bruno Haible  <bruno@clisp.org>
62257
62258         Fix collision between uniwidth/* and linebreak modules.
62259         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62260         u32_width): Remove declarations.
62261         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62262         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62263         streq3, streq2, streq1, streq0): Remove functions.
62264         (STREQ): Remove macro.
62265         (is_cjk_encoding): Remove function.
62266         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62267         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62268         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62269         * NEWS: Document the change.
62270
62271 2007-09-01  Bruno Haible  <bruno@clisp.org>
62272
62273         * lib/streq.h: Add double-inclusion guard.
62274
62275 2007-09-01  Karl Berry  <karl@gnu.org>
62276
62277         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62278
62279 2007-08-28  Jim Meyering  <jim@meyering.net>
62280
62281         Rename mreadlink_with_size to areadlink_with_size.
62282         * NEWS: Document the change.
62283         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62284         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62285         * lib/mreadlink.h: Rename this to...
62286         * lib/areadlink.h: ...this.
62287         * modules/mreadlink-with-size: Rename this to...
62288         * modules/areadlink-with-size: ...this.
62289         * lib/canonicalize.c: Reflect the renaming.
62290         * modules/canonicalize: Likewise.
62291
62292 2007-08-26  Bruno Haible  <bruno@clisp.org>
62293
62294         * gnulib-tool (func_import): When deciding which files to remove,
62295         consider also dangling symbolic links.
62296         Reported by Eric Blake.
62297
62298 2007-08-26  Bruno Haible  <bruno@clisp.org>
62299
62300         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62301
62302 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62303
62304         * lib/readline.c: Don't include getline.h, the prototype is now
62305         found in stdio.h.
62306
62307 2007-08-23  Jim Meyering  <jim@meyering.net>
62308
62309         Getdelim touchup.
62310         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62311         around the funlockfile call, since funlockfile never sets errno.
62312         Don't set errno upon failed realloc.
62313
62314 2007-08-22  Eric Blake  <ebb9@byu.net>
62315
62316         Getline touchups.
62317         * lib/getdelim.c (getdelim): Revert regression that required *n to
62318         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62319         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62320         getdelim, rather than whether implementation is missing.
62321         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62322         * lib/stdio_.h (getline): Also declare if replacement is
62323         required.
62324         * doc/functions/getdelim.texi: New file.
62325         * doc/functions/getline.texi: Likewise.
62326         * doc/gnulib.texi (Function Substitutes): Add new files.
62327         Reported by Bruno Haible.
62328
62329 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62330
62331         * users.txt: Add Guile.
62332
62333 2007-08-22  Eric Blake  <ebb9@byu.net>
62334
62335         * tests/test-getdelim.c (main): Use remove, not unlink.
62336         * tests/test-getline.c (main): Likewise.
62337
62338         Move getline and getdelim into stdio.h, per POSIX 200x.
62339         * modules/getline (Files): Remove getline.h.
62340         (Depends-on): Add stdio.
62341         (configure.ac): Add module indicator.
62342         * modules/getdelim (Files): Remove getdelim.h.
62343         (Depends-on): Add stdio.
62344         (configure.ac): Add module indicator.
62345         * modules/stdio (Makefile.am): Work with new indicators.
62346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62347         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62348         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62349         * lib/getdelim.h: Delete.
62350         * lib/getline.h: Delete.
62351         * lib/stdio_.h (getdelim, getline): Declare.
62352         * modules/getdelim-tests: New module.
62353         * modules/getline-tests: Likewise.
62354         * tests/test-getdelim.c: New file.
62355         * tests/test-getline.c: Likewise.
62356         * NEWS: Document the change.
62357         * lib/getline.c: Update choice of header.
62358         * lib/csharpcomp.c: Likewise.
62359         * lib/getpass.c: Likewise.
62360         * lib/javacomp.c: Likewise.
62361         * lib/javaversion.c: Likewise.
62362         * lib/yesno.c: Likewise.
62363         * lib/getdelim.c: Likewise.
62364         (getdelim): Set errno on failure, and avoid memory leak.
62365
62366 2007-08-19  Bruno Haible  <bruno@clisp.org>
62367
62368         * modules/closein (Depends-on): Add freadahead.
62369         * lib/closein.c: Include freadahead.h.
62370         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62371         is zero.
62372
62373 2007-08-19  Bruno Haible  <bruno@clisp.org>
62374
62375         * modules/freadahead-tests: New file.
62376         * tests/test-freadahead.sh: New file.
62377         * tests/test-freadahead.c: New file.
62378
62379         * modules/freadahead: New file.
62380         * lib/freadahead.h: New file.
62381         * lib/freadahead.c: New file.
62382         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62383         fbufmode, fpurge, freadable, fwritable.
62384
62385 2007-08-19  Eric Blake  <ebb9@byu.net>
62386
62387         Test yesno in combination with closein.
62388         * lib/yesno.c (yesno): Document use of stdin.
62389         * modules/yesno-tests (Files): New module.
62390         * tests/test-yesno.c (main): New file.
62391         * tests/test-yesno.sh: Likewise.
62392
62393 2007-08-19  Bruno Haible  <bruno@clisp.org>
62394
62395         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62396         * lib/fseeko.c (rpl_fseeko): Likewise.
62397         * lib/fseterr.c (fseterr): Likewise.
62398
62399 2007-08-19  Bruno Haible  <bruno@clisp.org>
62400
62401         * tests/test-lseek.c (main): Disable a test for BeOS.
62402         * doc/functions/lseek.texi: Document the BeOS bug.
62403
62404 2007-08-19  Bruno Haible  <bruno@clisp.org>
62405             Eric Blake  <ebb9@byu.net>
62406
62407         * lib/lseek.c: Include <sys/stat.h>.
62408         (rpl_lseek): Add workaround code also for Unix platforms.
62409         Needed for BeOS.
62410         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62411         * doc/functions/lseek.texi: Document BeOS definiency.
62412
62413 2007-08-18  Bruno Haible  <bruno@clisp.org>
62414
62415         * modules/fstrcmp-tests: New file.
62416         * tests/test-fstrcmp.c: New file.
62417
62418 2007-08-18  Bruno Haible  <bruno@clisp.org>
62419
62420         * modules/fstrcmp: New file, from GNU gettext with modifications.
62421         * lib/fstrcmp.h: New file, from GNU gettext.
62422         * lib/fstrcmp.c: New file, from GNU gettext.
62423         * MODULES.html.sh (String handling): Add fstrcmp.
62424
62425 2007-08-18  Bruno Haible  <bruno@clisp.org>
62426
62427         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62428         'bool'.
62429         (diag, compareseq): Remove const from the ctxt argument.
62430         (USE_HEURISTIC): Undefine at the end.
62431
62432 2007-08-18  Jim Meyering  <jim@meyering.net>
62433
62434         New file: lib/idcache.h
62435         * NEWS: Mention the addition.
62436         * modules/idcache (Files): Add lib/idcache.h
62437         * lib/idcache.c: Include "idcache.h".
62438         Don't include <sys/types.h>.
62439         Add a FIXME comment.
62440         Move file-scoped "static" declarations to the top.
62441         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62442
62443 2007-08-17  Bruno Haible  <bruno@clisp.org>
62444         and Paul Eggert  <eggert@cs.ucla.edu>
62445
62446         * MODULES.html.sh: Add diffseq.
62447         * modules/diffseq: New file.
62448         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62449         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62450
62451 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62452
62453         Import changes from coreutils for bootstrap script.
62454
62455         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62456
62457         * build-aux/bootstrap (slurp): Work even in environments where
62458         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62459         current code does not slurp files whose names start with ".", and
62460         this looks like it might be a troublesome area.
62461
62462         2007-07-11  Jim Meyering  <jim@meyering.net>
62463
62464         If there's a GPL vN copyright comment, require that N == 3.
62465
62466         2007-07-08  Jim Meyering  <jim@meyering.net>
62467
62468         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62469         * build-aux/bootstrap (mam_template): Move definition out of loop.
62470
62471         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62472
62473         * build-aux/bootstrap (symlink_to_dir): Rename function from
62474         symlink_to_gnulib.  Add a directory parameter.  Update all
62475         callers.
62476         (cp_mark_as_generated): Also check for -- and link to -- files in
62477         gl/.
62478
62479         2007-07-08  Jim Meyering  <jim@meyering.net>
62480
62481         Adapt to deeper hierarchy in gnulib.
62482         * build-aux/bootstrap (symlink_to_dir): If the destination
62483         directory doesn't exist, create it. This is required at least for
62484         "lib/uniwidth/cjk.h".
62485
62486         2007-05-15  Jim Meyering  <jim@meyering.net>
62487
62488         * build-aux/bootstrap: Now that generated Makefile.am files
62489         are no longer under version control, they must be created at
62490         bootstrap time.
62491
62492 2007-08-14  Ben Pfaff  <blp@gnu.org>
62493
62494         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62495
62496 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62497
62498         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62499         given the changes below.
62500         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62501         even on hosts that have padding bits beyond the supported 64.
62502
62503 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62504
62505         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62506         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62507         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62508         depends on it.
62509         (xstrtol_error): Remove.
62510         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62511         but with a different signature.
62512         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62513         * lib/xstrtol-error.c: Include exitfail.h.
62514         (xstrtol_fatal): New function, with a different signature from the
62515         old xstrtol_error, so that the caller need not worry about passing
62516         in an exit status, or about storage management of the option argument.
62517         (xstrtol_error): Now a static function.  Redo signature to
62518         implement xstrtol_fatal.  Output the correct number of hyphens in
62519         front of the option so that the caller need not worry about
62520         storage management.
62521         (N_): New macro.
62522         (_): Remove; not used now.
62523         * modules/xstrtol: Depend on getopt.
62524         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62525         of old STRTOL_FATAL_ERROR macro.
62526         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62527         of test program.
62528         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62529         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62530
62531 2007-08-08  Eric Blake  <ebb9@byu.net>
62532
62533         * lib/xstrtol-error.c: Add missing include.
62534
62535         Move xstrtol messages into gnulib domain, when --pobase is used.
62536         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62537         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62538         * modules/xstrtol (Files): Distribute new file.
62539         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62540         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62541         * tests/test-xstrtol.c: ...into new file.
62542         * tests/test-xstrtoul.c: Also test xstrtoul.
62543         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62544         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62545         * tests/test-xstrtol.sh: Drive the tests.
62546         * tests/test-xstrtoimax.sh: Likewise.
62547         * tests/test-xstrtoumax.sh: Likewise.
62548         * modules/xstrtol-tests: New module.
62549         * modules/xstrtoimax-tests: Likewise.
62550         * modules/xstrtoumax-tests: Likewise.
62551
62552 2007-08-08  Jim Meyering  <jim@meyering.net>
62553
62554         New function: mfile_name_concat.
62555         * lib/filenamecat.c (mfile_name_concat): New function, just like
62556         file_name_concat, but return NULL upon failure rather than exiting
62557         with a diagnostic.
62558         * lib/filenamecat.h: Declare it.
62559
62560 2007-08-07  Bruno Haible  <bruno@clisp.org>
62561
62562         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62563         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62564         warning from gcc.
62565         Reported by Eric Blake.
62566
62567 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62568
62569         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62570         * modules/crypto/arcfour (License): Likewise.
62571         * modules/crypto/des-tests (License): Likewise.
62572         * modules/crypto/gc-arctwo-tests (License): Likewise.
62573         * modules/crypto/gc-des-tests (License): Likewise.
62574         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62575         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62576         * modules/crypto/gc-md2-tests (License): Likewise.
62577         * modules/crypto/gc-md4-tests (License): Likewise.
62578         * modules/crypto/gc-md5-tests (License): Likewise.
62579         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62580         * modules/crypto/gc-rijndael-tests (License): Likewise.
62581         * modules/crypto/gc-sha1-tests (License): Likewise.
62582         * modules/crypto/gc-tests (License): Likewise.
62583         * modules/crypto/hmac-md5 (License): Likewise.
62584         * modules/crypto/hmac-sha1 (License): Likewise.
62585         * modules/crypto/md2-tests (License): Likewise.
62586         * modules/crypto/md4-tests (License): Likewise.
62587         * modules/crypto/md5 (License): Likewise.
62588         * modules/crypto/rijndael (License): Likewise.
62589         * modules/crypto/sha1 (License): Likewise.
62590         * modules/memxor (License): Likewise.
62591
62592 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62593         and Bruno Haible  <bruno@clisp.org>
62594
62595         * NEWS: Describe interface changes to human, xstrtol.
62596         * lib/human.h: Include <xstrtol.h>.
62597         (human_options): Return enum strtol_error, not int.  Remove
62598         bool arg; take int * instead.
62599         * lib/human.c: Don't include "gettext.h".
62600         (_): Remove; no longer used.
62601         Don't include <xstrtol.h>, since human.h does it.
62602         (human_options): Adjust to abovementioned interface changes.
62603         Do not report error to stderr; that's now the caller's
62604         responsibility.
62605         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62606         interface change.
62607         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62608         Str, Argument_type_string.  All uses changed.  Put " argument"
62609         in diagnostics to make them clearer.  Change wording of suffix
62610         message for clarity.
62611         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62612         Argument_type_string.
62613         (STRTOL_FATAL_WARN): Remove; no longer used.
62614         * modules/human (Depends-on): Remove gettext-h.
62615
62616 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62617
62618         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62619
62620 2007-07-31  Bruno Haible  <bruno@clisp.org>
62621
62622         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62623         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62624         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62625
62626 2007-07-31  Bruno Haible  <bruno@clisp.org>
62627
62628         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62629         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62630
62631 2007-07-30  Bruno Haible  <bruno@clisp.org>
62632
62633         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62634         * modules/c-ctype (License): Likewise.
62635         * modules/c-strcase (License): Likewise.
62636         * modules/check-version (License): Likewise.
62637         * modules/iconv (License): Likewise.
62638         * modules/iconv_open (License): Likewise.
62639         * modules/read-file (License): Likewise.
62640         * modules/striconv (License): Likewise.
62641         * modules/strverscmp (License): Likewise.
62642         * modules/vasprintf (License): Likewise.
62643         * modules/crypto/des (License): Likewise.
62644         * modules/crypto/gc (License): Likewise.
62645         * modules/crypto/gc-arcfour (License): Likewise.
62646         * modules/crypto/gc-arctwo (License): Likewise.
62647         * modules/crypto/gc-des (License): Likewise.
62648         * modules/crypto/gc-hmac-md5 (License): Likewise.
62649         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62650         * modules/crypto/gc-md2 (License): Likewise.
62651         * modules/crypto/gc-md4 (License): Likewise.
62652         * modules/crypto/gc-md5 (License): Likewise.
62653         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62654         * modules/crypto/gc-random (License): Likewise.
62655         * modules/crypto/gc-rijndael (License): Likewise.
62656         * modules/crypto/gc-sha1 (License): Likewise.
62657         * modules/crypto/md2 (License): Likewise.
62658         * modules/crypto/md4 (License): Likewise.
62659
62660 2007-07-30  Jim Meyering  <jim@meyering.net>
62661
62662         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62663         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62664         it has valid stat data.  This bug would cause du not to count the
62665         sizes of inaccessible directories.
62666         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62667         in <http://bugzilla.redhat.com/250077>.
62668
62669 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62670             Bruno Haible  <bruno@clisp.org>
62671
62672         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62673         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62674         #include_next, gives a diagnostic about it, but reports no error in
62675         the exit code.
62676         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62677
62678 2007-07-24  Ben Pfaff  <blp@gnu.org>
62679
62680         Improve name: "count-one-bits" is better than "popcount".
62681         * MODULES.html.sh: Update name.
62682         * lib/popcount.h: Renamed lib/count-one-bits.h.
62683         (popcount): Renamed count_one_bits.
62684         (popcountl): Renamed count_one_bits_l.
62685         (popcountll): Renamed count_one_bits_ll.
62686         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62687         * modules/popcount: Renamed module/count-one-bits.
62688         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62689         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62690
62691 2007-07-23  Ben Pfaff  <blp@gnu.org>
62692
62693         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62694         better code generation, and add U to large constants to avoid
62695         warnings, in non-GCC case.
62696         Suggested by Bruno Haible.
62697
62698 2007-07-23  Ben Pfaff  <blp@gnu.org>
62699
62700         * lib/popcount.h: Use verify_true instead of if...abort.
62701         * modules/popcount: Depend on verify module.
62702         Suggested by Jim Meyering.
62703
62704 2007-07-23  Bruno Haible  <bruno@clisp.org>
62705
62706         * gnulib-tool (func_import): Create a .cvsignore file also when the
62707         directory is not yet in CVS but the toplevel directory is. When
62708         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62709         Reported by Karl Berry.
62710
62711 2007-07-22  Ben Pfaff  <blp@gnu.org>
62712
62713         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62714         case.
62715         Suggested by Eric Blake.
62716
62717 2007-07-22  Ben Pfaff  <blp@gnu.org>
62718
62719         New module: popcount.
62720         * MODULES.html.sh: Add popcount.
62721         * modules/popcount: New file.
62722         * modules/popcount-tests: New file.
62723         * tests/test-popcount.c: New file.
62724         * lib/popcount.h: New file.
62725         * m4/popcount.m4: New file.
62726
62727 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62728
62729         * build-aux/announce-gen: Update to GPLv3.
62730
62731         * build-aux/config.guess: Update from config.
62732
62733 2007-07-21  Bruno Haible  <bruno@clisp.org>
62734
62735         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62736         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62737
62738 2007-07-20  Jim Meyering  <jim@meyering.net>
62739
62740         * check-module: Diagnose a self-dependency.
62741
62742 2007-07-19  Bruno Haible  <bruno@clisp.org>
62743
62744         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62745         empty.
62746         Reported by Eric Blake.
62747
62748 2007-07-18  Bruno Haible  <bruno@clisp.org>
62749
62750         * gnulib-tool: New options --po-base, --po-domain.
62751         (func_usage): Document them.
62752         (pobase, po_domain): New variables.
62753         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62754         DEFAULT_TEXT_DOMAIN.
62755         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62756         (func_import): Consider pobase and po_domain. Create a po/ directory.
62757         (func_create_testdir): Set pobase and po_domain to empty.
62758         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62759         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62760
62761 2007-07-18  Bruno Haible  <bruno@clisp.org>
62762
62763         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62764         EXTRA_DIST augmentation for files in build-aux/.
62765
62766 2007-07-16  Bruno Haible  <bruno@clisp.org>
62767
62768         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62769         * modules/getdelim (License): Likewise.
62770
62771 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62772
62773         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62774         * modules/d-type (License): Likewise.
62775         * modules/extensions (License): Likewise.
62776         * modules/fnmatch (License): Likewise.
62777         * modules/fseeko (License): Likewise.
62778         * modules/getaddrinfo (License): Likewise.
62779         * modules/getline (License): Likewise.
62780         * modules/getlogin_r (License): Likewise.
62781         * modules/getpass (License): Likewise.
62782         * modules/gettimeofday (License): Likewise.
62783         * modules/glob (License): Likewise.
62784         * modules/inet_ntop (License): Likewise.
62785         * modules/malloc (License): Likewise.
62786         * modules/malloca (License): Likewise.
62787         * modules/memmem (License): Likewise.
62788         * modules/mempcpy (License): Likewise.
62789         * modules/memset (License): Likewise.
62790         * modules/minmax (License): Likewise.
62791         * modules/mktime (License): Likewise.
62792         * modules/netinet_in (License): Likewise.
62793         * modules/pathmax (License): Likewise.
62794         * modules/poll (License): Likewise.
62795         * modules/regex (License): Likewise.
62796         * modules/snprintf (License): Likewise.
62797         * modules/stdbool (License): Likewise.
62798         * modules/stdint (License): Likewise.
62799         * modules/stdio (License): Likewise.
62800         * modules/strcase (License): Likewise.
62801         * modules/strcasestr (License): Likewise.
62802         * modules/strdup (License): Likewise.
62803         * modules/string (License): Likewise.
62804         * modules/strndup (License): Likewise.
62805         * modules/strnlen (License): Likewise.
62806         * modules/strpbrk (License): Likewise.
62807         * modules/strptime (License): Likewise.
62808         * modules/strsep (License): Likewise.
62809         * modules/sys_select (License): Likewise.
62810         * modules/sys_socket (License): Likewise.
62811         * modules/sys_stat (License): Likewise.
62812         * modules/sys_time (License): Likewise.
62813         * modules/time (License): Likewise.
62814         * modules/time_r (License): Likewise.
62815         * modules/timegm (License): Likewise.
62816         * modules/unistd (License): Likewise.
62817         * modules/vsnprintf (License): Likewise.
62818         * modules/wctype (License): Likewise.
62819
62820 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62821
62822         * modules/argz (License): LGPLv2+.
62823
62824 2007-07-15  Karl Berry  <karl@gnu.org>
62825
62826         * doc/gnulib.texi: revise node structure per new fdl.texi.
62827
62828 2007-07-14  Bruno Haible  <bruno@clisp.org>
62829
62830         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62831         the output file.
62832         * lib/uniname/uninames.h: Regenerated.
62833
62834 2007-07-14  Karl Berry  <karl@gnu.org>
62835
62836         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62837         omitting sectioning and index commands.
62838
62839 2007-07-13  Bruno Haible  <bruno@clisp.org>
62840
62841         New gnulib-tool option --more-symlinks.
62842         * gnulib-tool (func_usage): Document --more-symlinks.
62843         (do_copyrights): New variable.
62844         Recognize option --more-symlinks.
62845         (func_import): Don't add a copyright notice transform to
62846         sed_transform_lib_file if do_copyrights is empty.
62847
62848 2007-07-13  Bruno Haible  <bruno@clisp.org>
62849
62850         * lib/vasnprintf.c (decimal_point_char): Define also if
62851         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62852         && !NEED_PRINTF_DIRECTIVE_A.
62853         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62854         Gary V. Vaughan <gary@gnu.org>.
62855
62856 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62857
62858         * lib/inttypes_.h: Undo previous change, since it was fixed
62859         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62860
62861 2007-07-13  Bruno Haible  <bruno@clisp.org>
62862
62863         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62864         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62865
62866 2007-07-13  Jim Meyering  <jim@meyering.net>
62867
62868         df: Don't fail for Tru64's "file-on-file mount".
62869         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62870         so we fall through and use statfs instead.  Details here:
62871         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62872         Reported by Albert Chin.
62873
62874 2007-07-13  Bruno Haible  <bruno@clisp.org>
62875
62876         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62877         * modules/configmake (License): Likewise.
62878         * modules/gettext (License): Likewise.
62879         * modules/gettext-h (License): Likewise.
62880         * modules/include_next (License): Likewise.
62881         * modules/link-warning (License): Likewise.
62882         * modules/localcharset (License): Likewise.
62883         * modules/localename (License): Likewise.
62884         * modules/lock (License): Likewise.
62885         * modules/relocatable-lib-lgpl (License): Likewise.
62886         * modules/size_max (License): Likewise.
62887         * modules/vasnprintf (License): Likewise.
62888         * modules/wchar (License): Likewise.
62889         * modules/xsize (License): Likewise.
62890
62891 2007-07-13  Bruno Haible  <bruno@clisp.org>
62892
62893         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62894         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62895
62896 2007-07-12  Bruno Haible  <bruno@clisp.org>
62897
62898         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62899         in the modules files.
62900
62901 2007-07-11  Karl Berry  <karl@gnu.org>
62902
62903         * MODULES.html.sh (func_module): use
62904          sed -e '\|^'"${includefile}"'$|d'
62905          instead of /.../d, to avoid errors on $includefile's containing /.
62906
62907 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62908
62909         * gnulib-tool (func_import): Avoid duplication of --avoid
62910         statements
62911         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62912         names to `_' in variable names.
62913
62914 2007-07-10  Eric Blake  <ebb9@byu.net>
62915
62916         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62917         * NEWS: Document this change.
62918
62919 2007-07-08  Bruno Haible  <bruno@clisp.org>
62920
62921         Update to Unicode 5.0.
62922         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62923         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62924         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62925         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62926         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62927         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
62928         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
62929         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
62930         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
62931         U+10A3F, U+1D242..U+1D244.
62932         (nonspacing_table_ind): Update.
62933         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
62934         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
62935
62936 2007-07-08  Bruno Haible  <bruno@clisp.org>
62937
62938         Update to Unicode 5.0.
62939         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
62940         code transform. Extend the name index field of unicode_name_to_code and
62941         unicode_code_to_name from 16 to 24 bits.
62942         * lib/uniname/uniname.c (unicode_character_name,
62943         unicode_name_character): Add the range 0x12xxx to the code transform.
62944         * lib/uniname/uninames.h: Regenerated.
62945         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
62946
62947 2007-07-07  Bruno Haible  <bruno@clisp.org>
62948
62949         * modules/wcwidth-tests: New file.
62950         * tests/test-wcwidth.c: New file.
62951
62952         Work around MacOS X wcwidth() bug.
62953         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
62954         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
62955         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
62956         original wcwidth in non-UTF-8 locales.
62957         * modules/wcwidth (Depends-on): Add localcharset, streq,
62958         uniwidth/width.
62959         * doc/functions/wcwidth.texi: Update.
62960
62961 2007-07-07  Bruno Haible  <bruno@clisp.org>
62962
62963         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
62964         (wcwidth): New declaration.
62965         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
62966         macros.
62967         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
62968         here. Prepare for creating <wchar.h> unconditionally.
62969         * modules/wchar (Depends-on): Add link-warning.
62970         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
62971         REPLACE_WCWIDTH, and GL_LINK_WARNING.
62972         * lib/wcwidth.h: Remove file.
62973         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
62974         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
62975         * modules/wcwidth (Files): Remove lib/wcwidth.h.
62976         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
62977         (Include): Replace wcwidth.h with <wchar.h>.
62978         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
62979         * lib/mbchar.h: Don't include wcwidth.h.
62980         * lib/mbswidth.c: Likewise.
62981         * NEWS: Mention the change.
62982
62983 2007-07-07  Bruno Haible  <bruno@clisp.org>
62984
62985         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
62986         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
62987         definition with an external declaration.
62988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
62989         defined as a function. Remove AC_C_INLINE requirement.
62990         * modules/wcwidth (Files): Add lib/wcwidth.c.
62991         (Makefile.am): Remove redundant statement.
62992
62993 2007-07-07  Bruno Haible  <bruno@clisp.org>
62994
62995         * MODULES.html.sh (Unicode string functions): Add the new modules.
62996
62997         * tests/uniwidth/test-u32-strwidth.c: New file.
62998         * modules/uniwidth/u32-strwidth-tests: New file.
62999
63000         * lib/uniwidth/u32-strwidth.c: New file.
63001         * modules/uniwidth/u32-strwidth: New file.
63002
63003         * tests/uniwidth/test-u16-strwidth.c: New file.
63004         * modules/uniwidth/u16-strwidth-tests: New file.
63005
63006         * lib/uniwidth/u16-strwidth.c: New file.
63007         * modules/uniwidth/u16-strwidth: New file.
63008
63009         * tests/uniwidth/test-u8-strwidth.c: New file.
63010         * modules/uniwidth/u8-strwidth-tests: New file.
63011
63012         * lib/uniwidth/u8-strwidth.c: New file.
63013         * modules/uniwidth/u8-strwidth: New file.
63014
63015         * tests/uniwidth/test-u32-width.c: New file.
63016         * modules/uniwidth/u32-width-tests: New file.
63017
63018         * lib/uniwidth/u32-width.c: New file.
63019         * modules/uniwidth/u32-width: New file.
63020
63021         * tests/uniwidth/test-u16-width.c: New file.
63022         * modules/uniwidth/u16-width-tests: New file.
63023
63024         * lib/uniwidth/u16-width.c: New file.
63025         * modules/uniwidth/u16-width: New file.
63026
63027         * tests/uniwidth/test-u8-width.c: New file.
63028         * modules/uniwidth/u8-width-tests: New file.
63029
63030         * lib/uniwidth/u8-width.c: New file.
63031         * modules/uniwidth/u8-width: New file.
63032
63033         * tests/uniwidth/test-uc_width.c: New file.
63034         * modules/uniwidth/width-tests: New file.
63035
63036         * lib/uniwidth/width.c: New file, from GNU libiconv.
63037         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63038         * modules/uniwidth/width: New file.
63039
63040         * lib/uniwidth.h: New file, from GNU libiconv.
63041         * modules/uniwidth/base: New file.
63042
63043 2007-07-07  Bruno Haible  <bruno@clisp.org>
63044
63045         * lib/uniname.h: New file, from GNU gettext.
63046         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63047         * lib/uniname/uninames.h: New file, from GNU gettext.
63048         * lib/uniname/uniname.c: New file, from GNU gettext.
63049         * tests/uniname/test-uninames.sh: New file.
63050         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63051         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63052         * modules/uniname/base: New file.
63053         * modules/uniname/uniname: New file.
63054         * modules/uniname/uniname-tests: New file.
63055         * MODULES.html.sh (Unicode string functions): Add the new modules.
63056
63057 2007-07-06  Bruno Haible  <bruno@clisp.org>
63058
63059         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63060
63061 2007-07-06  Bruno Haible  <bruno@clisp.org>
63062
63063         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63064         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63065         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63066         include <sys/time.h>.
63067         Reported by Eric Blake.
63068
63069 2007-07-06  Eric Blake  <ebb9@byu.net>
63070
63071         Fix testing canonicalize on cygwin.
63072         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63073         Revert patch from 2007-06-19.
63074         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63075         canonicalize module is also in use.
63076         * tests/test-canonicalize.c: New file.
63077         * tests/test-canonicalize.sh: Likewise.
63078         * modules/canonicalize-tests: Likewise.
63079
63080 2007-07-06  Jim Meyering  <jim@meyering.net>
63081
63082         * lib/getugroups.c (getugroups): Detect getgrent failure.
63083         Adjust comment to reflect reality: this function may return -1.
63084
63085 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63086
63087         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63088         the new TP address.
63089         (usage): Fix typo
63090         (gnulib_mk): New variable.
63091
63092 2007-07-05  Jim Meyering  <jim@meyering.net>
63093
63094         Don't let endgrent clobber errno, no matter how improbable.
63095         * lib/getugroups.c (getugroups): Save and restore errno around
63096         endgrent call.
63097
63098         Close the group DB even when failing with 2^31 or more members.
63099         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63100
63101 2007-07-04  Jim Meyering  <jim@meyering.net>
63102
63103         * lib/getugroups.h: New file.
63104         * lib/getugroups.c: Include "getugroups.h".
63105         Remove uses of "register" keyword.
63106         Move local variable, "cp", down into scope where used.
63107         Give "username" parameter the "const" attribute.
63108         * modules/getugroups (Files): Add lib/getugroups.h
63109
63110 2007-07-04  Karl Berry  <karl@gnu.org>
63111
63112         * MODULES.html.sh (func_all_modules): Complete rename of
63113         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63114
63115 2007-07-02  Bruno Haible  <bruno@clisp.org>
63116
63117         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63118         mode, when inttypes.h comes from gnulib.
63119         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63120
63121 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63122
63123         * NEWS: Mention lgpl module name change.
63124
63125         * modules/lgpl-2.1: Renamed from lgpl.
63126
63127         * NEWS: Mention gpl module name change.
63128
63129         * modules/gpl-3.0: New file, based on gpl-2.0.
63130
63131         * modules/gpl-2.0: Renamed from gpl.
63132
63133         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63134         doc/gpl-2.0.texi.
63135
63136 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63137
63138         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63139         #define __STDC_LIMIT_MACROS temporarily while including
63140         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63141         Problem reported by Joel E. Denny in
63142         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63143
63144 2007-07-01  Bruno Haible  <bruno@clisp.org>
63145
63146         * lib/unistdio.h: New file.
63147         * lib/unistdio/u-asnprintf.h: New file.
63148         * lib/unistdio/u-asprintf.h: New file.
63149         * lib/unistdio/u-printf-args.c: New file.
63150         * lib/unistdio/u-printf-args.h: New file.
63151         * lib/unistdio/u-printf-parse.h: New file.
63152         * lib/unistdio/u-snprintf.h: New file.
63153         * lib/unistdio/u-sprintf.h: New file.
63154         * lib/unistdio/u-vasprintf.h: New file.
63155         * lib/unistdio/u-vsnprintf.h: New file.
63156         * lib/unistdio/u-vsprintf.h: New file.
63157         * lib/unistdio/ulc-asnprintf.c: New file.
63158         * lib/unistdio/ulc-asprintf.c: New file.
63159         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63160         * lib/unistdio/ulc-printf-parse.c: New file.
63161         * lib/unistdio/ulc-snprintf.c: New file.
63162         * lib/unistdio/ulc-sprintf.c: New file.
63163         * lib/unistdio/ulc-vasnprintf.c: New file.
63164         * lib/unistdio/ulc-vasprintf.c: New file.
63165         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63166         * lib/unistdio/ulc-vsnprintf.c: New file.
63167         * lib/unistdio/ulc-vsprintf.c: New file.
63168         * lib/unistdio/u8-asnprintf.c: New file.
63169         * lib/unistdio/u8-asprintf.c: New file.
63170         * lib/unistdio/u8-printf-parse.c: New file.
63171         * lib/unistdio/u8-snprintf.c: New file.
63172         * lib/unistdio/u8-sprintf.c: New file.
63173         * lib/unistdio/u8-vasnprintf.c: New file.
63174         * lib/unistdio/u8-vasprintf.c: New file.
63175         * lib/unistdio/u8-vsnprintf.c: New file.
63176         * lib/unistdio/u8-vsprintf.c: New file.
63177         * lib/unistdio/u8-u8-asnprintf.c: New file.
63178         * lib/unistdio/u8-u8-asprintf.c: New file.
63179         * lib/unistdio/u8-u8-snprintf.c: New file.
63180         * lib/unistdio/u8-u8-sprintf.c: New file.
63181         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63182         * lib/unistdio/u8-u8-vasprintf.c: New file.
63183         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63184         * lib/unistdio/u8-u8-vsprintf.c: New file.
63185         * lib/unistdio/u16-asnprintf.c: New file.
63186         * lib/unistdio/u16-asprintf.c: New file.
63187         * lib/unistdio/u16-printf-parse.c: New file.
63188         * lib/unistdio/u16-snprintf.c: New file.
63189         * lib/unistdio/u16-sprintf.c: New file.
63190         * lib/unistdio/u16-vasnprintf.c: New file.
63191         * lib/unistdio/u16-vasprintf.c: New file.
63192         * lib/unistdio/u16-vsnprintf.c: New file.
63193         * lib/unistdio/u16-vsprintf.c: New file.
63194         * lib/unistdio/u16-u16-asnprintf.c: New file.
63195         * lib/unistdio/u16-u16-asprintf.c: New file.
63196         * lib/unistdio/u16-u16-snprintf.c: New file.
63197         * lib/unistdio/u16-u16-sprintf.c: New file.
63198         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63199         * lib/unistdio/u16-u16-vasprintf.c: New file.
63200         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63201         * lib/unistdio/u16-u16-vsprintf.c: New file.
63202         * lib/unistdio/u32-asnprintf.c: New file.
63203         * lib/unistdio/u32-asprintf.c: New file.
63204         * lib/unistdio/u32-printf-parse.c: New file.
63205         * lib/unistdio/u32-snprintf.c: New file.
63206         * lib/unistdio/u32-sprintf.c: New file.
63207         * lib/unistdio/u32-vasnprintf.c: New file.
63208         * lib/unistdio/u32-vasprintf.c: New file.
63209         * lib/unistdio/u32-vsnprintf.c: New file.
63210         * lib/unistdio/u32-vsprintf.c: New file.
63211         * lib/unistdio/u32-u32-asnprintf.c: New file.
63212         * lib/unistdio/u32-u32-asprintf.c: New file.
63213         * lib/unistdio/u32-u32-snprintf.c: New file.
63214         * lib/unistdio/u32-u32-sprintf.c: New file.
63215         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63216         * lib/unistdio/u32-u32-vasprintf.c: New file.
63217         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63218         * lib/unistdio/u32-u32-vsprintf.c: New file.
63219         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63220         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63221         * tests/unistdio/test-ulc-printf1.h: New file.
63222         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63223         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63224         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63225         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63226         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63227         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63228         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63229         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63230         * tests/unistdio/test-u8-asnprintf1.c: New file.
63231         * tests/unistdio/test-u8-asnprintf1.h: New file.
63232         * tests/unistdio/test-u8-printf1.h: New file.
63233         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63234         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63235         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63236         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63237         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63238         * tests/unistdio/test-u8-vasprintf1.c: New file.
63239         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63240         * tests/unistdio/test-u8-vsprintf1.c: New file.
63241         * tests/unistdio/test-u16-asnprintf1.c: New file.
63242         * tests/unistdio/test-u16-asnprintf1.h: New file.
63243         * tests/unistdio/test-u16-printf1.h: New file.
63244         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63245         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63246         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63247         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63248         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63249         * tests/unistdio/test-u16-vasprintf1.c: New file.
63250         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63251         * tests/unistdio/test-u16-vsprintf1.c: New file.
63252         * tests/unistdio/test-u32-asnprintf1.c: New file.
63253         * tests/unistdio/test-u32-asnprintf1.h: New file.
63254         * tests/unistdio/test-u32-printf1.h: New file.
63255         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63256         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63257         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63258         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63259         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63260         * tests/unistdio/test-u32-vasprintf1.c: New file.
63261         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63262         * tests/unistdio/test-u32-vsprintf1.c: New file.
63263         * modules/unistdio/base: New file.
63264         * modules/unistdio/u-printf-args: New file.
63265         * modules/unistdio/ulc-asnprintf: New file.
63266         * modules/unistdio/ulc-asprintf: New file.
63267         * modules/unistdio/ulc-fprintf: New file.
63268         * modules/unistdio/ulc-printf-parse: New file.
63269         * modules/unistdio/ulc-snprintf: New file.
63270         * modules/unistdio/ulc-sprintf: New file.
63271         * modules/unistdio/ulc-vasnprintf: New file.
63272         * modules/unistdio/ulc-vasprintf: New file.
63273         * modules/unistdio/ulc-vfprintf: New file.
63274         * modules/unistdio/ulc-vsnprintf: New file.
63275         * modules/unistdio/ulc-vsprintf: New file.
63276         * modules/unistdio/u8-asnprintf: New file.
63277         * modules/unistdio/u8-asprintf: New file.
63278         * modules/unistdio/u8-printf-parse: New file.
63279         * modules/unistdio/u8-snprintf: New file.
63280         * modules/unistdio/u8-sprintf: New file.
63281         * modules/unistdio/u8-vasnprintf: New file.
63282         * modules/unistdio/u8-vasprintf: New file.
63283         * modules/unistdio/u8-vsnprintf: New file.
63284         * modules/unistdio/u8-vsprintf: New file.
63285         * modules/unistdio/u8-u8-asnprintf: New file.
63286         * modules/unistdio/u8-u8-asprintf: New file.
63287         * modules/unistdio/u8-u8-snprintf: New file.
63288         * modules/unistdio/u8-u8-sprintf: New file.
63289         * modules/unistdio/u8-u8-vasnprintf: New file.
63290         * modules/unistdio/u8-u8-vasprintf: New file.
63291         * modules/unistdio/u8-u8-vsnprintf: New file.
63292         * modules/unistdio/u8-u8-vsprintf: New file.
63293         * modules/unistdio/u16-asnprintf: New file.
63294         * modules/unistdio/u16-asprintf: New file.
63295         * modules/unistdio/u16-printf-parse: New file.
63296         * modules/unistdio/u16-snprintf: New file.
63297         * modules/unistdio/u16-sprintf: New file.
63298         * modules/unistdio/u16-vasnprintf: New file.
63299         * modules/unistdio/u16-vasprintf: New file.
63300         * modules/unistdio/u16-vsnprintf: New file.
63301         * modules/unistdio/u16-vsprintf: New file.
63302         * modules/unistdio/u16-u16-asnprintf: New file.
63303         * modules/unistdio/u16-u16-asprintf: New file.
63304         * modules/unistdio/u16-u16-snprintf: New file.
63305         * modules/unistdio/u16-u16-sprintf: New file.
63306         * modules/unistdio/u16-u16-vasnprintf: New file.
63307         * modules/unistdio/u16-u16-vasprintf: New file.
63308         * modules/unistdio/u16-u16-vsnprintf: New file.
63309         * modules/unistdio/u16-u16-vsprintf: New file.
63310         * modules/unistdio/u32-asnprintf: New file.
63311         * modules/unistdio/u32-asprintf: New file.
63312         * modules/unistdio/u32-printf-parse: New file.
63313         * modules/unistdio/u32-snprintf: New file.
63314         * modules/unistdio/u32-sprintf: New file.
63315         * modules/unistdio/u32-vasnprintf: New file.
63316         * modules/unistdio/u32-vasprintf: New file.
63317         * modules/unistdio/u32-vsnprintf: New file.
63318         * modules/unistdio/u32-vsprintf: New file.
63319         * modules/unistdio/u32-u32-asnprintf: New file.
63320         * modules/unistdio/u32-u32-asprintf: New file.
63321         * modules/unistdio/u32-u32-snprintf: New file.
63322         * modules/unistdio/u32-u32-sprintf: New file.
63323         * modules/unistdio/u32-u32-vasnprintf: New file.
63324         * modules/unistdio/u32-u32-vasprintf: New file.
63325         * modules/unistdio/u32-u32-vsnprintf: New file.
63326         * modules/unistdio/u32-u32-vsprintf: New file.
63327         * modules/unistdio/ulc-asnprintf-tests: New file.
63328         * modules/unistdio/ulc-vasnprintf-tests: New file.
63329         * modules/unistdio/ulc-vasprintf-tests: New file.
63330         * modules/unistdio/ulc-vsnprintf-tests: New file.
63331         * modules/unistdio/ulc-vsprintf-tests: New file.
63332         * modules/unistdio/u8-asnprintf-tests: New file.
63333         * modules/unistdio/u8-vasnprintf-tests: New file.
63334         * modules/unistdio/u8-vasprintf-tests: New file.
63335         * modules/unistdio/u8-vsnprintf-tests: New file.
63336         * modules/unistdio/u8-vsprintf-tests: New file.
63337         * modules/unistdio/u16-asnprintf-tests: New file.
63338         * modules/unistdio/u16-vasnprintf-tests: New file.
63339         * modules/unistdio/u16-vasprintf-tests: New file.
63340         * modules/unistdio/u16-vsnprintf-tests: New file.
63341         * modules/unistdio/u16-vsprintf-tests: New file.
63342         * modules/unistdio/u32-asnprintf-tests: New file.
63343         * modules/unistdio/u32-vasnprintf-tests: New file.
63344         * modules/unistdio/u32-vasprintf-tests: New file.
63345         * modules/unistdio/u32-vsnprintf-tests: New file.
63346         * modules/unistdio/u32-vsprintf-tests: New file.
63347         * MODULES.html.sh (Unicode string functions): Add the new modules.
63348
63349 2007-07-01  Bruno Haible  <bruno@clisp.org>
63350
63351         * lib/sprintf.c (sprintf): Limit the available length estimation,
63352         to avoid address wraparound.
63353         * lib/vsprintf.c (vsprintf): Likewise.
63354         * modules/sprintf-posix (Dependencies): Add stdint.
63355         * modules/vsprintf-posix (Dependencies): Likewise.
63356
63357 2007-07-01  Bruno Haible  <bruno@clisp.org>
63358
63359         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63360         Windows PATH as well. Conservative double-quoting. Comments.
63361
63362 2007-07-01  Bruno Haible  <bruno@clisp.org>
63363             Eric Blake  <ebb9@byu.net>
63364             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63365
63366         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63367         empty components in $PATH, denoting '.'.
63368
63369 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63370
63371         * gnulib-tool: Fix indentation.
63372         (func_create_megatestdir): Likewise.
63373         Report by Bruno Haible.
63374
63375 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63376
63377         Sync from Automake.
63378         * build-aux/gnupload: Fix shell portability issues with for loops.
63379         Report by Karl Berry.
63380
63381 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63382
63383         * build-aux/maint.mk (POURL): Use translationproject.org.
63384
63385 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63386             Bruno Haible  <bruno@clisp.org>
63387
63388         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63389         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63390         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63391         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63392         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63393
63394 2007-06-27  Bruno Haible  <bruno@clisp.org>
63395
63396         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63397         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63398
63399 2007-06-26  Karl Berry  <karl@gnu.org>
63400
63401         * MODULES.html.sh: remove xreadlink-with-size.
63402
63403 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63404
63405         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63406         method that I hope also handles the double-include problem noted
63407         by Bruno Haible in
63408         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63409
63410 2007-06-23  Bruno Haible  <bruno@clisp.org>
63411
63412         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63413         Don't let the 'mostlyclean' target fail if the last subdirectory could
63414         not be removed.
63415         Reported by Karl Berry.
63416
63417 2007-06-23  Bruno Haible  <bruno@clisp.org>
63418
63419         * gnulib-tool (echo): Add a speedier workaround for ksh.
63420         * tests/test-echo.sh: Likewise.
63421
63422 2007-06-23  Bruno Haible  <bruno@clisp.org>
63423
63424         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63425         * tests/test-echo.sh: Likewise.
63426
63427 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63428
63429         * gnulib-tool (IFS): Initialize early, so we don't set it to
63430         empty later.
63431         (self_abspathname): Rewrite algorithm to set it, reindent.
63432         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63433         (func_create_megatestdir): Merge some sed scripts.
63434
63435 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63436
63437         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63438         exposed by Sun Studio 11 cc on Solaris 8.
63439
63440 2007-06-22  Bruno Haible  <bruno@clisp.org>
63441
63442         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63443         backslashes.
63444         * tests/test-echo.sh: New file.
63445
63446 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63447
63448         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63449         simplify `sed_replace_build_aux' scripts, they are portable but
63450         echoing them with `echo' is not.
63451         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63452
63453 2007-06-21  Karl Berry  <karl@gnu.org>
63454
63455         * config/srclist.txt: guess we can't handle the licenses via
63456         srclist at the moment.
63457
63458 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63459
63460         * MODULES.html.sh: Add include_next.
63461         * modules/include_next: New file.
63462
63463 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63464
63465         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63466         INCLUDE_NEXT.
63467         (gl_CHECK_NEXT_HEADERS): New macro.
63468         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63469         the obsolescent gl_ABSOLUTE_HEADER.
63470         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63471         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63472         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63473         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63474         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63475         * m4/math_h.m4 (gl_MATH_H): Likewise.
63476         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63477         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63478         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63479         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63480         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63481         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63482         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63483         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63484         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63485         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63486         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63487         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63488         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63489         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63490         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63491         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63492         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63493         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63494         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63495         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63496         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63497         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63498         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63499         * lib/float_.h: Likewise.
63500         * lib/inttypes_.h: Likewise.
63501         * lib/math_.h: Likewise.
63502         * lib/search_.h: Likewise.
63503         * lib/signal_.h: Likewise.
63504         * lib/stdint_.h: Likewise.
63505         * lib/stdio_.h: Likewise.
63506         * lib/stdlib_.h: Likewise.
63507         * lib/string_.h: Likewise.
63508         * lib/sys_stat_.h: Likewise.
63509         * lib/sys_time_.h: Likewise.
63510         * lib/time_.h: Likewise.
63511         * lib/unistd_.h: Likewise.
63512         * lib/wchar_.h: Likewise.
63513         * lib/wctype_.h: Likewise.
63514         * lib/dirent_.h: Likewise.
63515         * lib/iconv_.h: Likewise.
63516         * lib/locale_.h: Likewise.
63517         * lib/netinet_in_.h: Likewise.
63518         * lib/sys_select_.h: Likewise.
63519         * lib/sys_socket_.h: Likewise.
63520         * lib/sysexits_.h: Likewise.
63521         * modules/fcntl (Depends-on): Depend on include_next, not
63522         absolute_header.
63523         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63524         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63525         * modules/fchdir: Likewise.
63526         * modules/float: Likewise.
63527         * modules/iconv_open: Likewise.
63528         * modules/inttypes: Likewise.
63529         * modules/locale: Likewise.
63530         * modules/math: Likewise.
63531         * modules/netinet_in: Likewise.
63532         * modules/search: Likewise.
63533         * modules/signal: Likewise.
63534         * modules/stdint: Likewise.
63535         * modules/stdio: Likewise.
63536         * modules/stdlib: Likewise.
63537         * modules/string: Likewise.
63538         * modules/sys_select: Likewise.
63539         * modules/sys_socket: Likewise.
63540         * modules/sys_stat: Likewise.
63541         * modules/sys_time: Likewise.
63542         * modules/sysexits: Likewise.
63543         * modules/time: Likewise.
63544         * modules/unistd: Likewise.
63545         * modules/wchar: Likewise.
63546         * modules/wctype: Likewise.
63547         * modules/sys_stat: Change maintainer to "all".
63548         * modules/unistd: Likewise.
63549
63550 2007-06-20  Karl Berry  <karl@gnu.org>
63551
63552         * config/srclist.txt: track www changes in license files.
63553
63554 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63555
63556         * build-aux/bootstrap: Remove stray dot.
63557         Make sure build_aux settings are honored when linking
63558         gnulib_extra_files.
63559
63560 2007-06-19  Eric Blake  <ebb9@byu.net>
63561
63562         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63563         Allow compilation on cygwin.
63564
63565 2007-06-19  Jim Meyering  <jim@meyering.net>
63566
63567         xreadlink-with-size: Remove module.  No longer used.
63568         Ex-callers now use xreadlink or mreadlink-with-size.
63569         * modules/xreadlink-with-size: Remove module.
63570         * lib/xreadlink-with-size.c: Remove file.
63571         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63572         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63573         just before the function definition *is* accurate.
63574
63575         Eliminate one way canonicalize_filename_mode could exit.
63576         * lib/canonicalize.c (canonicalize_filename_mode):
63577         Use mreadlink_with_size, not xreadlink_with_size.
63578
63579 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63580
63581         Detect porting problems to FreeBSD/arm, which has time_t wider than
63582         long int.  Original problem reported for GNU diff by Xin Li in
63583         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63584         * modules/getdate (Depends-on): Add intprops, verify.
63585         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63586         is an integer type no wider than long int.
63587
63588 2007-06-18  Jim Meyering  <jim@meyering.net>
63589
63590         New module: mreadlink-with-size.
63591         * MODULES.html.sh: Add mreadlink-with-size.
63592         * modules/mreadlink-with-size: New module
63593         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63594         not xreadlink-with-size.
63595         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63596
63597 2007-06-16  Bruno Haible  <bruno@clisp.org>
63598
63599         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63600         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63601         Reported by Gary V. Vaughan <gary@gnu.org>.
63602
63603 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63604
63605         Revamp lchown so that it lives in unistd.h where it belongs.
63606         * lib/lchown.h: Remove.
63607         * lib/dirchownmod.c: Don't include lib/lchown.h.
63608         * lib/fchownat.c: Likewise.
63609         * lib/openat.c: Likewise.
63610         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63611         does not follow symlinks.
63612         (EOPNOTSUPP): Define if not defined.
63613         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63614         is defined to 0.
63615         (lchown): New decl.
63616         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63617         Do not check for lchown decl.
63618         Set REPLACE_LCHOWN.
63619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63620         REPLACE_LCHOWN.
63621         * modules/chown: Make it clear it follows symlinks.
63622         * modules/lchown: Make it clear it doesn't follow symlinks.
63623         (Files): Remove lib/lchown.h
63624         (Depends-on): Add unistd.
63625         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63626         (Include): Include <unistd.h>, not "lchown.h".
63627         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63628         REPLACE_LCHOWN.
63629
63630 2007-06-15  Jim Meyering  <jim@meyering.net>
63631
63632         Change license (GPL to LGPL) of fsusage and dependents.
63633         * modules/fsusage (License): Change to LGPL.
63634         * modules/full-read (License): Likewise.
63635         * modules/full-write (License): Likewise.
63636         * modules/safe-read (License): Likewise.
63637         * modules/safe-write (License): Likewise.
63638
63639 2007-06-14  Ben Pfaff  <blp@gnu.org>
63640
63641         Missing part of allocsa -> malloca transition.
63642         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63643         gl_MALLOCA.
63644
63645 2007-06-12  Bruno Haible  <bruno@clisp.org>
63646
63647         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63648         to ia64, x86_64, i386.
63649         Reported by Eric Blake.
63650
63651 2007-06-12  Bruno Haible  <bruno@clisp.org>
63652
63653         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63654         cross-compiling to x86_64.
63655
63656 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63657
63658         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63659         glitch reported by Ralf Wildenhues in
63660         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63661
63662         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63663         Vin Shelton.
63664
63665 2007-06-11  Bruno Haible  <bruno@clisp.org>
63666
63667         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63668         replacement string.
63669         Reported by Eric Blake.
63670
63671 2007-06-10  Bruno Haible  <bruno@clisp.org>
63672
63673         Prepare vasnprintf code for use with Unicode strings.
63674         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63675         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63676         TYPE_U32_STRING.
63677         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63678         a_u32_string variants.
63679         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63680         * lib/printf-args.c: Don't include config.h and the specification
63681         header if PRINTF_FETCHARGS is already defined.
63682         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63683         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63684         TYPE_U16_STRING, TYPE_U32_STRING.
63685         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63686         u16_directive, u16_directives, u32_directive, u32_directives): New
63687         types.
63688         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63689         New declarations.
63690         * lib/printf-parse.c: Don't include config.h and the specification
63691         header if PRINTF_PARSE is already defined. Eliminate the set of
63692         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63693         them now. Include c-ctype.h.
63694         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63695         directive and CHAR_T_ONLY_ASCII.
63696         * lib/vasnprintf.c: Don't include config.h and the specification header
63697         if VASNPRINTF is already defined.
63698         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63699         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63700         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63701         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63702         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63703         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63704         code accordingly.
63705         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63706         pad_ourselves also in this case, with the 'c' and 's' directives, and
63707         with a different notion of "width".
63708         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63709
63710 2007-06-10  Bruno Haible  <bruno@clisp.org>
63711
63712         * modules/unistr/u32-mbsnlen: New file.
63713         * lib/unistr/u32-mbsnlen.c: New file.
63714
63715         * modules/unistr/u16-mbsnlen: New file.
63716         * lib/unistr/u16-mbsnlen.c: New file.
63717
63718         * modules/unistr/u8-mbsnlen: New file.
63719         * lib/unistr/u8-mbsnlen.c: New file.
63720
63721         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63722         declarations.
63723
63724 2007-06-10  Bruno Haible  <bruno@clisp.org>
63725
63726         * lib/string_.h (mbsnlen): New declaration.
63727         * lib/mbsnlen.c: New file.
63728         * m4/mbsnlen.m4: New file.
63729         * modules/mbsnlen: New file.
63730         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63731         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63732         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63733
63734 2007-06-10  Bruno Haible  <bruno@clisp.org>
63735
63736         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63737
63738 2007-06-10  Bruno Haible  <bruno@clisp.org>
63739
63740         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63741         * lib/mbuiter.h: Likewise.
63742
63743 2007-06-10  Bruno Haible  <bruno@clisp.org>
63744
63745         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63746         declaration.
63747
63748 2007-06-10  Karl Berry  <karl@gnu.org>
63749
63750         * config/srclist.txt: remove gettext entries, Bruno prefers
63751         to update individually.
63752
63753 2007-06-10  Bruno Haible  <bruno@clisp.org>
63754
63755         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63756         'maxlen'. Ensure only length + width bytes are allocated, not
63757         length + 1 + width.
63758
63759 2007-06-09  Bruno Haible  <bruno@clisp.org>
63760
63761         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63762         (CHAR_T): Remove macro.
63763         (VASNPRINTF): Update.
63764
63765 2007-06-09  Bruno Haible  <bruno@clisp.org>
63766
63767         * MODULES.html.sh (Unicode string functions): Add the new modules.
63768
63769         * modules/uniconv/u32-conv-to-enc: New file.
63770         * lib/uniconv/u32-conv-to-enc.c: New file.
63771         * modules/uniconv/u32-conv-to-enc-tests: New file.
63772         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63773
63774         * modules/uniconv/u16-conv-to-enc: New file.
63775         * lib/uniconv/u16-conv-to-enc.c: New file.
63776         * lib/uniconv/u-conv-to-enc.h: New file.
63777         * modules/uniconv/u16-conv-to-enc-tests: New file.
63778         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63779
63780         * modules/uniconv/u8-conv-to-enc: New file.
63781         * lib/uniconv/u8-conv-to-enc.c: New file.
63782         * modules/uniconv/u8-conv-to-enc-tests: New file.
63783         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63784
63785         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63786         u32_conv_to_encoding): New declarations.
63787
63788 2007-06-09  Bruno Haible  <bruno@clisp.org>
63789
63790         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63791
63792 2007-06-09  Bruno Haible  <bruno@clisp.org>
63793
63794         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63795         * modules/malloca: Renamed from modules/allocsa, updated.
63796         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63797         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63798         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63799         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63800         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63801         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63802         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63803         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63804         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63805         * modules/c-strcasestr (Depends-on): Update.
63806         * lib/c-strcasestr.c: Update.
63807         * modules/c-strstr (Depends-on): Update.
63808         * lib/c-strstr.c: Update.
63809         * modules/canonicalize-lgpl (Depends-on): Update.
63810         * lib/canonicalize-lgpl.c: Update.
63811         * modules/clean-temp (Depends-on): Update.
63812         * lib/clean-temp.c: Update.
63813         * modules/csharpcomp (Depends-on): Update.
63814         * lib/csharpcomp.c: Update.
63815         * modules/csharpexec (Depends-on): Update.
63816         * lib/csharpexec.c: Update.
63817         * modules/javacomp (Depends-on): Update.
63818         * lib/javacomp.c: Update.
63819         * modules/javaexec (Depends-on): Update.
63820         * lib/javaexec.c: Update.
63821         * modules/mbscasestr (Depends-on): Update.
63822         * lib/mbscasestr.c: Update.
63823         * modules/mbsstr (Depends-on): Update.
63824         * lib/mbsstr.c: Update.
63825         * modules/setenv (Depends-on): Update.
63826         * lib/setenv.c: Update.
63827         * modules/strcasestr (Depends-on): Update.
63828         * lib/strcasestr.c: Update.
63829         * modules/striconveha (Depends-on): Update.
63830         * lib/striconveha.c: Update.
63831         * modules/relocatable-prog-wrapper (Files): Update.
63832         * lib/relocwrapper.c: Update.
63833         * build-aux/install-reloc: Update.
63834         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63835
63836 2007-06-08  Bruno Haible  <bruno@clisp.org>
63837
63838         Port to uClibc.
63839         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63840         * lib/fpurge.c (fpurge): Likewise.
63841         * lib/freading.c (freading): Likewise.
63842         * lib/fseeko.c (rpl_fseeko): Likewise.
63843         * lib/fseterr.c (fseterr): Likewise.
63844         * lib/fwriting.c (fwriting): Likewise.
63845         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63846
63847 2007-06-08  Bruno Haible  <bruno@clisp.org>
63848
63849         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63850         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63851         * modules/gettext (Files): Add m4/intlmacosx.m4.
63852
63853 2007-06-07  Bruno Haible  <bruno@clisp.org>
63854
63855         * modules/localename-tests: New file.
63856         * tests/test-localename.c: New file.
63857
63858         New module 'localename'.
63859         * lib/localename.h: New file.
63860         * lib/localename.c: New file, from GNU gettext.
63861         * m4/localename.m4: New file.
63862         * modules/localename: New file.
63863
63864 2007-06-07  Bruno Haible  <bruno@clisp.org>
63865
63866         Work around the lack of <wchar.h> on some builds of uClibc.
63867         * doc/headers/wchar.texi: Update.
63868         * lib/wchar_.h: Include <wchar.h> only if it exists.
63869         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63870         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63871         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63872         doesn't exist.
63873         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63874         * modules/mbfile (Depends-on): Add wchar.
63875         * modules/mbiter (Depends-on): Likewise.
63876         * modules/mbuiter (Depends-on): Likewise.
63877         Reported by Simon Josefsson.
63878
63879 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63880
63881         Work around problem reported by Steven M. Schweda in
63882         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63883         Tru64 5.1B with the Compaq compiler environment installed declares
63884         an 'isblank' function but does not define it in the C library.
63885         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63886         * lib/regex_internal.h (isblank): Likewise.
63887         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63888         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63889
63890 2007-06-05  Bruno Haible  <bruno@clisp.org>
63891
63892         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63893         ia64.
63894         * modules/printf-safe: New file.
63895         * modules/fprintf-posix (Depends-on): Add printf-safe.
63896         * modules/printf-posix (Depends-on): Likewise.
63897         * modules/snprintf-posix (Depends-on): Likewise.
63898         * modules/sprintf-posix (Depends-on): Likewise.
63899         * modules/vasnprintf-posix (Depends-on): Likewise.
63900         * modules/vasprintf-posix (Depends-on): Likewise.
63901         * modules/vfprintf-posix (Depends-on): Likewise.
63902         * modules/vprintf-posix (Depends-on): Likewise.
63903         * modules/vsnprintf-posix (Depends-on): Likewise.
63904         * modules/vsprintf-posix (Depends-on): Likewise.
63905         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63906         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63907         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63908         "no" on i386, x86_64, ia64.
63909         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
63910         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63911         on i386, x86_64, ia64.
63912         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
63913         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63914         on i386, x86_64, ia64.
63915         * tests/test-vasnprintf-posix.c: Include float.h.
63916         (LDBL80_WORDS): New macro.
63917         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63918         on i386, x86_64, ia64.
63919         * tests/test-vasprintf-posix.c: Include float.h.
63920         (LDBL80_WORDS): New macro.
63921         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63922         on i386, x86_64, ia64.
63923         * tests/test-snprintf-posix.c: Include float.h.
63924         * tests/test-sprintf-posix.c: Likewise.
63925         * tests/test-vsnprintf-posix.c: Likewise.
63926         * tests/test-vsprintf-posix.c: Likewise.
63927
63928 2007-06-05  Bruno Haible  <bruno@clisp.org>
63929
63930         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
63931         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
63932         non-IEEE numbers on i386, x86_64, ia64.
63933         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
63934         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
63935         * tests/test-isnanl.h: Include float.h.
63936         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
63937
63938 2007-06-05  Bruno Haible  <bruno@clisp.org>
63939
63940         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
63941         also the %a / %A. Handle the %a / %A code before this extra handling.
63942
63943 2007-06-05  Bruno Haible  <bruno@clisp.org>
63944
63945         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
63946         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
63947
63948 2007-06-05  Bruno Haible  <bruno@clisp.org>
63949
63950         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
63951         typo in variable name.
63952
63953 2007-06-05  Eric Blake  <ebb9@byu.net>
63954
63955         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
63956         Reported by Simon Josefsson.
63957
63958 2007-06-04  Bruno Haible  <bruno@clisp.org>
63959
63960         Avoid test failures on some PowerPC platforms.
63961         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
63962         Define differently for PowerPC.
63963         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
63964         Reported by Gary V. Vaughan <gary@gnu.org>.
63965
63966 2007-06-02  Bruno Haible  <bruno@clisp.org>
63967
63968         Fix test-stdint failure on FreeBSD/ia64.
63969         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
63970         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
63971         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
63972         * doc/headers/stdint.texi: Update.
63973
63974 2007-06-01  Bruno Haible  <bruno@clisp.org>
63975
63976         * tests/test-binary-io.c (main): Pass a third argument to open().
63977         Reported by Gary V. Vaughan <gary@gnu.org>.
63978
63979 2007-06-01  Bruno Haible  <bruno@clisp.org>
63980
63981         * doc/functions/frexpl.texi: Update for mingw.
63982
63983 2007-06-01  Bruno Haible  <bruno@clisp.org>
63984
63985         * tests/test-lseek.c (main): Disable test of errno for invalid third
63986         argument.
63987         * doc/functions/lseek.texi: Update.
63988         Reported by Gary V. Vaughan <gary@gnu.org>.
63989
63990 2007-05-28  Bruno Haible  <bruno@clisp.org>
63991
63992         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
63993
63994 2007-05-31  Eric Blake  <ebb9@byu.net>
63995
63996         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
63997         cross compiling.
63998
63999 2007-05-30  Eric Blake  <ebb9@byu.net>
64000         and Bruno Haible  <bruno@clisp.org>
64001
64002         Work around mingw test failures exposed by m4-1.4.9b.
64003         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64004         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64005         moment.
64006
64007 2007-05-30  Bruno Haible  <bruno@clisp.org>
64008
64009         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64010         assuming that they are closed. Needed on HP-UX 11.
64011
64012 2007-05-29  Bruno Haible  <bruno@clisp.org>
64013
64014         Fix a problem with #include_next.
64015         * lib/dirent_.h: Split the double-inclusion guard.
64016         * lib/fcntl_.h: Likewise.
64017         * lib/float_.h: Likewise.
64018         * lib/iconv_.h: Likewise.
64019         * lib/inttypes_.h: Likewise.
64020         * lib/locale_.h: Likewise.
64021         * lib/math_.h: Likewise.
64022         * lib/netinet_in_.h: Likewise.
64023         * lib/search_.h: Likewise.
64024         * lib/signal_.h: Likewise.
64025         * lib/stdint_.h: Likewise.
64026         * lib/stdio_.h: Likewise.
64027         * lib/stdlib_.h: Likewise.
64028         * lib/string_.h: Likewise.
64029         * lib/sys_select_.h: Likewise.
64030         * lib/sys_socket_.h: Likewise.
64031         * lib/sys_stat_.h: Likewise.
64032         * lib/sys_time_.h: Likewise.
64033         * lib/sysexits_.h: Likewise.
64034         * lib/time_.h: Likewise.
64035         * lib/unistd_.h: Likewise.
64036         * lib/wchar_.h: Likewise.
64037         * lib/wctype_.h: Likewise.
64038
64039 2007-05-29  Bruno Haible  <bruno@clisp.org>
64040
64041         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64042         for the moment.
64043
64044 2007-05-29  Bruno Haible  <bruno@clisp.org>
64045
64046         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64047         invocation.
64048         Reported by Eric Blake.
64049
64050 2007-05-29  Bruno Haible  <bruno@clisp.org>
64051
64052         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64053         compiling case.
64054
64055 2007-05-29  Eric Blake  <ebb9@byu.net>
64056             Bruno Haible  <bruno@clisp.org>
64057
64058         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64059         cross compiles.
64060
64061 2007-05-28  Eric Blake  <ebb9@byu.net>
64062
64063         * modules/closein-tests (test_closein_LDADD): Support test on
64064         cygwin with libtool.
64065
64066 2007-05-28  Bruno Haible  <bruno@clisp.org>
64067
64068         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64069         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64070         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64071         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64072         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64073         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64074         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64075         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64076         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64077
64078 2007-05-28  Eric Blake  <ebb9@byu.net>
64079
64080         Unconditionally include <config.h> in unit tests.
64081         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64082         * tests/test-allocsa.c, tests/test-arcfour.c,
64083         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64084         tests/test-array_list.c, tests/test-array_oset.c,
64085         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64086         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64087         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64088         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64089         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64090         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64091         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64092         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64093         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64094         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64095         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64096         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64097         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64098         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64099         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64100         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64101         test-md5.c, test-memmem.c, test-printf-posix.c,
64102         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64103         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64104         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64105         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64106         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64107         test-vasnprintf-posix2.c, test-vasnprintf.c,
64108         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64109         test-vfprintf-posix.c, test-vprintf-posix.c,
64110         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64111         test-xvasprintf.c: Likewise.
64112
64113 2007-05-28  Bruno Haible  <bruno@clisp.org>
64114
64115         * gnulib-tool (func_import): Remember the --with-tests command-line
64116         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64117         Reported by Eric Blake.
64118
64119 2007-05-28  Bruno Haible  <bruno@clisp.org>
64120
64121         * modules/ftell-tests: New file.
64122         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64123         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64124
64125         * lib/ftell.c: New file.
64126         * modules/ftell: New file.
64127         * m4/ftell.m4: New file.
64128         * doc/functions/ftell.texi: Update.
64129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64130         REPLACE_FTELL.
64131         * lib/stdio_.h (rpl_ftell): New declaration.
64132         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64133         REPLACE_FTELL.
64134
64135 2007-05-28  Eric Blake  <ebb9@byu.net>
64136
64137         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64138
64139 2007-05-28  Bruno Haible  <bruno@clisp.org>
64140
64141         * modules/fseek-tests: New file.
64142         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64143         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64144
64145         * lib/fseek.c: New file.
64146         * modules/fseek: New file.
64147         * m4/fseek.m4: New file.
64148         * doc/functions/fseek.texi: Update.
64149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64150         REPLACE_FSEEK.
64151         * lib/stdio_.h (rpl_fseek): New declaration.
64152         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64153         REPLACE_FSEEK.
64154
64155 2007-05-28  Bruno Haible  <bruno@clisp.org>
64156
64157         * lib/stdio_.h (fflush): More comments.
64158
64159 2007-05-28  Bruno Haible  <bruno@clisp.org>
64160
64161         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64162         runtime test.
64163
64164 2007-05-28  Eric Blake  <ebb9@byu.net>
64165
64166         Improve lseek module.
64167         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64168         * lib/unistd_.h (lseek): Scale back link warning message.
64169         * tests/test-lseek.c: Beef up test.
64170         * tests/test-lseek.sh: Exercise more facets of lseek.
64171         Reported by Bruno Haible.
64172
64173 2007-05-28  Bruno Haible  <bruno@clisp.org>
64174
64175         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64176         to define.
64177
64178 2007-05-27  Bruno Haible  <bruno@clisp.org>
64179
64180         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64181
64182 2007-05-27  Bruno Haible  <bruno@clisp.org>
64183
64184         * modules/openmp: New file.
64185         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64186         Noah Misch.
64187
64188 2007-05-26  Bruno Haible  <bruno@clisp.org>
64189
64190         * modules/chdir-long (Depends-on): Add fchdir.
64191         * modules/chdir-safer (Depends-on): Likewise.
64192         * modules/fts (Depends-on): Likewise.
64193         * modules/fts-lgpl (Depends-on): Likewise.
64194         * modules/openat (Depends-on): Likewise.
64195         * modules/savewd (Depends-on): Likewise.
64196
64197 2007-05-24  Eric Blake  <ebb9@byu.net>
64198
64199         Fix lseek on mingw.
64200         * modules/lseek: New module.
64201         * m4/lseek.m4: New file.
64202         * lib/lseek.c: New file.
64203         * modules/lseek-tests: New file.
64204         * tests/test-lseek.c: New file.
64205         * tests/test-lseek.sh: New file.
64206         * MODULES.html.sh: Document lseek module.
64207         * modules/fflush (Depends-on): Add lseek, fseeko.
64208         * modules/fseeko (Depends-on): Likewise.
64209         * modules/ftello (Depends-on): Likewise.
64210         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64211         broken.
64212         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64213         broken.
64214         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64215         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64216         * lib/ftello.c (rpl_ftello): Likewise.
64217         * tests/test-fseeko.c (main): Test this.
64218         * tests/test-fseeko.sh: Likewise.
64219         * tests/test-ftello.c (main): Likewise.
64220         * tests/test-ftello.sh: Likewise.
64221         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64222         implies replacing fseek.
64223         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64224         HAVE_FTELLO.
64225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64226         * modules/unistd (Makefile.am): Likewise.
64227         * lib/unistd_.h (lseek): Declare a replacement.
64228         * doc/functions/lseek.texi (lseek): Document this fix.
64229         * doc/functions/fseek.texi (fseek): Likewise.
64230         * doc/functions/ftell.texi (ftell): Likewise.
64231
64232 2007-05-24  Bruno Haible  <bruno@clisp.org>
64233
64234         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64235         in the printed representation of a NaN.
64236         * tests/test-vasprintf-posix.c (test_function): Likewise.
64237         * tests/test-snprintf-posix.h (test_function): Likewise.
64238         * tests/test-sprintf-posix.h (test_function): Likewise.
64239         Reported by Eric Blake.
64240
64241 2007-05-23  Eric Blake  <ebb9@byu.net>
64242
64243         Fix fseeko/ftello on cygwin 1.5.24.
64244         * doc/functions/fseeko.texi (fseeko): Document the fix.
64245         * doc/functions/ftello.texi (ftello): Document the fix.
64246         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64247         * doc/functions/stdout.text (stdout): New file.
64248         * doc/functions/stderr.text (stderr): New file.
64249         * doc/gnulib.texi (Function Substitutes): Use new files.
64250         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64251         prior to 1.7.0.
64252         * tests/test-ftello.c (main): Likewise for ftello.
64253         * tests/test-fseeko.sh: New file.
64254         * tests/test-ftello.sh: New file.
64255         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64256         with seekable stdin.
64257         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64258         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64259         (gl_REPLACE_FSEEKO): New macro.
64260         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64261         * modules/fseeko (Files): Distribute fseeko.c.
64262         * modules/ftello (Files): Distribute ftello.c.
64263         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64264         mode.
64265         * lib/ftello.c (rpl_ftello): New file.
64266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64267         fseeko, ftello.
64268         (gl_STDIN_LARGE_OFFSET): New macro.
64269         * modules/stdio (Makefile.am): Perform the replacement.
64270         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64271
64272 2007-05-23  Bruno Haible  <bruno@clisp.org>
64273
64274         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64275         GNULIB_POSIXCHECK is defined.
64276
64277 2007-05-21  Bruno Haible  <bruno@clisp.org>
64278
64279         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64280         Check also the output for NaN arguments. When cross-compiling, guess
64281         no on IRIX.
64282         * lib/vasnprintf.c: Update comments.
64283         * tests/test-vasnprintf-posix.c (strisnan): New function.
64284         (test_function): Use it.
64285         * tests/test-vasprintf-posix.c (strisnan): New function.
64286         (test_function): Use it.
64287         * tests/test-snprintf-posix.h (strisnan): New function.
64288         (test_function): Use it.
64289         * tests/test-sprintf-posix.h (strisnan): New function.
64290         (test_function): Use it.
64291         Reported by Eric Blake.
64292
64293 2007-05-20  Bruno Haible  <bruno@clisp.org>
64294
64295         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64296         numbers that fails on BeOS.
64297         * doc/functions/frexpl.texi: Update.
64298
64299 2007-05-20  Jim Meyering  <jim@meyering.net>
64300
64301         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64302         forced upon us by glibc-2.6.
64303
64304 2007-05-20  Bruno Haible  <bruno@clisp.org>
64305
64306         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64307         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64308         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64309         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64310         NEED_PRINTF_INFINITE.
64311         (is_infinitel): New function.
64312         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64313         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64314         gl_PREREQ_VASNPRINTF_INFINITE.
64315         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64316         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64317         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64318         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64319         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64320         gl_PREREQ_VASNPRINTF_INFINITE.
64321         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64322         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64323         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64324         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64325         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64326         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64327         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64328         * doc/functions/fprintf.texi: Update.
64329         * doc/functions/printf.texi: Update.
64330         * doc/functions/snprintf.texi: Update.
64331         * doc/functions/sprintf.texi: Update.
64332         * doc/functions/vfprintf.texi: Update.
64333         * doc/functions/vprintf.texi: Update.
64334         * doc/functions/vsnprintf.texi: Update.
64335         * doc/functions/vsprintf.texi: Update.
64336
64337 2007-05-20  Bruno Haible  <bruno@clisp.org>
64338
64339         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64340         was not found in libc.
64341         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64342
64343 2007-05-20  Bruno Haible  <bruno@clisp.org>
64344
64345         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64346         printed as "-nan" instead of "nan".
64347         * tests/test-vasprintf-posix.c (test_function): Likewise.
64348         * tests/test-snprintf-posix.h (test_function): Likewise.
64349         * tests/test-sprintf-posix.h (test_function): Likewise.
64350         Needed for HP-UX 11.
64351
64352 2007-05-20  Jim Meyering  <jim@meyering.net>
64353
64354         Fix buggy test for the fchownat-deref bug.
64355         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64356         symlink required for the run-test.  Without it, this test would
64357         always declare that fchownat doesn't work, and client code would
64358         unnecessarily use the replacement function with fixed libc.
64359         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64360         Reported by Greg Schafer.
64361
64362 2007-05-19  Bruno Haible  <bruno@clisp.org>
64363
64364         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64365         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64366         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64367         Needed for IRIX 6.5 and Solaris 2.5.1.
64368
64369 2007-05-19  Bruno Haible  <bruno@clisp.org>
64370
64371         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64372         (test_function): Skip tests involving -0.0 on platforms where
64373         -0.0 = 0.0.
64374         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64375         (test_function): Skip tests involving -0.0 on platforms where
64376         -0.0 = 0.0.
64377         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64378         (test_function): Skip tests involving -0.0 on platforms where
64379         -0.0 = 0.0.
64380         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64381         (test_function): Skip tests involving -0.0 on platforms where
64382         -0.0 = 0.0.
64383         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64384         tests.
64385         * tests/test-printf-posix.h (test_function): Likewise.
64386         * tests/test-printf-posix.output: Remove all -0.0 related results.
64387         Needed for IRIX 6.5.
64388
64389 2007-05-19  Bruno Haible  <bruno@clisp.org>
64390
64391         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64392         printed as "nan0x7fffffff" instead of "nan".
64393         * tests/test-vasprintf-posix.c (test_function): Likewise.
64394         * tests/test-snprintf-posix.h (test_function): Likewise.
64395         * tests/test-sprintf-posix.h (test_function): Likewise.
64396         * tests/test-fprintf-posix.h (NaN): Remove macro.
64397         (test_function): Remove all NaN related tests.
64398         * tests/test-printf-posix.h (NaN): Remove macro.
64399         (test_function): Remove all NaN related tests.
64400         * tests/test-printf-posix.output: Remove all NaN related results.
64401         Needed for IRIX 6.5.
64402
64403 2007-05-19  Bruno Haible  <bruno@clisp.org>
64404
64405         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64406         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64407
64408 2007-05-19  Bruno Haible  <bruno@clisp.org>
64409
64410         * lib/float_.h: New file.
64411         * m4/float_h.m4: New file.
64412         * modules/float: New file.
64413         * modules/isnanl (Dependencies): Add float.
64414         * modules/isnanl-nolibm (Dependencies): Likewise.
64415         * modules/mathl (Dependencies): Likewise.
64416         * modules/printf-frexpl (Dependencies): Likewise.
64417         * modules/signbit (Dependencies): Likewise.
64418         * modules/vasnprintf (Dependencies): Likewise.
64419         * doc/headers/float.texi: Update.
64420
64421 2007-05-19  Jim Meyering  <jim@meyering.net>
64422
64423         * lib/utimens.c (gl_futimens): Rename from futimens,
64424         now that glibc-2.6 declares futimens.
64425         * lib/utimens.h: Likewise.
64426
64427 2007-05-19  Bruno Haible  <bruno@clisp.org>
64428
64429         Avoid test failures on mingw.
64430         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64431         * tests/test-printf-posix.sh: Likewise.
64432         * tests/test-vfprintf-posix.sh: Likewise.
64433         * tests/test-vprintf-posix.sh: Likewise.
64434
64435 2007-05-19  Bruno Haible  <bruno@clisp.org>
64436
64437         Fix *printf result for NaN, Inf, -0.0 on mingw.
64438         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64439         * lib/vasnprintf.c: Include math.h and isnan.h.
64440         (is_infinite_or_zero): New function.
64441         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64442         values in the %f, %F, %e, %E, %g, %G directives.
64443         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64444         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64445         gl_PRINTF_INFINITE and test its result. Invoke
64446         gl_PREREQ_VASNPRINTF_INFINITE.
64447         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64448         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64449         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64450         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64451         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64452         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64453         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64454         * doc/functions/fprintf.texi: Update.
64455         * doc/functions/printf.texi: Update.
64456         * doc/functions/snprintf.texi: Update.
64457         * doc/functions/sprintf.texi: Update.
64458         * doc/functions/vfprintf.texi: Update.
64459         * doc/functions/vprintf.texi: Update.
64460         * doc/functions/vsnprintf.texi: Update.
64461         * doc/functions/vsprintf.texi: Update.
64462
64463 2007-05-19  Bruno Haible  <bruno@clisp.org>
64464
64465         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64466         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64467         Instead of multiplying with 10^k, set extra_zeroes to k.
64468         (scale10_round_long_double): Remove function.
64469
64470 2007-05-18  Bruno Haible  <bruno@clisp.org>
64471
64472         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64473         introduced on 2007-05-06.
64474
64475 2007-05-18  Bruno Haible  <bruno@clisp.org>
64476
64477         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64478         %g directives.
64479         * tests/test-vasprintf-posix.c (test_function): Likewise.
64480         * tests/test-snprintf-posix.h (test_function): Likewise.
64481         * tests/test-sprintf-posix.h (test_function): Likewise.
64482
64483 2007-05-18  Bruno Haible  <bruno@clisp.org>
64484
64485         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64486         (strmatch): New function.
64487         (test_function): Test the %f directive on numbers of various exponents.
64488         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64489         (strmatch): New function.
64490         (test_function): Test the %f directive on numbers of various exponents.
64491         * tests/test-snprintf-posix.h (strmatch): New function.
64492         (test_function): Test the %f directive on numbers of various exponents.
64493         * tests/test-sprintf-posix.h (strmatch): New function.
64494         (test_function): Test the %f directive on numbers of various exponents.
64495         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64496         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64497         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64498         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64499
64500 2007-05-18  Bruno Haible  <bruno@clisp.org>
64501
64502         Add support for 'long double' number output.
64503         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64504         * lib/vasnprintf.c: Include math.h and float+.h.
64505         (mp_limb_t): New type.
64506         (GMP_LIMB_BITS): New macro.
64507         (mp_twolimb_t): New type.
64508         (GMP_TWOLIMB_BITS): New macro.
64509         (mpn_t): New type.
64510         (multiply, divide, convert_to_decimal, decode_long_double,
64511         scale10_round_long_double, scale10_round_decimal_long_double,
64512         floorlog10l): New functions.
64513         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64514         for the %f, %F, %e, %E, %g, %G directives.
64515         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64516         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64517         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64518         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64519         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64520         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64521         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64522         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64523         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64526         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64527         * modules/snprintf-posix (Depends-on): Likewise.
64528         * modules/sprintf-posix (Depends-on): Likewise.
64529         * modules/vasnprintf-posix (Depends-on): Likewise.
64530         * modules/vasprintf-posix (Depends-on): Likewise.
64531         * modules/vfprintf-posix (Depends-on): Likewise.
64532         * modules/vsnprintf-posix (Depends-on): Likewise.
64533         * modules/vsprintf-posix (Depends-on): Likewise.
64534         * modules/vasnprintf (Files): Add lib/float+.h.
64535         * doc/functions/fprintf.texi: Update.
64536         * doc/functions/printf.texi: Update.
64537         * doc/functions/snprintf.texi: Update.
64538         * doc/functions/sprintf.texi: Update.
64539         * doc/functions/vfprintf.texi: Update.
64540         * doc/functions/vprintf.texi: Update.
64541         * doc/functions/vsnprintf.texi: Update.
64542         * doc/functions/vsprintf.texi: Update.
64543
64544 2007-05-18  Bruno Haible  <bruno@clisp.org>
64545
64546         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64547
64548 2007-05-18  Bruno Haible  <bruno@clisp.org>
64549
64550         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64551         for printing 64-bit integers. Needed for mingw.
64552
64553 2007-05-18  Bruno Haible  <bruno@clisp.org>
64554
64555         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64556         gl_FUNC_FREXPL_WORKS.
64557         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64558
64559 2007-05-18  Bruno Haible  <bruno@clisp.org>
64560
64561         * modules/frexpl-nolibm-tests: New file.
64562
64563         * modules/frexpl-nolibm: New file.
64564         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64565
64566 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64567
64568         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64569         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64570         GCC 4.2, which otherwise issues a lot of warnings.
64571         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64572         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64573         Likewise.
64574         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64575         * modules/iconv_open (iconv.h): Likewise.
64576         * modules/locale (locale.h): Likewise.
64577         * modules/netinet_in (netinet/in.h): Likewise.
64578         * modules/sys_select (sys_select.h): Likewise.
64579         * modules/sys_socket (sys/socket.h): Likewise.
64580         * modules/sys_stat (sys/stat.h): Likewise.
64581         * modules/sysexits (sysexits.h): Likewise.
64582         * modules/unistd (unistd.h): Likewise.
64583
64584 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64585
64586         * modules/closein-tests (Makefile.am): Distribute
64587         `test-closein.sh'.
64588
64589 2007-05-17  Bruno Haible  <bruno@clisp.org>
64590
64591         * tests/test-printf-posix.output: Renamed from
64592         tests/test-fprintf-posix.out.
64593         * modules/fprintf-posix-tests: Update.
64594         * modules/printf-posix-tests: Update.
64595         * modules/vfprintf-posix-tests: Update.
64596         * modules/vprintf-posix-tests: Update.
64597         * tests/test-fprintf-posix.sh: Update.
64598         * tests/test-printf-posix.sh: Update.
64599         * tests/test-vfprintf-posix.sh: Update.
64600         * tests/test-vprintf-posix.sh: Update.
64601         Reported by Ralf Wildenhues.
64602
64603 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64604
64605         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64606         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64607         GCC 4.2, which otherwise issues a lot of warnings.
64608         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64609         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64610         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64611         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64612         it should no longer be needed.
64613         * lib/string_.h: Likewise.
64614         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64615         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64616         * modules/inttypes (inttypes.h): Likewise.
64617         * modules/math (math.h): Likewise.
64618         * modules/search (search.h): Likewise.
64619         * modules/signal (signal.h): Likewise.
64620         * modules/stdint (stdint.h): Likewise.
64621         * modules/stdio (stdio.h): Likewise.
64622         * modules/stdlib (stdlib.h): Likewise.
64623         * modules/string (string.h): Likewise.
64624         * modules/sys_time (sys/time.h): Likewise.
64625         * modules/time (time.h): Likewise.
64626         * modules/wchar (wchar.h): Likewise.
64627         * modules/wctype (wtype.h): Likewise.
64628
64629 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64630
64631         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64632
64633 2007-05-13  Bruno Haible  <bruno@clisp.org>
64634
64635         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64636         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64637         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64638         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64639         (gl_PREREQ_STRTOK_R): Don't require it here.
64640
64641 2007-05-13  Bruno Haible  <bruno@clisp.org>
64642
64643         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64644         when used in C++ mode.
64645
64646 2007-05-12  Bruno Haible  <bruno@clisp.org>
64647
64648         * lib/linebuffer.h: Tweak doc.
64649         * lib/linebuffer.c: Likewise.
64650
64651 2007-05-12  James Youngman  <jay@gnu.org>
64652
64653         * lib/linebuffer.c (readlinebuffer_delim): New function,
64654         like readlinebuffer, but use a caller-specified delimiter.
64655         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64656         as the delimiter.
64657         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64658
64659 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64660
64661         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64662         * modules/openat (Files): Remove openat-die.c.
64663         (Depends-on): Add openat-die.
64664         * modules/openat-die: New module.
64665
64666 2007-05-06  Bruno Haible  <bruno@clisp.org>
64667
64668         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64669         Update with info about Cygwin.
64670         * doc/functions/fprintf.texi: Update.
64671         * doc/functions/printf.texi: Update.
64672         * doc/functions/snprintf.texi: Update.
64673         * doc/functions/sprintf.texi: Update.
64674         * doc/functions/vfprintf.texi: Update.
64675         * doc/functions/vprintf.texi: Update.
64676         * doc/functions/vsnprintf.texi: Update.
64677         * doc/functions/vsprintf.texi: Update.
64678         Reported by Eric Blake.
64679
64680 2007-05-06  Bruno Haible  <bruno@clisp.org>
64681
64682         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64683         padding ourselves for the floating-point directives.
64684         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64686         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64687         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64688         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64689         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64690         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64691         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64692         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64693         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64694         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64695         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64696         * tests/test-snprintf-posix.h (test_function): Also check the width
64697         and some flags in the %f directive.
64698         * tests/test-sprintf-posix.h (test_function): Likewise.
64699         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64700         * tests/test-vasprintf-posix.c (test_function): Likewise.
64701         * doc/functions/fprintf.texi: Update.
64702         * doc/functions/printf.texi: Update.
64703         * doc/functions/snprintf.texi: Update.
64704         * doc/functions/sprintf.texi: Update.
64705         * doc/functions/vfprintf.texi: Update.
64706         * doc/functions/vprintf.texi: Update.
64707         * doc/functions/vsnprintf.texi: Update.
64708         * doc/functions/vsprintf.texi: Update.
64709
64710 2007-05-06  Bruno Haible  <bruno@clisp.org>
64711
64712         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64713         pass the ' flag character to sprintf or snprintf.
64714         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64715         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64716         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64717         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64718         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64719         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64720         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64721         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64722         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64723         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64724         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64725         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64726         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64727         flag.
64728         * tests/test-sprintf-posix.h (test_function): Likewise.
64729         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64730         * tests/test-vasprintf-posix.c (test_function): Likewise.
64731         * doc/functions/fprintf.texi: Update.
64732         * doc/functions/printf.texi: Update.
64733         * doc/functions/snprintf.texi: Update.
64734         * doc/functions/sprintf.texi: Update.
64735         * doc/functions/vfprintf.texi: Update.
64736         * doc/functions/vprintf.texi: Update.
64737         * doc/functions/vsnprintf.texi: Update.
64738         * doc/functions/vsprintf.texi: Update.
64739
64740 2007-05-01  Bruno Haible  <bruno@clisp.org>
64741
64742         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64743
64744 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64745
64746         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64747         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64748
64749 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64750
64751         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64752         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64753         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64754
64755 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64756
64757         * lib/argp-help.c (struct hol_entry): New member `ord'.
64758         (HOL_ENTRY_PTRCMP): Use ord for comparison
64759         (hol_sort): Initialize ord.
64760
64761 2007-05-01  Bruno Haible  <bruno@clisp.org>
64762
64763         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64764         Reported by Eric Blake.
64765         * doc/gnulib.texi (Function Substitutes): Update.
64766
64767 2007-05-01  Bruno Haible  <bruno@clisp.org>
64768
64769         * doc/functions.texi: Remove file, now redundant through
64770         doc/functions/*.texi.
64771
64772 2007-05-01  Bruno Haible  <bruno@clisp.org>
64773
64774         * modules/argp (Depends-on): Add sleep.
64775
64776 2007-05-01  Bruno Haible  <bruno@clisp.org>
64777
64778         * modules/sleep-tests: New file.
64779         * tests/test-sleep.c: New file.
64780
64781         * modules/sleep: New file.
64782         * lib/sleep.c: New file.
64783         * m4/sleep.m4: New file.
64784         * lib/unistd_.h (sleep): New declaration.
64785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64786         HAVE_SLEEP.
64787         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64788         * doc/functions/sleep.texi: Document the sleep module.
64789
64790 2007-05-01  Bruno Haible  <bruno@clisp.org>
64791
64792         * lib/sigprocmask.h: Remove file.
64793         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64794         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64795         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64796         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64797         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64798         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64799         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64800         HAVE_SIGSET_T as a shell variable.
64801         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64802         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64803         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64804         (Depends-on): Add signal. Remove verify.
64805         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64806         (Include): Mention <signal.h> instead of sigprocmask.h.
64807         * NEWS: Mention the change.
64808         * lib/fatal-signal.c: Don't include sigprocmask.h.
64809
64810 2007-05-01  Bruno Haible  <bruno@clisp.org>
64811
64812         * modules/signal: New file.
64813         * lib/signal_.h: New file.
64814         * m4/signal_h.m4: New file.
64815
64816 2007-05-01  Bruno Haible  <bruno@clisp.org>
64817
64818         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64819         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64820         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64821         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64822
64823 2007-05-01  Bruno Haible  <bruno@clisp.org>
64824
64825         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64826         configure time.
64827         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64828         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64829         * modules/sys_stat (Makefile.am): Substitute their values into
64830         sys/stat.h.
64831
64832 2007-05-01  Bruno Haible  <bruno@clisp.org>
64833
64834         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64835         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64836         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64837
64838 2007-05-01  Bruno Haible  <bruno@clisp.org>
64839
64840         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64841         'assert' module here.
64842
64843 2007-05-01  Bruno Haible  <bruno@clisp.org>
64844
64845         * doc/functions/*.texi: New files.
64846         * doc/functions/google-ranking.txt: New file.
64847         * doc/gnulib.texi (Function Substitutes): New chapter.
64848         (ctime, inet_ntoa): Remove sections.
64849         * doc/ctime.texi: Remove file.
64850         * doc/inet_ntoa.texi: Remove file.
64851         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64852         dependencies.
64853         (%.info): New rule, specifying a --reference-limit.
64854
64855 2007-05-01  Bruno Haible  <bruno@clisp.org>
64856
64857         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64858
64859 2007-05-01  Bruno Haible  <bruno@clisp.org>
64860
64861         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64862         the portability of 'mkdir' to mingw systems.
64863
64864 2007-05-01  Bruno Haible  <bruno@clisp.org>
64865
64866         * doc/headers/google-ranking.txt: New file.
64867
64868 2007-04-30  Eric Blake  <ebb9@byu.net>
64869
64870         Prefer fseeko to fseek.
64871         * modules/getpass (Depends-on): Add fseeko.
64872         * lib/getpass.c (getpass): Use fseeko, not fseek.
64873
64874 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64875
64876         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64877         assumes the sorting is stable, while most qsort implementations
64878         are not.  Use argument addresses to ensure they never compare as
64879         equal.
64880
64881         * tests/test-argp-2.sh (usage-indent test): Fix output
64882         (func_compare): Restore diff options
64883         * tests/test-argp.c: Restore #include "progname.h"
64884
64885 2007-04-29  Bruno Haible  <bruno@clisp.org>
64886
64887         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64888         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64889         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64890         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64891         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64892         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64893         (TESTS, check_PROGRAMS): Add test-snprintf.
64894         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64895         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64896         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64897         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64898         assertions that fail on HP-UX, OSF/1, or IRIX.
64899         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64900
64901 2007-04-29  Bruno Haible  <bruno@clisp.org>
64902
64903         * MODULES.html.sh (posix_functions): Remove 'contents'.
64904
64905 2007-04-29  Karl Berry  <karl@gnu.org>
64906
64907         * config/srclist.txt (gendocs_template_min): new entry.
64908
64909 2007-04-29  Bruno Haible  <bruno@clisp.org>
64910
64911         Work around fpurge bug on BSD systems.
64912         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64913         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64914         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64915         fpurge to rpl_fpurge if the system already has this function.
64916         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64917         the case where the system already has this function. Correct invariants
64918         on BSD systems.
64919         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64920         BSD systems.
64921
64922 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64923
64924         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64925         proposed by Sven Verdoolaege.
64926
64927         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
64928         options.
64929         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
64930         (usage and help tests): Update
64931
64932 2007-04-29  Bruno Haible  <bruno@clisp.org>
64933
64934         * tests/test-fflush.c (main): Use a file of size 17, not 10.
64935         Print more information in case of failure. Disable a test on BeOS.
64936
64937 2007-04-29  Bruno Haible  <bruno@clisp.org>
64938
64939         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
64940         This helps debugging on systems on which no gdb is available.
64941
64942 2007-04-29  Bruno Haible  <bruno@clisp.org>
64943
64944         * lib/freading.h: Improve comments.
64945         * lib/fwriting.h: Likewise.
64946         * tests/test-freading.c (main): Don't check freading immediately after
64947         repositioning. Needed for glibc.
64948
64949 2007-04-29  Bruno Haible  <bruno@clisp.org>
64950
64951         * lib/freading.c (freading): Trivial simplification.
64952
64953 2007-04-28  Bruno Haible  <bruno@clisp.org>
64954
64955         * tests/test-fwriting.c (main): Also test the interaction between
64956         fflush and fwriting.
64957         * modules/fwriting-tests (Depends-on): Add fflush.
64958
64959         * tests/test-freading.c (main): Also test the interaction between
64960         fflush and freading.
64961         * modules/freading-tests (Depends-on): Add fflush.
64962
64963 2007-04-28  Bruno Haible  <bruno@clisp.org>
64964
64965         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
64966         fseeko and ftello.
64967         Suggested by Eric Blake.
64968
64969 2007-04-28  Jim Meyering  <jim@meyering.net>
64970
64971         Avoid false-negative in gl_STDINT_H's C99 conformance test.
64972         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
64973         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
64974
64975 2007-04-27  Eric Blake  <ebb9@byu.net>
64976
64977         * doc/headers/assert.texi (assert.h): Document assert module use.
64978
64979 2007-04-27  Bruno Haible  <bruno@clisp.org>
64980
64981         * doc/headers/*.texi: New files.
64982         * doc/gnulib.texi (Header File Substitutes): New chapter.
64983         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
64984         dependencies.
64985         (standards.info ,standards.html, standards.dvi): Update dependencies.
64986         (mostlyclean, clean): New targets.
64987
64988 2007-04-27  Bruno Haible  <bruno@clisp.org>
64989
64990         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
64991         * modules/sysexits (Files, Makefile.am): Update.
64992
64993         * lib/sys_socket_.h: Renamed from lib/socket_.h.
64994         * modules/sys_socket (Files, Makefile.am): Update.
64995
64996         * lib/sys_stat_.h: Renamed from lib/stat_.h.
64997         * modules/sys_stat (Files, Makefile.am): Update.
64998
64999 2007-04-27  Eric Blake  <ebb9@byu.net>
65000
65001         * lib/freading.h: Improve comments.
65002         * lib/fwriting.h: Likewise.
65003         * lib/fflush.c: Likewise.
65004
65005         Fix closein for mingw.
65006         * modules/closein-tests: Add tests for closein.
65007         * tests/test-closein.c: New file.
65008         * tests/test-closein.sh: Likewise.
65009         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65010         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65011
65012 2007-04-27  Bruno Haible  <bruno@clisp.org>
65013
65014         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65015         version is < 6.
65016         * lib/math_.h [__DECC]: Likewise.
65017         * lib/stdio_.h [__DECC]: Likewise.
65018         * lib/stdlib_.h [__DECC]: Likewise.
65019         * lib/string_.h [__DECC]: Likewise.
65020         * lib/time_.h [__DECC]: Likewise.
65021         * lib/wchar_.h [__DECC]: Likewise.
65022         * lib/wctype_.h [__DECC]: Likewise.
65023
65024 2007-04-27  Bruno Haible  <bruno@clisp.org>
65025
65026         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65027
65028 2007-04-27  Bruno Haible  <bruno@clisp.org>
65029
65030         * lib/fflush.c: Add comments.
65031         * modules/fpurge-tests (Depends-on): Add fflush.
65032         * modules/freadable-tests (Depends-on): Likewise.
65033         * modules/fwritable-tests (Depends-on): Likewise.
65034
65035 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65036
65037         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65038         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65039         Report by Bruno Haible <bruno@clisp.org>.
65040
65041 2007-04-26  Eric Blake  <ebb9@byu.net>
65042
65043         Fix fflush on mingw.
65044         * modules/fflush (Depends-on): Add freading.
65045         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65046         but unread data.
65047
65048 2007-04-26  Eric Blake  <ebb9@byu.net>
65049         and Bruno Haible  <bruno@clisp.org>
65050
65051         Implement freading and fwriting.
65052         * lib/freading.c: New file.
65053         * lib/freading.h: Likewise.
65054         * m4/freading.m4: Likewise.
65055         * modules/freading: Likewise.
65056         * modules/freading-tests: Likewise.
65057         * tests/test-freading.c: Likewise.
65058         * lib/fwriting.c: New file.
65059         * lib/fwriting.h: Likewise.
65060         * m4/fwriting.m4: Likewise.
65061         * modules/fwriting: Likewise.
65062         * modules/fwriting-tests: Likewise.
65063         * tests/test-fwriting.c: Likewise.
65064         * MODULES.html.sh (File stream based Input/Output): Mention them.
65065
65066 2007-04-26  Bruno Haible  <bruno@clisp.org>
65067
65068         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65069         'long' when we assume it.
65070         Suggested by Eric Blake.
65071
65072 2007-04-26  Bruno Haible  <bruno@clisp.org>
65073
65074         Ensure fseeko, ftello are declared on glibc systems.
65075         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65076         * modules/fseeko (configure.ac-early): Likewise.
65077         * modules/ftello (configure.ac-early): Likewise.
65078         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65079         AC_FUNC_FSEEKO for this.
65080         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65081         (gl_CHECK_FSEEKO): Remove macro.
65082
65083 2007-04-26  Bruno Haible  <bruno@clisp.org>
65084
65085         * tests/test-fflush.c (main): Also check the ftell result after
65086         fflush and fseek/fseeko.
65087         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65088         file descriptor position cache in the stream.
65089         * lib/fseeko.c (rpl_fseeko): Likewise.
65090
65091 2007-04-26  Bruno Haible  <bruno@clisp.org>
65092
65093         * modules/fflush-tests (Depends-on): Add fseeko.
65094
65095 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65096             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65097
65098         * lib/argz_.h: ensure error_t definition is obtained in same
65099         mechanism system argz.h would have.
65100         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65101         argz facilities are known bad.  Err on the side of caution if
65102         cross-compiling.
65103
65104 2007-04-25  Eric Blake  <ebb9@byu.net>
65105
65106         * lib/fpurge.c (includes): Use stdlib.h for free.
65107         * tests/test-fflush.c (main): Also test fflush-fseeko.
65108
65109 2007-04-25  Bruno Haible  <bruno@clisp.org>
65110
65111         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65112         * lib/fseeko.c: New file.
65113         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65114         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65115         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65116         gl_FUNC_FSEEKO.
65117         (gl_FUNC_FSEEKO): Invoke it.
65118         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65119         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65120         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65121
65122 2007-04-25  Bruno Haible  <bruno@clisp.org>
65123
65124         * modules/fflush (Depends-on): Add ftello.
65125
65126 2007-04-25  Bruno Haible  <bruno@clisp.org>
65127
65128         * modules/ftello-tests: New file.
65129         * tests/test-ftello.c: New file.
65130
65131         * modules/ftello: New file.
65132         * m4/ftello.m4: New file.
65133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65134         HAVE_FTELLO.
65135         * lib/stdio_.h (ftello): New declaration.
65136         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65137         HAVE_FTELLO.
65138
65139 2007-04-25  Bruno Haible  <bruno@clisp.org>
65140
65141         * modules/fseeko-tests: New file.
65142         * tests/test-fseeko.c: New file.
65143
65144         * modules/fseeko: New file.
65145         * m4/fseeko.m4: New file.
65146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65147         HAVE_FSEEKO.
65148         * lib/stdio_.h (fseeko): New declaration.
65149         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65150         HAVE_FSEEKO.
65151
65152 2007-04-25  Bruno Haible  <bruno@clisp.org>
65153
65154         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65155
65156 2007-04-25  Bruno Haible  <bruno@clisp.org>
65157
65158         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65159         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65160         * tests/test-unistd.c: Likewise.
65161         * tests/test-fcntl.c: Likewise.
65162
65163 2007-04-23  Eric Blake  <ebb9@byu.net>
65164
65165         * lib/fflush.c: Fix missing include.
65166         Reported by Bruno Haible.
65167
65168 2007-04-23  Bruno Haible  <bruno@clisp.org>
65169
65170         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65171         Reported by Eric Blake.
65172
65173 2007-04-23  Bruno Haible  <bruno@clisp.org>
65174
65175         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65176
65177 2007-04-23  Bruno Haible  <bruno@clisp.org>
65178
65179         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65180
65181 2007-04-23  Bruno Haible  <bruno@clisp.org>
65182
65183         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65184         Needed on HP-UX 11.
65185
65186 2007-04-16  Eric Blake  <ebb9@byu.net>
65187
65188         Make fflush rely on fpurge.
65189         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65190         open coding all variants.
65191         * modules/fflush (Depends-on): Add fpurge and unistd.
65192         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65193         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65194
65195         Fix --with-tests compilation on cygwin.
65196         * modules/argmatch-tests (Makefile.am): List gnulib library first
65197         in LDADD.
65198         * modules/argp-tests (Makefile.am): Likewise.
65199         * modules/array-list-tests (Makefile.am): Likewise.
65200         * modules/array-oset-tests (Makefile.am): Likewise.
65201         * modules/avltree-list-tests (Makefile.am): Likewise.
65202         * modules/avltree-oset-tests (Makefile.am): Likewise.
65203         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65204         * modules/carray-list-tests (Makefile.am): Likewise.
65205         * modules/dirname-tests (Makefile.am): Likewise.
65206         * modules/frexp-tests (Makefile.am): Likewise.
65207         * modules/isnanl-tests (Makefile.am): Likewise.
65208         * modules/linked-list-tests (Makefile.am): Likewise.
65209         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65210         * modules/lock-tests (Makefile.am): Likewise.
65211         * modules/rbtree-list-tests (Makefile.am): Likewise.
65212         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65213         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65214         * modules/tls-tests (Makefile.am): Likewise.
65215         * modules/tsearch-tests (Makefile.am): Likewise.
65216         * modules/xvasprintf-tests (Makefile.am): Likewise.
65217
65218         Fix fpurge for cygwin.
65219         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65220         value.
65221         * modules/fpurge-tests (Depends-on): Clean up trash.
65222
65223 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65224
65225         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65226
65227         * m4/autobuild.m4: Re-indent.
65228
65229 2007-04-13  Bruno Haible  <bruno@clisp.org>
65230
65231         * modules/fpurge-tests: New file.
65232         * tests/test-fpurge.c: New file.
65233
65234         * modules/fpurge: New file.
65235         * lib/fpurge.h: New file.
65236         * lib/fpurge.c: New file.
65237         * m4/fpurge.m4: New file.
65238
65239 2007-04-13  Bruno Haible  <bruno@clisp.org>
65240
65241         * modules/fbufmode-tests: New file.
65242         * tests/test-fbufmode.c: New file.
65243
65244         * modules/fbufmode: New file.
65245         * lib/fbufmode.h: New file.
65246         * lib/fbufmode.c: New file.
65247         * m4/fbufmode.m4: New file.
65248
65249 2007-04-13  Bruno Haible  <bruno@clisp.org>
65250
65251         * modules/fwritable-tests: New file.
65252         * tests/test-fwritable.c: New file.
65253
65254         * modules/fwritable: New file.
65255         * lib/fwritable.h: New file.
65256         * lib/fwritable.c: New file.
65257         * m4/fwritable.m4: New file.
65258
65259 2007-04-13  Bruno Haible  <bruno@clisp.org>
65260
65261         * modules/freadable-tests: New file.
65262         * tests/test-freadable.c: New file.
65263
65264         * modules/freadable: New file.
65265         * lib/freadable.h: New file.
65266         * lib/freadable.c: New file.
65267         * m4/freadable.m4: New file.
65268
65269 2007-04-13  Bruno Haible  <bruno@clisp.org>
65270
65271         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65272         MOSTLYCLEANFILES.
65273
65274 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65275
65276         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65277         gzip bootstrap.conf to avoid dragging in i18n machinery.
65278         (gnulib_tool_option): Use it.
65279
65280 2007-04-13  Bruno Haible  <bruno@clisp.org>
65281
65282         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65283         %F directives.
65284         * tests/test-vasprintf-posix.c (test_function): Likewise.
65285         * tests/test-snprintf-posix.h (test_function): Likewise.
65286         * tests/test-sprintf-posix.h (test_function): Likewise.
65287         * tests/test-fprintf-posix.h (test_function): Likewise.
65288         * tests/test-printf-posix.h (test_function): Likewise.
65289         * tests/test-fprintf-posix.out: Likewise.
65290
65291 2007-04-13  Bruno Haible  <bruno@clisp.org>
65292
65293         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65294         * modules/tls-tests (configure.ac): Likewise.
65295         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65296
65297 2007-04-13  Bruno Haible  <bruno@clisp.org>
65298
65299         * lib/tls.c (glthread_tls_get): Fix return type.
65300         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65301
65302 2007-04-12  Eric Blake  <ebb9@byu.net>
65303
65304         * modules/gettime (Depends-on): Remove gettime.
65305         Reported by Dmitry V. Levin.
65306
65307 2007-04-12  Bruno Haible  <bruno@clisp.org>
65308
65309         * modules/fflush (Include): Mention <stdio.h>.
65310         * modules/strtoimax (Include): Mention <inttypes.h>.
65311         * modules/strtoumax (Include): Likewise.
65312
65313 2007-04-12  Eric Blake  <ebb9@byu.net>
65314
65315         * .cvsignore: New file.
65316         * .gitignore: Likewise.
65317
65318 2007-04-12  Bruno Haible  <bruno@clisp.org>
65319
65320         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65321         not before, since $(LDADD) often contains libgnu.a.
65322         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65323         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65324         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65325         Needed on Cygwin.
65326
65327 2007-04-12  Eric Blake  <ebb9@byu.net>
65328
65329         Work around glibc's failure to flush stdin on fclose.
65330         * lib/closein.c (close_stdin): Flush stdin before closing.
65331
65332         Work around glibc's failure to reset seekable stdin on exit.
65333         * modules/closein: New module.
65334         * lib/closein.c: New file.
65335         * lib/closein.h: Likewise.
65336         * m4/closein.m4: Likewise.
65337         * MODULES.html.sh (File stream based Input/Output): Document it.
65338
65339 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65340
65341         * gnulib-tool: Rename generated 'autobuild' script to
65342         'do-autobuild' in --create-megatestdir output.
65343
65344         * doc/gnulib.texi (Build robot for gnulib): Fix.
65345
65346 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65347
65348         * modules/sysexits (Depends-on): Add absolute-header.
65349
65350 2007-04-12  Eric Blake  <ebb9@byu.net>
65351
65352         No need to preserve errno on success.
65353         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65354         Reported by Bruno Haible.
65355
65356 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65357
65358         * MODULES.html.sh (Support for maintaining and releasing
65359         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65360
65361 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65362
65363         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65364
65365 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65366
65367         * modules/autobuild: New module.
65368
65369         * m4/autobuild.m4: New file.
65370
65371 2007-04-11  Bruno Haible  <bruno@clisp.org>
65372
65373         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65374         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65375         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65377         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65378         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65379         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65380         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65381         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65382         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65383         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65384         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65385         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65387         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65388         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65389         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65390         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65391         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65392         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65393         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65394         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65395         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65396         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65397         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65398         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65399         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65400         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65401         Reported by Eric Blake.
65402
65403 2007-04-11  Bruno Haible  <bruno@clisp.org>
65404
65405         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65406
65407 2007-04-10  Bruno Haible  <bruno@clisp.org>
65408
65409         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65410         for NaN and Infinity. Needed on FreeBSD 6.1.
65411         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65412         regarding results for "%010a" of Infinity and NaN.
65413         * tests/test-vasprintf-posix.c (test_function): Likewise.
65414         * tests/test-snprintf-posix.h (test_function): Likewise.
65415         * tests/test-sprintf-posix.h (test_function): Likewise.
65416         * tests/test-fprintf-posix.h (test_function): Likewise.
65417         * tests/test-printf-posix.h (test_function): Likewise.
65418         * tests/test-fprintf-posix.out: Likewise.
65419
65420 2007-04-10  Bruno Haible  <bruno@clisp.org>
65421
65422         * modules/locale-tests: New file.
65423         * tests/test-locale.c: New file.
65424
65425         * modules/locale: New file.
65426         * lib/locale_.h: New file.
65427         * m4/locale_h.m4: New file.
65428
65429 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65430             Bruno Haible  <bruno@clisp.org>
65431
65432         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65433         be determined, test for availability of the copysignf, copysign,
65434         copysignl functions.
65435         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65436         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65437         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65438
65439 2007-04-09  Eric Blake  <ebb9@byu.net>
65440
65441         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65442         * modules/stdio (Makefile.am): Support fflush.
65443         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65444         * modules/fflush: New file.
65445         * lib/fflush.c: Likewise.
65446         * m4/fflush.m4: Likewise.
65447         * modules/fflush-tests: New test.
65448         * tests/test-fflush.c: Likewise.
65449         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65450
65451 2007-04-06  Bruno Haible  <bruno@clisp.org>
65452
65453         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65454         (VASNPRINTF): Use signbit for faster determination whether to print a
65455         minus sign.
65456         * modules/vasnprintf (Files): Remove lib/float+.h.
65457         * modules/fprintf-posix (Depends-on): Add signbit.
65458         * modules/snprintf-posix (Depends-on): Likewise.
65459         * modules/sprintf-posix (Depends-on): Likewise.
65460         * modules/vasnprintf-posix (Depends-on): Likewise.
65461         * modules/vasprintf-posix (Depends-on): Likewise.
65462         * modules/vfprintf-posix (Depends-on): Likewise.
65463         * modules/vsnprintf-posix (Depends-on): Likewise.
65464         * modules/vsprintf-posix (Depends-on): Likewise.
65465
65466 2007-04-06  Bruno Haible  <bruno@clisp.org>
65467
65468         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65469         * tests/test-frexpl.c (main): Likewise.
65470         * tests/test-ldexpl.c (main): Likewise.
65471         * modules/frexp-tests (Depends-on): Add signbit.
65472         * modules/frexpl-tests (Depdends-on): Likewise.
65473         * modules/ldexpl-tests (Depdends-on): Likewise.
65474
65475 2007-04-06  Bruno Haible  <bruno@clisp.org>
65476
65477         * modules/signbit-tests: New file.
65478         * tests/test-signbit.c: New file.
65479
65480         * modules/signbit: New file.
65481         * lib/signbitf.c: New file.
65482         * lib/signbitd.c: New file.
65483         * lib/signbitl.c: New file.
65484         * m4/signbit.m4: New file.
65485         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65486         (signbit): New macro.
65487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65488         REPLACE_SIGNBIT.
65489         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65490         REPLACE_FREXPL into math.h.
65491
65492 2007-04-06  Bruno Haible  <bruno@clisp.org>
65493
65494         * modules/isnanf-nolibm-tests: New file.
65495         * tests/test-isnanf.c: New file.
65496
65497         * modules/isnanf-nolibm: New file.
65498         * lib/isnanf.h: New file.
65499         * lib/isnanf.c: New file.
65500         * lib/isnan.c: Consider the USE_FLOAT macro.
65501         * m4/isnanf.m4: New file.
65502
65503 2007-04-06  Bruno Haible  <bruno@clisp.org>
65504
65505         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65506         (Link): New section.
65507
65508         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65509
65510 2007-04-06  Bruno Haible  <bruno@clisp.org>
65511
65512         Assume the 'long double' type.
65513         * m4/longdouble.m4: Remove file.
65514         * config/srclist.txt: Don't mention longdouble.m4.
65515         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65516         * lib/float+.h: Likewise.
65517         * lib/frexp.c: Likewise.
65518         * lib/printf-args.h: Likewise.
65519         * lib/printf-args.c: Likewise.
65520         * lib/printf-frexp.c: Likewise.
65521         * lib/printf-parse.c: Likewise.
65522         * lib/vasnprintf.c: Likewise.
65523         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65524         * m4/intl.m4: Likewise.
65525         * m4/isnanl.m4: Likewise.
65526         * m4/printf.m4: Likewise.
65527         * m4/printf-frexpl.m4: Likewise.
65528         * m4/vasnprintf.m4: Likewise.
65529         * modules/allocsa (Files): Remove m4/longdouble.m4.
65530         * modules/gettext (Files): Likewise.
65531         * modules/relocatable-prog-wrapper (Files): Likewise.
65532         * modules/vasnprintf (Files): Likewise.
65533         * modules/isnanl (Files): Likewise.
65534         (Include): Simplify.
65535         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65536         (Include): Simplify.
65537         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65538         (Include): Simplify.
65539         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65540         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65541         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65542         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65543         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65544         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65545         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65546         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65547         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65548         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65549         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65550         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65551         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65552         * tests/test-isnanl.c: Likewise.
65553         * tests/test-snprintf-posix.h: Likewise.
65554         * tests/test-sprintf-posix.h: Likewise.
65555         * tests/test-vasnprintf-posix.c: Likewise.
65556         * tests/test-vasnprintf-posix2.c: Likewise.
65557         * tests/test-vasprintf-posix.c: Likewise.
65558
65559 2007-04-06  Bruno Haible  <bruno@clisp.org>
65560
65561         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65562         * lib/math_.h [__DECC]: Include the overridden include file through
65563         #include_next, outside the double-inclusion guard.
65564         * lib/stdio_.h [__DECC]: Likewise.
65565         * lib/stdlib_.h [__DECC]: Likewise.
65566         * lib/string_.h [__DECC]: Likewise.
65567         * lib/time_.h [__DECC]: Likewise.
65568         * lib/wchar_.h [__DECC]: Likewise.
65569         * lib/wctype_.h [__DECC]: Likewise.
65570         * lib/inttypes_.h [__DECC]: Likewise.
65571         Reported by Albert Chin <china@thewrittenword.com> in
65572         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65573
65574 2007-04-04  Eric Blake  <ebb9@byu.net>
65575
65576         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65577         1.5.x.
65578
65579 2007-04-04  Bruno Haible  <bruno@clisp.org>
65580
65581         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65582         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65583
65584 2007-04-04  Bruno Haible  <bruno@clisp.org>
65585
65586         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65587         results for "%010a" of Infinity and NaN.
65588         * tests/test-vasprintf-posix.c (test_function): Likewise.
65589         * tests/test-snprintf-posix.h (test_function): Likewise.
65590         * tests/test-sprintf-posix.h (test_function): Likewise.
65591         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65592         * tests/test-printf-posix.h (test_function): Likewise.
65593         * tests/test-fprintf-posix.out: Update.
65594         Needed for FreeBSD 6.1.
65595
65596 2007-04-04  Bruno Haible  <bruno@clisp.org>
65597
65598         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65599         directly used by the gnulib modules nor by gnulib-tool.
65600
65601 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65602
65603         * DEPENDENCIES: Give overall description of version dependency
65604         desirability.  Use more-typical names for apps.
65605         Add shell, coreutils, diffutils, grep, tar, gzip.
65606
65607 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65608
65609         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65610
65611 2007-04-04  Karl Berry  <karl@gnu.org>
65612
65613         * MODULES.html.sh (func_module): missing '.
65614
65615 2007-04-03  Bruno Haible  <bruno@clisp.org>
65616
65617         * modules/argmatch-tests (Makefile.am): New variable
65618         test_argmatch_LDADD.
65619         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65620         * modules/array-list-tests (Makefile.am): New variable
65621         test_array_list_LDADD.
65622         * modules/array-oset-tests (Makefile.am): New variable
65623         test_array_oset_LDADD.
65624         * modules/avltree-list-tests (Makefile.am): New variable
65625         test_avltree_list_LDADD.
65626         * modules/avltree-oset-tests (Makefile.am): New variable
65627         test_avltree_oset_LDADD.
65628         * modules/avltreehash-list-tests (Makefile.am): New variable
65629         test_avltreehash_list_LDADD.
65630         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65631         test_canonicalize_lgpl_LDADD.
65632         * modules/carray-list-tests (Makefile.am): New variable
65633         test_carray_list_LDADD.
65634         * modules/dirname-tests (Makefile.am): New variable
65635         test_dirname_LDADD.
65636         * modules/linked-list-tests (Makefile.am): New variable
65637         test_linked_list_LDADD.
65638         * modules/linkedhash-list-tests (Makefile.am): New variable
65639         test_linkedhash_list_LDADD.
65640         * modules/rbtree-list-tests (Makefile.am): New variable
65641         test_rbtree_list_LDADD.
65642         * modules/rbtree-oset-tests (Makefile.am): New variable
65643         test_rbtree_oset_LDADD.
65644         * modules/rbtreehash-list-tests (Makefile.am): New variable
65645         test_rbtreehash_list_LDADD.
65646         * modules/xvasprintf-tests (Makefile.am): New variable
65647         test_xvasprintf_LDADD.
65648         Reported by Eric Blake.
65649
65650 2007-04-03  Eric Blake  <ebb9@byu.net>
65651
65652         * DEPENDENCIES: Weaken m4 requirements.
65653
65654 2007-04-03  Bruno Haible  <bruno@clisp.org>
65655
65656         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65657         * modules/isnanl-tests (configure.ac): Likewise.
65658
65659 2007-04-03  Ben Pfaff  <blp@gnu.org>
65660
65661         * modules/iconv_open: Add $(srcdir)/ to source directory
65662         references in Makefile fragments that call gperf, to fix VPATH
65663         builds.
65664
65665 2007-04-03  Bruno Haible  <bruno@clisp.org>
65666
65667         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65668         * lib/ldexpl.c: Undo last change.
65669
65670 2007-04-03  Bruno Haible  <bruno@clisp.org>
65671
65672         * modules/printf-frexpl (Depends-on): Undo last change.
65673         (Files): Add m4/ldexpl.m4.
65674
65675 2007-04-03  Bruno Haible  <bruno@clisp.org>
65676
65677         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65678         * modules/isnanl (Link): New section.
65679
65680         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65681         * modules/frexp (Link): New section.
65682
65683         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65684         * modules/frexpl (Link): New section.
65685
65686         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65687         * modules/ldexpl (Link): New section.
65688
65689 2007-04-03  Bruno Haible  <bruno@clisp.org>
65690
65691         * modules/TEMPLATE-EXTENDED: New file.
65692         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65693
65694 2007-04-03  Bruno Haible  <bruno@clisp.org>
65695
65696         * DEPENDENCIES: New file.
65697         Suggested by Simon Josefsson.
65698
65699 2007-04-03  Bruno Haible  <bruno@clisp.org>
65700
65701         * doc/gnulib.texi: Escape @.
65702
65703 2007-04-03  James Youngman  <jay@gnu.org>
65704         and Paul Eggert  <eggert@cs.ucla.edu>
65705
65706         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65707         birthtime on all systems that have birthtime, not just those which
65708         use st_birthtimensec rather than st_birthtim.  Putting zero in
65709         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65710         that the birth time is not available for files on an NFS mount.
65711
65712 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65713
65714         * modules/memxor: Move back from crypto/, suggested by Bruno.
65715         * modules/crypto/hmac-sha1: Fix memxor dependency.
65716
65717         * modules/crypto/gc: Moved from ../.
65718
65719 2007-04-02  Eric Blake  <ebb9@byu.net>
65720
65721         * lib/ldexpl.c (includes): Avoid libm.
65722
65723         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65724
65725 2007-04-02  Bruno Haible  <bruno@clisp.org>
65726
65727         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65728         on IRIX.
65729
65730 2007-04-02  Bruno Haible  <bruno@clisp.org>
65731
65732         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65733         x86 or x86_64 platforms running MacOS X.
65734         Reported by Ryan Schmidt <@ryandesign.com>.
65735
65736 2007-04-02  Bruno Haible  <bruno@clisp.org>
65737
65738         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65739         i386.
65740
65741 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65742
65743         * modules/crypto/arcfour: Moved from ../.
65744         * modules/crypto/arcfour-tests: Moved from ../.
65745         * modules/crypto/arctwo: Moved from ../.
65746         * modules/crypto/arctwo-tests: Moved from ../.
65747         * modules/crypto/des: Moved from ../.
65748         * modules/crypto/des-tests: Moved from ../.
65749         * modules/crypto/gc-arcfour: Moved from ../.
65750         * modules/crypto/gc-arcfour-tests: Moved from ../.
65751         * modules/crypto/gc-arctwo: Moved from ../.
65752         * modules/crypto/gc-arctwo-tests: Moved from ../.
65753         * modules/crypto/gc-des: Moved from ../.
65754         * modules/crypto/gc-des-tests: Moved from ../.
65755         * modules/crypto/gc-hmac-md5: Moved from ../.
65756         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65757         * modules/crypto/gc-hmac-sha1: Moved from ../.
65758         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65759         * modules/crypto/gc-md2: Moved from ../.
65760         * modules/crypto/gc-md2-tests: Moved from ../.
65761         * modules/crypto/gc-md4: Moved from ../.
65762         * modules/crypto/gc-md4-tests: Moved from ../.
65763         * modules/crypto/gc-md5: Moved from ../.
65764         * modules/crypto/gc-md5-tests: Moved from ../.
65765         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65766         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65767         * modules/crypto/gc-random: Moved from ../.
65768         * modules/crypto/gc-rijndael: Moved from ../.
65769         * modules/crypto/gc-rijndael-tests: Moved from ../.
65770         * modules/crypto/gc-sha1: Moved from ../.
65771         * modules/crypto/gc-sha1-tests: Moved from ../.
65772         * modules/crypto/gc-tests: Moved from ../.
65773         * modules/crypto/hmac-md5: Moved from ../.
65774         * modules/crypto/hmac-md5-tests: Moved from ../.
65775         * modules/crypto/hmac-sha1: Moved from ../.
65776         * modules/crypto/hmac-sha1-tests: Moved from ../.
65777         * modules/crypto/md2: Moved from ../.
65778         * modules/crypto/md2-tests: Moved from ../.
65779         * modules/crypto/md4: Moved from ../.
65780         * modules/crypto/md4-tests: Moved from ../.
65781         * modules/crypto/md5: Moved from ../.
65782         * modules/crypto/md5-tests: Moved from ../.
65783         * modules/crypto/memxor: Moved from ../.
65784         * modules/crypto/rijndael: Moved from ../.
65785         * modules/crypto/rijndael-tests: Moved from ../.
65786         * modules/crypto/sha1: Moved from ../.
65787
65788 2007-03-30  James Youngman  <jay@gnu.org>
65789
65790         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65791         rename() to change the ctime of a file (because ctime is unaffected
65792         by rename on jfs2 on AIX 5.1).
65793         (main): Start by doing cleanup, in case a previous run failed leaving
65794         test files behind.
65795
65796 2007-03-31  Bruno Haible  <bruno@clisp.org>
65797
65798         Support old proprietary implementations of iconv.
65799         * modules/iconv_open: New file.
65800         * lib/iconv_.h: New file.
65801         * m4/iconv_h.m4: New file.
65802         * lib/iconv_open.c: New file.
65803         * lib/iconv_open-aix.gperf: New file.
65804         * lib/iconv_open-hpux.gperf: New file.
65805         * lib/iconv_open-irix.gperf: New file.
65806         * lib/iconv_open-osf.gperf: New file.
65807         * m4/iconv_open.m4: New file.
65808         * modules/linebreak (Depends-on): Add iconv_open.
65809         * modules/striconv (Depends-on): Likewise.
65810         * modules/striconveh (Depends-on): Likewise.
65811         * modules/unicodeio (Depends-on): Likewise.
65812         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65813         (iconv_t)(-1).
65814         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65815         conversion if cd is (iconv_t)(-1).
65816         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65817         is not possible.
65818
65819 2007-03-31  Bruno Haible  <bruno@clisp.org>
65820
65821         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65822         work on Solaris either. Protect also second use of "autodetect_jp".
65823
65824 2007-03-31  Bruno Haible  <bruno@clisp.org>
65825
65826         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65827         the function is not present.
65828
65829 2007-03-31  Bruno Haible  <bruno@clisp.org>
65830
65831         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65832         the function is not present.
65833
65834 2007-03-31  Bruno Haible  <bruno@clisp.org>
65835
65836         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65837         a bug in HP-UX iconv_open().
65838
65839 2007-03-31  Bruno Haible  <bruno@clisp.org>
65840
65841         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65842         (Mathematics <math.h>): New section, add fpieee.
65843         (Input/output <stdio.h>): Add fseterr.
65844         (Mathematics <math.h>): New section, add printf-frexp.
65845         (Container data structures): Add sublist.
65846         (Core language properties): Add fpucw, inline.
65847         (Functions for greatest-width integer types <inttypes.h>): Add
65848         imaxabs, imaxdiv, inttypes.
65849         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65850         isnanl-nolibm, ldexp.
65851         (Mathematics <math.h>): New section, add printf-frexpl.
65852         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65853         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65854         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65855         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65856         (Unicode string functions): Add unistr/u*-mbtoucr.
65857         (Java): Add javacomp-script, javaexec-script.
65858         (C#): Add csharpcomp-script, csharpexec-script.
65859         (Support for building libraries and executables): Add havelib,
65860         relocatable-*.
65861         (Support for maintaining and releasing projects): Renamed from
65862         'Support for maintaining and release projects'. Add announce-gen.
65863
65864 2007-03-31  Bruno Haible  <bruno@clisp.org>
65865
65866         * README: Talk primarily about git.
65867         (git and CVS): Renamed from CVS.
65868         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65869         gnulib is available through git.
65870         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65871
65872 2007-03-30  Bruno Haible  <bruno@clisp.org>
65873
65874         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65875         * lib/poll_.h: Likewise.
65876         * lib/stat_.h: Likewise.
65877         * lib/sys_time_.h: Likewise.
65878         * lib/sysexit_.h: Likewise.
65879         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65880         * lib/stdbool_.h: Likewise.
65881         * lib/byteswap_.h: Add double-inclusion guard.
65882
65883 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65884
65885         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65886
65887 2007-03-30  Karl Berry  <karl@gnu.org>
65888
65889         * config/srclist-update: double space after USA in the license
65890         substitution, since that's how it's usually (?) written.
65891
65892 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65893
65894         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65895         reported by Bruno Haible.
65896
65897 2007-03-29  Bruno Haible  <bruno@clisp.org>
65898
65899         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65900         a bug in AIX iconv().
65901
65902 2007-03-29  Bruno Haible  <bruno@clisp.org>
65903
65904         * modules/ldexpl-tests: New file.
65905         * tests/test-ldexpl.c: New file.
65906
65907 2007-03-29  Bruno Haible  <bruno@clisp.org>
65908
65909         * lib/ldexpl.c: Include fpucw.h.
65910         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65911         multiplication.
65912         * modules/ldexpl (Depends-on): Add fpucw.
65913
65914 2007-03-29  Bruno Haible  <bruno@clisp.org>
65915
65916         * modules/ldexpl: New file.
65917         * m4/ldexpl.m4: New file.
65918         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65919         set.
65920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65921         REPLACE_LDEXPL.
65922         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65923         REPLACE_LDEXPL.
65924         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65925         gl_FUNC_LDEXPL_WORKS.
65926         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65927         * modules/mathl (Files): Remove lib/ldexpl.c.
65928         (Depends-on): Add ldexpl.
65929
65930 2007-03-29  Bruno Haible  <bruno@clisp.org>
65931
65932         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
65933
65934 2007-03-29  Bruno Haible  <bruno@clisp.org>
65935
65936         * tests/test-striconveh.c (main): Don't assume that a direct conversion
65937         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
65938         and possibly also HP-UX.
65939         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65940         work on AIX, IRIX, HP-UX, OSF/1.
65941         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65942         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65943         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65944         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65945         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
65946         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65947
65948 2007-03-29  Bruno Haible  <bruno@clisp.org>
65949
65950         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
65951
65952 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65953
65954         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
65955         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
65956
65957 2007-03-29  Eric Blake  <ebb9@byu.net>
65958
65959         * lib/acl-internal.h: Remove redundant include.
65960         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
65961         Cygwin when a file is locked.
65962
65963 2007-03-29  Bruno Haible  <bruno@clisp.org>
65964
65965         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
65966         file.
65967         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
65968
65969 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65970
65971         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
65972         try to remove a parent directory if the child couldn't be removed
65973         (except for the first rmdir, which could fail because the child
65974         doesn't exist).  Problem reported by Jeff Blaine in
65975         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
65976
65977 2007-03-28  Bruno Haible  <bruno@clisp.org>
65978
65979         * lib/striconveh.c (utf8conv_carefully): New function.
65980         (mem_cd_iconveh_internal): Invoke it.
65981
65982 2007-03-28  Bruno Haible  <bruno@clisp.org>
65983
65984         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
65985         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
65986         input.
65987         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
65988         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
65989         unistr/u8-uctomb.
65990
65991 2007-03-28  Bruno Haible  <bruno@clisp.org>
65992
65993         * modules/unistr/u8-mbtoucr: New file.
65994         * lib/unistr/u8-mbtoucr.c: New file.
65995         * modules/unistr/u16-mbtoucr: New file.
65996         * lib/unistr/u16-mbtoucr.c: New file.
65997         * modules/unistr/u16-mbtoucr: New file.
65998         * lib/unistr/u16-mbtoucr.c: New file.
65999         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66000
66001 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66002             Bruno Haible  <bruno@clisp.org>
66003
66004         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66005         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66006         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66007
66008         * m4/stdio_h.m4: Add stubs for vasprintf too.
66009
66010         * modules/stdio: Support vasprintf in sed command.
66011
66012         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66013         vasprintf.h.  Add stdio module indicator.
66014
66015         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66016         vasprintf.h.
66017
66018         * lib/vasprintf.h: File removed.
66019
66020         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66021         * lib/vasprintf.c: Ditto.
66022         * lib/xvasprintf.c: Ditto.
66023         * tests/test-vasprintf-posix.c: Ditto.
66024         * tests/test-vasprintf.c: Ditto.
66025
66026 2007-03-27  Bruno Haible  <bruno@clisp.org>
66027
66028         Make vasnprintf multithread-safe.
66029         * lib/vasnprintf.c (decimal_point_char): New function.
66030         (VASNPRINTF): Use it.
66031         Suggested by Simon Josefsson.
66032
66033 2007-03-27  Eric Blake  <ebb9@byu.net>
66034
66035         Support sub-second birthtime on cygwin.
66036         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66037         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66038         (get_stat_birthtime): Also work with st_birthtim.
66039
66040 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66041
66042         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66043         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66044         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66045         (get_stat_birthtime_ns): Simplify compile-time tests.
66046         (get_stat_birthtime): Change the API to look like
66047         get_stat_mtime etc., except return a negative tv_nsec on error.
66048         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66049         Don't check for "spare" fields.
66050         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66051         or for struct stat.st_birthtime, as these tests aren't used.
66052         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66053
66054 2007-03-27  Bruno Haible  <bruno@clisp.org>
66055
66056         * lib/stat-time.h: Include <sys/stat.h>.
66057
66058 2007-03-27  James Youngman  <jay@gnu.org>
66059
66060         * lib/stat-time.h (get_stat_birthtime): New function for
66061           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66062         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66063           and its variants.
66064         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66065         * modules/stat-time-test: New file.
66066         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66067
66068 2007-03-26  Bruno Haible  <bruno@clisp.org>
66069
66070         Better support of signalling NaNs.
66071         * lib/atanl.c: Include isnanl.h.
66072         (atanl): Perform test for NaN at the beginning of the function and
66073         through a call to isnanl.
66074         * lib/cosl.c: Include isnanl.h.
66075         (cosl): Perform test for NaN at the beginning of the function and
66076         through a call to isnanl.
66077         * lib/ldexpl.c: Include isnanl.h.
66078         (ldexpl): Perform test for NaN through a call to isnanl.
66079         * lib/logl.c: Include isnanl.h.
66080         (logl): Perform test for NaN at the beginning of the function and
66081         through a call to isnanl.
66082         * lib/sinl.c: Include isnanl.h.
66083         (sinl): Perform test for NaN at the beginning of the function and
66084         through a call to isnanl.
66085         * lib/sqrtl.c: Include isnanl.h.
66086         (sqrtl): Perform test for NaN at the beginning of the function and
66087         through a call to isnanl.
66088         * lib/tanl.c: Include isnanl.h.
66089         (tanl): Perform test for NaN at the beginning of the function and
66090         through a call to isnanl.
66091         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66092         * modules/mathl (Depends-on): Add isnanl.
66093
66094 2007-03-26  Eric Blake  <ebb9@byu.net>
66095
66096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66097         regression in logic sense of previous patch.
66098
66099 2007-03-26  Bruno Haible  <bruno@clisp.org>
66100
66101         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66102         unportable shell command "if ! ...".
66103         Reported by Ralf Wildenhues.
66104
66105 2007-03-25  Bruno Haible  <bruno@clisp.org>
66106
66107         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66108         <sysexits.h> file, and only add EX_CONFIG.
66109         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66110         absolute file name and whether it is sufficient. Substitute also
66111         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66112         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66113         ABSOLUTE_SYSEXITS_H into sysexits.h.
66114
66115 2007-03-25  Bruno Haible  <bruno@clisp.org>
66116
66117         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66118         hints is NULL.
66119
66120 2007-03-25  Bruno Haible  <bruno@clisp.org>
66121
66122         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66123         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66124
66125 2007-03-25  Bruno Haible  <bruno@clisp.org>
66126
66127         * lib/vasnprintf.c: Include langinfo.h.
66128         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66129         multithread-safe.
66130         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66131         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66132         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66133         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66134         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66135         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66136         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66137         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66138         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66139         Reported by Simon Josefsson.
66140
66141 2007-03-25  Bruno Haible  <bruno@clisp.org>
66142
66143         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66144         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66145         * modules/vasnprintf (Depends-on): Add stdint.
66146
66147 2007-03-25  Bruno Haible  <bruno@clisp.org>
66148
66149         * modules/fpieee: New file.
66150         * m4/fpieee.m4: New file.
66151         * modules/isnan-nolibm (Depends-on): Add fpieee.
66152         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66153         * modules/isnanl (Depends-on): Add fpieee.
66154
66155 2007-03-25  Bruno Haible  <bruno@clisp.org>
66156
66157         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66158
66159 2007-03-25  Bruno Haible  <bruno@clisp.org>
66160
66161         Avoid test failures on IRIX 6.5.
66162         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66163         (main): Use it.
66164         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66165         macros.
66166         (main): Use them.
66167
66168 2007-03-25  Bruno Haible  <bruno@clisp.org>
66169
66170         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66171         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66172         exists but doesn't work.
66173         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66174         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66175         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66176         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66177         math.h.
66178
66179 2007-03-25  Bruno Haible  <bruno@clisp.org>
66180
66181         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66182         returns inf. Needed on IRIX 6.5.
66183
66184 2007-03-25  Bruno Haible  <bruno@clisp.org>
66185
66186         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66187         (main): Use isnanl instead of x != x idiom.
66188         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66189
66190         * tests/test-frexp.c: Include isnan.h.
66191         (main): Use isnan instead of x != x idiom.
66192         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66193
66194 2007-03-25  Bruno Haible  <bruno@clisp.org>
66195
66196         * tests/test-frexp.c (NaN): New function/macro.
66197         (main): Use it instead of 0.0 / 0.0.
66198         * tests/test-isnan.c (NaN): New function/macro.
66199         (main): Use it instead of 0.0 / 0.0.
66200         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66201         (test_function): Use it instead of 0.0 / 0.0.
66202         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66203         (test_function): Use it instead of 0.0 / 0.0.
66204         * tests/test-snprintf-posix.h (NaN): New function/macro.
66205         (test_function): Use it instead of 0.0 / 0.0.
66206         * tests/test-sprintf-posix.h (NaN): New function/macro.
66207         (test_function): Use it instead of 0.0 / 0.0.
66208         * tests/test-fprintf-posix.h (NaN): New function/macro.
66209         (test_function): Use it instead of 0.0 / 0.0.
66210         * tests/test-printf-posix.h (NaN): New function/macro.
66211         (test_function): Use it instead of 0.0 / 0.0.
66212
66213         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66214
66215 2007-03-25  Bruno Haible  <bruno@clisp.org>
66216
66217         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66218
66219 2007-03-25  Bruno Haible  <bruno@clisp.org>
66220
66221         * lib/regexec.c (merge_state_with_log): Make static.
66222
66223 2007-03-25  Bruno Haible  <bruno@clisp.org>
66224
66225         * lib/trigl.c (kernel_rem_pio2): Make static.
66226
66227 2007-03-25  Bruno Haible  <bruno@clisp.org>
66228
66229         * lib/sincosl.c (sincosl_table): Make static.
66230
66231 2007-03-25  Bruno Haible  <bruno@clisp.org>
66232
66233         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66234         if the compiler does not support C99.
66235
66236 2007-03-25  Bruno Haible  <bruno@clisp.org>
66237
66238         * modules/time (Makefile.am): Ensure all rule action lines start with a
66239         tab.
66240
66241 2007-03-24  Bruno Haible  <bruno@clisp.org>
66242
66243         * modules/tsearch-tests: New file.
66244         * tests/test-tsearch.sh: New file.
66245         * tests/test-tsearch.c: New file, mostly copied from glibc.
66246
66247         * modules/search-tests: New file.
66248         * tests/test-search.c: New file.
66249
66250         * modules/search: New file.
66251         * lib/search_.h: New file, incorporating lib/tsearch.h.
66252         * m4/search_h.m4: New file.
66253         * lib/tsearch.h: Remove file.
66254         * lib/tsearch.c: Include search.h instead of tsearch.h.
66255         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66256         HAVE_TSEARCH.
66257         * modules/tsearch (Files): Remove lib/tsearch.h.
66258         (Depends-on): Add search.
66259         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66260         (Include): Change tsearch.h into search.h.
66261
66262 2007-03-24  Bruno Haible  <bruno@clisp.org>
66263
66264         * modules/fpucw: New file.
66265         * lib/fpucw.h: New file.
66266         * lib/frexp.c: Include fpucw.h.
66267         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66268         (FUNC): Use them.
66269         * lib/printf-frexp.c: Include fpucw.h.
66270         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66271         (FUNC): Use them.
66272         * lib/vasnprintf.c: Include fpucw.h.
66273         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66274         'long double' calculations.
66275         * tests/test-frexpl.c: Include fpucw.h.
66276         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66277         * tests/test-printf-frexpl.c: Include fpucw.h.
66278         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66279         * modules/frexpl (Depends-on): Add fpucw.
66280         * modules/printf-frexpl (Depends-on): Likewise.
66281         * modules/fprintf-posix (Depends-on): Likewise.
66282         * modules/snprintf-posix (Depends-on): Likewise.
66283         * modules/sprintf-posix (Depends-on): Likewise.
66284         * modules/vasnprintf-posix (Depends-on): Likewise.
66285         * modules/vasprintf-posix (Depends-on): Likewise.
66286         * modules/vfprintf-posix (Depends-on): Likewise.
66287         * modules/vsnprintf-posix (Depends-on): Likewise.
66288         * modules/vsprintf-posix (Depends-on): Likewise.
66289         * modules/frexpl-tests (Depends-on): Likewise.
66290         * modules/printf-frexpl-tests (Depends-on): Likewise.
66291
66292 2007-03-24  Bruno Haible  <bruno@clisp.org>
66293
66294         * lib/float+.h: New file.
66295         * lib/isnan.c: Include float+.h.
66296         (SIZE): New macro.
66297         (FUNC): Compare only SIZE bytes of the value.
66298         * lib/vasnprintf.c: Include float+.h.
66299         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66300         SIZEOF_LDBL or SIZEOF_DBL bytes.
66301         * modules/isnan-nolibm (Files): Add lib/float+.h.
66302         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66303         * modules/isnanl (Files): Add lib/float+.h.
66304         * modules/vasnprintf (Files): Add lib/float+.h.
66305
66306 2007-03-24  Bruno Haible  <bruno@clisp.org>
66307
66308         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66309         include isnanl-nolibm.h.
66310
66311 2007-03-24  Bruno Haible  <bruno@clisp.org>
66312
66313         * tests/test-read-file.c (main): Don't produce spurious output for
66314         expected situations. Make the test fail if it encountered unexpected
66315         results.
66316
66317 2007-03-24  Bruno Haible  <bruno@clisp.org>
66318
66319         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66320         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66321
66322 2007-03-24  Bruno Haible  <bruno@clisp.org>
66323
66324         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66325
66326 2007-03-24  Bruno Haible  <bruno@clisp.org>
66327
66328         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66329         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66330
66331         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66332         * modules/utf8-ucs4: Turn into a symbolic link to module
66333         unistr/u8-mbtouc.
66334
66335         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66336         utf8-ucs4-unsafe.
66337         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66338         unistr/u8-mbtouc-unsafe.
66339
66340         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66341         * modules/utf16-ucs4: Turn into a symbolic link to module
66342         unistr/u16-mbtouc.
66343
66344         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66345         utf16-ucs4-unsafe.
66346         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66347         unistr/u16-mbtouc-unsafe.
66348
66349         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66350         * modules/ucs4-utf8: Turn into a symbolic link to module
66351         unistr/u8-ubtomb.
66352
66353         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66354         * modules/ucs4-utf16: Turn into a symbolic link to module
66355         unistr/u16-ubtomb.
66356
66357 2007-03-24  Bruno Haible  <bruno@clisp.org>
66358
66359         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66360         Enable the function only if HAVE_INLINE.
66361         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66362         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66363         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66364         Enable the function only if HAVE_INLINE.
66365         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66366         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66367         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66368         Enable the function only if HAVE_INLINE.
66369         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66370         Enable the function only if HAVE_INLINE.
66371         * modules/utf8-ucs4: Update.
66372         * modules/utf8-ucs4-unsafe: Update.
66373         * modules/utf16-ucs4: Update.
66374         * modules/utf16-ucs4-unsafe: Update.
66375         * modules/ucs4-utf8: Update.
66376         * modules/ucs4-utf16: Update.
66377
66378 2007-03-24  Bruno Haible  <bruno@clisp.org>
66379
66380         * lib/utf8-ucs4.h: Remove file.
66381         * lib/utf8-ucs4-unsafe.h: Remove file.
66382         * lib/utf16-ucs4.h: Remove file.
66383         * lib/utf16-ucs4-unsafe.h: Remove file.
66384         * lib/ucs4-utf8.h: Remove file.
66385         * lib/ucs4-utf16.h: Remove file.
66386         * lib/unistr.h: Include their previous contents.
66387         * m4/utf-ucs4.m4: Remove file.
66388         * m4/ucs4-utf.m4: Remove file.
66389         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66390         (Depends-on): Add unistr/base.
66391         (configure.ac): Remove gl_UTF_UCS4.
66392         (Makefile.am): Update.
66393         (Include): Change to unistr.h.
66394         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66395         (Depends-on): Add unistr/base.
66396         (configure.ac): Remove gl_UTF_UCS4.
66397         (Makefile.am): Update.
66398         (Include): Change to unistr.h.
66399         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66400         (Depends-on): Add unistr/base.
66401         (configure.ac): Remove gl_UTF_UCS4.
66402         (Makefile.am): Update.
66403         (Include): Change to unistr.h.
66404         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66405         (Depends-on): Add unistr/base.
66406         (configure.ac): Remove gl_UTF_UCS4.
66407         (Makefile.am): Update.
66408         (Include): Change to unistr.h.
66409         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66410         (Depends-on): Add unistr/base.
66411         (configure.ac): Remove gl_UCS4_UTF.
66412         (Makefile.am): Update.
66413         (Include): Change to unistr.h.
66414         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66415         (Depends-on): Add unistr/base.
66416         (configure.ac): Remove gl_UCS4_UTF.
66417         (Makefile.am): Update.
66418         (Include): Change to unistr.h.
66419         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66420         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66421         utf8-ucs4-unsafe.h.
66422         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66423         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66424         utf16-ucs4-unsafe.h.
66425         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66426         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66427         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66428         * lib/unistr/u8-strchr.c: Likewise.
66429         * lib/unistr/u8-strrchr.c: Likewise.
66430         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66431         * lib/unistr/u16-strchr.c: Likewise.
66432         * lib/unistr/u16-strrchr.c: Likewise.
66433         * lib/striconveh.c: Update.
66434         * lib/linebreak.c: Update.
66435
66436 2007-03-24  Bruno Haible  <bruno@clisp.org>
66437
66438         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66439         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66440
66441 2007-03-22  Bruno Haible  <bruno@clisp.org>
66442
66443         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66444
66445 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66446
66447         * MODULES.html.sh (File system functions): New module write-any-file.
66448         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66449         * m4/write-any-file.m4: New files.
66450
66451 2007-03-23  Eric Blake  <ebb9@byu.net>
66452
66453         * gnulib-tool: Rearrange space-tab sequences, since some editors
66454         like to eat them.
66455
66456 2007-03-23  Eric Blake  <ebb9@byu.net>
66457
66458         * lib/version-etc.c (version_etc_va): Update license wording to
66459         be more concise.  Recommended by Richard Stallman.
66460
66461 2007-03-22  Bruno Haible  <bruno@clisp.org>
66462
66463         * lib/poll.c (MSG_PEEK): New fallback definition.
66464
66465 2007-03-22  Bruno Haible  <bruno@clisp.org>
66466
66467         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66468         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66469         (main): Update.
66470         Fixes a compilation error on BeOS.
66471
66472 2007-03-22  Bruno Haible  <bruno@clisp.org>
66473
66474         * modules/frexpl-tests: New file.
66475         * tests/test-frexpl.c: New file.
66476
66477         * modules/frexpl: New file.
66478         * m4/frexpl.m4: New file.
66479         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66480         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66482         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66483         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66484         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66485
66486 2007-03-22  Bruno Haible  <bruno@clisp.org>
66487
66488         * lib/frexpl.c: Share code with lib/frexp.c.
66489         * modules/mathl (Files): Add lib/frexp.c.
66490         (Depends-on): Add isnanl-nolibm.
66491
66492 2007-03-22  Bruno Haible  <bruno@clisp.org>
66493
66494         * modules/printf-frexp (Files): Add m4/frexp.m4.
66495         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66496         only if the found frexp function actually works.
66497
66498 2007-03-22  Bruno Haible  <bruno@clisp.org>
66499
66500         * lib/frexp.c: Remove older implementation that uses divisions.
66501
66502 2007-03-21  Bruno Haible  <bruno@clisp.org>
66503
66504         * modules/frexp-tests: New file.
66505         * tests/test-frexp.c: New file.
66506
66507         * modules/frexp: New file.
66508         * lib/frexp.c: New file.
66509         * m4/frexp.m4: New file.
66510         * lib/math_.h (frexp): New declaration.
66511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66512         REPLACE_FREXP.
66513         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66514
66515 2007-03-21  Bruno Haible  <bruno@clisp.org>
66516
66517         * modules/isnanl-tests: New file.
66518         * tests/test-isnanl.c: New file.
66519
66520         * modules/isnanl: New file.
66521         * lib/isnanl.h: New file.
66522         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66523         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66524         gl_FUNC_ISNANL_WORKS.
66525         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66526         New macros.
66527
66528 2007-03-21  Bruno Haible  <bruno@clisp.org>
66529
66530         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66531         lib/isnanl.h.
66532         (Include): Update.
66533         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66534         * lib/vasnprintf.c: Update.
66535         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66536         tests/test-isnanl.h, remove tests/test-isnanl.c.
66537         (Makefile.am): Update.
66538         * tests/test-isnanl-nolibm.c: New file.
66539         * tests/test-isnanl.h: New file.
66540         * tests/test-isnanl.c: Remove file.
66541
66542 2007-03-21  Jim Meyering  <jim@meyering.net>
66543
66544         When trying to open ".", treat ESTALE like EACCES.
66545         * lib/savewd.c (savewd_save): Resort to forking not just upon
66546         failure with EACCES, but also when errno is ESTALE.
66547
66548 2007-03-20  Bruno Haible  <bruno@clisp.org>
66549
66550         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66551         Needed on AIX 5.1. Reported by Matthew Woehlke.
66552
66553 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66554
66555         Suggestions by Bruno Haible:
66556         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66557         our own.
66558         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66559         * modules/acl (Depends-on): Add gettext.
66560
66561 2007-03-19  Bruno Haible  <bruno@clisp.org>
66562
66563         * modules/iconvme: Remove file.
66564         * lib/iconvme.h: Remove file.
66565         * lib/iconvme.c: Remove file.
66566         * m4/iconvme.m4: Remove file.
66567
66568 2007-03-19  Bruno Haible  <bruno@clisp.org>
66569
66570         * doc/relocatable-maint.texi: Break long shell script line.
66571         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66572
66573 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66574
66575         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66576         handle file_has_acl.
66577         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66578         * lib/acl.c: Move header inclusions and related macro defns into
66579         lib/acl-internal.h.
66580         (S_ISLNK): Remove defn, since that's now done for us.
66581         (file_has_acl): Move to lib/file-has-acl.c.
66582         Call acl_trivial if available.  This is the crucial part of the fix.
66583         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66584         shared within the library.  Rewrite a bit, partly to make it compatible
66585         with the GNU coding style.
66586         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66587         Remove unnecessary double-quotes.
66588         Don't test for acl_to_text; the build will catch that.
66589         Replace acl_entries if it doesn't exist and it is needed.
66590         Check for -lsec and acl_trivial (as used on Solaris 10).
66591         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66592         lib/file-has-acl.c.
66593         (Depends-on): Add sys_stat, for S_ISLNK.
66594
66595 2007-03-19  Ben Pfaff  <blp@gnu.org>
66596
66597         * doc/gnulib.texi: Fix typos.
66598         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66599
66600 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66601
66602         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66603         If size is zero here, buf must be zero.
66604
66605 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66606
66607         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66608         <bruno@clisp.org>.
66609
66610 2007-03-18  Bruno Haible  <bruno@clisp.org>
66611
66612         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66613         Suggested by Eric Blake.
66614
66615 2007-03-18  Ben Pfaff  <blp@gnu.org>
66616
66617         * doc/relocatable.texi: Recommend using as prefix a directory
66618         that does not exist and will never be created.  Based on
66619         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66620         and others.
66621
66622 2007-03-17  Bruno Haible  <bruno@clisp.org>
66623
66624         * lib/fchownat.c: Include lchown.h.
66625
66626 2007-03-17  Bruno Haible  <bruno@clisp.org>
66627
66628         Fix endless loop when the given allocated size was > INT_MAX.
66629         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66630         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66631         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66632         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66633         * lib/sprintf.c (sprintf): Likewise.
66634
66635 2007-03-17  Bruno Haible  <bruno@clisp.org>
66636
66637         * tests/test-argp-2.sh (func_compare): Output a context diff.
66638
66639 2007-03-17  Bruno Haible  <bruno@clisp.org>
66640
66641         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66642         locale's decimal-point character.
66643
66644 2007-03-17  Bruno Haible  <bruno@clisp.org>
66645
66646         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66647         before comparing it. Needed because on some platforms (e.g. x86) a
66648         'long double' occupies less bytes than sizeof (long double).
66649
66650 2007-03-17  Bruno Haible  <bruno@clisp.org>
66651
66652         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66653         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66654         * tests/test-getaddrinfo.c (simple): Likewise.
66655         * tests/test-read-file.c (main): Likewise.
66656
66657 2007-03-17  Bruno Haible  <bruno@clisp.org>
66658
66659         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66660
66661 2007-03-17  Bruno Haible  <bruno@clisp.org>
66662
66663         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66664         unused variable.
66665
66666 2007-03-17  Bruno Haible  <bruno@clisp.org>
66667
66668         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66669         * tests/test-c-strncasecmp.c: Likewise.
66670
66671 2007-03-17  Bruno Haible  <bruno@clisp.org>
66672
66673         * modules/stdlib (Depends-on): Add unistd.
66674         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66675         Needed for MacOS X 10.3.
66676
66677 2007-03-17  Bruno Haible  <bruno@clisp.org>
66678
66679         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66680
66681 2007-03-17  Bruno Haible  <bruno@clisp.org>
66682
66683         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66684
66685 2007-03-17  Bruno Haible  <bruno@clisp.org>
66686
66687         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66688         to reflect files copied from gnulib (with or without modifications).
66689         Suggested by Jim Meyering.
66690
66691 2007-03-17  Eric Blake  <ebb9@byu.net>
66692
66693         * NEWS: Document stdlib change from 2007-02-18.
66694
66695 2007-03-17  Jim Meyering  <jim@meyering.net>
66696
66697         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66698         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66699         someone uses a name containing shell meta-characters.
66700         Reported by Alfred M. Szmidt.
66701
66702         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66703
66704 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66705
66706         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66707         and copy gettext configuration files only if configure.ac contains
66708         a use of AM_GNU_GETTEXT_VERSION.
66709
66710 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66711
66712         * build-aux/bootstrap (gnulib_name): New variable.
66713         (gnulib_tool_options): Use it.
66714
66715 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66716
66717         * tests/test-des.c: Use new namespace.
66718
66719 2007-03-15  Bruno Haible  <bruno@clisp.org>
66720
66721         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66722         Reported by James Youngman <jay@gnu.org>.
66723
66724 2007-03-15  Bruno Haible  <bruno@clisp.org>
66725
66726         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66727         declared prototype. Needed with cc on OSF/1 5.1.
66728
66729 2007-03-15  Bruno Haible  <bruno@clisp.org>
66730
66731         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66732         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66733         (struct gl_list_implementation): Add dispose_fn argument to the
66734         'create_empty', 'create' methods.
66735         (struct gl_list_impl_base): Add field 'dispose_fn'.
66736         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66737         argument.
66738         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66739         dispose_fn argument.
66740         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66741         dispose_fn on the dropped values.
66742         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66743         dispose_fn argument.
66744         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66745         dropped values.
66746         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66747         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66748         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66749         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66750         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66751         argument.
66752         (gl_tree_list_free): Call dispose_fn on the dropped values.
66753         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66754         the dropped values.
66755         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66756         Add dispose_fn argument.
66757         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66758         Call dispose_fn on the dropped values.
66759         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66760         Add dispose_fn argument.
66761         (gl_sublist_create): Initialize the 'dispose_fn' field.
66762         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66763         * tests/test-array_list.c (main): Update.
66764         * tests/test-carray_list.c (main): Update.
66765         * tests/test-avltree_list.c (main): Update.
66766         * tests/test-rbtree_list.c (main): Update.
66767         * tests/test-avltreehash_list.c (main): Update.
66768         * tests/test-rbtreehash_list.c (main): Update.
66769         * tests/test-linked_list.c (main): Update.
66770         * tests/test-linkedhash_list.c (main): Update.
66771         * tests/test-array_oset.c (main): Update.
66772
66773 2007-03-15  Bruno Haible  <bruno@clisp.org>
66774
66775         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66776         (gl_oset_create_empty): Add dispose_fn argument.
66777         (struct gl_oset_implementation): Add dispose_fn argument to
66778         'create_empty' method.
66779         (struct gl_oset_impl_base): Add dispose_fn field.
66780         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66781         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66782         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66783         values.
66784         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66785         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66786         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66787         dropped value.
66788         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66789         dropped value.
66790         * tests/test-array_oset.c (main): Update.
66791         * tests/test-avltree_oset.c (main): Update.
66792         * tests/test-rbtree_oset.c (main): Update.
66793         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66794
66795 2007-03-13  Bruno Haible  <bruno@clisp.org>
66796
66797         * tests/test-stdbool.c (i): Update after last patch.
66798
66799 2007-03-12  Bruno Haible  <bruno@clisp.org>
66800
66801         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66802         the iswprint macro. Needed on Solaris 2.5.1.
66803
66804 2007-03-12  Bruno Haible  <bruno@clisp.org>
66805
66806         * tests/test-printf-frexp.c (main): Declare x as volatile.
66807
66808 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66809
66810         * doc/gnulib.texi (Build robot for gnulib): New section.
66811
66812 2007-03-12  Jim Meyering  <jim@meyering.net>
66813
66814         * build-aux/bootstrap: New file.
66815         * build-aux/bootstrap.conf: New file, from coreutils.
66816
66817 2007-03-11  Bruno Haible  <bruno@clisp.org>
66818
66819         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66820
66821 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66822
66823         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66824         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66825         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66826
66827 2007-03-11  Bruno Haible  <bruno@clisp.org>
66828
66829         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66830         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66831
66832 2007-03-11  Bruno Haible  <bruno@clisp.org>
66833
66834         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66835         formula. Needed for SunPRO C 5.0.
66836
66837 2007-03-11  Bruno Haible  <bruno@clisp.org>
66838
66839         * modules/long-options (Depends-on): Add getopt.
66840
66841 2007-03-11  Bruno Haible  <bruno@clisp.org>
66842
66843         * modules/modechange (Depends-on): Add stdbool.
66844
66845 2007-03-11  Bruno Haible  <bruno@clisp.org>
66846
66847         * modules/i-ring (Depends-on): Add stdbool.
66848
66849 2007-03-11  Bruno Haible  <bruno@clisp.org>
66850
66851         * modules/gc-des (Depends-on): Add stdbool.
66852
66853 2007-03-11  Bruno Haible  <bruno@clisp.org>
66854
66855         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66856
66857 2007-03-11  Bruno Haible  <bruno@clisp.org>
66858
66859         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66860
66861 2007-03-11  Bruno Haible  <bruno@clisp.org>
66862
66863         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66864
66865 2007-03-11  Bruno Haible  <bruno@clisp.org>
66866
66867         * lib/vasnprintf.c (sprintf): Undefine.
66868
66869 2007-03-11  Bruno Haible  <bruno@clisp.org>
66870
66871         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66872         initializers in SunPRO C and Compaq C compilers.
66873
66874 2007-03-11  Bruno Haible  <bruno@clisp.org>
66875
66876         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66877         decrementing code ANSI C compliant.
66878
66879 2007-03-11  Bruno Haible  <bruno@clisp.org>
66880
66881         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66882         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66883
66884 2007-03-11  Bruno Haible  <bruno@clisp.org>
66885
66886         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66887         <stdbool.h> substitute doesn't pass.
66888
66889 2007-03-11  Bruno Haible  <bruno@clisp.org>
66890
66891         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66892
66893 2007-03-11  Bruno Haible  <bruno@clisp.org>
66894
66895         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66896         script, for submission to autobuild.josefsson.org.
66897
66898 2007-03-10  Bruno Haible  <bruno@clisp.org>
66899
66900         * modules/canonicalize-lgpl-tests: New file.
66901         * tests/test-canonicalize-lgpl.sh: New file.
66902         * tests/test-canonicalize-lgpl.c: New file.
66903
66904         * modules/c-strcase-tests: New file.
66905         * tests/test-c-strcase.sh: New file.
66906         * tests/test-c-strcasecmp.c: New file.
66907         * tests/test-c-strncasecmp.c: New file.
66908
66909         * modules/atexit-tests: New file.
66910         * tests/test-atexit.sh: New file.
66911         * tests/test-atexit.c: New file.
66912
66913 2007-03-10  Bruno Haible  <bruno@clisp.org>
66914
66915         * tests/test-binary-io.sh: Use temporary filenames that are not so
66916         likely to clash with those of other tests (in a parallel make).
66917         * tests/test-binary-io.c: Likewise.
66918
66919 2007-03-10  Bruno Haible  <bruno@clisp.org>
66920
66921         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66922         fallback; use #error instead.
66923         Suggested by Simon Josefsson.
66924
66925 2007-03-10  Bruno Haible  <bruno@clisp.org>
66926
66927         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
66928         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
66929         first and the last.
66930
66931 2007-03-10  Bruno Haible  <bruno@clisp.org>
66932
66933         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
66934
66935 2007-03-10  Bruno Haible  <bruno@clisp.org>
66936
66937         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
66938         "make distcheck".
66939         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
66940         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
66941         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
66942
66943 2007-03-10  Bruno Haible  <bruno@clisp.org>
66944
66945         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
66946         variable.
66947         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
66948         variable.
66949
66950 2007-03-09  Eric Blake  <ebb9@byu.net>
66951         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
66952
66953         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
66954         types are not being provided by gnulib.
66955         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
66956         types are supported.
66957
66958 2007-03-10  Bruno Haible  <bruno@clisp.org>
66959
66960         * lib/stdio_.h (__attribute__): New macro.
66961         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
66962         vsprintf): Specify __attribute__ __format__ for GCC.
66963         Suggested by Eric Blake.
66964
66965 2007-03-09  Bruno Haible  <bruno@clisp.org>
66966
66967         * modules/printf-posix-tests: New file.
66968         * tests/test-printf-posix.sh: New file.
66969         * tests/test-printf-posix.c: New file.
66970
66971         * modules/printf-posix: New file.
66972         * lib/printf.c: New file.
66973         * m4/printf-posix-rpl.m4: New file.
66974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
66975         REPLACE_PRINTF.
66976         * lib/stdio_.h (printf): New declaration.
66977         (format, __format__, ____printf____, ____scanf____, ____strftime____,
66978         ____strfmon____): New macros.
66979         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
66980         REPLACE_PRINTF.
66981
66982 2007-03-09  Bruno Haible  <bruno@clisp.org>
66983
66984         * tests/test-vasnprintf-posix2.sh: New file.
66985         * tests/test-vasnprintf-posix2.c: New file.
66986         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
66987         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66988         (Makefile.am): Activate test-vasnprintf-posix2.sh.
66989
66990         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
66991         a locale dependent decimal point, rather than always '.'.
66992
66993 2007-03-09  Eric Blake  <ebb9@byu.net>
66994
66995         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66996         spite of platforms like Tandem/NSK that define it to -1.
66997
66998 2007-03-08  Bruno Haible  <bruno@clisp.org>
66999
67000         * modules/vprintf-posix-tests: New file.
67001         * tests/test-vprintf-posix.sh: New file.
67002         * tests/test-vprintf-posix.c: New file.
67003         * tests/test-printf-posix.h: New file.
67004
67005         * modules/vprintf-posix: New file.
67006         * lib/vprintf.c: New file.
67007         * m4/vprintf-posix.m4: New file.
67008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67009         REPLACE_VPRINTF.
67010         * lib/stdio_.h (vprintf): New declaration.
67011         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67012         REPLACE_VPRINTF.
67013
67014 2007-03-08  Bruno Haible  <bruno@clisp.org>
67015
67016         * modules/fprintf-posix-tests: New file.
67017         * tests/test-fprintf-posix.sh: New file.
67018         * tests/test-fprintf-posix.c: New file.
67019
67020         * modules/fprintf-posix: New file.
67021         * lib/fprintf.c: New file.
67022         * m4/fprintf-posix.m4: New file.
67023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67024         REPLACE_FPRINTF.
67025         * lib/stdio_.h (fprintf): New declaration.
67026         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67027         REPLACE_FPRINTF.
67028
67029 2007-03-08  Bruno Haible  <bruno@clisp.org>
67030
67031         * modules/vfprintf-posix-tests: New file.
67032         * tests/test-vfprintf-posix.sh: New file.
67033         * tests/test-vfprintf-posix.c: New file.
67034         * tests/test-fprintf-posix.h: New file.
67035         * tests/test-fprintf-posix.out: New file.
67036
67037         * modules/vfprintf-posix: New file.
67038         * lib/vfprintf.c: New file.
67039         * m4/vfprintf-posix.m4: New file.
67040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67041         REPLACE_VFPRINTF.
67042         * lib/stdio_.h (vfprintf): New declaration.
67043         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67044         REPLACE_VFPRINTF.
67045
67046 2007-03-08  Bruno Haible  <bruno@clisp.org>
67047
67048         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67049
67050 2007-03-08  Bruno Haible  <bruno@clisp.org>
67051
67052         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67053         instead of 'expr' invocations.
67054         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67055         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67056         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67057         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67058         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67059         Suggested by Paul Eggert.
67060
67061 2007-03-08  Bruno Haible  <bruno@clisp.org>
67062
67063         * modules/fseterr-tests: New file.
67064         * tests/test-fseterr.c: New file.
67065
67066         * modules/fseterr: New file.
67067         * lib/fseterr.h: New file.
67068         * lib/fseterr.c: New file.
67069
67070 2007-03-08  Bruno Haible  <bruno@clisp.org>
67071
67072         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67073         * lib/getopt_.h: Likewise.
67074         * lib/mbswidth.h: Likewise.
67075         * lib/setenv.h: Likewise.
67076         * lib/vasnprintf.h: Likewise.
67077         * lib/vasprintf.h: Likewise.
67078         * lib/verror.h: Likewise.
67079         * lib/xsetenv.h: Likewise.
67080         * lib/xvasprintf.h: Likewise.
67081
67082 2007-03-08  Jim Meyering  <jim@meyering.net>
67083
67084         * users.txt: Add parted.
67085
67086         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67087
67088 2007-03-07  Bruno Haible  <bruno@clisp.org>
67089
67090         * m4/printf.m4: Make the shell script snippets copy&pastable.
67091
67092 2007-03-02  Bruno Haible  <bruno@clisp.org>
67093
67094         * lib/netinet_in_.h: New file.
67095         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67096         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67097         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67098         (Depends-on): Add absolute-header.
67099         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67100         into netinet/in.h.
67101
67102 2007-03-03  Bruno Haible  <bruno@clisp.org>
67103
67104         * lib/sys_select_.h: New file.
67105         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67106         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67107         * modules/sys_select (Files): Add lib/sys_select_.h.
67108         (Depends-on): Add absolute-header.
67109         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67110         into sys/select.h.
67111
67112 2007-03-02  Bruno Haible  <bruno@clisp.org>
67113
67114         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67115         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67116         values.
67117         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67118         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67119         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67120         * modules/sys_socket (Depends-on): Add absolute-header.
67121         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67122         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67123         (Include): Remove requirement of inclusion of <sys/types.h>.
67124
67125 2007-03-02  Bruno Haible  <bruno@clisp.org>
67126
67127         * lib/byteswap_.h (bswap_32): Fix formula.
67128
67129 2007-03-06  Bruno Haible  <bruno@clisp.org>
67130
67131         * modules/sprintf-posix-tests: New file.
67132         * tests/test-sprintf-posix.c: New file.
67133
67134         * modules/sprintf-posix: New file.
67135         * lib/sprintf.c: New file.
67136         * m4/sprintf-posix.m4: New file.
67137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67138         REPLACE_SPRINTF.
67139         * lib/stdio_.h (sprintf): New declaration.
67140         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67141         REPLACE_SPRINTF.
67142
67143 2007-03-06  Bruno Haible  <bruno@clisp.org>
67144
67145         * modules/vsprintf-posix-tests: New file.
67146         * tests/test-vsprintf-posix.c: New file.
67147         * tests/test-sprintf-posix.h: New file.
67148
67149         * modules/vsprintf-posix: New file.
67150         * lib/vsprintf.c: New file.
67151         * m4/vsprintf-posix.m4: New file.
67152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67153         REPLACE_VSPRINTF.
67154         * lib/stdio_.h (vsprintf): New declaration.
67155         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67156         REPLACE_VSPRINTF.
67157
67158 2007-03-06  Bruno Haible  <bruno@clisp.org>
67159
67160         * modules/vsnprintf (Depend-on): Remove minmax.
67161
67162 2007-03-06  Bruno Haible  <bruno@clisp.org>
67163
67164         * modules/snprintf-posix-tests: New file.
67165         * tests/test-snprintf-posix.c: New file.
67166
67167         * modules/snprintf-posix: New file.
67168         * m4/snprintf-posix.m4: New file.
67169         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67170         gl_FUNC_SNPRINTF.
67171         (gl_FUNC_SNPRINTF): Invoke it.
67172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67173         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67174         is set.
67175         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67176
67177 2007-03-06  Bruno Haible  <bruno@clisp.org>
67178
67179         * modules/vsnprintf-posix-tests: New file.
67180         * tests/test-vsnprintf-posix.c: New file.
67181         * tests/test-snprintf-posix.h: New file.
67182
67183         * modules/vsnprintf-posix: New file.
67184         * m4/vsnprintf-posix.m4: New file.
67185         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67186         gl_FUNC_VSNPRINTF.
67187         (gl_FUNC_VSNPRINTF): Invoke it.
67188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67189         * lib/stdio_.h (vsnprintf): Define as a replacement if
67190         REPLACE_VSNPRINTF is set.
67191         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67192
67193 2007-03-06  Bruno Haible  <bruno@clisp.org>
67194
67195         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67196         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67197
67198 2007-03-06  Bruno Haible  <bruno@clisp.org>
67199
67200         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67201         (asinl): Declare also if HAVE_DECL_ASINL is set.
67202         (atanl): Declare also if HAVE_DECL_ATANL is set.
67203         (ceill): Declare also if HAVE_DECL_CEILL is set.
67204         (cosl): Declare also if HAVE_DECL_COSL is set.
67205         (expl): Declare also if HAVE_DECL_EXPL is set.
67206         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67207         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67208         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67209         (logl): Declare also if HAVE_DECL_LOGL is set.
67210         (sinl): Declare also if HAVE_DECL_SINL is set.
67211         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67212         (tanl): Declare also if HAVE_DECL_TANL is set.
67213         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67215         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67216         declaration of frexpl, ldexpl.
67217         * modules/printf-frexpl (Depends-on): Add math.
67218         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67219
67220 2007-03-05  Bruno Haible  <bruno@clisp.org>
67221
67222         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67223         frexpl and ldexpl are declared.
67224         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67225
67226 2007-03-05  Bruno Haible  <bruno@clisp.org>
67227
67228         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67229         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67230
67231 2007-03-05  Bruno Haible  <bruno@clisp.org>
67232
67233         * lib/stdio_.h: Include <stddef.h>.
67234
67235 2007-03-05  Bruno Haible  <bruno@clisp.org>
67236
67237         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67238
67239 2007-03-05  Bruno Haible  <bruno@clisp.org>
67240
67241         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67242         NetBSD 4, from Ralf Wildenhues.
67243
67244 2007-03-04  Bruno Haible  <bruno@clisp.org>
67245
67246         * lib/vasprintf.h: Update #if logic for the case when the functions
67247         exist but are overridden.
67248
67249 2007-03-04  Bruno Haible  <bruno@clisp.org>
67250
67251         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67252         implementations: glibc-2.4 and MacOS X 10.3.
67253         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67254         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67255         * tests/test-vasprintf-posix.c (test_function): Likewise.
67256
67257 2007-03-04  Bruno Haible  <bruno@clisp.org>
67258
67259         * modules/vasprintf-posix-tests: New file.
67260         * tests/test-vasprintf-posix.c: New file.
67261
67262         * modules/vasprintf-posix: New file.
67263         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67264         defined.
67265         * m4/vasprintf-posix.m4: New file.
67266         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67267         gl_FUNC_VASPRINTF.
67268         (gl_FUNC_VASPRINTF): Invoke it.
67269         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67270         here.
67271         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67272
67273 2007-03-04  Bruno Haible  <bruno@clisp.org>
67274
67275         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67276         REPLACE_GETTIMEOFDAY.
67277         * modules/sys_time (Makefile.am): Likewise.
67278         * m4/sys_time_h.m4: Likewise.
67279         * m4/gettimeofday.m4: Likewise.
67280
67281 2007-03-04  Bruno Haible  <bruno@clisp.org>
67282
67283         * modules/vasnprintf-posix-tests: New file.
67284         * tests/test-vasnprintf-posix.c: New file.
67285
67286         * modules/vasnprintf-posix: New file.
67287         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67288         printf-frexpl.h.
67289         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67290         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67291         REPLACE_VASNPRINTF is defined.
67292         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67293         gl_FUNC_VASNPRINTF.
67294         (gl_FUNC_VASNPRINTF): Invoke it.
67295         * m4/vasnprintf-posix.m4: New file.
67296         * m4/printf.m4: New file.
67297
67298 2007-03-04  Bruno Haible  <bruno@clisp.org>
67299
67300         Compile progreloc.c only if --enable-relocatable is specified.
67301         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67302         if --enable-relocatable was specified.
67303         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67304         lib_SOURCES.
67305
67306 2007-03-04  Jim Meyering  <jim@meyering.net>
67307
67308         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67309         Use it consistently, rather than enumerating errno constants.
67310
67311 2007-03-04  Bruno Haible  <bruno@clisp.org>
67312
67313         * modules/xvasprintf-tests: New file.
67314         * tests/test-xvasprintf.c: New file.
67315
67316         * modules/vasprintf-tests: New file.
67317         * tests/test-vasprintf.c: New file.
67318
67319         * modules/vasnprintf-tests: New file.
67320         * tests/test-vasnprintf.c: New file.
67321
67322         * modules/vsnprintf-tests: New file.
67323         * tests/test-vsnprintf.c: New file.
67324
67325         * modules/snprintf-tests: New file.
67326         * tests/test-snprintf.c: New file.
67327
67328 2007-03-04  Bruno Haible  <bruno@clisp.org>
67329
67330         Compile relocatable.c only if --enable-relocatable is specified.
67331         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67332         gl_RELOCATABLE_LIBRARY.
67333         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67334         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67335         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67336         gl_RELOCATABLE_LIBRARY.
67337         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67338         (Makefile.am): Remove lib_SOURCES.
67339         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67340         gl_RELOCATABLE_LIBRARY.
67341         (Makefile.am): Remove lib_SOURCES.
67342         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67343         always.
67344         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67345         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67346
67347 2007-03-04  Bruno Haible  <bruno@clisp.org>
67348
67349         * modules/argmatch-tests: New file.
67350         * tests/test-argmatch.c: New file.
67351
67352         * tests/test-allocsa.c (main): Halve the number of loop runs.
67353
67354         * modules/alloca-opt-tests: New file.
67355         * tests/test-alloca-opt.c: New file.
67356
67357 2007-03-04  Jim Meyering  <jim@meyering.net>
67358
67359         Work around difference between Linux ACLs and Solaris 10 ZFS.
67360         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67361         for EINVAL.
67362
67363 2007-03-03  Bruno Haible  <bruno@clisp.org>
67364
67365         * modules/relocatable-prog (Depends-on): Add back progreloc's
67366         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67367
67368 2007-03-03  Bruno Haible  <bruno@clisp.org>
67369
67370         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67371         * modules/relocatable-lib: New file.
67372
67373 2007-03-03  Bruno Haible  <bruno@clisp.org>
67374
67375         * modules/relocatable-prog: Renamed from modules/relocatable.
67376         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67377
67378 2007-03-03  Bruno Haible  <bruno@clisp.org>
67379
67380         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67381         m4/relocatable-lib.m4.
67382         (Depends-on): Remove 'relocatable'.
67383         (configure.ac): Add gl_RELOCATABLE_NOP.
67384
67385 2007-03-03  Bruno Haible  <bruno@clisp.org>
67386
67387         * modules/relocatable-prog-wrapper: New file.
67388         * modules/relocatable (Depends-on): Add it. Remove all other
67389         dependencies except progname.
67390         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67391
67392         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67393         (gl_FUNC_STRERROR): Nop.
67394         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67395
67396         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67397         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67398
67399         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67400         (gl_FUNC_READLINK): Update.
67401
67402         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67403
67404 2007-03-03  Bruno Haible  <bruno@clisp.org>
67405
67406         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67407         * modules/xreadlink (Depends-on): Add unistd.
67408         * modules/xreadlink-with-size (Depends-on): Likewise.
67409
67410 2007-03-03  Bruno Haible  <bruno@clisp.org>
67411
67412         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67413         extracted from gt_FUNC_SETENV.
67414         (gt_FUNC_SETENV): Remove macro.
67415         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67416         remove gt_FUNC_SETENV.
67417
67418 2007-03-03  Bruno Haible  <bruno@clisp.org>
67419
67420         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67421         ENABLE_RELOCATABLE here.
67422         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67423
67424 2007-03-03  Bruno Haible  <bruno@clisp.org>
67425
67426         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67427         * tests/test-rbtreehash_list.c: Include progname.h.
67428         (main): Call set_program_name.
67429
67430         * modules/rbtree-oset-tests (Depends-on): Add progname.
67431         * tests/test-rbtree_oset.c: Include progname.h.
67432         (main): Call set_program_name.
67433
67434         * modules/rbtree-list-tests (Depends-on): Add progname.
67435         * tests/test-rbtree_list.c: Include progname.h.
67436         (main): Call set_program_name.
67437
67438         * modules/linked-list-tests (Depends-on): Add progname.
67439         * tests/test-linked_list.c: Include progname.h.
67440         (main): Call set_program_name.
67441
67442 2007-03-03  Bruno Haible  <bruno@clisp.org>
67443
67444         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67445         All uses of __restrict changed to _Restrict_.
67446         * lib/glob_.h (__restrict): Remove macro.
67447
67448 2007-03-02  Bruno Haible  <bruno@clisp.org>
67449
67450         * modules/gettext (configure.ac): Require gettext infrastructure
67451         from version 0.16.1.
67452
67453 2007-03-02  Bruno Haible  <bruno@clisp.org>
67454
67455         * modules/linkedhash-list-tests (Depends-on): Add progname.
67456         * tests/test-linkedhash_list.c: Include progname.h.
67457         (main): Call set_program_name.
67458
67459         * modules/carray-list-tests (Depends-on): Add progname.
67460         * tests/test-carray_list.c: Include progname.h.
67461         (main): Call set_program_name.
67462
67463         * modules/avltreehash-list-tests (Depends-on): Add progname.
67464         * tests/test-avltreehash_list.c: Include progname.h.
67465         (main): Call set_program_name.
67466
67467         * modules/avltree-oset-tests (Depends-on): Add progname.
67468         * tests/test-avltree_oset.c: Include progname.h.
67469         (main): Call set_program_name.
67470
67471         * modules/avltree-list-tests (Depends-on): Add progname.
67472         * tests/test-avltree_list.c: Include progname.h.
67473         (main): Call set_program_name.
67474
67475         * modules/array-oset-tests (Depends-on): Add progname.
67476         * tests/test-array_oset.c: Include progname.h.
67477         (main): Call set_program_name.
67478
67479         * modules/array-list-tests (Depends-on): Add progname.
67480         * tests/test-array_list.c: Include progname.h.
67481         (main): Call set_program_name.
67482
67483         * modules/argp-tests (Depends-on): Add progname.
67484         * tests/test-argp.c: Include argp.h first. Include progname.h.
67485         (main): Call set_program_name.
67486
67487 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67488
67489         * doc/gnulib-tool.texi (Initial import): Reword description of
67490         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67491         limited effect even if defined after the first system include.
67492
67493 2007-03-01  Bruno Haible  <bruno@clisp.org>
67494
67495         * build-aux/config.libpath: Update to libtool-1.5.22.
67496         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67497
67498 2007-03-01  Bruno Haible  <bruno@clisp.org>
67499
67500         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67501         foo_CFLAGS.
67502         Reported by Ralf Wildenhues.
67503
67504 2007-03-01  Bruno Haible  <bruno@clisp.org>
67505
67506         * build-aux/install-reloc: Remove object files left over by some
67507         compilers.
67508         Reported by Ralf Wildenhues.
67509
67510 2007-03-01  Bruno Haible  <bruno@clisp.org>
67511
67512         * build-aux/install-reloc: Break long lines.
67513
67514 2007-03-01  Bruno Haible  <bruno@clisp.org>
67515
67516         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67517         Reported by Ralf Wildenhues.
67518
67519 2007-03-01  Bruno Haible  <bruno@clisp.org>
67520
67521         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67522         include ordering constraints.
67523
67524 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67525
67526         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67528         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67529         as another example.
67530         * lib/time_.h: Fix misspelling.
67531         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67532         Require gl_HEADER_TIME_H_DEFAULTS.
67533         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67534         * m4/time_r.m4 (gl_TIME_R): Likewise.
67535         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67536
67537 2007-03-01  Bruno Haible  <bruno@clisp.org>
67538
67539         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67540         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67541
67542 2007-03-01  Jim Meyering  <jim@meyering.net>
67543
67544         * modules/xreadlink (Maintainer): Add my name.
67545         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67546
67547 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67548             Bruno Haible  <bruno@clisp.org>
67549
67550         * build-aux/install-reloc: Compile also c-ctype.c.
67551         * build-aux/relocatable.sh.in: New file.
67552         * doc/relocatable.texi: New file.
67553         * doc/relocatable-maint.texi: New file.
67554         * doc/gnulib.texi: Include relocatable-maint.texi.
67555         * lib/progreloc.c: Include unistd.h unconditionally.
67556         * lib/relocwrapper.c: Include unistd.h unconditionally.
67557         Include c-ctype.h.
67558         (add_dotbin): Use c_tolower.
67559         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67560         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67561         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67562         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67563         to m4/relocatable-lib.m4.
67564         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67565         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67566         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67567         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67568         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67569         * modules/relocatable: New file.
67570         * modules/relocatable-lib: New file.
67571         * modules/relocatable-script: New file.
67572
67573 2007-02-28  Bruno Haible  <bruno@clisp.org>
67574
67575         Import --enable-relocatable infrastructure.
67576         * build-aux/config.libpath: New file, from GNU gettext.
67577         * build-aux/install-reloc: New file, from GNU gettext.
67578         * build-aux/reloc-ldflags: New file, from GNU gettext.
67579         * lib/relocatable.h: New file, from GNU gettext.
67580         * lib/relocatable.c: New file, from GNU gettext.
67581         * lib/relocwrapper.c: New file, from GNU gettext.
67582         * m4/relocatable.m4: New file, from GNU gettext.
67583
67584 2007-02-28  Bruno Haible  <bruno@clisp.org>
67585
67586         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67587
67588         * modules/xreadlink: New file, from GNU gettext with modifications.
67589         * lib/xreadlink.c: New file, from GNU gettext.
67590         * lib/xreadlink.h: Add comments.
67591         (xreadlink): New declaration.
67592
67593         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67594         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67595         lib/xreadlink-with-size.c.
67596         (configure.ac): Remove gl_XREADLINK invocation.
67597         (Makefile.am): Augment lib_SOURCES.
67598         * m4/xreadlink.m4: Remove file.
67599         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67600         (xreadlink_with_size): Renamed from xreadink.
67601         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67602         * modules/canonicalize (Depends-on): Replace xreadlink with
67603         xreadlink-with-size.
67604         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67605
67606 2007-02-25  Jim Meyering  <jim@meyering.net>
67607
67608         * build-aux/announce-gen: When complaining about excess arguments,
67609         list them.
67610
67611 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67612
67613         * README: Document signed integer overflow situation more
67614         accurately.
67615
67616 2007-02-25  Bruno Haible  <bruno@clisp.org>
67617
67618         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67619         'a' or 'A' conversion.
67620
67621 2007-02-25  Bruno Haible  <bruno@clisp.org>
67622
67623         * modules/filename: Renamed from modules/pathname.
67624         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67625         lib/concatpath.c with lib/concat-filename.c.
67626         (Makefile.am): Update.
67627         (Include): Replace pathname.h with filename.h.
67628         * lib/filename.h: Renamed from lib/pathname.h.
67629         (concatenated_filename): Renamed from concatenated_pathname.
67630         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67631         (concatenated_filename): Renamed from concatenated_pathname.
67632         * lib/findprog.c: Include filename.h instead of pathname.h.
67633         (find_in_path): Update.
67634         * lib/javacomp.c: Include filename.h instead of pathname.h.
67635         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67636         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67637         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67638         is_oldgcj_14_13_usable, is_javac_usable): Update.
67639         * lib/javaexec.c: Include filename.h instead of pathname.h.
67640         (execute_java_class): Update.
67641         * modules/findprog: Update.
67642         * modules/javacomp: Update.
67643         * modules/javaexec: Update.
67644         * MODULES.html.sh (File system functions): Add 'filename', remove
67645         'pathname'.
67646
67647 2007-02-25  Bruno Haible  <bruno@clisp.org>
67648
67649         * modules/printf-frexpl-tests: New file.
67650         * tests/test-printf-frexpl.c: New file.
67651
67652         * modules/printf-frexpl: New file.
67653         * lib/printf-frexpl.h: New file.
67654         * lib/printf-frexpl.c: New file.
67655         * m4/printf-frexpl.m4: New file.
67656
67657 2007-02-25  Bruno Haible  <bruno@clisp.org>
67658
67659         * modules/printf-frexp-tests: New file.
67660         * tests/test-printf-frexp.c: New file.
67661
67662         * modules/printf-frexp: New file.
67663         * lib/printf-frexp.h: New file.
67664         * lib/printf-frexp.c: New file.
67665         * m4/printf-frexp.m4: New file.
67666
67667 2007-02-25  Bruno Haible  <bruno@clisp.org>
67668
67669         Assume automake >= 1.10 for the tests.
67670         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67671         * modules/arctwo-tests: Likewise.
67672         * modules/argp-tests: Likewise.
67673         * modules/avltree-list-tests: Likewise.
67674         * modules/avltree-oset-tests: Likewise.
67675         * modules/avltreehash-list-tests: Likewise.
67676         * modules/carray-list-tests: Likewise.
67677         * modules/crc-tests: Likewise.
67678         * modules/des-tests: Likewise.
67679         * modules/gc-arcfour-tests: Likewise.
67680         * modules/gc-arctwo-tests: Likewise.
67681         * modules/gc-des-tests: Likewise.
67682         * modules/gc-hmac-md5-tests: Likewise.
67683         * modules/gc-hmac-sha1-tests: Likewise.
67684         * modules/gc-md2-tests: Likewise.
67685         * modules/gc-md4-tests: Likewise.
67686         * modules/gc-md5-tests: Likewise.
67687         * modules/gc-pbkdf2-sha1-tests: Likewise.
67688         * modules/gc-rijndael-tests: Likewise.
67689         * modules/gc-sha1-tests: Likewise.
67690         * modules/gc-tests: Likewise.
67691         * modules/getaddrinfo-tests: Likewise.
67692         * modules/hmac-md5-tests: Likewise.
67693         * modules/hmac-sha1-tests: Likewise.
67694         * modules/linked-list-tests: Likewise.
67695         * modules/linkedhash-list-tests: Likewise.
67696         * modules/lock-tests: Likewise.
67697         * modules/md2-tests: Likewise.
67698         * modules/md4-tests: Likewise.
67699         * modules/md5-tests: Likewise.
67700         * modules/rbtree-list-tests: Likewise.
67701         * modules/rbtree-oset-tests: Likewise.
67702         * modules/rbtreehash-list-tests: Likewise.
67703         * modules/read-file-tests: Likewise.
67704         * modules/rijndael-tests: Likewise.
67705         * modules/stdint-tests: Likewise.
67706         * modules/tls-tests: Likewise.
67707
67708 2007-02-24  Bruno Haible  <bruno@clisp.org>
67709
67710         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67711         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67712         function; instead check whether isnan with a double argument links.
67713         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67714         function; instead check whether isnan with a 'long double' argument
67715         links.
67716         Reported by Eric Blake <ebb9@byu.net>.
67717
67718 2007-02-24  Bruno Haible  <bruno@clisp.org>
67719
67720         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67721         defined.
67722         * lib/isnanl.c: Remove all code. Just include isnan.c.
67723         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67724
67725 2007-02-25  Jim Meyering  <jim@meyering.net>
67726
67727         Avoid conflicting types for 'unsetenv' on FreeBSD.
67728         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67729         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67730         in stdlib.h.
67731
67732 2007-02-24  Bruno Haible  <bruno@clisp.org>
67733
67734         * modules/isnanl-nolibm-tests: New file.
67735         * tests/test-isnanl.c: New file.
67736
67737         * modules/isnanl-nolibm: New file.
67738         * lib/isnanl.h: New file.
67739         * lib/isnanl.c: New file.
67740         * m4/isnanl.m4: New file.
67741
67742 2007-02-24  Bruno Haible  <bruno@clisp.org>
67743
67744         * modules/isnan-nolibm-tests: New file.
67745         * tests/test-isnan.c: New file.
67746
67747         * modules/isnan-nolibm: New file.
67748         * lib/isnan.h: New file.
67749         * lib/isnan.c: New file.
67750         * m4/isnan.m4: New file.
67751
67752 2007-02-24  Bruno Haible  <bruno@clisp.org>
67753
67754         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67755         assume that an exponent fits in 20 bits.
67756
67757 2007-02-24  Jim Meyering  <jim@meyering.net>
67758
67759         * m4/regex.m4: Update the description of the configure-time option,
67760         --without-included-regex, to state accurately what the defaults are,
67761         and perhaps to give people an idea why using this option is risky.
67762
67763 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67764
67765         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67766         loops on small arguments.  This attempts to avoid the problem
67767         Bruno Haible reported for AIX 4.3.2 in
67768         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67769
67770 2007-02-23  Bruno Haible  <bruno@clisp.org>
67771
67772         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67773         Needed for help2man.
67774
67775 2007-02-23  Karl Berry  <karl@gnu.org>
67776
67777         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67778         exists, foo.h should be cvs-ignored, not committed.
67779
67780 2007-02-23  Eric Blake  <ebb9@byu.net>
67781
67782         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67783         * lib/stat-time.h (includes): Likewise.
67784         * lib/utimecmp.c (includes): Likewise.
67785         * lib/utimens.h (includes): Likewise.
67786         * lib/getdate.y (includes): Also include "timespec.h" for use
67787         internal to the module.
67788         * modules/utimens (Depends-on): Revert yesterday's patch.
67789         * modules/nanosleep (Depends-on): Add missing dependency.
67790
67791 2007-02-22  Bruno Haible  <bruno@clisp.org>
67792
67793         * lib/glob.c: Don't include getlogin_r.h.
67794
67795 2007-02-22  Jim Meyering  <jim@meyering.net>
67796
67797         * modules/utimens (Depends-on): Add timespec, required for
67798         utimens.h's inclusion of timespec.h.
67799
67800 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67801
67802         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67803         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67804         Schwab in
67805         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67806         I'll try to think of a better way to fix the Solaris problem.
67807
67808         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67809         like glibc; on Solaris 10, it fails with errno == EINVAL.
67810         POSIX says the behavior is unspecified if the first argument is NULL,
67811         so play it safe and never pass NULL to the system getcwd.
67812
67813 2007-02-21  Jim Meyering  <jim@meyering.net>
67814
67815         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67816         of gettimeofday.  It would conflict with the one now always
67817         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67818         an IRIX 6.5 build failure.
67819
67820 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67821
67822         Minor fixups to port to Solaris 10 with Sun C 5.8.
67823         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67824         * modules/getcwd (Depends-on): Add dirfd.
67825         * lib/putenv.c (putenv): #undef it.
67826         (rpl_putenv): New decl.
67827         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67828
67829 2007-02-20  Bruno Haible  <bruno@clisp.org>
67830
67831         * modules/stdio-tests: New file.
67832         * tests/test-stdio.c: New file.
67833
67834         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67835         (Depends-on): Add stdio.
67836         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67837         (Include): Use <stdio.h> instead of vsnprintf.h.
67838         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67839         HAVE_DECL_VSNPRINTF.
67840         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67841
67842         * modules/snprintf (Files): Remove lib/snprintf.h.
67843         (Depends-on): Add stdio.
67844         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67845         (Include): Use <stdio.h> instead of snprintf.h.
67846         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67847         HAVE_DECL_SNPRINTF.
67848         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67849         * lib/getaddrinfo.c: Likewise.
67850
67851         * modules/stdio: New file.
67852         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67853         * lib/snprintf.h: Remove file.
67854         * lib/vsnprintf.h: Remove file.
67855         * lib/.cppi-disable: Remove snprintf.h.
67856         * m4/stdio_h.m4: New file.
67857         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67858
67859 2007-02-20  Jim Meyering  <jim@meyering.net>
67860
67861         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67862         used by e.g., mingw.  From Bruno Haible.
67863
67864 2007-02-19  Bruno Haible  <bruno@clisp.org>
67865
67866         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67867         warnings.
67868         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67869
67870 2007-02-19  Bruno Haible  <bruno@clisp.org>
67871
67872         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67873         from mingw users.
67874
67875 2007-02-19  Bruno Haible  <bruno@clisp.org>
67876
67877         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67878         warnings.
67879         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67880
67881 2007-02-19  Jim Meyering  <jim@meyering.net>
67882
67883         Don't use FD after a successful "fdopendir (fd)".
67884         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67885         Reset it by calling dirfd on the just-obtained DIR*.
67886
67887         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67888         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67889
67890 2007-02-18  Bruno Haible  <bruno@clisp.org>
67891
67892         * lib/readlink.c: Include <unistd.h>.
67893         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67894         HAVE_READLINK.
67895         * modules/readlink (Depends-on): Add unistd.
67896         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67897         (Include): Add <unistd.h>.
67898
67899         * lib/getlogin_r.h: Remove file.
67900         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67901         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67902         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67903         HAVE_DECL_GETLOGIN_R.
67904         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67905         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67906         (Include): Use <unistd.h> instead of getlogin_r.h.
67907
67908         * lib/getcwd.h: Remove file.
67909         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67910         * lib/xgetcwd.c: Likewise.
67911         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67912         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67913         * modules/getcwd (Files): Remove lib/getcwd.h.
67914         (Depends-on): Add unistd.
67915         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67916         (Include): Use <unistd.h> instad of getcwd.h.
67917
67918         * lib/ftruncate.c: Include <unistd.h> first.
67919         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67920         Set HAVE_FTRUNCATE.
67921         * modules/ftruncate (Depends-on): Add unistd.
67922         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67923
67924         * lib/fchdir.c: Include <unistd.h> first.
67925         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67926         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67927         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
67928         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67929         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
67930
67931         * lib/dup2.c: Include <unistd.h> first.
67932         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
67933         HAVE_DUP2.
67934         * modules/dup2 (Depends-on): Add unistd.
67935         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67936
67937         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
67938         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
67939         REPLACE_CHOWN. Don't define chown as a macro here.
67940         * modules/chown (Depends-on): Add unistd.
67941         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67942
67943         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
67944         Add definition for GL_LINK_WARNING.
67945         (chown, dup2): New declarations.
67946         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
67947         link warning.
67948         (ftruncate): New declaration.
67949         (getcwd): New declaration, taken from old getcwd.h.
67950         (getlogin_r): New declaration, taken from old getlogin_r.h.
67951         (readlink): New declaration.
67952         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
67953         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
67954         (gl_PREREQ_UNISTD): Remove macro.
67955         (gl_UNISTD_MODULE_INDICATOR): New macro.
67956         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
67957         many new variables. Don't set UNISTD_H.
67958         * modules/unistd (Description): Change.
67959         (Depends-on): Add link-warning.
67960         (configure.ac): Update.
67961         (Makefile.am): Create unistd.h always. Substitute many new variables
67962         into it.
67963
67964 2007-02-18  Bruno Haible  <bruno@clisp.org>
67965
67966         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
67967         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
67968         HAVE_GETSUBOPT.
67969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
67970         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
67971         * lib/getsubopt.h: Remove file.
67972         * modules/getsubopt (Files): Remove lib/getsubopt.h.
67973         (Depends-on): Add stdlib.
67974         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67975         (Includes): Use <stdlib.h> instead of getsubopt.h.
67976         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
67977         Set HAVE_GETSUBOPT.
67978         * lib/getsubopt.c: Don't include getsubopt.h.
67979
67980 2007-02-18  Bruno Haible  <bruno@clisp.org>
67981
67982         * modules/fchdir (Depends-on): Add dup2.
67983
67984 2007-02-18  Bruno Haible  <bruno@clisp.org>
67985
67986         * lib/stdlib_.h: Handle glibc's special invocation convention
67987         specially.
67988
67989 2007-02-18  Bruno Haible  <bruno@clisp.org>
67990
67991         * modules/stdlib-tests: New file.
67992         * tests/test-stdlib.c: New file.
67993
67994         * modules/mkstemp (Files): Remove lib/mkstemp.h.
67995         (Depends-on): Add stdlib.
67996         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67997         (Includes): Use <stdlib.h> instead of mkstemp.h.
67998         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67999         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68000         * lib/mkstemp.c: Don't include mkstemp.h.
68001         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68002         * lib/stdlib--.h: Don't include mkstemp.h.
68003
68004         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68005         (Depends-on): Add stdlib.
68006         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68007         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68008         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68009         HAVE_MKDTEMP.
68010         * lib/mkdtemp.c: Don't include mkdtemp.h.
68011         * lib/clean-temp.c: Don't include mkdtemp.h.
68012
68013         * modules/exit (Files): Remove lib/exit.h.
68014         (Depends-on): Add stdlib.
68015         (Makefile.am): Remove lib_SOURCES.
68016         (Include): Use <stdlib.h> instead of exit.h.
68017         * lib/argmatch.c: Don't include exit.h.
68018         * lib/execute.c: Likewise.
68019         * lib/pagealign_alloc.c: Likewise.
68020         * lib/pipe.c: Likewise.
68021         * lib/wait-process.c: Likewise.
68022         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68023         * lib/exitfail.c: Likewise.
68024         * lib/savewd.c: Likewise.
68025         * lib/xsetenv.c: Likewise.
68026
68027         * modules/stdlib: New file.
68028         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68029         and extra comments about mkstemp().
68030         * lib/exit.h: Remove file.
68031         * lib/mkdtemp.h: Remove file.
68032         * lib/mkstemp.h: Remove file.
68033         * m4/stdlib_h.m4: New file.
68034         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68035
68036 2007-02-18  Bruno Haible  <bruno@clisp.org>
68037
68038         * modules/math-tests: New file.
68039         * tests/test-math.c: New file.
68040
68041         * modules/math: New file.
68042         * modules/mathl (Files): Remove lib/mathl.h.
68043         (Depends-on): Add math.
68044         (Makefile.am): Don't mention mathl.h.
68045         (Include): Use <math.h> instead of mathl.h.
68046         * lib/math_.h: New file.
68047         * lib/mathl.h: Remove file.
68048         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68049         mathl.h.
68050         * lib/asinl.c: Likewise.
68051         * lib/atanl.c: Likewise.
68052         * lib/ceill.c: Likewise.
68053         * lib/cosl.c: Likewise.
68054         * lib/expl.c: Likewise.
68055         * lib/floorl.c: Likewise.
68056         * lib/frexpl.c: Likewise.
68057         * lib/ldexpl.c: Likewise.
68058         * lib/logl.c: Likewise.
68059         * lib/sincosl.c: Likewise.
68060         * lib/sinl.c: Likewise.
68061         * lib/sqrtl.c: Likewise.
68062         * lib/tanl.c: Likewise.
68063         * lib/trigl.c: Likewise.
68064         * m4/math_h.m4: New file.
68065         * MODULES.html.sh (Mathematics): Add math.
68066
68067 2007-02-17  Bruno Haible  <bruno@clisp.org>
68068
68069         * modules/wctype-tests: New file.
68070         * tests/test-wctype.c: New file.
68071
68072         * modules/wchar-tests: New file.
68073         * tests/test-wchar.c: New file.
68074
68075         * modules/unistd-tests: New file.
68076         * tests/test-unistd.c: New file.
68077
68078         * modules/time-tests: New file.
68079         * tests/test-time.c: New file.
68080
68081         * modules/sysexits-tests: New file.
68082         * tests/test-sysexits.c: New file.
68083
68084         * modules/sys_time-tests: New file.
68085         * tests/test-sys_time.c: New file.
68086
68087         * modules/sys_stat-tests: New file.
68088         * tests/test-sys_stat.c: New file.
68089
68090         * modules/sys_socket-tests: New file.
68091         * tests/test-sys_socket.c: New file.
68092
68093         * modules/sys_select-tests: New file.
68094         * tests/test-sys_select.c: New file.
68095
68096         * modules/string-tests: New file.
68097         * tests/test-string.c: New file.
68098
68099         * modules/stdbool-tests: New file.
68100         * tests/test-stdbool.c: New file.
68101
68102         * modules/netinet_in-tests: New file.
68103         * tests/test-netinet_in.c: New file.
68104
68105         * modules/inttypes-tests: New file.
68106         * tests/test-inttypes.c: New file.
68107
68108         * modules/fcntl-tests: New file.
68109         * tests/test-fcntl.c: New file.
68110
68111         * modules/byteswap-tests: New file.
68112         * tests/test-byteswap.c: New file.
68113
68114         * modules/arpa_inet-tests: New file.
68115         * tests/test-arpa_inet.c: New file.
68116
68117 2007-02-17  Bruno Haible  <bruno@clisp.org>
68118
68119         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68120         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68121         if the corresponding module is not enabled. Emit link warnings if
68122         the function is used nevertheless.
68123         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68124         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68125         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68126         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68127         * modules/inttypes (Depends-on): Add link-warning.
68128         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68129         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68130         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68131         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68132         * modules/imaxdiv (configure.ac): Likewise.
68133         * modules/strtoimax (configure.ac): Likewise.
68134         * modules/strtoumax (configure.ac): Likewise.
68135
68136 2007-02-17  Bruno Haible  <bruno@clisp.org>
68137
68138         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68139         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68140         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68141         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68142
68143 2007-02-17  Bruno Haible  <bruno@clisp.org>
68144
68145         * modules/link-warning: New file.
68146         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68147         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68148         * modules/string (Depends-on): Add link-warning.
68149         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68150         string.h.
68151         * MODULES.html.sh (Support for building libraries and executables): Add
68152         link-warning.
68153
68154 2007-02-17  Bruno Haible  <bruno@clisp.org>
68155
68156         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68157         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68158         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68159         long lines.
68160
68161 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68162             Bruno Haible  <bruno@clisp.org>
68163
68164         * modules/tmpfile: New file.
68165         * lib/tmpfile.c: New file.
68166         * m4/tmpfile.m4: New file.
68167         * MODULES.html.sh (func_all_modules): New section "Input/output".
68168
68169 2007-02-15  Bruno Haible  <bruno@clisp.org>
68170
68171         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68172         (supports_delete_on_close): New function.
68173         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68174
68175 2007-02-14  Bruno Haible  <bruno@clisp.org>
68176
68177         * modules/mbspcasecmp-tests: New file.
68178         * tests/test-mbspcasecmp.sh: New file.
68179         * tests/test-mbspcasecmp.c: New file.
68180
68181         New module mbspcasecmp.
68182         * modules/mbspcasecmp: New file.
68183         * lib/mbspcasecmp.c: New file.
68184         * lib/string_.h (strncasecmp): Change warning message.
68185         (mbspcasecmp): New declaration.
68186         * m4/mbspcasecmp.m4: New file.
68187         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68188         GNULIB_MBSPCASECMP.
68189         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68190         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68191
68192 2007-02-14  Bruno Haible  <bruno@clisp.org>
68193
68194         * modules/mbsncasecmp-tests: New file.
68195         * tests/test-mbsncasecmp.sh: New file.
68196         * tests/test-mbsncasecmp.c: New file.
68197
68198         New module mbsncasecmp.
68199         * modules/mbsncasecmp: New file.
68200         * lib/mbsncasecmp.c: New file.
68201         * lib/string_.h (mbsncasecmp): New declaration.
68202         * m4/mbsncasecmp.m4: New file.
68203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68204         GNULIB_MBSNCASECMP.
68205         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68206         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68207
68208 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68209
68210         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68211         Verify that it doesn't overlap with our flags.
68212         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68213         do not have the desired effect in multibyte locales; instead, use
68214         mbscasecmp.
68215         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68216         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68217         we don't require GNU fnmatch ourselves (if our users require it, they
68218         should do so explicitly).
68219
68220         Fix regex code so it doesn't rely on strcasecmp.
68221         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68222         Otherwise, include gnulib's langinfo.h.
68223         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68224         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68225         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68226         * modules/regex (FILES): Remove m4/codeset.m4.
68227         (Depends-on): Add localcharset.  Remove strcase.
68228
68229 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68230
68231         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68232         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68233
68234 2007-02-13  Bruno Haible  <bruno@clisp.org>
68235
68236         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68237         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68238
68239 2007-02-12  Bruno Haible  <bruno@clisp.org>
68240
68241         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68242         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68243         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68244         time warning rather than a link error.
68245
68246 2007-02-12  Bruno Haible  <bruno@clisp.org>
68247
68248         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68249         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68250         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68251
68252 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68253
68254         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68255         args, not 2.
68256
68257 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68258
68259         New module 'time', so that apps can include <time.h> as per
68260         POSIX and GNU instead of separate include files like time_r.h
68261         and timegm.h.  This implementation tries out a simpler approach
68262         for replacing decls in standard include files (as compared to
68263         the string module), somewhat as an experiment.
68264
68265         * config/srclist.txt: Comment out mktime.c for now.
68266         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68267         since it doesn't apply any more.  Use generic wording instead.
68268         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68269         'time'.
68270         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68271         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68272         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68273         Don't include <sys/types.h>; no longer needed since we assume C89.
68274         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68275         * lib/strftime.c: Likewise.
68276         * lib/time_r.c: Likewise.
68277         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68278         * lib/nanosleep.c: Include <time.h> first, to check interface.
68279         * lib/strptime.c: Likewise.
68280         * lib/time_r.c: Likewise.
68281         * lib/timegm.c: Likewise.
68282         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68283         needed.
68284         * lib/timegm.c: Don't include timegm.h; no longer needed.
68285         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68286         time.h now handles any problems in that area.
68287         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68288         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68289         that time.h defines struct timespec.
68290         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68291         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68292         handles that.
68293         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68294         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68295         needed.  Set REPLACE_LOCALTIME.
68296         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68297         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68298         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68299         nanosleep; time_h.m4 now does that.  Don't require
68300         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68301         module handles this now.
68302         * modules/getdate (Depends-on): Remove timespec.  Add time.
68303         * modules/nanosleep (Depends-on): Likewise.
68304         * modules/stat-time (Depends-on): Likewise.
68305         * modules/nanosleep (Include): Include time.h, not timespec.h.
68306         * modules/strptime (Files): Remove lib/strptime.h.
68307         (Depends-on): Add extensions, time.
68308         (Include): Include time.h, not strptime.h.
68309         * modules/time_r (Files): Remove lib/time_r.h.
68310         (Depends-on): Add time.
68311         (Include): Include time.h, not time_r.h.
68312         * modules/timegm: Likewise.
68313         * modules/timespec (Description): Now does timespec-related decls
68314         of our own, instead of struct timespec itself.
68315         (Depends-on): Add time; remove extensions.
68316         (Maintainer): Add self.
68317         * modules/utimecmp (Depends-on): Add time; remove timespec.
68318         * modules/utimens (Depends-on): Likewise.
68319         * modules/xnanosleep (Depends-on): Likewise.
68320
68321 2007-02-11  Bruno Haible  <bruno@clisp.org>
68322
68323         * lib/c-strstr.c: Include allocsa.h.
68324         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68325         * lib/c-strcasestr.c: Include allocsa.h.
68326         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68327         * lib/strcasestr.c: Include allocsa.h.
68328         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68329         * lib/mbsstr.c: Include allocsa.h.
68330         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68331         allocsa/freesa instead of malloc/free.
68332         * lib/mbscasestr.c: Include allocsa.h.
68333         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68334         allocsa/freesa instead of malloc/free.
68335         * modules/c-strstr (Depends-on): Add allocsa.
68336         * modules/c-strcasestr (Depends-on): Likewise.
68337         * modules/strcasestr (Depends-on): Likewise.
68338         * modules/mbsstr (Depends-on): Likewise.
68339         * modules/mbscasestr (Depends-on): Likewise.
68340
68341 2007-02-11  Bruno Haible  <bruno@clisp.org>
68342
68343         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68344
68345         * modules/mbsspn-tests: New file.
68346         * tests/test-mbsspn.sh: New file.
68347         * tests/test-mbsspn.c: New file.
68348
68349 2007-02-11  Bruno Haible  <bruno@clisp.org>
68350
68351         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68352
68353         * modules/mbspbrk-tests: New file.
68354         * tests/test-mbspbrk.sh: New file.
68355         * tests/test-mbspbrk.c: New file.
68356
68357 2007-02-11  Bruno Haible  <bruno@clisp.org>
68358
68359         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68360         unneeded cast.
68361
68362         * modules/mbscspn-tests: New file.
68363         * tests/test-mbscspn.sh: New file.
68364         * tests/test-mbscspn.c: New file.
68365
68366 2007-02-11  Bruno Haible  <bruno@clisp.org>
68367
68368         * modules/mbscasecmp-tests: New file.
68369         * tests/test-mbscasecmp.sh: New file.
68370         * tests/test-mbscasecmp.c: New file.
68371
68372 2007-02-11  Bruno Haible  <bruno@clisp.org>
68373
68374         Ensure O(n) worst-case complexity of mbscasestr.
68375         * lib/mbscasestr.c: Include stdbool.h.
68376         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68377         functions.
68378         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68379         the bookkeeping indicates that it's worth it.
68380         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68381
68382         * modules/mbscasestr-tests: New file.
68383         * tests/test-mbscasestr1.c: New file.
68384         * tests/test-mbscasestr2.sh: New file.
68385         * tests/test-mbscasestr2.c: New file.
68386         * tests/test-mbscasestr3.sh: New file.
68387         * tests/test-mbscasestr3.c: New file.
68388         * tests/test-mbscasestr4.sh: New file.
68389         * tests/test-mbscasestr4.c: New file.
68390         * m4/locale-tr.m4: New file.
68391
68392 2007-02-11  Bruno Haible  <bruno@clisp.org>
68393
68394         Ensure O(n) worst-case complexity of mbsstr.
68395         * lib/mbsstr.c: Include stdbool.h.
68396         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68397         functions.
68398         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68399         bookkeeping indicates that it's worth it.
68400         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68401
68402         * modules/mbsstr-tests: New file.
68403         * tests/test-mbsstr1.c: New file.
68404         * tests/test-mbsstr2.sh: New file.
68405         * tests/test-mbsstr2.c: New file.
68406         * tests/test-mbsstr3.sh: New file.
68407         * tests/test-mbsstr3.c: New file.
68408         * m4/locale-fr.m4: New file.
68409
68410 2007-02-11  Bruno Haible  <bruno@clisp.org>
68411
68412         * lib/mbsrchr.c (mbsrchr): Fix bug.
68413
68414         * modules/mbsrchr-tests: New file.
68415         * tests/test-mbsrchr.sh: New file.
68416         * tests/test-mbsrchr.c: New file.
68417
68418 2007-02-11  Bruno Haible  <bruno@clisp.org>
68419
68420         * lib/mbschr.c (mbschr): Fix bug.
68421
68422         * modules/mbschr-tests: New file.
68423         * tests/test-mbschr.sh: New file.
68424         * tests/test-mbschr.c: New file.
68425         * m4/locale-zh.m4: New file.
68426
68427 2007-02-11  Bruno Haible  <bruno@clisp.org>
68428
68429         Support for copying multibyte string iterators.
68430         * lib/mbiter.h: Include <string.h>.
68431         (mbiter_multi_copy): New function.
68432         (mbi_copy): New macro.
68433         * lib/mbuiter.h: Include <string.h>.
68434         (mbuiter_multi_copy): New function.
68435         (mbui_copy): New macro.
68436
68437 2007-02-11  Bruno Haible  <bruno@clisp.org>
68438
68439         New module mbslen.
68440         * modules/mbslen: New file.
68441         * lib/mbslen.c: New file.
68442         * lib/string_.h (mbslen): New declaration.
68443         * m4/mbslen.m4: New file.
68444         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68445         GNULIB_MBSLEN.
68446         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68447         * MODULES.html.sh (Internationalization functions): Add mbslen.
68448
68449 2007-02-11  Bruno Haible  <bruno@clisp.org>
68450
68451         Ensure O(n) worst-case complexity of strcasestr substitute.
68452         * lib/strcasestr.c: Include stdbool.h.
68453         (knuth_morris_pratt): New function.
68454         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68455         bookkeeping indicates that it's worth it.
68456         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68457
68458         * modules/strcasestr-tests: New file.
68459         * tests/test-strcasestr.c: New file.
68460
68461 2007-02-11  Bruno Haible  <bruno@clisp.org>
68462
68463         Ensure O(n) worst-case complexity of c_strcasestr.
68464         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68465         (knuth_morris_pratt): New function.
68466         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68467         the bookkeeping indicates that it's worth it.
68468         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68469
68470         * modules/c-strcasestr-tests: New file.
68471         * tests/test-c-strcasestr.c: New file.
68472
68473 2007-02-11  Bruno Haible  <bruno@clisp.org>
68474
68475         Ensure O(n) worst-case complexity of c_strstr.
68476         * lib/c-strstr.c: Include stdbool.h, string.h.
68477         (knuth_morris_pratt): New function.
68478         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68479         bookkeeping indicates that it's worth it.
68480         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68481
68482         * lib/c-strstr.c: Complete rewrite for maintainability.
68483
68484         * modules/c-strstr-tests: New file.
68485         * tests/test-c-strstr.c: New file.
68486
68487 2007-02-11  Bruno Haible  <bruno@clisp.org>
68488
68489         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68490         5.2.1 and earlier, whereby \055 was treated just like the range
68491         delimiter '-'.
68492         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68493
68494 2007-02-08  Bruno Haible  <bruno@clisp.org>
68495
68496         * modules/regex (Depends-on): Add stdbool.
68497         Reported by Dalibor Topic <robilad@kaffe.org>.
68498
68499 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68500
68501         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68502         Prefer returning from main to exiting from it.
68503         Remove unnecessary parens after sizeof.
68504
68505 2007-02-05  Bruno Haible  <bruno@clisp.org>
68506
68507         New module mbssep.
68508         * modules/mbssep: New file.
68509         * lib/mbssep.c: New file.
68510         * lib/string_.h (strsep): Add a conditional link warning.
68511         (mbssep): New declaration.
68512         * m4/mbssep.m4: New file.
68513         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68514         GNULIB_MBSSEP.
68515         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68516         * MODULES.html.sh (Internationalization functions): Add mbssep.
68517
68518 2007-02-05  Bruno Haible  <bruno@clisp.org>
68519
68520         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68521         Optimize search in case of 1 delimiter.
68522
68523 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68524
68525         * lib/acl.h: Include sys/types.h before sys/acl.h.
68526
68527 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68528
68529         Merge upstream fix for glibc bugzilla #3957:
68530
68531         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68532
68533         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68534         bit for RE_HAT_LISTS_NOT_NEWLINE.
68535         (build_charclass_op): Remove bogus comment.
68536
68537 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68538
68539         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68540
68541 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68542
68543         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68544         * lib/memmem.c [!defined _LIBC]: Include config.h.
68545
68546 2007-02-04  Bruno Haible  <bruno@clisp.org>
68547
68548         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68549         warning message.
68550
68551 2007-02-04  Bruno Haible  <bruno@clisp.org>
68552
68553         New module mbstok_r.
68554         * modules/mbstok_r: New file.
68555         * lib/mbstok_r.c: New file.
68556         * lib/string_.h (strtok_r): Change argument names to match the
68557         comments. Add a conditional link warning.
68558         (mbstok_r): New declaration.
68559         * m4/mbstok_r.m4: New file.
68560         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68561         GNULIB_MBSTOK_R.
68562         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68563         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68564
68565 2007-02-04  Bruno Haible  <bruno@clisp.org>
68566
68567         New module mbsspn.
68568         * modules/mbsspn: New file.
68569         * lib/mbsspn.c: New file.
68570         * lib/string_.h (strspn): Add a conditional link warning.
68571         (mbsspn): New declaration.
68572         * m4/mbsspn.m4: New file.
68573         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68574         GNULIB_MBSSPN.
68575         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68576         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68577
68578 2007-02-04  Bruno Haible  <bruno@clisp.org>
68579
68580         New module mbspbrk.
68581         * modules/mbspbrk: New file.
68582         * lib/mbspbrk.c: New file.
68583         * lib/string_.h (strpbrk): Add a conditional link warning.
68584         (mbspbrk): New declaration.
68585         * m4/mbspbrk.m4: New file.
68586         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68587         GNULIB_MBSPBRK.
68588         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68589         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68590
68591 2007-02-04  Bruno Haible  <bruno@clisp.org>
68592
68593         New module mbscspn.
68594         * modules/mbscspn: New file.
68595         * lib/mbscspn.c: New file.
68596         * lib/string_.h (strcspn): Add a conditional link warning.
68597         (mbscspn): New declaration.
68598         * m4/mbscspn.m4: New file.
68599         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68600         GNULIB_MBSCSPN.
68601         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68602         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68603
68604 2007-02-04  Bruno Haible  <bruno@clisp.org>
68605
68606         New module mbscasestr, reduced goal of strcasestr.
68607         * modules/mbscasestr: New file.
68608         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68609         (mbscasestr): Renamed from strcasestr.
68610         * lib/strcasestr.c: Don't include mbuiter.h.
68611         (strcasestr): Remove support for multibyte locales.
68612         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68613         Change the conditional link warning.
68614         (mbscasestr): New declaration.
68615         * m4/mbscasestr.m4: New file.
68616         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68617         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68618         REPLACE_STRCASESTR.
68619         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68621         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68622         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68623         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68624         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68625         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68626         (Depends-on): Remove mbuiter.
68627         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68628
68629 2007-02-04  Bruno Haible  <bruno@clisp.org>
68630
68631         Simplify handling of strncasecmp.
68632         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68633         the conditional link warning.
68634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68635         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68636         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68637         * modules/strcase (configure.ac): Don't invoke
68638         gl_STRING_MODULE_INDICATOR.
68639         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68640
68641 2007-02-04  Bruno Haible  <bruno@clisp.org>
68642
68643         New module mbscasecmp, reduced goal of strcasecmp.
68644         * modules/mbscasecmp: New file.
68645         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68646         (mbscasecmp): Renamed from strcasecmp.
68647         * lib/strcasecmp.c: Don't include mbuiter.h.
68648         (strcasecmp): Remove support for multibyte locales.
68649         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68650         Change the conditional link warning.
68651         (mbscasecmp): New declaration.
68652         * m4/mbscasecmp.m4: New file.
68653         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68654         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68655         REPLACE_STRCASECMP.
68656         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68657         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68658         GNULIB_MBSCASECMP.
68659         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68660         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68661         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68662         (Depends-on): Remove mbuiter.
68663         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68664
68665 2007-02-04  Bruno Haible  <bruno@clisp.org>
68666
68667         New module mbsstr. Remove module strstr.
68668         * modules/mbsstr: New file.
68669         * modules/strstr: Remove file.
68670         * lib/mbsstr.c: Renamed from lib/strstr.c.
68671         (mbsstr): Renamed from strstr.
68672         * lib/string_.h (strstr): Remove declaration. Change the conditional
68673         link warning.
68674         (mbsstr): New declaration.
68675         * m4/mbsstr.m4: New file.
68676         * m4/strstr.m4: Remove file.
68677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68678         REPLACE_STRSTR.
68679         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68680         Don't initialize GNULIB_STRSTR.
68681         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68682         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68683         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68684         (Support for systems lacking ANSI C 89): Remove strstr.
68685
68686 2007-02-04  Bruno Haible  <bruno@clisp.org>
68687
68688         New module mbsrchr.
68689         * modules/mbsrchr: New file.
68690         * lib/mbsrchr.c: New file.
68691         * lib/string_.h (strrchr): Add a conditional link warning.
68692         (mbsrchr): New declaration.
68693         * m4/mbsrchr.m4: New file.
68694         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68695         GNULIB_MBSRCHR.
68696         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68697         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68698
68699 2007-02-04  Bruno Haible  <bruno@clisp.org>
68700
68701         New module mbschr.
68702         * modules/mbschr: New file.
68703         * lib/mbschr.c: New file.
68704         * lib/string_.h (strchr): Add a conditional link warning.
68705         (mbschr): New declaration.
68706         * m4/mbschr.m4: New file.
68707         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68708         GNULIB_MBSCHR.
68709         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68710         * MODULES.html.sh (Internationalization functions): Add mbschr.
68711
68712 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68713
68714         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68715
68716         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68717
68718 2007-02-04  Bruno Haible  <bruno@clisp.org>
68719
68720         New module description section 'configure.ac-early'.
68721         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68722         (func_get_autoconf_early_snippet): New function.
68723         (func_import, func_create_testdir): Use it. Remove special cases for
68724         modules 'extensions' and 'lock'.
68725         * modules/extensions (configure.ac-early): Require
68726         gl_USE_SYSTEM_EXTENSIONS.
68727         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68728
68729 2007-02-04  Bruno Haible  <bruno@clisp.org>
68730
68731         Make use of gcj-4.3's -fsource and -ftarget option.
68732         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68733         and if so try the options -fsource and -ftarget.
68734         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68735         source_version, ftarget_option, target_version arguments.
68736         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68737         (is_envjavac_oldgcj_14_14_usable): Renamed from
68738         is_envjavac_gcj_14_14_usable.
68739         (is_envjavac_oldgcj_14_13_usable): Renamed from
68740         is_envjavac_gcj_14_13_usable.
68741         (is_gcj_present): Update.
68742         (is_gcj_43, is_gcj43_usable): New functions.
68743         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68744         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68745         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68746         try the options -fsource and -ftarget.
68747
68748 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68749
68750         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68751         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68752         larger value.
68753
68754 2007-02-03  Jim Meyering  <jim@meyering.net>
68755
68756         Give tools a better chance to allocate space for very large buffers.
68757         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68758
68759         Make pwd and readlink work also when run with an unreadable parent dir
68760         on systems with openat support.
68761         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68762         provided getcwd function, even when we have openat support.
68763         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68764
68765 2007-02-02  Bruno Haible  <bruno@clisp.org>
68766
68767         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68768         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68769         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68770         portability problems if one of these functions is only used on specific
68771         platforms.
68772         Reported by Paul Eggert.
68773
68774 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68775
68776         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68777         is causing more trouble than it's curing.
68778         * lib/regex_internal.h (__mempcpy): Remove.
68779         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68780         (and make the code a tad smaller to boot).
68781         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68782
68783 2007-02-02  Jim Meyering  <jim@meyering.net>
68784
68785         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68786         section, not in the Makefile.am: one.
68787
68788 2007-02-02  Eric Blake  <ebb9@byu.net>
68789
68790         * lib/strchrnul.c: Always include config.h first.
68791
68792         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68793         gnulib strstr is not necessary here.
68794
68795 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68796
68797         * m4/socklen.m4: Fix typo.
68798
68799 2007-02-02  Eric Blake  <ebb9@byu.net>
68800
68801         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68802         * modules/netinet_in (Makefile.am): Likewise.
68803
68804 2007-02-01  Bruno Haible  <bruno@clisp.org>
68805
68806         * lib/string_.h (GL_LINK_WARNING): New macro.
68807         (strcasecmp, strstr, strcasestr): If provided by the system,
68808         conditionally define as a macro that leads to a warning instead of to
68809         an error.
68810         (strncasecmp): Conditionally define as a macro that leads to a warning.
68811
68812 2007-02-01  Karl Berry  <karl@gnu.org>
68813
68814         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68815
68816 2007-02-01  Bruno Haible  <bruno@clisp.org>
68817
68818         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68819         renamings.
68820
68821 2007-02-01  Eric Blake  <ebb9@byu.net>
68822
68823         * modules/regex (Depends-on): Revert dependence on mempcpy.
68824         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68825         module's definition of mempcpy.
68826         Reported by Paul Eggert.
68827
68828 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68829
68830         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68831         the symbol XYZ before redefining it.  This fixes a problem with
68832         programs that don't use XYZ, when compiled on systems that define
68833         XYZ to something else.
68834
68835 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68836
68837         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68838         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68839         writeable to group or other and (2) is intended to have a special
68840         mode bit that is set or cleared.  In such a case, the directory
68841         should be neither group- nor other-writeable until the special
68842         mode bits are right.
68843
68844 2007-01-31  Eric Blake  <ebb9@byu.net>
68845
68846         * modules/mountlist (Depends-on): Add strstr.
68847
68848         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68849         bug.
68850         * modules/string (Makefile.am): Remove redundant replacement.
68851         * modules/regex (Depends-on): Add mempcpy.
68852
68853 2007-01-31  Bruno Haible  <bruno@clisp.org>
68854
68855         New module description field 'Link'.
68856         * gnulib-tool (func_usage): Document --extract-link-directive.
68857         (sed_extract_prog): Recognize 'Link' directive.
68858         (func_get_link_directive): New function.
68859         (func_import): Show summary of link directives.
68860         Handle --extract-link-directive option.
68861         * modules/acl (Link): New section.
68862         * modules/clock-time (Link): New section.
68863         * modules/euidaccess (Link): New section.
68864         * modules/gettext (Link): New section.
68865         * modules/iconv (Link): New section.
68866         * modules/lock (Link): New section.
68867         * modules/nanosleep (Link): New section.
68868         * modules/readline (Link): New section.
68869
68870 2007-01-27  Bruno Haible  <bruno@clisp.org>
68871
68872         Enforce the use of gnulib modules for unportable <string.h> functions.
68873         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68874         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68875         (gl_HEADER_STRING_H_BODY): Require it.
68876         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68877         the symbol XYZ to one that gives a link error.
68878         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68879         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68880         * modules/mempcpy (configure.ac): Likewise.
68881         * modules/memrchr (configure.ac): Likewise.
68882         * modules/stpcpy (configure.ac): Likewise.
68883         * modules/stpncpy (configure.ac): Likewise.
68884         * modules/strcase (configure.ac): Likewise.
68885         * modules/strcasestr (configure.ac): Likewise.
68886         * modules/strchrnul (configure.ac): Likewise.
68887         * modules/strdup (configure.ac): Likewise.
68888         * modules/strndup (configure.ac): Likewise.
68889         * modules/strnlen (configure.ac): Likewise.
68890         * modules/strpbrk (configure.ac): Likewise.
68891         * modules/strsep (configure.ac): Likewise.
68892         * modules/strstr (configure.ac): Likewise.
68893         * modules/strtok_r (configure.ac): Likewise.
68894
68895 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68896
68897         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68898
68899 2007-01-30  Jim Meyering  <jim@meyering.net>
68900
68901         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68902
68903 2007-01-29  Bruno Haible  <bruno@clisp.org>
68904
68905         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68906         * lib/execute.c: Likewise.
68907         * lib/pipe.c: Likewise.
68908         * lib/printf-args.h: Likewise.
68909         * lib/printf-args.c: Likewise.
68910         * lib/printf-parse.c: Likewise.
68911         * lib/vasnprintf.c: Likewise.
68912
68913 2007-01-29  Eric Blake  <ebb9@byu.net>
68914
68915         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68916         declaration.
68917
68918 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68919
68920         * lib/strptime.h (strptime): Use 'restrict' for args where
68921         POSIX requires this.
68922         * lib/strptime.c (strptime): Likewise.
68923         Change license notice from LGPL to GPL, since gnulib-tool will
68924         change this as needed.
68925         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68926         defined.
68927         Include "strptime.h" first, to check interface.
68928         Do not #undef _LIBC and _NL_CURRENT.
68929         Do not include <stdlib.h>; no longer needed.
68930         Include "time_r.h" and declare ptime_locale_status
68931         only if _LIBC is not defined.
68932         (__P): Remove unused macro.
68933         (match_string): Bring back glibc version, but use it only if _LIBC
68934         is defined.
68935         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
68936         Remove unnecessary assertion and abort() call.
68937         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
68938         * m4/strptime.m4: Fix serial number comment.
68939         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
68940         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
68941         (Depends-on): Add time_r.
68942
68943 2007-01-29  Bruno Haible  <bruno@clisp.org>
68944
68945         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68946         strptime.
68947         * modules/strptime (Depends-on): Add stdbool.
68948         * lib/strptime.h: Include <time.h> always. Add comments.
68949
68950 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68951
68952         * modules/strptime: New file.
68953         * lib/strptime.h: New file.
68954         * lib/strptime.c: New file.
68955         * m4/strptime.m4: New file.
68956
68957 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68958
68959         * MODULES.html.sh: New module mpsort.
68960         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
68961
68962         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
68963         a circularity problem with HP-UX ia64 reported by Bob Proulx in
68964         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
68965         All uses changed.
68966         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
68967         All uses changed.
68968         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
68969         to _Restrict_.
68970         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
68971         the parameter matches the prototype.
68972
68973 2007-01-28  Jim Meyering  <jim@meyering.net>
68974
68975         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
68976         sys/time.h here, reverting that part of the previous patch:
68977         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
68978
68979 2007-01-28  Bruno Haible  <bruno@clisp.org>
68980
68981         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
68982         value of $(SYS_TIME_H).
68983         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
68984         remove it conditionally, too. [added by Jim Meyering]
68985         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
68986         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68987         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
68988         GETTIMEOFDAY_REPLACEMENT to 1.
68989
68990 2007-01-28  Bruno Haible  <bruno@clisp.org>
68991
68992         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
68993         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
68994         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
68995         Set UNISTD_H instead of UNISTD_H2.
68996         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
68997
68998 2007-01-28  Bruno Haible  <bruno@clisp.org>
68999
69000         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69001         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69002
69003 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69004
69005         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69006         (func_create_testdir): Ensure C locale for `grep' and `tr'
69007         character ranges.
69008         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69009         ACLOCAL_AMFLAGS parsing state machine.
69010
69011 2007-01-27  Bruno Haible  <bruno@clisp.org>
69012
69013         * modules/unistr/base: Update.
69014
69015 2007-01-27  Bruno Haible  <bruno@clisp.org>
69016
69017         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69018         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69019         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69020         modules/unistr/u32-mbtouc.
69021         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69022         * lib/unistr.h: Update.
69023         * lib/linebreak.c: Update.
69024         * modules/unistr/u32-mbtouc: Renamed from
69025         modules/unistr/u32-mbtouc-safe.
69026         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69027         * lib/unistr.h: Update.
69028         * lib/unistr/u32-to-u8.c: Update.
69029         * lib/unistr/u32-to-u16.c: Update.
69030
69031 2007-01-27  Bruno Haible  <bruno@clisp.org>
69032
69033         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69034         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69035         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69036         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69037         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69038         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69039         modules/unistr/u16-mbtouc.
69040         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69041         * lib/unistr.h: Update.
69042         * lib/linebreak.c: Update.
69043         * modules/linebreak: Update.
69044         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69045         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69046         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69047         * modules/unistr/u16-mbtouc: Renamed from
69048         modules/unistr/u16-mbtouc-safe.
69049         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69050         * lib/unistr.h: Update.
69051         * lib/unistr/u16-to-u8.c: Update.
69052         * modules/unistr/u16-to-u8: Update.
69053         * lib/unistr/u16-to-u32.c: Update.
69054         * modules/unistr/u16-to-u32: Update.
69055
69056 2007-01-27  Bruno Haible  <bruno@clisp.org>
69057
69058         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69059         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69060         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69061         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69062         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69063         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69064         modules/unistr/u8-mbtouc.
69065         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69066         * lib/unistr.h: Update.
69067         * lib/striconveh.c: Update.
69068         * modules/striconveh: Update.
69069         * lib/linebreak.c: Update.
69070         * modules/linebreak: Update.
69071         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69072         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69073         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69074         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69075         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69076         * lib/unistr.h: Update.
69077         * lib/striconveh.c: Update.
69078         * modules/striconveh: Update.
69079         * lib/unistr/u8-to-u16.c: Update.
69080         * modules/unistr/u8-to-u16: Update.
69081         * lib/unistr/u8-to-u32.c: Update.
69082         * modules/unistr/u8-to-u32: Update.
69083
69084 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69085
69086         Sync from Libtool.
69087         * lib/argz.c: Do not include strings.h nor memory.h, include
69088         string.h unconditionally.  Patch by Simon Josefsson.
69089
69090 2007-01-27  Bruno Haible  <bruno@clisp.org>
69091
69092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69093         from gl_HEADER_STRING_H_BODY.
69094         (gl_HEADER_STRING_H_BODY): Require it.
69095         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69096         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69097         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69098         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69099         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69100         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69101         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69102         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69103         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69104         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69105         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69106         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69107         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69108         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69109         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69110
69111 2007-01-27  Bruno Haible  <bruno@clisp.org>
69112
69113         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69114         check_PROGRAMS into noinst_PROGRAMS.
69115         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69116         check_PROGRAMS in this case.
69117         (func_import): Set for_test to false.
69118         (func_create_testdir): Set for_test to true.
69119
69120 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69121             Bruno Haible  <bruno@clisp.org>
69122
69123         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69124         (Depends-on): Add string.
69125         (Includes): Use <string.h> instead of strcasestr.h.
69126         * modules/string (Makefile.am): Also substitute the value of
69127         REPLACE_STRCASESTR.
69128         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69129         assume strcasestr is declared in <string.h> not <strings.h>. Also
69130         set REPLACE_STRCASESTR.
69131         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69132         REPLACE_STRCASESTR.
69133         * lib/strcasestr.h: Remove file.
69134         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69135         * lib/string_.h (strcasestr): New declaration.
69136
69137 2007-01-27  Bruno Haible  <bruno@clisp.org>
69138
69139         * lib/string_.h: Use 'extern'.
69140
69141 2007-01-27  Jim Meyering  <jim@meyering.net>
69142
69143         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69144         of set-but-not-used local, "q".
69145
69146         * lib/mempcpy.c: Include <config.h> before <string.h>.
69147         This fixes a compilation error on HP-UX, due to the system's
69148         "restrict"-using mempcpy prototype.
69149
69150 2007-01-26  Bruno Haible  <bruno@clisp.org>
69151
69152         Small optimization.
69153         * lib/javacomp.c: Include c-strstr.h.
69154          (is_envjavac_gcj): Use c_strstr instead of strstr.
69155         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69156
69157 2007-01-26  Bruno Haible  <bruno@clisp.org>
69158
69159         * MODULES.html.sh (Unicode string functions): Add the new modules.
69160
69161         * modules/uniconv/u32-strconv-to-locale: New file.
69162         * lib/uniconv/u32-strconv-to-locale.c: New file.
69163
69164         * modules/uniconv/u16-strconv-to-locale: New file.
69165         * lib/uniconv/u16-strconv-to-locale.c: New file.
69166
69167         * modules/uniconv/u8-strconv-to-locale: New file.
69168         * lib/uniconv/u8-strconv-to-locale.c: New file.
69169
69170         * modules/uniconv/u32-strconv-from-locale: New file.
69171         * lib/uniconv/u32-strconv-from-locale.c: New file.
69172
69173         * modules/uniconv/u16-strconv-from-locale: New file.
69174         * lib/uniconv/u16-strconv-from-locale.c: New file.
69175
69176         * modules/uniconv/u8-strconv-from-locale: New file.
69177         * lib/uniconv/u8-strconv-from-locale.c: New file.
69178
69179         * modules/uniconv/u32-strconv-to-enc: New file.
69180         * lib/uniconv/u32-strconv-to-enc.c: New file.
69181         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69182         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69183
69184         * modules/uniconv/u16-strconv-to-enc: New file.
69185         * lib/uniconv/u16-strconv-to-enc.c: New file.
69186         * lib/uniconv/u-strconv-to-enc.h: New file.
69187         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69188         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69189
69190         * modules/uniconv/u8-strconv-to-enc: New file.
69191         * lib/uniconv/u8-strconv-to-enc.c: New file.
69192         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69193         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69194
69195         * modules/uniconv/u32-strconv-from-enc: New file.
69196         * lib/uniconv/u32-strconv-from-enc.c: New file.
69197         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69198         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69199
69200         * modules/uniconv/u16-strconv-from-enc: New file.
69201         * lib/uniconv/u16-strconv-from-enc.c: New file.
69202         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69203         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69204
69205         * modules/uniconv/u8-strconv-from-enc: New file.
69206         * lib/uniconv/u8-strconv-from-enc.c: New file.
69207         * lib/uniconv/u-strconv-from-enc.h: New file.
69208         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69209         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69210
69211         * modules/uniconv/u32-conv-from-enc: New file.
69212         * lib/uniconv/u32-conv-from-enc.c: New file.
69213         * modules/uniconv/u32-conv-from-enc-tests: New file.
69214         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69215
69216         * modules/uniconv/u16-conv-from-enc: New file.
69217         * lib/uniconv/u16-conv-from-enc.c: New file.
69218         * lib/uniconv/u-conv-from-enc.h: New file.
69219         * modules/uniconv/u16-conv-from-enc-tests: New file.
69220         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69221
69222         * modules/uniconv/u8-conv-from-enc: New file.
69223         * lib/uniconv/u8-conv-from-enc.c: New file.
69224         * modules/uniconv/u8-conv-from-enc-tests: New file.
69225         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69226
69227         * modules/uniconv/base: New file.
69228         * lib/uniconv.h: New file.
69229
69230 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69231
69232         * doc/gnulib-tool.texi (Initial import): Update to match current
69233         behavior with strdup module.
69234         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69235         * lib/memmem.h: Remove; all uses removed.  This is now done
69236         by <string.h>.
69237         * lib/mempcpy.h: Likewise.
69238         * lib/memrchr.h: Likewise.
69239         * lib/stpcpy.h: Likewise.
69240         * lib/stpncpy.h: Likewise.
69241         * lib/strcase.h: Likewise.
69242         * lib/strchrnul.h: Likewise.
69243         * lib/strdup.h: Likewise.
69244         * lib/strndup.h: Likewise.
69245         * lib/strnlen.h: Likewise.
69246         * lib/strpbrk.h: Likewise.
69247         * lib/strsep.h: Likewise.
69248         * lib/strstr.h: Likewise.
69249         * lib/strtok_r.h: Likewise.
69250         * lib/string_.h: New file.
69251         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69252         Rely on <string.h> instead.
69253         * lib/canon-host.c: Likewise.
69254         * lib/chdir-long.c: Likewise.
69255         * lib/concatpath.c: Likewise.
69256         * lib/exclude.c: Likewise.
69257         * lib/fchdir.c: Likewise.
69258         * lib/getaddrinfo.c: Likewise.
69259         * lib/getcwd.c: Likewise.
69260         * lib/getsubopt.c: Likewise.
69261         * lib/glob.c: Likewise.
69262         * lib/hard-locale.c: Likewise.
69263         * lib/iconvme.c: Likewise.
69264         * lib/javacomp.c: Likewise.
69265         * lib/mempcpy.c: Likewise.
69266         * lib/memrchr.c: Likewise.
69267         * lib/regex_internal.h: Likewise.
69268         * lib/stpncpy.c: Likewise.
69269         * lib/strcasecmp.c: Likewise.
69270         * lib/strchrnul.c: Likewise.
69271         * lib/strdup.c: Likewise.
69272         * lib/striconv.c: Likewise.
69273         * lib/striconveh.c: Likewise.
69274         * lib/striconveha.c: Likewise.
69275         * lib/strncasecmp.c: Likewise.
69276         * lib/strndup.c: Likewise.
69277         * lib/strnlen.c: Likewise.
69278         * lib/strsep.c: Likewise.
69279         * lib/strstr.c: Likewise.
69280         * lib/strtok_r.c: Likewise.
69281         * lib/userspec.c: Likewise.
69282         * lib/w32spawn.h: Likewise.
69283         * lib/xstrndup.c: Likewise.
69284         * lib/mountlist.c (strstr): Remove decl.
69285         * m4/string_h.m4: New file.
69286         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69287         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69288         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69289         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69290         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69291         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69292         Set REPLACE_STRCASECMP if necessary.
69293         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69294         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69295         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69296         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69297         HAVE_DECL_STRDUP if necessary.
69298         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69299         since gl_FUNC_STRNDUP does that now.
69300         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69301         Check for decl here...
69302         (gl_PREREQ_STRNLEN): ... not here.
69303         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69304         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69305         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69306         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69307         necessary.
69308         * modules/string: New file.
69309         * modules/memmem (Files): Remove special-purpose include file.
69310         (Depends-on): Add string.
69311         (Include): Include <string.h>, not the removed file.
69312         * modules/mempcpy: Likewise.
69313         * modules/memrchr: Likewise.
69314         * modules/stpcpy: Likewise.
69315         * modules/stpncpy: Likewise.
69316         * modules/strcase: Likewise.
69317         * modules/strchrnul: Likewise.
69318         * modules/strdup: Likewise.
69319         * modules/strndup: Likewise.
69320         * modules/strnlen: Likewise.
69321         * modules/strpbrk: Likewise.
69322         * modules/strsep: Likewise.
69323         * modules/strstr: Likewise.
69324         * modules/strtok_r: Likewise.
69325         * tests/test-dirname.c: Don't include "strdup.h", since
69326         <string.h> now suffices.
69327         * tests/test-memmem.c: Don't include "memmem.h", since
69328         <string.h> now suffices.
69329
69330 2007-01-25  Bruno Haible  <bruno@clisp.org>
69331
69332         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69333         *resultp is 0.
69334
69335         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69336         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69337         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69338         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69339
69340         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69341         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69342         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69343         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69344         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69345         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69346
69347 2007-01-24  Bruno Haible  <bruno@clisp.org>
69348
69349         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69350         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69351         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69352         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69353         gl_FUNC_FTS_CORE.
69354         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69355         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69356         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69357         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69358         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69359         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69360         gl_FUNC_FCHOWNAT.
69361         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69362         gl_FUNC_STRFTIME.
69363         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69364         Reported by Ralf Wildenhues.
69365
69366 2007-01-24  Bruno Haible  <bruno@clisp.org>
69367
69368         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69369         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69370         gl_GETADDRINFO.
69371         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69372         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69373         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69374
69375 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69376
69377         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69378         Don't use 'exit'; just return from 'main'.
69379         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69380
69381         * lib/fnmatch_.h: Readjust white space and comments to match
69382         glibc, to avoid spurious diffs.
69383
69384 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69385
69386         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69387         2004-12-01 change by Jakub Jelinek, since this code won't compile
69388         if !LIBC.  Problem reported by Bob Proulx.
69389
69390 2007-01-23  Bruno Haible  <bruno@clisp.org>
69391
69392         * lib/striconveh.c: Include c-strcaseeq.h.
69393         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69394         * modules/striconveh (Depends-on): Add c-strcaseeq.
69395
69396 2007-01-23  Bruno Haible  <bruno@clisp.org>
69397
69398         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69399
69400         * modules/c-strcaseeq: New file.
69401         * lib/c-strcaseeq.h: New file.
69402
69403         * modules/streq: New file.
69404         * lib/streq.h: New file.
69405
69406 2007-01-23  Bruno Haible  <bruno@clisp.org>
69407
69408         * modules/striconveha-tests: New file.
69409         * tests/test-striconveha.c: New file.
69410
69411         * lib/striconveha.h: Include <stdbool.h>.
69412         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69413         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69414         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69415         (mem_iconveha): New function.
69416         (str_iconveha_notranslit): Renamed from str_iconveha.
69417         (str_iconveha): New function.
69418         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69419         c-strcase.
69420
69421 2007-01-23  Bruno Haible  <bruno@clisp.org>
69422
69423         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69424         encodings without forgiving before trying any encoding with handler.
69425         (str_iconveha): Try all encodings without forgiving before trying any
69426         encoding with handler.
69427
69428 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69429
69430         Import the following changes from libc.
69431
69432         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69433
69434         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69435
69436         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69437
69438         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69439         normal_bracket label.
69440
69441         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69442
69443         [BZ #361]
69444         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69445         to normal_bracket after fetching the next character.
69446
69447 2007-01-22  Bruno Haible  <bruno@clisp.org>
69448
69449         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69450         argument.
69451         * lib/striconveh.c (iconv_carefully_1): New function.
69452         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69453         argument.
69454         (str_cd_iconveh): Update.
69455         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69456         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69457         * tests/test-striconveh.c (MAGIC): New macro.
69458         (new_offsets): New function.
69459         (main): Test call with and without offsets.
69460
69461 2007-01-22  Bruno Haible  <bruno@clisp.org>
69462
69463         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69464         * modules/sys_select (Makefile.am): Likewise.
69465         * modules/sys_socket (Makefile.am): Likewise.
69466         * modules/sys_time (Makefile.am): Likewise.
69467
69468 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         * modules/gettimeofday (License): Change from GPL to LGPL, since
69471         gettimeofday is a library function.
69472
69473 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69474
69475         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69476
69477 2007-01-21  Bruno Haible  <bruno@clisp.org>
69478
69479         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69480
69481 2007-01-21  Bruno Haible  <bruno@clisp.org>
69482
69483         * modules/striconveha: New file.
69484         * lib/striconveha.h: New file.
69485         * lib/striconveha.c: New file.
69486         * MODULES.html.sh (Internationalization functions): Add striconveha.
69487         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69488         string.
69489         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69490
69491 2007-01-21  Bruno Haible  <bruno@clisp.org>
69492
69493         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69494         * lib/striconveh.c (str_iconveh): Likewise.
69495
69496 2007-01-21  Bruno Haible  <bruno@clisp.org>
69497
69498         * lib/striconveh.h (mem_iconveh): New declaration.
69499         * lib/striconveh.c (mem_iconveh): New function.
69500         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69501
69502 2007-01-21  Bruno Haible  <bruno@clisp.org>
69503
69504         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69505
69506         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69507         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69508         original result buffer.
69509         (str_cd_iconveh): Update.
69510         * tests/test-striconveh.c (main): Update.
69511
69512         * lib/striconv.h (mem_cd_iconv): Change specification.
69513         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69514         result buffer.
69515         (str_cd_iconv): Update.
69516         * tests/test-striconv.c (main): Update.
69517
69518 2007-01-21  Bruno Haible  <bruno@clisp.org>
69519
69520         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69521
69522 2007-01-20  Jim Meyering  <jim@meyering.net>
69523
69524         * lib/userspec.c (parse_with_separator): If a user or group string
69525         starts with "+", skip the corresponding name-to-ID look-up, since
69526         such a look-up must fail: user and group names may not include "+".
69527
69528 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69529
69530         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69531         since we now assume the sys_time module.
69532         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69533         check for sys/time.h; no longer needed.
69534         * modules/poll (Depends-on): Depend on sys_time.
69535
69536 2007-01-18  Bruno Haible  <bruno@clisp.org>
69537
69538         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69539         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69540
69541         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69542         gettimeofday.
69543
69544         * tests/test-gettimeofday.c: Include <time.h>.
69545         (dummy): Remove variable.
69546
69547         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69548         gl_HEADER_SYS_TIME_H.
69549         (gl_HEADER_SYS_TIME_H): New macro.
69550
69551         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69552         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69553         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69554         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69555         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69556         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69557         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69558         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69559         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69560         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69561         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69562
69563         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69564         last change; it caused a compilation error when cross-compiling to
69565         Cygwin.
69566
69567 2007-01-18  Jim Meyering  <jim@meyering.net>
69568
69569         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69570         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69571         than the race-prone "test -d sys || mkdir sys".
69572         (configure.ac): Use AC_PROG_MKDIR_P.
69573         * modules/sys_select: Likewise.
69574         * modules/sys_socket: Likewise.
69575         * modules/sys_time: Likewise.
69576
69577 2007-01-18  Eric Blake  <ebb9@byu.net>
69578
69579         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69580         replace gettimeofday.
69581         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69582         name, to avoid infinite recursion.
69583
69584 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69585
69586         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69587         module sys_time.
69588         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69589         assume timespec.h defines struct timeval.
69590         * lib/settime.c: Likewise.
69591         * lib/utimens.c: Likewise.
69592         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69593         since we now assume the gettimeofday module.
69594         * lib/tempname.c (__gen_tempname): Likewise.
69595         * lib/gettimeofday.h: Remove.
69596         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69597         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69598         Include <time.h>, for 'time()'.
69599         (localtime_buffer_addr): Also use this workaround if
69600         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69601         to simplify the uses.  All uses changed.
69602         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69603         that #undef is inside {}, and 'const' follows type name consistently.
69604         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69605         (gettimeofday): Do not use the maximum possible value for
69606         tv->tv_usec, since that might break usages other than ls.c.
69607         Instead, we'll leave ls.c alone.  This undoes today's patch
69608         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69609         we've never observed the problem but might as well keep the
69610         canary.
69611         * lib/nanosleep.c: Include timespec.h first, for interface check.
69612         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69613         now assume the sys_time module.
69614         * lib/tempname.c: Likewise.
69615         * lib/timespec.h: Likewise.
69616         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69617         needed.
69618         * lib/strftime.c: Likewise.
69619         * lib/timespec.h: Likewise.
69620         * lib/posixtm.c: Include posixtm.h first, for interface check.
69621         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69622         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69623         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69624         * lib/sys_time_.h: New file.
69625         * lib/timespec.h (struct timespec): Use long int, not long.
69626         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69627         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69628         Remove obsolescent call to AC_HEADER_TIME.
69629         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69631         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69632         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69633         Likewise.
69634         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69635         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69636         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69637         into the sys_time module.  Check for gettimeofday just once.
69638         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69639         for gettimeofday signature to just check the signature.  Merely
69640         compile it, since linking doesn't test signature.  Improve test for
69641         whether gettimeofday.o is actually needed.
69642         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69643         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69644         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69645         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69646         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69647         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69648         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69649         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69650         than worrying about sys/time.h.
69651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69652         Don't bother worrying about TIME_WITH_SYS_TIME.
69653         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69654         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69655         * m4/sys_time_h.m4: New file.
69656         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69657         Don't include sys/time.h.  Return from main rather than exiting.
69658         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69659         all uses changed.
69660         * modules/gethrxtime (Depends-on): Add sys_time.
69661         * modules/gettime (Depends-on): Likewise.
69662         * modules/gettimeofday (Depends-on): Likewise.
69663         * modules/nanosleep (Depends-on): Likewise.
69664         * modules/settime (Depends-on): Likewise.
69665         * modules/tempname (Depends-on): Likewise.
69666         * modules/utimens (Depends-on): Likewise.
69667         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69668         (Include): Change back to <sys/time.h>.
69669         (Maintainer): Add self.
69670         * modules/sys_time: New file.
69671         * modules/tempname (Depends-on): Add gettimeofday.
69672         * tests/test-gettimeofday.c: Include <sys/time.h>
69673         rather than gettimeofday.h.
69674
69675 2007-01-17  Bruno Haible  <bruno@clisp.org>
69676
69677         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69678         the license default to GPL.
69679         (func_create_testdir): Don't complain if a module is LGPL and its
69680         tests module depends on GPLed modules.
69681
69682 2007-01-17  Bruno Haible  <bruno@clisp.org>
69683
69684         * lib/gettimeofday.c (gettimeofday): Add code for the case
69685         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69686         maximum possible value for tv->tv_usec, rather than the minimum one.
69687
69688 2005-10-08  Martin Lambers  <marlam@marlam.de>
69689 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69690 2007-01-16  Bruno Haible  <bruno@clisp.org>
69691
69692         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69693         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69694         gl_FUNC_GETTIMEOFDAY.
69695         (Include): Add gettimeofday.h.
69696         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69697         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69698         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69699         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69700         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69701         * lib/gettimeofday.h: New file.
69702         * lib/gettimeofday.c: Include <sys/timeb.h>.
69703         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69704         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69705         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69706         fall back on time().
69707
69708         * tests/test-gettimeofday.c: New file.
69709         * modules/gettimeofday-tests: New file.
69710
69711 2007-01-16  Eric Blake  <ebb9@byu.net>
69712
69713         * modules/fnmatch (Depends-on): Depend on wchar.
69714         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69715         * m4/fnmatch.m4: Likewise.
69716         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69717         * m4/mbchar.m4: Likewise.
69718         * modules/mbswidth (Depends-on): Depend on wchar.
69719         * lib/mbswidth.c: Assume <wchar.h>.
69720         * m4/mbswidth.m4: Likewise.
69721         * modules/quotearg (Depends-on): Depend on wchar.
69722         * lib/quotearg.c: Assume <wchar.h>.
69723         * m4/quotearg.m4: Likewise.
69724         * modules/regex (Depends-on): Depend on wchar.
69725         * lib/regex_internal.h: Assume <wchar.h>.
69726         * m4/regex.m4: Likewise.
69727         * modules/stdint (Depends-on): Depend on wchar.
69728         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69729         * m4/stdint.m4: Likewise.
69730         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69731         * modules/strftime (Depends-on): Depend on wchar.
69732         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69733         * modules/strtol (Depends-on): Depend on wchar.
69734         * lib/strtol.c: Assume <wchar.h>.
69735         * modules/wcwidth (Depends-on): Depend on wchar.
69736         * lib/wcwidth.h: Assume <wchar.h>.
69737         * m4/wcwidth.m4: Likewise.
69738
69739 2007-01-16  Bruno Haible  <bruno@clisp.org>
69740
69741         * modules/csharpexec-script: New, created from...
69742         * modules/csharpexec: ... this.
69743
69744 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69745
69746         * modules/javaexec-script: New, created from...
69747         * modules/javaexec: ... this.
69748
69749 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69750
69751         * modules/poll (Dependencies): Add sys_select.
69752
69753 2007-01-15  Jim Meyering  <jim@meyering.net>
69754
69755         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69756         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69757         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69758         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69759
69760 2007-01-15  Bruno Haible  <bruno@clisp.org>
69761
69762         * modules/striconveh: New file.
69763         * lib/striconveh.h: New file.
69764         * lib/striconveh.c: New file.
69765         * MODULES.html.sh (Internationalization functions): Add striconveh.
69766
69767         * modules/striconveh-tests: New file.
69768         * tests/test-striconveh.c: New file.
69769
69770 2007-01-15  Bruno Haible  <bruno@clisp.org>
69771
69772         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69773         not from GNU libiconv or GNU libc.
69774
69775 2007-01-15  Bruno Haible  <bruno@clisp.org>
69776
69777         * doc/gnulib-intro.texi (Copyright): Explain the different license
69778         terms for module descriptions, autoconf macros, tests, documentation.
69779
69780 2007-01-14  Bruno Haible  <bruno@clisp.org>
69781
69782         * modules/striconv-tests: New file.
69783         * tests/test-striconv.c: New file.
69784
69785 2007-01-14  Bruno Haible  <bruno@clisp.org>
69786
69787         * modules/iconv-tests: New file.
69788         * tests/test-iconv.c: New file.
69789
69790 2007-01-14  Bruno Haible  <bruno@clisp.org>
69791
69792         * gnulib-tool (func_get_license): For test modules, use the license of
69793         the main module.
69794
69795 2007-01-14  Bruno Haible  <bruno@clisp.org>
69796
69797         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69798         if iconv is found to exist.
69799
69800 2007-01-14  Bruno Haible  <bruno@clisp.org>
69801
69802         * modules/c-ctype-tests: New file.
69803         * tests/test-c-ctype.c: New file.
69804
69805 2007-01-14  Bruno Haible  <bruno@clisp.org>
69806
69807         * modules/binary-io-tests: New file.
69808         * tests/test-binary-io.sh: New file.
69809         * tests/test-binary-io.c: New file.
69810
69811 2007-01-14  Bruno Haible  <bruno@clisp.org>
69812
69813         * modules/array-oset-tests: New file.
69814         * tests/test-array_oset.c: New file.
69815
69816 2007-01-14  Bruno Haible  <bruno@clisp.org>
69817
69818         * modules/array-list-tests: New file.
69819         * tests/test-array_list.c: New file.
69820
69821 2007-01-14  Bruno Haible  <bruno@clisp.org>
69822
69823         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69824         and make.
69825         Reported by Simon Josefsson in
69826         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69827
69828 2007-01-14  Bruno Haible  <bruno@clisp.org>
69829
69830         * modules/allocsa-tests: New file.
69831         * tests/test-allocsa.c: New file.
69832
69833 2007-01-14  Bruno Haible  <bruno@clisp.org>
69834
69835         * modules/fchdir (Depends-on): Add absolute-header.
69836         * modules/unistd (Depends-on): Likewise.
69837
69838 2006-12-30  Bruno Haible  <bruno@clisp.org>
69839
69840         * modules/fchdir: New file.
69841         * modules/unistd (Files): Add lib/unistd_.h.
69842         (Makefile.am): Generate unistd.h from unistd_.h.
69843         * lib/fchdir.c: New file.
69844         * lib/dirent_.h: New file.
69845         * lib/unistd_.h: New file.
69846         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69847         * m4/fchdir.m4: New file.
69848         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69849         (gl_HEADER_UNISTD): Invoke it.
69850         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69851         function.
69852         * lib/backupfile.c (opendir, closedir): Undefine.
69853         * lib/chown.c (open, close): Undefine.
69854         * lib/clean-temp.c (open, close): Undefine.
69855         * lib/copy-file.c (open, close): Undefine.
69856         * lib/execute.c (open, close): Undefine.
69857         * lib/fsusage.c (open, close): Undefine.
69858         * lib/gc-gnulib.c (open, close): Undefine.
69859         * lib/getcwd.c (opendir, closedir): Undefine.
69860         * lib/glob.c (opendir, closedir): Undefine.
69861         * lib/javacomp.c (open, close): Undefine.
69862         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69863         * lib/openat-proc.c (open, close): Undefine.
69864         * lib/pagealign_alloc.c (open, close): Undefine.
69865         * lib/pipe.c (open, close): Undefine.
69866         * lib/progreloc.c (open, close): Undefine.
69867         * lib/savedir.c (opendir, closedir): Undefine.
69868         * lib/utime.c (open, close): Undefine.
69869         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69870
69871 2007-01-10  Bruno Haible  <bruno@clisp.org>
69872
69873         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69874
69875 2007-01-12  Eric Blake  <ebb9@byu.net>
69876
69877         Provide a robust <wchar.h>.  Further simplifications are now
69878         possible in other modules, but not included here.
69879         * modules/wchar: New module.
69880         * m4/wchar.m4: New file.
69881         * lib/wchar_.h: Likewise.
69882         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69883         of the new module.
69884         * MODULES.html.sh (Extended multibyte and wide character utilities):
69885         New section.
69886
69887 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69888
69889         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69890         to a reasonable default for memory allocation.
69891         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69892         file system that reports garbage st_size values for symlinks.
69893         Problem reported by Liyang Hu.
69894
69895 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69896
69897         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69898         Emacs .#* auto-save files).
69899
69900 2007-01-11  Bruno Haible  <bruno@clisp.org>
69901
69902         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69903         directory.
69904
69905 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69906
69907         Use @...@ consistently in lib/wctype_.h.
69908         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69909         on it being set to 1 or 0.
69910         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69911         go back to AC_SUBSTing it.
69912         * modules/wctype (Makefile.am): Undo previous change.
69913
69914 2007-01-10  Eric Blake  <ebb9@byu.net>
69915
69916         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69917         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69918         * modules/wctype (Makefile.am): Likewise.
69919         Reported by Chris McGuire.
69920
69921 2007-01-10  Jim Meyering  <jim@meyering.net>
69922
69923         fts.c: a small readability/maintainability improvement
69924         * lib/fts.c (fts_read): Make this code slightly more readable and
69925         maintainable by hoisting the "sp->fts_cur = p" assignments to
69926         immediately follow the statements that set P.  Derived from
69927         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
69928
69929 2007-01-10  Eric Blake  <ebb9@byu.net>
69930
69931         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
69932         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
69933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69934         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69935         Reported by Chris McGuire.
69936
69937 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69938
69939         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
69940         in sed script.
69941
69942 2007-01-09  Bruno Haible  <bruno@clisp.org>
69943
69944         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
69945         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
69946         variables.
69947         (func_module): Use them.
69948
69949 2007-01-09  Bruno Haible  <bruno@clisp.org>
69950
69951         * modules/unistr/base: New file.
69952         * lib/unistr.h: New file.
69953
69954         * modules/unistr/u8-to-u16: New file.
69955         * lib/unistr/u8-to-u16.c: New file.
69956
69957         * modules/unistr/u8-to-u32: New file.
69958         * lib/unistr/u8-to-u32.c: New file.
69959
69960         * modules/unistr/u16-to-u8: New file.
69961         * lib/unistr/u16-to-u8.c: New file.
69962
69963         * modules/unistr/u16-to-u32: New file.
69964         * lib/unistr/u16-to-u32.c: New file.
69965
69966         * modules/unistr/u32-to-u8: New file.
69967         * lib/unistr/u32-to-u8.c: New file.
69968
69969         * modules/unistr/u32-to-u16: New file.
69970         * lib/unistr/u32-to-u16.c: New file.
69971
69972         * modules/unistr/u8-check: New file.
69973         * modules/unistr/u16-check: New file.
69974         * modules/unistr/u32-check: New file.
69975         * lib/unistr/u8-check.c: New file.
69976         * lib/unistr/u16-check.c: New file.
69977         * lib/unistr/u32-check.c: New file.
69978
69979         * modules/unistr/u8-chr: New file.
69980         * modules/unistr/u16-chr: New file.
69981         * modules/unistr/u32-chr: New file.
69982         * lib/unistr/u8-chr.c: New file.
69983         * lib/unistr/u16-chr.c: New file.
69984         * lib/unistr/u32-chr.c: New file.
69985
69986         * modules/unistr/u8-cmp: New file.
69987         * modules/unistr/u16-cmp: New file.
69988         * modules/unistr/u32-cmp: New file.
69989         * lib/unistr/u8-cmp.c: New file.
69990         * lib/unistr/u16-cmp.c: New file.
69991         * lib/unistr/u32-cmp.c: New file.
69992
69993         * modules/unistr/u8-cpy: New file.
69994         * modules/unistr/u16-cpy: New file.
69995         * modules/unistr/u32-cpy: New file.
69996         * lib/unistr/u8-cpy.c: New file.
69997         * lib/unistr/u16-cpy.c: New file.
69998         * lib/unistr/u32-cpy.c: New file.
69999         * lib/unistr/u-cpy.h: New file.
70000
70001         * modules/unistr/u8-cpy-alloc: New file.
70002         * modules/unistr/u16-cpy-alloc: New file.
70003         * modules/unistr/u32-cpy-alloc: New file.
70004         * lib/unistr/u8-cpy-alloc.c: New file.
70005         * lib/unistr/u16-cpy-alloc.c: New file.
70006         * lib/unistr/u32-cpy-alloc.c: New file.
70007         * lib/unistr/u-cpy-alloc.h: New file.
70008
70009         * modules/unistr/u8-endswith: New file.
70010         * modules/unistr/u16-endswith: New file.
70011         * modules/unistr/u32-endswith: New file.
70012         * lib/unistr/u8-endswith.c: New file.
70013         * lib/unistr/u16-endswith.c: New file.
70014         * lib/unistr/u32-endswith.c: New file.
70015         * lib/unistr/u-endswith.h: New file.
70016
70017         * modules/unistr/u8-mblen: New file.
70018         * modules/unistr/u16-mblen: New file.
70019         * modules/unistr/u32-mblen: New file.
70020         * lib/unistr/u8-mblen.c: New file.
70021         * lib/unistr/u16-mblen.c: New file.
70022         * lib/unistr/u32-mblen.c: New file.
70023
70024         * modules/unistr/u8-mbtouc: New file.
70025         * modules/unistr/u16-mbtouc: New file.
70026         * modules/unistr/u32-mbtouc: New file.
70027         * lib/unistr/u8-mbtouc.c: New file.
70028         * lib/unistr/u16-mbtouc.c: New file.
70029         * lib/unistr/u32-mbtouc.c: New file.
70030
70031         * modules/unistr/u8-mbtouc-safe: New file.
70032         * modules/unistr/u16-mbtouc-safe: New file.
70033         * modules/unistr/u32-mbtouc-safe: New file.
70034         * lib/unistr/u8-mbtouc-safe.c: New file.
70035         * lib/unistr/u16-mbtouc-safe.c: New file.
70036         * lib/unistr/u32-mbtouc-safe.c: New file.
70037
70038         * modules/unistr/u8-move: New file.
70039         * modules/unistr/u16-move: New file.
70040         * modules/unistr/u32-move: New file.
70041         * lib/unistr/u8-move.c: New file.
70042         * lib/unistr/u16-move.c: New file.
70043         * lib/unistr/u32-move.c: New file.
70044         * lib/unistr/u-move.h: New file.
70045
70046         * modules/unistr/u8-next: New file.
70047         * modules/unistr/u16-next: New file.
70048         * modules/unistr/u32-next: New file.
70049         * lib/unistr/u8-next.c: New file.
70050         * lib/unistr/u16-next.c: New file.
70051         * lib/unistr/u32-next.c: New file.
70052
70053         * modules/unistr/u8-prev: New file.
70054         * modules/unistr/u16-prev: New file.
70055         * modules/unistr/u32-prev: New file.
70056         * lib/unistr/u8-prev.c: New file.
70057         * lib/unistr/u16-prev.c: New file.
70058         * lib/unistr/u32-prev.c: New file.
70059
70060         * modules/unistr/u8-set: New file.
70061         * modules/unistr/u16-set: New file.
70062         * modules/unistr/u32-set: New file.
70063         * lib/unistr/u8-set.c: New file.
70064         * lib/unistr/u16-set.c: New file.
70065         * lib/unistr/u32-set.c: New file.
70066         * lib/unistr/u-set.h: New file.
70067
70068         * modules/unistr/u8-startswith: New file.
70069         * modules/unistr/u16-startswith: New file.
70070         * modules/unistr/u32-startswith: New file.
70071         * lib/unistr/u8-startswith.c: New file.
70072         * lib/unistr/u16-startswith.c: New file.
70073         * lib/unistr/u32-startswith.c: New file.
70074         * lib/unistr/u-startswith.h: New file.
70075
70076         * modules/unistr/u8-stpcpy: New file.
70077         * modules/unistr/u16-stpcpy: New file.
70078         * modules/unistr/u32-stpcpy: New file.
70079         * lib/unistr/u8-stpcpy.c: New file.
70080         * lib/unistr/u16-stpcpy.c: New file.
70081         * lib/unistr/u32-stpcpy.c: New file.
70082         * lib/unistr/u-stpcpy.h: New file.
70083
70084         * modules/unistr/u8-stpncpy: New file.
70085         * modules/unistr/u16-stpncpy: New file.
70086         * modules/unistr/u32-stpncpy: New file.
70087         * lib/unistr/u8-stpncpy.c: New file.
70088         * lib/unistr/u16-stpncpy.c: New file.
70089         * lib/unistr/u32-stpncpy.c: New file.
70090         * lib/unistr/u-stpncpy.h: New file.
70091
70092         * modules/unistr/u8-strcat: New file.
70093         * modules/unistr/u16-strcat: New file.
70094         * modules/unistr/u32-strcat: New file.
70095         * lib/unistr/u8-strcat.c: New file.
70096         * lib/unistr/u16-strcat.c: New file.
70097         * lib/unistr/u32-strcat.c: New file.
70098         * lib/unistr/u-strcat.h: New file.
70099
70100         * modules/unistr/u8-strchr: New file.
70101         * modules/unistr/u16-strchr: New file.
70102         * modules/unistr/u32-strchr: New file.
70103         * lib/unistr/u8-strchr.c: New file.
70104         * lib/unistr/u16-strchr.c: New file.
70105         * lib/unistr/u32-strchr.c: New file.
70106
70107         * modules/unistr/u8-strcmp: New file.
70108         * modules/unistr/u16-strcmp: New file.
70109         * modules/unistr/u32-strcmp: New file.
70110         * lib/unistr/u8-strcmp.c: New file.
70111         * lib/unistr/u16-strcmp.c: New file.
70112         * lib/unistr/u32-strcmp.c: New file.
70113
70114         * modules/unistr/u8-strcpy: New file.
70115         * modules/unistr/u16-strcpy: New file.
70116         * modules/unistr/u32-strcpy: New file.
70117         * lib/unistr/u8-strcpy.c: New file.
70118         * lib/unistr/u16-strcpy.c: New file.
70119         * lib/unistr/u32-strcpy.c: New file.
70120         * lib/unistr/u-strcpy.h: New file.
70121
70122         * modules/unistr/u8-strcspn: New file.
70123         * modules/unistr/u16-strcspn: New file.
70124         * modules/unistr/u32-strcspn: New file.
70125         * lib/unistr/u8-strcspn.c: New file.
70126         * lib/unistr/u16-strcspn.c: New file.
70127         * lib/unistr/u32-strcspn.c: New file.
70128         * lib/unistr/u-strcspn.h: New file.
70129
70130         * modules/unistr/u8-strdup: New file.
70131         * modules/unistr/u16-strdup: New file.
70132         * modules/unistr/u32-strdup: New file.
70133         * lib/unistr/u8-strdup.c: New file.
70134         * lib/unistr/u16-strdup.c: New file.
70135         * lib/unistr/u32-strdup.c: New file.
70136         * lib/unistr/u-strdup.h: New file.
70137
70138         * modules/unistr/u8-strlen: New file.
70139         * modules/unistr/u16-strlen: New file.
70140         * modules/unistr/u32-strlen: New file.
70141         * lib/unistr/u8-strlen.c: New file.
70142         * lib/unistr/u16-strlen.c: New file.
70143         * lib/unistr/u32-strlen.c: New file.
70144         * lib/unistr/u-strlen.h: New file.
70145
70146         * modules/unistr/u8-strmblen: New file.
70147         * modules/unistr/u16-strmblen: New file.
70148         * modules/unistr/u32-strmblen: New file.
70149         * lib/unistr/u8-strmblen.c: New file.
70150         * lib/unistr/u16-strmblen.c: New file.
70151         * lib/unistr/u32-strmblen.c: New file.
70152
70153         * modules/unistr/u8-strmbtouc: New file.
70154         * modules/unistr/u16-strmbtouc: New file.
70155         * modules/unistr/u32-strmbtouc: New file.
70156         * lib/unistr/u8-strmbtouc.c: New file.
70157         * lib/unistr/u16-strmbtouc.c: New file.
70158         * lib/unistr/u32-strmbtouc.c: New file.
70159
70160         * modules/unistr/u8-strncat: New file.
70161         * modules/unistr/u16-strncat: New file.
70162         * modules/unistr/u32-strncat: New file.
70163         * lib/unistr/u8-strncat.c: New file.
70164         * lib/unistr/u16-strncat.c: New file.
70165         * lib/unistr/u32-strncat.c: New file.
70166         * lib/unistr/u-strncat.h: New file.
70167
70168         * modules/unistr/u8-strncmp: New file.
70169         * modules/unistr/u16-strncmp: New file.
70170         * modules/unistr/u32-strncmp: New file.
70171         * lib/unistr/u8-strncmp.c: New file.
70172         * lib/unistr/u16-strncmp.c: New file.
70173         * lib/unistr/u32-strncmp.c: New file.
70174
70175         * modules/unistr/u8-strncpy: New file.
70176         * modules/unistr/u16-strncpy: New file.
70177         * modules/unistr/u32-strncpy: New file.
70178         * lib/unistr/u8-strncpy.c: New file.
70179         * lib/unistr/u16-strncpy.c: New file.
70180         * lib/unistr/u32-strncpy.c: New file.
70181         * lib/unistr/u-strncpy.h: New file.
70182
70183         * modules/unistr/u8-strnlen: New file.
70184         * modules/unistr/u16-strnlen: New file.
70185         * modules/unistr/u32-strnlen: New file.
70186         * lib/unistr/u8-strnlen.c: New file.
70187         * lib/unistr/u16-strnlen.c: New file.
70188         * lib/unistr/u32-strnlen.c: New file.
70189         * lib/unistr/u-strnlen.h: New file.
70190
70191         * modules/unistr/u8-strpbrk: New file.
70192         * modules/unistr/u16-strpbrk: New file.
70193         * modules/unistr/u32-strpbrk: New file.
70194         * lib/unistr/u8-strpbrk.c: New file.
70195         * lib/unistr/u16-strpbrk.c: New file.
70196         * lib/unistr/u32-strpbrk.c: New file.
70197         * lib/unistr/u-strpbrk.h: New file.
70198
70199         * modules/unistr/u8-strrchr: New file.
70200         * modules/unistr/u16-strrchr: New file.
70201         * modules/unistr/u32-strrchr: New file.
70202         * lib/unistr/u8-strrchr.c: New file.
70203         * lib/unistr/u16-strrchr.c: New file.
70204         * lib/unistr/u32-strrchr.c: New file.
70205
70206         * modules/unistr/u8-strspn: New file.
70207         * modules/unistr/u16-strspn: New file.
70208         * modules/unistr/u32-strspn: New file.
70209         * lib/unistr/u8-strspn.c: New file.
70210         * lib/unistr/u16-strspn.c: New file.
70211         * lib/unistr/u32-strspn.c: New file.
70212         * lib/unistr/u-strspn.h: New file.
70213
70214         * modules/unistr/u8-strstr: New file.
70215         * modules/unistr/u16-strstr: New file.
70216         * modules/unistr/u32-strstr: New file.
70217         * lib/unistr/u8-strstr.c: New file.
70218         * lib/unistr/u16-strstr.c: New file.
70219         * lib/unistr/u32-strstr.c: New file.
70220         * lib/unistr/u-strstr.h: New file.
70221
70222         * modules/unistr/u8-strtok: New file.
70223         * modules/unistr/u16-strtok: New file.
70224         * modules/unistr/u32-strtok: New file.
70225         * lib/unistr/u8-strtok.c: New file.
70226         * lib/unistr/u16-strtok.c: New file.
70227         * lib/unistr/u32-strtok.c: New file.
70228         * lib/unistr/u-strtok.h: New file.
70229
70230         * modules/unistr/u8-uctomb: New file.
70231         * modules/unistr/u16-uctomb: New file.
70232         * modules/unistr/u32-uctomb: New file.
70233         * lib/unistr/u8-uctomb.c: New file.
70234         * lib/unistr/u16-uctomb.c: New file.
70235         * lib/unistr/u32-uctomb.c: New file.
70236
70237         * MODULES.html.sh (Unicode string functions): Add the new modules.
70238
70239 2007-01-08  Bruno Haible  <bruno@clisp.org>
70240
70241         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70242         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70243         subdirectories.
70244
70245 2007-01-08  Karl Berry  <karl@gnu.org>
70246
70247         * doc/error.texi: mention that main() fns must set program_name
70248         when progname is used.
70249
70250 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70251
70252         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70253         WCTYPE_H is empty, for the benefit of builds from non-distclean
70254         directories.  Problem reported by Eric Blake in
70255         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70256
70257 2007-01-08  Bruno Haible  <bruno@clisp.org>
70258
70259         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70260         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70261         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70262         PROVIDE_CANONICALIZE_FILENAME_MODE.
70263         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70264
70265 2007-01-08  Bruno Haible  <bruno@clisp.org>
70266
70267         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70268         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70269         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70270         * lib/fts.c: Likewise.
70271         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70272
70273 2006-12-25  Bruno Haible  <bruno@clisp.org>
70274
70275         * modules/utf8-ucs4-safe: New file.
70276         * lib/utf8-ucs4-safe.h: New file.
70277         * lib/unistr/utf8-ucs4-safe.c: New file.
70278
70279         * modules/utf16-ucs4-safe: New file.
70280         * lib/utf16-ucs4-safe.h: New file.
70281         * lib/unistr/utf16-ucs4-safe.c: New file.
70282
70283         * MODULES.html.sh (Unicode string functions): Add the new modules.
70284
70285 2007-01-08  Bruno Haible  <bruno@clisp.org>
70286
70287         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70288         (Depends-on): Add unitypes.
70289         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70290         (u8_mbtouc_aux): Move out to separate file.
70291         (u8_mbtouc): Use ucs4_t, uint8_t types.
70292         * lib/unistr/utf8-ucs4.c: New file.
70293
70294         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70295         (Depends-on): Add unitypes.
70296         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70297         (u16_mbtouc_aux): Move out to separate file.
70298         (u16_mbtouc): Use ucs4_t, uint16_t types.
70299         * lib/unistr/utf16-ucs4.c: New file.
70300
70301         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70302         (Depends-on): Add unitypes.
70303         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70304         (u8_uctomb_aux): Move out to separate file.
70305         (u8_uctomb): Use ucs4_t, uint8_t types.
70306         * lib/unistr/ucs4-utf8.c: New file.
70307
70308         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70309         (Depends-on): Add unitypes.
70310         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70311         (u16_uctomb_aux): Move out to separate file.
70312         (u16_uctomb): Use ucs4_t, uint16_t types.
70313         * lib/unistr/ucs4-utf16.c: New file.
70314
70315 2006-12-25  Bruno Haible  <bruno@clisp.org>
70316
70317         * modules/unitypes: New file.
70318         * lib/unitypes.h: New file.
70319         * MODULES.html.sh (func_all_modules): New section "Unicode string
70320         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70321         this section. Add unitypes.
70322
70323 2007-01-08  Bruno Haible  <bruno@clisp.org>
70324
70325         Avoid variable names that conflict with those from libtool.
70326         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70327         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70328         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70329         library_names_spec to acl_library_names_spec, hardcode_* to
70330         acl_hardcode_*.
70331         Reported by Ralf Wildenhues.
70332
70333 2007-01-08  Bruno Haible  <bruno@clisp.org>
70334
70335         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70336         definition.
70337         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70338         definition.
70339         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70340         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70341         definition.
70342         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70343         definition.
70344         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70345         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70346         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70347         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70348         definition.
70349         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70350         definition.
70351         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70352         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70353         GC_USE_<algorithm>.
70354         * lib/gc-libgcrypt.c: Likewise.
70355         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70356         * modules/gc-arctwo (configure.ac): Likewise.
70357         * modules/gc-des (configure.ac): Likewise.
70358         * modules/gc-hmac-md5 (configure.ac): Likewise.
70359         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70360         * modules/gc-md2 (configure.ac): Likewise.
70361         * modules/gc-md4 (configure.ac): Likewise.
70362         * modules/gc-md5 (configure.ac): Likewise.
70363         * modules/gc-random (configure.ac): Likewise.
70364         * modules/gc-rijndael (configure.ac): Likewise.
70365         * modules/gc-sha1 (configure.ac): Likewise.
70366
70367 2007-01-08  Bruno Haible  <bruno@clisp.org>
70368
70369         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70370         macro definition.
70371         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70372         definition.
70373         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70374         definition.
70375         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70376         * modules/fcntl-safer (configure.ac): Likewise.
70377         * modules/fopen-safer (configure.ac): Likewise.
70378         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70379         GNULIB_FWRITEERROR macro definition.
70380
70381 2007-01-08  Bruno Haible  <bruno@clisp.org>
70382
70383         * m4/gnulib-common.m4: New file.
70384         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70385         (func_get_filelist): Add m4/gnulib-common.m4.
70386
70387 2007-01-08  Bruno Haible  <bruno@clisp.org>
70388
70389         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70390         command.
70391
70392 2007-01-08  Jim Meyering  <jim@meyering.net>
70393
70394         Use a more robust test for a "can't happen" condition.
70395         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70396         narrowed the st_size value.  Presuming the "can't happen" condition
70397         is true, that narrowing could conceivably convert an invalid st_size
70398         value into a valid one.  Instead, use a change based on Matthew
70399         Woehlke's original patch.
70400
70401         Slight readability improvement: use an assert-like macro
70402         in place of literal "abort ()" uses.
70403         * lib/fts.c (fts_assert): Define.
70404         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70405         Use this macro instead of a bare 'abort'.
70406
70407 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70408
70409         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70410         simply work around them.
70411         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70412         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70413         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70414         declaring.
70415         Don't bother to define as macros, since the standard doesn't require it.
70416         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70417         longer worry about IRIX 5.3.
70418         (HAVE_WCTYPE_CTMP_BUG): Remove.
70419
70420 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70421
70422         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70423         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70424         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70425         Problems reported by Georg Schwarz for IRIX 5.3.
70426
70427         * gnulib-tool (autoconf_minversion): Take the maximum version number
70428         found, not the minimum.  Problem reported by James Youngman.
70429
70430 2007-01-03  Karl Berry  <karl@gnu.org>
70431
70432         * doc/error.texi: new file, explaining interaction with progname.
70433         * doc/gnulib.texi: include it.  Update copyright.
70434
70435 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70436
70437         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70438         AC_CANONICAL_HOST, to improve autobuild outputs.
70439
70440 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70441             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70442
70443         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70444         sockets, server sockets, and other file descriptors.  Count errors
70445         to compute the return value.  Reorder the code a bit to be easier
70446         to follow.  Don't set event bits that were not requested (except
70447         POLLERR and POLLHUP).
70448
70449 2007-01-01  Bruno Haible  <bruno@clisp.org>
70450
70451         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70452
70453 2007-01-03  Jim Meyering  <jim@meyering.net>
70454
70455         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70456
70457 2007-01-02  Bruno Haible  <bruno@clisp.org>
70458
70459         * modules/settime (Include): Require timespec.h.
70460         * modules/nanosleep (Include): Likewise.
70461
70462 2007-01-01  Bruno Haible  <bruno@clisp.org>
70463
70464         * gnulib-tool (func_emit_copyright_notice): Bump year.
70465         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70466
70467 2007-01-01  Bruno Haible  <bruno@clisp.org>
70468
70469         Improve support for OpenBSD.
70470         * build-aux/config.rpath (libname_spec): Export.
70471         (library_names_spec): New variable. Export.
70472         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70473         library_names_spec from the config.rpath output. Locate shared library
70474         through the name pattern in library_names_spec.
70475
70476 2007-01-01  Eric Blake  <ebb9@byu.net>
70477
70478         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70479
70480 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70481
70482         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70483         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70484         assume the C locale, and avoid an "eval" that could cause trouble.
70485         Problem with SORT reported by Bob Proulx.
70486
70487         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70488         Define.  Trivial patch from Henning Nielsen Lund, originally
70489         sent to bug-grep@gnu.org today.
70490
70491 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70492
70493         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70494         struct stat.  Problem reported by Henning Nielsen Lund.
70495         * lib/acl.c: Include acl.h first, to check interface.  Don't
70496         bother to include sys/types.h and sys/stat.h again.
70497
70498 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70499
70500         Import the following change from libc; problem reported by
70501         Sven Verdoolaege.
70502
70503         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70504
70505         [BZ #1373]
70506         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70507
70508 2006-12-28  Jim Meyering  <jim@meyering.net>
70509
70510         * build-aux/announce-gen: Do not assume that the package
70511         builds any of tar.gz, tar.bz2, and .xdelta files.
70512         Suggestion from Simon Josefsson.
70513
70514 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70515
70516         * modules/announce-gen: New file.
70517
70518 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70519
70520         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70521         handles its gotchas now.
70522         * lib/mbswidth.c: Likewise.
70523         * lib/wcwidth.h: Likewise.
70524         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70525         and iswcntrl; the wctype module does this stuff now.
70526         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70527         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70528         * modules/mbchar (Depends-on): Add wctype.
70529         * modules/mbswidth (Depends-on): Likewise.
70530         * modules/wcwidth (Depends-on): Likewise.
70531
70532 2006-12-27  Eric Blake  <ebb9@byu.net>
70533
70534         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70535         module uses more than what <wctype.h> is required to provide.
70536
70537 2006-12-26  Eric Blake  <ebb9@byu.net>
70538
70539         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70540
70541 2006-12-26  Eric Blake  <ebb9@byu.net>
70542
70543         * modules/absolute-header: New module.
70544         * modules/fcntl (Depends-on): Depend on it.
70545         * modules/inttypes (Depends-on): Likewise.
70546         * modules/stdint (Depends-on): Likewise.
70547         * modules/sys_stat (Depends-on): Likewise.
70548         * modules/wctype (Depends-on): Likewise.
70549         * MODULES.html.sh (Support for building libraries and
70550         executables): Document it.
70551
70552 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70553
70554         * gnulib-tool (SED): Remove, undoing previous change.
70555         The problem was that it broke coreutils on Solaris, because
70556         "sed --posix" leaked into a makefile.
70557         (sed): New alias, if 'alias' and GNU sed.
70558
70559 2006-12-24  Jim Meyering  <jim@meyering.net>
70560
70561         Work around an fchownat bug in glibc-2.4:
70562         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70563         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70564         in spite of the -P option.
70565         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70566         New macros.
70567         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70568         * modules/openat (Files): Add lib/fchownat.c.
70569         * lib/openat.c (fchownat): Don't define here.  Move to...
70570         * lib/fchownat.c: ...this new file.
70571
70572 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70573
70574         Fix bug reported by Bruno Haible in
70575         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70576         where quotearg.c didn't compile on Mac OS X 10.2 because it
70577         lacks <wchar.h> and wint_t.
70578         * lib/wctype_.h (__wctype_wint_t): New type.
70579         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70580         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70581         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70582         Arg is now of type __wctype_wint_t, not wint_t.
70583         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70584         substitute HAVE_WINT_T.
70585         * modules/wctype (Files): Add m4/wint_t.m4.
70586         (wctype.h): Substitute HAVE_WINT_T.
70587
70588 2006-12-23  Bruno Haible  <bruno@clisp.org>
70589
70590         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70591
70592 2006-12-23  Bruno Haible  <bruno@clisp.org>
70593
70594         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70595         S_ISLNK.
70596         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70597         mingw.
70598
70599 2006-12-22  Bruno Haible  <bruno@clisp.org>
70600
70601         * lib/copy-file.c: Include acl.h.
70602         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70603         Close the file descriptors only after being done with copy_acl.
70604         * modules/copy-file (Depends-on): Add acl.
70605
70606 2006-12-22  Bruno Haible  <bruno@clisp.org>
70607
70608         * gnulib-tool (SED): New variable.
70609         Use $SED instead of sed everywhere.
70610
70611 2006-12-22  Bruno Haible  <bruno@clisp.org>
70612
70613         * modules/no-c++: New file.
70614         * m4/no-c++.m4: New file.
70615         * MODULES.html.sh (Support for building libraries and executables):
70616         Add no-c++.
70617
70618 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70619
70620         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70621         Include <limits.h>, and use its INT_MAX to rewrite the
70622         j loop so that it does not overflow 'int'.  Problem reported by
70623         Ralf Wildenhues in
70624         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70625         Play it safe by shifting left by 1 rather than multiplying by 2,
70626         as GCC is less likely to optimize this away when the value
70627         is signed (when it assumes overflow leads to undefined behavior).
70628         Also, don't assume time_t uses two's complement.
70629
70630 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70631
70632         * MODULES.html.sh: New module wctype.
70633         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70634         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70635         <wctype.h>, since the new wctype module should fix this.
70636         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70637         the wctype module should arrange for it.
70638         * lib/regex_internal.h: Likewise.
70639         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70640         since the wctype module should handle this now.
70641         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70642         * modules/fnmatch (Depends-on): Add wctype.
70643         * modules/quotearg (Depends-on): Likewise.
70644         * modules/regex (Depends-on): Likewise.
70645
70646 2006-12-19  Bruno Haible  <bruno@clisp.org>
70647
70648         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70649         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70650
70651 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70652
70653         * modules/savewd (Depends-on): Fix dependency on fcntl.
70654
70655 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70656
70657         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70658         conforms to C99, rather than relying on the user's environment
70659         setting of STDINT_H.
70660
70661 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70662         and Eric Blake  <ebb9@byu.net>
70663
70664         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70665         This is more consistent with the other defines here.
70666         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70667         Port to z/OS.  Problem reported by Paul Gilmartin.
70668         Change local vars to use gl_ prefix rather than ac_.
70669         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70670         with other defines.
70671         * modules/double-slash-root: New module.
70672         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70673         (Depends-on): Add double-slash-root.
70674         * MODULES.html.sh (File system functions): Mention new module.
70675
70676 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70677
70678         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70679         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70680         This is for the benefit of gzip, which doesn't do i18n.
70681
70682 2006-12-12  Jim Meyering  <jim@meyering.net>
70683
70684         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70685         Reported by Andreas Schwab <schwab@suse.de>.
70686
70687 2006-12-12  Bruno Haible  <bruno@clisp.org>
70688
70689         Merge these changes.
70690         2006-09-05  Bruno Haible  <bruno@clisp.org>
70691         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70692         iconv_alloc succeeded.
70693         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70694         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70695         test for " && dest " at the end - dest is always != NULL there. Call
70696         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70697         with 2xNULL arguments, also to flush the state storage. Handle the
70698         IRIX iconv behaviour. Realloc the final result, to throw away unused
70699         memory.
70700
70701 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70702
70703         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70704         and fchmodat unconditionally, since glibc 2.4 has them.
70705         Problem reported by Arkadiusz Miskiewicz.
70706
70707 2006-12-10  Bruno Haible  <bruno@clisp.org>
70708
70709         * gnulib-tool (func_import): Show the include files only for those
70710         modules that are copied and specified.
70711         Reported by Karl Berry.
70712
70713 2006-12-08  Jim Meyering  <jim@meyering.net>
70714
70715         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70716         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70717
70718         * build-aux/announce-gen: Add two new options, both optional:
70719         --bootstrap-tools=TOOL_LIST
70720               a comma-separated list of tools, e.g.,
70721               autoconf,automake,bison,gnulib
70722         --gnulib-snapshot-date=DATE
70723               if gnulib is in the bootstrap tool list,
70724               then report this as the snapshot date.
70725               If not specified, use the current date/time.
70726               If you specify a date here, be sure it's UTC.
70727
70728 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70729
70730         * tests/test-argp-2.sh: Fix test to match actual output.
70731         (func_compare): Fix sed script to be portable.
70732
70733 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70734
70735         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70736         workaround for this case.  It is not autoconfigured now; offhand
70737         it's hard to see how to autoconfigure it.
70738
70739 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70740
70741         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70742         a directory that is about to be chowned.  Such a directory's
70743         initial file permissions should permit the owner only and this
70744         should not be changed until after the chown, since the group and
70745         other bits would be incorrect if they granted permission before
70746         the chown.
70747
70748         Fix porting problem for iswctype reported by Georg Schwarz in:
70749         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70750         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70751         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70752         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70753         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70754
70755 2006-12-03  Jim Meyering  <jim@meyering.net>
70756
70757         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70758         p->fts_statp may not yet be defined.
70759         (fts_read): Instead, set it in the caller, once p->fts_statp is
70760         sure to be defined, and corresponds to a top-level directory.
70761         This bug made du -x fail.  Here's the coreutils test case:
70762         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70763         Reported by Mike Frysinger.
70764
70765 2006-12-01  Jim Meyering  <jim@meyering.net>
70766
70767         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70768         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70769         Reported by Simon Josefsson.
70770
70771 2006-11-30  Jim Meyering  <jim@meyering.net>
70772
70773         * m4/warning.m4: Use the all-permissive copyright notice
70774         recommended by RMS (rather than LGPL).
70775         * m4/vararrays.m4: Likewise.
70776         * m4/flexmember.m4: Likewise.
70777
70778 2006-11-29  Bruno Haible  <bruno@clisp.org>
70779
70780         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70781         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70782         using +=.
70783         Reported by Simon Josefsson <simon@josefsson.org>.
70784
70785 2006-11-28  James Youngman <jay@gnu.org>
70786
70787         * README: Advise users that they might find the bug-gnulib@gnu.org
70788         and autotools-announce@gnu.org mailing lists useful.
70789
70790 2006-11-28  Bruno Haible  <bruno@clisp.org>
70791
70792         * m4/ptrdiff_max.m4: Remove file.
70793
70794 2006-11-21  Bruno Haible  <bruno@clisp.org>
70795
70796         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70797         _AC_COMPUTE_INT.
70798         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70799         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70800         _AC_COMPUTE_INT.
70801         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70802         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70803         _AC_COMPUTE_INT.
70804         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70805
70806 2006-11-28  Jim Meyering  <jim@meyering.net>
70807
70808         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70809         warning from "gcc -Wshadow" about shadowing the builtin.
70810
70811 2006-11-27  Bruno Haible  <bruno@clisp.org>
70812
70813         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70814         _AC_COMPUTE_INT.
70815         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70816
70817 2006-11-27  Bruno Haible  <bruno@clisp.org>
70818             Paul Eggert  <eggert@cs.ucla.edu>
70819
70820         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70821
70822 2006-11-26  Bruno Haible  <bruno@clisp.org>
70823
70824         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70825         noinst_LTLIBRARIES.
70826
70827 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70828             Bruno Haible  <bruno@clisp.org>
70829
70830         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70831         if compiling with "gcc -ansi".
70832
70833 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70834
70835         Fix some incompatibilities with gcc -ansi -pedantic.
70836         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70837         if compiling pedantically with GCC, unless it's C99 or later.
70838         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70839         it mishandles gcc -ansi -pedantic as well.
70840         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70841         if gcc -pedantic.
70842         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70843         initializers for struct if -pedantic, unless it's C99 or later.
70844
70845 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70846
70847         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70848         Don't close an fd more than once. Identical atimes indicate
70849         success, not failure.
70850
70851 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70852
70853         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70854
70855 2006-11-23  Jim Meyering  <jim@meyering.net>
70856
70857         * build-aux/announce-gen: New file.  From coreutils.
70858
70859 2006-11-22  Jim Meyering  <jim@meyering.net>
70860
70861         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70862         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70863         (fts_read): Use a temporary to narrow the overused st_size member
70864         before using it in a switch statement.  Reported by Matthew Woehlke.
70865
70866         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70867         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70868
70869 2006-11-20  Bruno Haible  <bruno@clisp.org>
70870
70871         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70872         changequote instead of pairs of brackets.
70873         Reported by Andreas Schwab <schwab@suse.de>.
70874
70875 2006-11-21  Jim Meyering  <jim@meyering.net>
70876
70877         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70878         so as to remain compatible with older compilers.
70879         Patch from Michael Deutschmann.
70880
70881 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70882
70883         * MODULES.html.sh (File system functions): Add openat.
70884
70885         * lib/openat.h (rpl_fstatat): New macro, if
70886         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70887         (fstatat): Define to rpl_fstatat under the same conditions,
70888         unless COMPILING_FSTATAT.
70889         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70890         seems to have the bug.
70891         * lib/fstatat.c: New file.
70892         * modules/openat (Files): Add it.
70893
70894 2006-11-20  Bruno Haible  <bruno@clisp.org>
70895
70896         * Makefile: New file.
70897
70898 2006-11-20  Jim Meyering  <jim@meyering.net>
70899
70900         The beginnings of syntax-related checks for gnulib.
70901         * lib/Makefile: New file.
70902         * lib/t-idcache: New script.  Ensure that the two halves of
70903         idcache.c stay in sync.
70904
70905         * lib/idcache.c: Adjust comments in user- and group- portions to
70906         be more accurate, and to be consistent with one another.
70907
70908 2006-11-20  Jim Meyering  <jim@meyering.net>
70909
70910         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70911         continue using the flexible array member (thus, this module performs
70912         half as many malloc calls), with the addition that...
70913         (getgroup, getuser): Consistently record a non-match via an empty
70914         "name" string, and map an empty string match to a NULL return value.
70915         * modules/idcache (Depends-on): Re-add flexmember.
70916
70917         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70918         (getuidbyname, getgroup, getgidbyname): Likewise.
70919
70920         Use cleaner syntax: NULL rather than 0.
70921         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70922
70923 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70924
70925         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70926         It mishandled the case where the group was missing.
70927         Problem reported by Greg Schafer.
70928         * modules/idcache: Likewise.
70929
70930 2006-11-18  Jim Meyering  <jim@meyering.net>
70931
70932         * check-module (%exempt_header): Add exception for some
70933         conditionally-included headers.
70934
70935         * modules/i-ring (Depends-on): Add verify.
70936         (License): Change to LGPL.
70937
70938 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
70941         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
70942         and inttostr.h.  Use snprintf rather than uinttostr, so that
70943         LGPLed code doesn't depend on GPLed.
70944
70945 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70946
70947         * modules/inline (License): Change from GPL to LGPL.
70948
70949 2006-11-17  Jim Meyering  <jim@meyering.net>
70950
70951         * modules/d-type (License): Switch to LGPL.
70952
70953 2006-11-15  Bruno Haible  <bruno@clisp.org>
70954
70955         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
70956
70957 2006-11-15  Eric Blake  <ebb9@byu.net>
70958
70959         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
70960         the module dependency.
70961
70962 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70963             Bruno Haible  <bruno@clisp.org>
70964
70965         * gnulib-tool (func_create_testdir): Add license consistency check.
70966
70967 2006-11-15  Eric Blake  <ebb9@byu.net>
70968
70969         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
70970         random "(cached)" in configure output.
70971
70972 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70973
70974         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
70975         test for conforming inttypes.h is both announced and cached.
70976
70977         * MODULES.html.sh (seen_modules, seen_files): New variables.
70978         (func_module): Rewrite to use a few less gnulib-tool and sed
70979         invocations.  Avoid a couple of quadratic algorithms for ...
70980         (missed_modules, missed_files): ... these, with ...
70981         (func_append, func_tmpdir): ... these new functions, from
70982         gnulib-tool.  Analogously, install traps for cleanup.
70983
70984         * tests/test-gc.c (main): Remove unused variables.
70985         * tests/test-read-file.c: Include stdlib.h, for 'free'.
70986
70987 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
70988
70989         * modules/inttostr (License): Change to LGPL.
70990
70991 2006-11-14  Eric Blake  <ebb9@byu.net>
70992
70993         * modules/tempname (License): Change to LGPL.
70994
70995 2006-11-14  Eric Blake  <ebb9@byu.net>
70996
70997         * doc/functions.texi (Function Portability): *printf functions on
70998         Cygwin now understand all POSIX size specifiers.
70999
71000 2006-11-14  Bruno Haible  <bruno@clisp.org>
71001
71002         * modules/c-ctype (License): Change to LGPL.
71003
71004 2006-11-12  Bruno Haible  <bruno@clisp.org>
71005
71006         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71007         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71008         for GNOME libraries, for which the include files are installed in
71009         subdirectories of $prefix/include.
71010
71011 2006-11-12  Bruno Haible  <bruno@clisp.org>
71012
71013         * m4/lib-link.m4: Require at least autoconf-2.54.
71014         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71015         name to underscores for the --with option.
71016
71017 2006-11-13  Bruno Haible  <bruno@clisp.org>
71018
71019         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71020         the tests directory.
71021         Reported by Ralf Wildenhues.
71022
71023 2006-11-13  Bruno Haible  <bruno@clisp.org>
71024
71025         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71026         (func_emit_initmacro_end): Undo the override here.
71027         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71028         Works around the famous automake error in coreutils.
71029
71030 2006-11-13  Eric Blake  <ebb9@byu.net>
71031
71032         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71033         element, not its node.
71034
71035 2006-11-12  Bruno Haible  <bruno@clisp.org>
71036
71037         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71038         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71039
71040 2006-11-12  Bruno Haible  <bruno@clisp.org>
71041
71042         * gnulib-tool: New option --local-symlink.
71043         (func_usage): Document it.
71044         (lsymbolic): New variable.
71045         (func_import, func_create_testdir): If --symlink was not specified,
71046         test whether --local-symlink was specified and the file comes from
71047         the local_gnulib_dir.
71048
71049 2006-11-12  Bruno Haible  <bruno@clisp.org>
71050
71051         * gnulib-tool (func_ln): New function.
71052         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71053
71054 2006-11-12  Bruno Haible  <bruno@clisp.org>
71055
71056         Finish support for source files in subdirectories.
71057         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71058         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71059         AUTOMAKE_OPTIONS.
71060         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71061
71062 2006-11-12  Bruno Haible  <bruno@clisp.org>
71063
71064         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71065         EXTRA_lib_SOURCES augmentation.
71066         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71067
71068 2006-11-12  Jim Meyering  <jim@meyering.net>
71069
71070         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71071         file descriptors.  This also averts a failure on systems with
71072         native openat support when a traversed directory lacks "x" access.
71073         * lib/fts_.h: Include "i-ring.h"
71074         (struct FTS) [fts_fd_ring]: New member.
71075         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71076         (FCHDIR): Add parentheses.
71077         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71078         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71079         When descending, rather than simply closing the previous
71080         fts_cwd_fd value, push that file descriptor onto the ring.
71081         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71082         (fts_open): Initialize the new fd_ring member.
71083         (fts_close): Clear the ring.
71084         (fts_safe_changedir): When possible, use our new fd_ring to skip
71085         the diropen and fstat and dev/ino comparison that would normally
71086         accompany a virtual `chdir ("..")'.
71087
71088         * modules/fts (Depends-on): Add i-ring.
71089         * modules/i-ring: New module.
71090         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71091         * m4/i-ring.m4: New file.
71092
71093 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71094
71095         * gnulib-tool (func_create_testdir): Fix replacement of
71096         `build-aux' in configure.ac.  Run autotools in gltests
71097         subdirectory.
71098         (func_create_testdir, func_create_megatestdir, test): There is
71099         no need for '--force' in most autotool invocations in a new
71100         tree.  Actually fail the whole test if any of the tools, or the
71101         configure or make stages fail.
71102
71103         Sync from Automake.
71104         * build-aux/gnupload: Revert last change.  Add pointer to upload
71105         instructions of the GNU Maintenance Instructions.
71106         Suggestion by Karl Berry.
71107
71108 2006-11-10  Jim Meyering  <jim@meyering.net>
71109
71110         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71111
71112 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71113
71114         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71115         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71116         (bind_textdomain_codeset) [! ENABLE_NLS]:
71117         Evaluate all the arguments.  That way, callers get compatible behavior
71118         if the arguments have side effects.  Also, it avoids some GCC
71119         diagnostics in some cases; Joel E. Denny reported problems when Bison
71120         was configured with --enable-gcc-warnigs.
71121
71122 2006-11-10  Jim Meyering  <jim@meyering.net>
71123
71124         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71125         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71126         account.
71127
71128 2006-11-10  Jim Meyering  <jim@meyering.net>
71129
71130         * modules/inline: New file/module.
71131         * modules/xalloc (Files): Remove m4/inline.m4.
71132         (Depends-on): Add inline, instead.
71133         * modules/oset: Likewise.
71134         * modules/list: Likewise.
71135
71136 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71137
71138         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71139         Problem reported by Matthew Woehlke.
71140
71141 2006-11-09  Bruno Haible  <bruno@clisp.org>
71142
71143         * lib/tempname.c (gen_tempname): Remove variant that invokes
71144         __gen_tempname.
71145         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71146         __gen_tempname.
71147
71148 2006-11-08  Bruno Haible  <bruno@clisp.org>
71149
71150         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71151         to 'yes' instead of 'cross-compiling'.
71152
71153 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71154
71155         * lib/quotearg.h (quotearg_free): New decl.
71156         * lib/quotearg.c (quotearg_free): New function.
71157         (slot0, nslots, slotvec0, slotvec):
71158         Now file-scope so that quotearg_free can get at them.
71159
71160 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71161
71162         Sync from Automake.
71163         * build-aux/gnupload: Add missing 'gnu' to example URL.
71164         Report by Karl Berry.
71165
71166 2006-11-08  Bruno Haible  <bruno@clisp.org>
71167
71168         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71169         Suggested by Paul Eggert.
71170
71171 2006-11-08  Jim Meyering  <jim@meyering.net>
71172
71173         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71174         It's already included if !_LIBC.
71175         (fts_safe_changedir): Add a comment.
71176
71177 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71178
71179         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71180         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71181         Matthew Woehlke.
71182
71183         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71184         definitions up, to avoid colliding with change below.
71185         (static_inline) [HAVE_INLINE]: New macro.
71186         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71187         Provide extern decls when !HAVE_INLINE.  Do not define unless
71188         static_inline is defined, either by us or by xmalloc.c.  Use
71189         static_inline rather than static inline.
71190         (XCALLOC): Optimize sizeof(T) = 1 case.
71191         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71192
71193 2006-11-07  Bruno Haible  <bruno@clisp.org>
71194
71195         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71196         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71197         AC_C_INLINE.
71198         * modules/xalloc (Files): Add m4/inline.m4.
71199
71200 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71201
71202         * README: Fix typo.
71203         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71204         (Miscellanous Notes): ...from this.
71205
71206 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71207
71208         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71209         Mention that offsetof should be used instead of sizeof.
71210         From Bruno Haible.
71211
71212 2006-11-07  Bruno Haible  <bruno@clisp.org>
71213
71214         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71215
71216 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71217
71218         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71219         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71220         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71221         (gl_tree_add_before, gl_tree_add_after):
71222         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71223         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71224         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71225         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71226         (gl_linked_add_after, gl_linked_add_at): Likewise.
71227         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71228         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71229         (gl_tree_add_before, gl_tree_add_after): Likewise.
71230         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71231         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71232         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71233
71234 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71235
71236         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71237
71238 2006-11-06  Bruno Haible  <bruno@clisp.org>
71239
71240         * m4/inline.m4: New file.
71241         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71242         * modules/list (Files): Add m4/inline.m4.
71243         * modules/oset (Files): Likewise.
71244
71245 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71246
71247         * lib/idcache.c: Include <stddef.h>, for offsetof.
71248         (struct userid.name): Change from char * to a flexible array member.
71249         All uses changed.
71250         * modules/idcache (Depends-on): Add flexmember.
71251
71252         * MODULES.html.sh (Core language properties): New module flexmember.
71253         * modules/flexmember, m4/flexmember.m4: New files.
71254
71255         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71256         inline functions that are identical with the old xnmalloc_inline,
71257         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71258         that we can avoid some unnecessary integer multiplications and
71259         divisions in the common case where the element size is known at
71260         compile time.
71261         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71262         needed.
71263         (xnboundedmalloc): Remove.
71264         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71265         arguments, for consistency with rest of this header.
71266         (xcharalloc): Rewrite using XNMALLOC.
71267         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71268         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71269         versions have been moved to lib/xalloc.h and renamed to be the
71270         non-*_inline versions.
71271         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71272         and xnrealloc functions, since those functions are now inline and
71273         now call us.
71274         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71275         renaming described above.
71276         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71277         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71278         captures the dependency in AC_C_INLINE.
71279
71280         New module canonicalize-lgpl, proposed by Charles Wilson in
71281         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71282         with a few small changes afterwards.
71283         * MODULES.html.sh (File system functions): New module
71284         canonicalize-lgpl.
71285         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71286         and canonicalize_file_name.
71287         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71288         * modules/canonicalize-lgpl: New files.
71289
71290 2006-11-05  Bruno Haible  <bruno@clisp.org>
71291
71292         * gnulib-tool (func_import, func_create_testdir): Create directories
71293         also for files in subdirectories of lib/.
71294
71295 2006-11-05  Bruno Haible  <bruno@clisp.org>
71296
71297         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71298         ANSI C compliant.
71299
71300 2006-11-03  Bruno Haible  <bruno@clisp.org>
71301
71302         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71303         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71304         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71305         (xnboundedmalloc): New inline function.
71306         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71307         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71308         xmalloc.
71309         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71310         xmalloc.
71311         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71312         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71313         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71314         xmalloc.
71315         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71316         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71317         xmalloc.
71318         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71319         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71320         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71321         xmalloc.
71322         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71323         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71324         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71325         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71326         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71327         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71328         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71329
71330 2006-11-03  Bruno Haible  <bruno@clisp.org>
71331
71332         * lib/c-ctype.h [C++]: Define functions without name mangling.
71333         * lib/fwriteerror.h [C++]: Likewise.
71334         * lib/gcd.h [C++]: Likewise.
71335         * lib/linebreak.h [C++]: Likewise.
71336
71337 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71338
71339         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71340         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71341         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71342         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71343         Check for functions and headers just once.
71344         Check for declaration of canonicalize_file_name.
71345         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71346
71347 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71348
71349         * gnulib-tool (func_import): Fix typo in actioncmd.
71350
71351 2006-11-02  Bruno Haible  <bruno@clisp.org>
71352
71353         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71354         newline sequence in the Makefile.am snippet as a space, like "make"
71355         does.
71356         Reported by Roger Persson <perrog@gmail.com>.
71357
71358 2006-11-01  Bruno Haible  <bruno@clisp.org>
71359
71360         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71361         already declared in <string.h>.
71362         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71363
71364 2006-11-01  Bruno Haible  <bruno@clisp.org>
71365
71366         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71367         * lib/strcase.h: Include <string.h>.
71368         (strcasecmp): Define to rpl_strcasecmp here.
71369
71370 2006-11-01  Bruno Haible  <bruno@clisp.org>
71371
71372         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71373
71374 2006-11-01  Eric Blake  <ebb9@byu.net>
71375
71376         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71377
71378         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71379
71380 2006-10-29  Bruno Haible  <bruno@clisp.org>
71381
71382         Make it compile in C++ mode.
71383         * lib/full-write.c (full_rw): Add a cast.
71384
71385 2006-11-01  Bruno Haible  <bruno@clisp.org>
71386
71387         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71388         be POSIX compliant.
71389         Reported by Roger Persson <perrog@gmail.com>.
71390
71391 2006-11-01  Eric Blake  <ebb9@byu.net>
71392
71393         * lib/getopt_.h: Fix comments.
71394
71395 2006-10-31  Eric Blake  <ebb9@byu.net>
71396
71397         * modules/tmpdir (Depends-on): Add sys_stat.
71398         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71399         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71400         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71401         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71402         tempname.
71403
71404 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71405
71406         Avoid some C++ diagnostics reported by Bruno Haible.
71407         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71408         xmalloc.
71409         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71410         (struct slotvec): Move to top level.
71411         (quotearg_n_options): Rewrite to avoid xmalloc.
71412         * lib/xalloc.h (xcharalloc): New function.
71413         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71414         [defined __cplusplus]: Add function template that provides result
71415         type propagation.  This part of the change is from Bruno Haible.
71416
71417 2006-10-29  Bruno Haible  <bruno@clisp.org>
71418
71419         Make it compile in C++ mode.
71420         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71421         * lib/strnlen1.c (strnlen1): Cast memchr result.
71422         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71423         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71424         (create_temp_dir): Rename local variable 'template'.
71425         (compile_csharp_using_sscli): Add cast.
71426         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71427         * lib/findprog.c (find_in_path): Likewise.
71428         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71429         * lib/wait-process.c (register_slave_subprocess): Likewise.
71430
71431 2006-10-22  Bruno Haible  <bruno@clisp.org>
71432
71433         * modules/tsearch: New file.
71434         * lib/tsearch.h: New file.
71435         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71436         * m4/tsearch.m4: New file.
71437         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71438
71439 2006-10-29  Eric Blake  <ebb9@byu.net>
71440
71441         * lib/arcfour.c: Assume config.h.
71442         * lib/arctwo.c: Likewise.
71443         * lib/base64.c: Likewise.
71444         * lib/check-version.c: Likewise.
71445         * lib/crc.c: Likewise.
71446         * lib/des.c: Likewise.
71447         * lib/gc-gnulib.c: Likewise.
71448         * lib/gc-libgcrypt.c: Likewise.
71449         * lib/gc-pbkdf2-sha1.c: Likewise.
71450         * lib/getaddrinfo.c: Likewise.
71451         * lib/getdelim.c: Likewise.
71452         * lib/getline.c: Likewise.
71453         * lib/hmac-md5.c: Likewise.
71454         * lib/hmac-sha1.c: Likewise.
71455         * lib/iconvme.c: Likewise.
71456         * lib/md2.c: Likewise.
71457         * lib/md4.c: Likewise.
71458         * lib/memxor.c: Likewise.
71459         * lib/read-file.c: Likewise.
71460         * lib/readline.c: Likewise.
71461         * lib/rijndael-alg-fst.c: Likewise.
71462         * lib/rijndael-api-fst.c: Likewise.
71463         * lib/xgetdomainname.c: Likewise.
71464
71465 2006-10-28  Eric Blake  <ebb9@byu.net>
71466
71467         * lib/xstrndup.c: Assume config.h.
71468
71469 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71470
71471         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71472         stat-macros.h is now for our own macros, whereas stat_h is for
71473         macros in the <sys/stat.h> name space.
71474         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71475         (STAT_MACROS_H): Remove.
71476         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71477         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71478         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71479         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71480         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71481         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71482         Move these macros to ...
71483         * lib/stat_.h: here.  Don't include stat-macros.h.
71484         * lib/canonicalize.c: Don't include stat-macros.h.
71485         * lib/chown.c: Likewise.
71486         * lib/euidaccess.c: Likewise.
71487         * lib/file-type.c: Likewise.
71488         * lib/filemode.c: Likewise.
71489         * lib/glob.c: Likewise.
71490         * lib/isapipe.c: Likewise.
71491         * lib/lchown.c: Likewise.
71492         * lib/lstat.c: Likewise.
71493         * lib/mkdir-p.c: Likewise.
71494         * lib/rmdir.c: Likewise.
71495         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71496         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71497         unless mkdir isn't declared, to speed up 'configure'.
71498         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71499         would define all the S_* symbols.
71500         * modules/canonicalize (Depends-on):
71501         Depend on sys_stat, not stat-macros.
71502         * modules/chown: Likewise.
71503         * modules/euidaccess: Likewise.
71504         * modules/filemode: Likewise.
71505         * modules/file-type: Likewise.
71506         * modules/glob: Likewise.
71507         * modules/isapipe: Likewise.
71508         * modules/lchown: Likewise.
71509         * modules/lstat: Likewise.
71510         * modules/mkancesdirs: Likewise.
71511         * modules/rmdir: Likewise.
71512         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71513         * modules/modechange: Likewise.
71514         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71515         (configure.ac): Remove gl_STAT_MACROS.
71516         * modules/sys_stat (Depends-on): Remove stat-macros.
71517
71518 2006-10-27  Bruno Haible  <bruno@clisp.org>
71519
71520         * m4/signed.m4: Remove file.
71521         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71522         invocation.
71523         * modules/vasnprintf (Files): Remove m4/signed.m4.
71524
71525 2006-10-27  Bruno Haible  <bruno@clisp.org>
71526
71527         Update to GNU gettext 0.16.
71528         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71529         m4/inttypes-h.m4, m4/signed.m4.
71530         * m4/gettext.m4: Update to GNU gettext 0.16.
71531         * m4/intl.m4: New file, from GNU gettext.
71532         * m4/intldir.m4: New file, from GNU gettext.
71533         * config/srclist.txt: Update
71534
71535 2006-10-27  Eric Blake  <ebb9@byu.net>
71536
71537         * MODULES.html.sh: Document tempname.
71538         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71539         dependencies.
71540         (Files): Move lib/tempname.c...
71541         * modules/tempname: ...to this new module.
71542         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71543         (gl_PREREQ_TEMPNAME): Move...
71544         * m4/tempname.m4: ...to this new file.
71545         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71546         * modules/sys_stat (Depends-on): Add stat-macros.
71547         * lib/stat_.h (includes): Pick up stat macros.
71548         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71549         if stat macros are broken.
71550         * lib/tempname.c (includes): No need to include "stat-macros.h".
71551         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71552         (direxists, __path_search) [!_LIBC]: Don't compile these in
71553         gnulib; the tmpdir module covers that.
71554         * lib/tempname.h: New file.
71555
71556 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71557
71558         * COPYING: Explain how gnulib-tool converts licence headers.
71559         Almost all wording by Eric Blake.
71560
71561 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71562
71563         * lib/mbchar.h (is_basic_table): Make read-only.
71564         * lib/mbchar.c (is_basic_table): Likewise.
71565         Reported by John Darrington.
71566
71567 2006-10-25  Bruno Haible  <bruno@clisp.org>
71568
71569         * lib/progname.h (set_program_name): Undefine before defining.
71570
71571 2006-10-25  Bruno Haible  <bruno@clisp.org>
71572
71573         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71574         false for non-gcc C++ compilers.
71575         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71576
71577 2006-10-24  Bruno Haible  <bruno@clisp.org>
71578
71579         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71580         iconv implementations like Irix iconv.
71581
71582 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71583
71584         * modules/vararrays: New file.
71585         * m4/vararrays.m4: New file, taken from diffutils.
71586         * MODULES.html.sh: New module vararrays.
71587
71588 2006-10-24  Karl Berry  <karl@gnu.org>
71589
71590         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71591         Don't call GNU Unix.
71592
71593 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71594
71595         * users.txt: Add Libtool.
71596
71597         Sync from Libtool:
71598
71599         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71600
71601         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71602         to gnulib's policy of including config.h unconditionally.
71603
71604 2006-10-24  Bruno Haible  <bruno@clisp.org>
71605
71606         * modules/wcwidth (Files): Add m4/wint_t.m4.
71607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71608         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71609
71610 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71611
71612         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71613         to pacify GCC with some -W flags enabled.  Problem reported by
71614         Bruno Haible.
71615
71616 2006-10-24  Jim Meyering  <jim@meyering.net>
71617
71618         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71619         Reported by Karl Berry.
71620
71621 2006-10-23  Bruno Haible  <bruno@clisp.org>
71622
71623         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71624
71625 2006-10-24  Bruno Haible  <bruno@clisp.org>
71626
71627         * lib/gl_list.h: Use C comment style, not C++ comment style.
71628
71629 2006-10-23  Eric Blake  <ebb9@byu.net>
71630
71631         * lib/getaddrinfo.c (includes): Add missing include.
71632
71633 2006-10-23  Bruno Haible  <bruno@clisp.org>
71634             Paul Eggert  <eggert@cs.ucla.edu>
71635
71636         Ability to rename obstack_free.
71637         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71638         obstack_free.
71639         (obstack_free): Invoke the __obstack_free macro.
71640         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71641
71642 2006-10-23  Bruno Haible  <bruno@clisp.org>
71643             Paul Eggert  <eggert@cs.ucla.edu>
71644
71645         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71646         __argc, __argv from the declaration. (They are defined as macros on
71647         mingw.)
71648
71649 2006-10-22  Bruno Haible  <bruno@clisp.org>
71650
71651         * doc/gnulib-intro.texi: New file.
71652         * doc/gnulib.texi: Include it.
71653
71654 2006-10-21  Bruno Haible  <bruno@clisp.org>
71655
71656         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71657         "Introduction", "Miscellanous Notes", "Particular Modules".
71658
71659 2006-10-21  Bruno Haible  <bruno@clisp.org>
71660
71661         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71662         Change mostlyclean-local rule to avoid sh syntax error from bash
71663         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71664
71665 2006-10-23  Jim Meyering  <jim@meyering.net>
71666
71667         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71668         in place of snprintf.
71669
71670         * modules/inttostr (Files): Add lib/uinttostr.c.
71671         * lib/uinttostr.c (inttostr): New file/function.
71672         * lib/inttostr.h (uinttostr): Declare.
71673         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71674         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71675         Add uinttostr.
71676         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71677
71678 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71679
71680         * lib/canonicalize.c (ELOOP): Define if not already defined.
71681         Problem reported by Bruno Haible in
71682         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71683
71684 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71685
71686         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71687         Problem reported by Perry Smith and Ville Laurikari.
71688
71689         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71690         uses.
71691
71692 2006-10-19  Bruno Haible  <bruno@clisp.org>
71693
71694         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71695         for mingw.
71696
71697 2006-10-19  Bruno Haible  <bruno@clisp.org>
71698
71699         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71700         Needed for mingw.
71701
71702 2006-10-19  Bruno Haible  <bruno@clisp.org>
71703
71704         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71705
71706 2006-10-19  Bruno Haible  <bruno@clisp.org>
71707
71708         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71709         it.
71710
71711 2006-10-19  Bruno Haible  <bruno@clisp.org>
71712
71713         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71714         invocation.
71715
71716 2006-10-19  Bruno Haible  <bruno@clisp.org>
71717
71718         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71719         mountlist by default.
71720
71721 2006-10-16  Bruno Haible  <bruno@clisp.org>
71722
71723         * lib/c-strstr.c: Include c-strstr.h.
71724
71725 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71726
71727         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71728         in a slash.
71729
71730 2006-10-18  Bruno Haible  <bruno@clisp.org>
71731
71732         * lib/lock.h [C++]: Wrap definitions in extern "C".
71733
71734 2006-10-18  Bruno Haible  <bruno@clisp.org>
71735
71736         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71737         gl_LIBOBJS list.
71738
71739 2006-10-18  Bruno Haible  <bruno@clisp.org>
71740
71741         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71742
71743 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71744
71745         * lib/xstrtol.h: Include gettext.h.
71746         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71747         Problem reported by Eric Blake.
71748         * modules/xstrtol (Depends-on): Add gettext-h.
71749
71750 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71751
71752         * lib/strftime.c (advance): New macro.
71753         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71754         incomplete type, so you can't add 0 to it.  Problem and patch
71755         reported by Eelco Dolstra for dietlibc.
71756
71757 2006-10-18  Jim Meyering  <jim@meyering.net>
71758
71759         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71760         type for a local, and rename it: s/up/user_proc/.
71761
71762 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71763
71764         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71765         READ_UTMP_USER_PROCESS.
71766         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71767
71768 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71769
71770         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71771         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71772
71773 2006-10-17  Eric Blake  <ebb9@byu.net>
71774
71775         * lib/sigprocmask.c (sigprocmask): Fix typo.
71776
71777         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71778
71779         * modules/clean-temp (Makefile.am): Don't add to make output...
71780         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71781         config.h.
71782
71783 2006-10-17  Bruno Haible  <bruno@clisp.org>
71784
71785         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71786         differently if DEFAULT_TEXT_DOMAIN is set.
71787
71788 2006-10-16  Bruno Haible  <bruno@clisp.org>
71789
71790         * lib/clean-temp.c: Include fwriteerror.h.
71791
71792 2006-10-16  Bruno Haible  <bruno@clisp.org>
71793
71794         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71795
71796 2006-10-16  Bruno Haible  <bruno@clisp.org>
71797
71798         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71799         * lib/sigprocmask.h: Include <sys/types.h>.
71800         (sigset_t): Use the system's definition if present.
71801
71802 2006-10-17  Eric Blake  <ebb9@byu.net>
71803
71804         * lib/xvasprintf.c (includes): Assume config.h.
71805         * lib/xasprintf.c (includes): Likewise.
71806
71807 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71808
71809         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71810         at least as wide as intmax_t.
71811
71812 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71813
71814         (Imported from Automake.)
71815         * build-aux/gnupload: Update to version 1.1 of directive file.
71816
71817 2006-10-16  Eric Blake  <ebb9@byu.net>
71818
71819         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71820         match Automake 1.10a.
71821
71822 2006-10-14  Bruno Haible  <bruno@clisp.org>
71823
71824         * modules/sigprocmask: New file.
71825         * lib/sigprocmask.h: New file.
71826         * lib/sigprocmask.c: New file.
71827         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71828         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71829         request sigprocmask.o.
71830         (gl_PREREQ_SIGPROCMASK): New macro.
71831         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71832         (Depends-on): Add sigprocmask.
71833         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71834         gt_SIGNALBLOCKING. Test for 'raise' only once.
71835         * lib/fatal-signal.c: Include sigprocmask.h.
71836         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71837         unblock_fatal_signals): Define always.
71838         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71839         sigprocmask.
71840
71841 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71842
71843         Sync from Automake.
71844         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71845         which incorrectly sets the mode of an existing destination
71846         directory.  In some cases the unpatched install-sh could do the
71847         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71848         system.  We hope this is rare in practice, but it's clearly worth
71849         fixing.  Problem reported by Alex Unleashed in
71850         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71851         Also, don't bother to check for -m bugs unless we're using -m;
71852         suggested by Stepan Kasal.
71853
71854 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71855
71856         Sync from Automake.
71857         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71858         `-c' flag, so they appear at the same position as in %FASTDEP%
71859         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71860         which ignores unknown options only after the first non-option.
71861         Bug report against M4 by Nelson H. F. Beebe.
71862
71863 2006-10-13  Jim Meyering  <jim@meyering.net>
71864
71865         Fix a bug in yesterday's change.
71866         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71867         p->fts_statp->st_dev would be used uninitialized.
71868         Ensures that we always call fts_stat on the very first entry.
71869         Miklos Szeredi reported that find -xdev stopped working.
71870
71871 2006-10-12  Bruno Haible  <bruno@clisp.org>
71872
71873         * gnulib-tool (func_get_automake_snippet): Append an automatically
71874         computed EXTRA_DIST augmentation.
71875         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71876         * modules/alloca-opt (Makefile.am): Likewise.
71877         * modules/allocsa (Makefile.am): Likewise.
71878         * modules/arcfour (Makefile.am): Likewise.
71879         * modules/arctwo (Makefile.am): Likewise.
71880         * modules/argmatch (Makefile.am): Likewise.
71881         * modules/argz (Makefile.am): Likewise.
71882         * modules/atexit (Makefile.am): Likewise.
71883         * modules/backupfile (Makefile.am): Likewise.
71884         * modules/byteswap (Makefile.am): Likewise.
71885         * modules/c-strtod (Makefile.am): Likewise.
71886         * modules/c-strtold (Makefile.am): Likewise.
71887         * modules/calloc (Makefile.am): Likewise.
71888         * modules/canon-host (Makefile.am): Likewise.
71889         * modules/canonicalize (Makefile.am): Likewise.
71890         * modules/chdir-long (Makefile.am): Likewise.
71891         * modules/chdir-safer (Makefile.am): Likewise.
71892         * modules/check-version (Makefile.am): Likewise.
71893         * modules/chown (Makefile.am): Likewise.
71894         * modules/cloexec (Makefile.am): Likewise.
71895         * modules/close-stream (Makefile.am): Likewise.
71896         * modules/closeout (Makefile.am): Likewise.
71897         * modules/crc (Makefile.am): Likewise.
71898         * modules/csharpexec (Makefile.am): Likewise.
71899         * modules/cycle-check (Makefile.am): Likewise.
71900         * modules/des (Makefile.am): Likewise.
71901         * modules/dev-ino (Makefile.am): Likewise.
71902         * modules/dirfd (Makefile.am): Likewise.
71903         * modules/dirname (Makefile.am): Likewise.
71904         * modules/dup2 (Makefile.am): Likewise.
71905         * modules/eealloc (Makefile.am): Likewise.
71906         * modules/error (Makefile.am): Likewise.
71907         * modules/euidaccess (Makefile.am): Likewise.
71908         * modules/exclude (Makefile.am): Likewise.
71909         * modules/exitfail (Makefile.am): Likewise.
71910         * modules/fcntl-safer (Makefile.am): Likewise.
71911         * modules/fcntl (Makefile.am): Likewise.
71912         * modules/file-type (Makefile.am): Likewise.
71913         * modules/fileblocks (Makefile.am): Likewise.
71914         * modules/filemode (Makefile.am): Likewise.
71915         * modules/filenamecat (Makefile.am): Likewise.
71916         * modules/fnmatch (Makefile.am): Likewise.
71917         * modules/fopen-safer (Makefile.am): Likewise.
71918         * modules/fpending (Makefile.am): Likewise.
71919         * modules/fprintftime (Makefile.am): Likewise.
71920         * modules/free (Makefile.am): Likewise.
71921         * modules/fsusage (Makefile.am): Likewise.
71922         * modules/ftruncate (Makefile.am): Likewise.
71923         * modules/fts (Makefile.am): Likewise.
71924         * modules/gc-arcfour (Makefile.am): Likewise.
71925         * modules/gc-des (Makefile.am): Likewise.
71926         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71927         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
71928         * modules/gc-md4 (Makefile.am): Likewise.
71929         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71930         * modules/gc-sha1 (Makefile.am): Likewise.
71931         * modules/gc (Makefile.am): Likewise.
71932         * modules/getaddrinfo (Makefile.am): Likewise.
71933         * modules/getcwd (Makefile.am): Likewise.
71934         * modules/getdelim (Makefile.am): Likewise.
71935         * modules/getdomainname (Makefile.am): Likewise.
71936         * modules/getgroups (Makefile.am): Likewise.
71937         * modules/gethostname (Makefile.am): Likewise.
71938         * modules/gethrxtime (Makefile.am): Likewise.
71939         * modules/getline (Makefile.am): Likewise.
71940         * modules/getloadavg (Makefile.am): Likewise.
71941         * modules/getlogin_r (Makefile.am): Likewise.
71942         * modules/getndelim2 (Makefile.am): Likewise.
71943         * modules/getopt (Makefile.am): Likewise.
71944         * modules/getpagesize (Makefile.am): Likewise.
71945         * modules/getpass-gnu (Makefile.am): Likewise.
71946         * modules/getpass (Makefile.am): Likewise.
71947         * modules/getsubopt (Makefile.am): Likewise.
71948         * modules/gettime (Makefile.am): Likewise.
71949         * modules/gettimeofday (Makefile.am): Likewise.
71950         * modules/getugroups (Makefile.am): Likewise.
71951         * modules/getusershell (Makefile.am): Likewise.
71952         * modules/glob (Makefile.am): Likewise.
71953         * modules/group-member (Makefile.am): Likewise.
71954         * modules/hard-locale (Makefile.am): Likewise.
71955         * modules/hash (Makefile.am): Likewise.
71956         * modules/hmac-md5 (Makefile.am): Likewise.
71957         * modules/hmac-sha1 (Makefile.am): Likewise.
71958         * modules/human (Makefile.am): Likewise.
71959         * modules/idcache (Makefile.am): Likewise.
71960         * modules/imaxabs (Makefile.am): Likewise.
71961         * modules/imaxdiv (Makefile.am): Likewise.
71962         * modules/inet_ntop (Makefile.am): Likewise.
71963         * modules/inet_pton (Makefile.am): Likewise.
71964         * modules/intprops (Makefile.am): Likewise.
71965         * modules/inttostr (Makefile.am): Likewise.
71966         * modules/inttypes (Makefile.am): Likewise.
71967         * modules/isapipe (Makefile.am): Likewise.
71968         * modules/javaversion (Makefile.am): Likewise.
71969         * modules/lchmod (Makefile.am): Likewise.
71970         * modules/lchown (Makefile.am): Likewise.
71971         * modules/localcharset (Makefile.am): Likewise.
71972         * modules/long-options (Makefile.am): Likewise.
71973         * modules/lstat (Makefile.am): Likewise.
71974         * modules/malloc (Makefile.am): Likewise.
71975         * modules/mathl (Makefile.am): Likewise.
71976         * modules/mbchar (Makefile.am): Likewise.
71977         * modules/md2 (Makefile.am): Likewise.
71978         * modules/md4 (Makefile.am): Likewise.
71979         * modules/md5 (Makefile.am): Likewise.
71980         * modules/memcasecmp (Makefile.am): Likewise.
71981         * modules/memchr (Makefile.am): Likewise.
71982         * modules/memcmp (Makefile.am): Likewise.
71983         * modules/memcoll (Makefile.am): Likewise.
71984         * modules/memcpy (Makefile.am): Likewise.
71985         * modules/memmem (Makefile.am): Likewise.
71986         * modules/memmove (Makefile.am): Likewise.
71987         * modules/mempcpy (Makefile.am): Likewise.
71988         * modules/memrchr (Makefile.am): Likewise.
71989         * modules/memset (Makefile.am): Likewise.
71990         * modules/memxor (Makefile.am): Likewise.
71991         * modules/mkancesdirs (Makefile.am): Likewise.
71992         * modules/mkdir-p (Makefile.am): Likewise.
71993         * modules/mkdir (Makefile.am): Likewise.
71994         * modules/mkdtemp (Makefile.am): Likewise.
71995         * modules/mkstemp (Makefile.am): Likewise.
71996         * modules/mktime (Makefile.am): Likewise.
71997         * modules/modechange (Makefile.am): Likewise.
71998         * modules/mountlist (Makefile.am): Likewise.
71999         * modules/nanosleep (Makefile.am): Likewise.
72000         * modules/obstack (Makefile.am): Likewise.
72001         * modules/openat (Makefile.am): Likewise.
72002         * modules/pagealign_alloc (Makefile.am): Likewise.
72003         * modules/pathmax (Makefile.am): Likewise.
72004         * modules/physmem (Makefile.am): Likewise.
72005         * modules/poll (Makefile.am): Likewise.
72006         * modules/posixtm (Makefile.am): Likewise.
72007         * modules/posixver (Makefile.am): Likewise.
72008         * modules/putenv (Makefile.am): Likewise.
72009         * modules/quote (Makefile.am): Likewise.
72010         * modules/quotearg (Makefile.am): Likewise.
72011         * modules/raise (Makefile.am): Likewise.
72012         * modules/read-file (Makefile.am): Likewise.
72013         * modules/readline (Makefile.am): Likewise.
72014         * modules/readlink (Makefile.am): Likewise.
72015         * modules/readtokens (Makefile.am): Likewise.
72016         * modules/readutmp (Makefile.am): Likewise.
72017         * modules/realloc (Makefile.am): Likewise.
72018         * modules/regex (Makefile.am): Likewise.
72019         * modules/rename-dest-slash (Makefile.am): Likewise.
72020         * modules/rename (Makefile.am): Likewise.
72021         * modules/rijndael (Makefile.am): Likewise.
72022         * modules/rmdir (Makefile.am): Likewise.
72023         * modules/rpmatch (Makefile.am): Likewise.
72024         * modules/safe-read (Makefile.am): Likewise.
72025         * modules/safe-write (Makefile.am): Likewise.
72026         * modules/same-inode (Makefile.am): Likewise.
72027         * modules/same (Makefile.am): Likewise.
72028         * modules/save-cwd (Makefile.am): Likewise.
72029         * modules/savedir (Makefile.am): Likewise.
72030         * modules/setenv (Makefile.am): Likewise.
72031         * modules/settime (Makefile.am): Likewise.
72032         * modules/sha1 (Makefile.am): Likewise.
72033         * modules/sig2str (Makefile.am): Likewise.
72034         * modules/snprintf (Makefile.am): Likewise.
72035         * modules/stat-macros (Makefile.am): Likewise.
72036         * modules/stat-time (Makefile.am): Likewise.
72037         * modules/stdbool (Makefile.am): Likewise.
72038         * modules/stdint (Makefile.am): Likewise.
72039         * modules/stdlib-safer (Makefile.am): Likewise.
72040         * modules/stpcpy (Makefile.am): Likewise.
72041         * modules/stpncpy (Makefile.am): Likewise.
72042         * modules/strcase (Makefile.am): Likewise.
72043         * modules/strcasestr (Makefile.am): Likewise.
72044         * modules/strchrnul (Makefile.am): Likewise.
72045         * modules/strcspn (Makefile.am): Likewise.
72046         * modules/strdup (Makefile.am): Likewise.
72047         * modules/strerror (Makefile.am): Likewise.
72048         * modules/strftime (Makefile.am): Likewise.
72049         * modules/strndup (Makefile.am): Likewise.
72050         * modules/strnlen (Makefile.am): Likewise.
72051         * modules/strpbrk (Makefile.am): Likewise.
72052         * modules/strsep (Makefile.am): Likewise.
72053         * modules/strstr (Makefile.am): Likewise.
72054         * modules/strtod (Makefile.am): Likewise.
72055         * modules/strtoimax (Makefile.am): Likewise.
72056         * modules/strtok_r (Makefile.am): Likewise.
72057         * modules/strtol (Makefile.am): Likewise.
72058         * modules/strtoll (Makefile.am): Likewise.
72059         * modules/strtoul (Makefile.am): Likewise.
72060         * modules/strtoull (Makefile.am): Likewise.
72061         * modules/strtoumax (Makefile.am): Likewise.
72062         * modules/strverscmp (Makefile.am): Likewise.
72063         * modules/sys_socket (Makefile.am): Likewise.
72064         * modules/sys_stat (Makefile.am): Likewise.
72065         * modules/sysexits (Makefile.am): Likewise.
72066         * modules/time_r (Makefile.am): Likewise.
72067         * modules/timegm (Makefile.am): Likewise.
72068         * modules/timespec (Makefile.am): Likewise.
72069         * modules/tmpfile-safer (Makefile.am): Likewise.
72070         * modules/trim (Makefile.am): Likewise.
72071         * modules/unistd-safer (Makefile.am): Likewise.
72072         * modules/unlinkdir (Makefile.am): Likewise.
72073         * modules/unlocked-io (Makefile.am): Likewise.
72074         * modules/userspec (Makefile.am): Likewise.
72075         * modules/utime (Makefile.am): Likewise.
72076         * modules/utimecmp (Makefile.am): Likewise.
72077         * modules/utimens (Makefile.am): Likewise.
72078         * modules/vasnprintf (Makefile.am): Likewise.
72079         * modules/vasprintf (Makefile.am): Likewise.
72080         * modules/vsnprintf (Makefile.am): Likewise.
72081         * modules/xalloc (Makefile.am): Likewise.
72082         * modules/xgetcwd (Makefile.am): Likewise.
72083         * modules/xnanosleep (Makefile.am): Likewise.
72084         * modules/xreadlink (Makefile.am): Likewise.
72085         * modules/xstrtod (Makefile.am): Likewise.
72086         * modules/xstrtol (Makefile.am): Likewise.
72087         * modules/xstrtold (Makefile.am): Likewise.
72088         * modules/yesno (Makefile.am): Likewise.
72089         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72090
72091 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72092
72093         * modules/error (Makefile.am): Distribute files through
72094         EXTRA_DIST, not lib_SOURCES.
72095
72096 2006-10-12  Eric Blake  <ebb9@byu.net>
72097
72098         * modules/error (Makefile.am): Distribute files in /lib.
72099         * modules/obstack (Makefile.am): Likewise.
72100
72101 2006-10-12  Bruno Haible  <bruno@clisp.org>
72102
72103         * modules/acl (Makefile.am): Distribute all files in lib/ through
72104         EXTRA_DIST.
72105         * modules/arcfour (Makefile.am): Likewise.
72106         * modules/arctwo (Makefile.am): Likewise.
72107         * modules/argmatch (Makefile.am): Likewise.
72108         * modules/argz (Makefile.am): Likewise.
72109         * modules/atexit (Makefile.am): Likewise.
72110         * modules/backupfile (Makefile.am): Likewise.
72111         * modules/c-strtod (Makefile.am): Likewise.
72112         * modules/c-strtold (Makefile.am): Likewise.
72113         * modules/calloc (Makefile.am): Likewise.
72114         * modules/canon-host (Makefile.am): Likewise.
72115         * modules/canonicalize (Makefile.am): Likewise.
72116         * modules/chdir-long (Makefile.am): Likewise.
72117         * modules/chdir-safer (Makefile.am): Likewise.
72118         * modules/check-version (Makefile.am): Likewise.
72119         * modules/chown (Makefile.am): Likewise.
72120         * modules/cloexec (Makefile.am): Likewise.
72121         * modules/close-stream (Makefile.am): Likewise.
72122         * modules/closeout (Makefile.am): Likewise.
72123         * modules/crc (Makefile.am): Likewise.
72124         * modules/cycle-check (Makefile.am): Likewise.
72125         * modules/des (Makefile.am): Likewise.
72126         * modules/dirfd (Makefile.am): Likewise.
72127         * modules/dirname (Makefile.am): Likewise.
72128         * modules/dup2 (Makefile.am): Likewise.
72129         * modules/euidaccess (Makefile.am): Likewise.
72130         * modules/exclude (Makefile.am): Likewise.
72131         * modules/exitfail (Makefile.am): Likewise.
72132         * modules/fcntl-safer (Makefile.am): Likewise.
72133         * modules/file-type (Makefile.am): Likewise.
72134         * modules/fileblocks (Makefile.am): Likewise.
72135         * modules/filemode (Makefile.am): Likewise.
72136         * modules/filenamecat (Makefile.am): Likewise.
72137         * modules/fnmatch (Makefile.am): Likewise.
72138         * modules/fopen-safer (Makefile.am): Likewise.
72139         * modules/fpending (Makefile.am): Likewise.
72140         * modules/fprintftime (Makefile.am): Likewise.
72141         * modules/free (Makefile.am): Likewise.
72142         * modules/fsusage (Makefile.am): Likewise.
72143         * modules/ftruncate (Makefile.am): Likewise.
72144         * modules/fts (Makefile.am): Likewise.
72145         * modules/gc (Makefile.am): Likewise.
72146         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72147         * modules/getaddrinfo (Makefile.am): Likewise.
72148         * modules/getcwd (Makefile.am): Likewise.
72149         * modules/getdelim (Makefile.am): Likewise.
72150         * modules/getdomainname (Makefile.am): Likewise.
72151         * modules/getgroups (Makefile.am): Likewise.
72152         * modules/gethostname (Makefile.am): Likewise.
72153         * modules/gethrxtime (Makefile.am): Likewise.
72154         * modules/getline (Makefile.am): Likewise.
72155         * modules/getloadavg (Makefile.am): Likewise.
72156         * modules/getlogin_r (Makefile.am): Likewise.
72157         * modules/getopt (Makefile.am): Likewise.
72158         * modules/getpass (Makefile.am): Likewise.
72159         * modules/getpass-gnu (Makefile.am): Likewise.
72160         * modules/getsubopt (Makefile.am): Likewise.
72161         * modules/gettime (Makefile.am): Likewise.
72162         * modules/gettimeofday (Makefile.am): Likewise.
72163         * modules/getugroups (Makefile.am): Likewise.
72164         * modules/getusershell (Makefile.am): Likewise.
72165         * modules/glob (Makefile.am): Likewise.
72166         * modules/group-member (Makefile.am): Likewise.
72167         * modules/hard-locale (Makefile.am): Likewise.
72168         * modules/hash (Makefile.am): Likewise.
72169         * modules/hmac-md5 (Makefile.am): Likewise.
72170         * modules/hmac-sha1 (Makefile.am): Likewise.
72171         * modules/human (Makefile.am): Likewise.
72172         * modules/idcache (Makefile.am): Likewise.
72173         * modules/imaxabs (Makefile.am): Likewise.
72174         * modules/imaxdiv (Makefile.am): Likewise.
72175         * modules/inet_ntop (Makefile.am): Likewise.
72176         * modules/inet_pton (Makefile.am): Likewise.
72177         * modules/inttostr (Makefile.am): Likewise.
72178         * modules/isapipe (Makefile.am): Likewise.
72179         * modules/lchown (Makefile.am): Likewise.
72180         * modules/long-options (Makefile.am): Likewise.
72181         * modules/lstat (Makefile.am): Likewise.
72182         * modules/malloc (Makefile.am): Likewise.
72183         * modules/mathl (Makefile.am): Likewise.
72184         * modules/mbchar (Makefile.am): Likewise.
72185         * modules/md2 (Makefile.am): Likewise.
72186         * modules/md4 (Makefile.am): Likewise.
72187         * modules/md5 (Makefile.am): Likewise.
72188         * modules/memcasecmp (Makefile.am): Likewise.
72189         * modules/memchr (Makefile.am): Likewise.
72190         * modules/memcmp (Makefile.am): Likewise.
72191         * modules/memcoll (Makefile.am): Likewise.
72192         * modules/memcpy (Makefile.am): Likewise.
72193         * modules/memmem (Makefile.am): Likewise.
72194         * modules/memmove (Makefile.am): Likewise.
72195         * modules/mempcpy (Makefile.am): Likewise.
72196         * modules/memrchr (Makefile.am): Likewise.
72197         * modules/memset (Makefile.am): Likewise.
72198         * modules/memxor (Makefile.am): Likewise.
72199         * modules/mkancesdirs (Makefile.am): Likewise.
72200         * modules/mkdir (Makefile.am): Likewise.
72201         * modules/mkdir-p (Makefile.am): Likewise.
72202         * modules/mkdtemp (Makefile.am): Likewise.
72203         * modules/mkstemp (Makefile.am): Likewise.
72204         * modules/mktime (Makefile.am): Likewise.
72205         * modules/modechange (Makefile.am): Likewise.
72206         * modules/mountlist (Makefile.am): Likewise.
72207         * modules/nanosleep (Makefile.am): Likewise.
72208         * modules/openat (Makefile.am): Likewise.
72209         * modules/pagealign_alloc (Makefile.am): Likewise.
72210         * modules/physmem (Makefile.am): Likewise.
72211         * modules/poll (Makefile.am): Likewise.
72212         * modules/posixtm (Makefile.am): Likewise.
72213         * modules/posixver (Makefile.am): Likewise.
72214         * modules/putenv (Makefile.am): Likewise.
72215         * modules/quote (Makefile.am): Likewise.
72216         * modules/quotearg (Makefile.am): Likewise.
72217         * modules/raise (Makefile.am): Likewise.
72218         * modules/read-file (Makefile.am): Likewise.
72219         * modules/readline (Makefile.am): Likewise.
72220         * modules/readlink (Makefile.am): Likewise.
72221         * modules/readtokens (Makefile.am): Likewise.
72222         * modules/readutmp (Makefile.am): Likewise.
72223         * modules/realloc (Makefile.am): Likewise.
72224         * modules/regex (Makefile.am): Likewise.
72225         * modules/rename (Makefile.am): Likewise.
72226         * modules/rename-dest-slash (Makefile.am): Likewise.
72227         * modules/rijndael (Makefile.am): Likewise.
72228         * modules/rmdir (Makefile.am): Likewise.
72229         * modules/rpmatch (Makefile.am): Likewise.
72230         * modules/safe-read (Makefile.am): Likewise.
72231         * modules/safe-write (Makefile.am): Likewise.
72232         * modules/same (Makefile.am): Likewise.
72233         * modules/save-cwd (Makefile.am): Likewise.
72234         * modules/savedir (Makefile.am): Likewise.
72235         * modules/setenv (Makefile.am): Likewise.
72236         * modules/settime (Makefile.am): Likewise.
72237         * modules/sha1 (Makefile.am): Likewise.
72238         * modules/sig2str (Makefile.am): Likewise.
72239         * modules/snprintf (Makefile.am): Likewise.
72240         * modules/stdlib-safer (Makefile.am): Likewise.
72241         * modules/stpcpy (Makefile.am): Likewise.
72242         * modules/stpncpy (Makefile.am): Likewise.
72243         * modules/strcase (Makefile.am): Likewise.
72244         * modules/strcasestr (Makefile.am): Likewise.
72245         * modules/strchrnul (Makefile.am): Likewise.
72246         * modules/strcspn (Makefile.am): Likewise.
72247         * modules/strdup (Makefile.am): Likewise.
72248         * modules/strerror (Makefile.am): Likewise.
72249         * modules/strftime (Makefile.am): Likewise.
72250         * modules/strndup (Makefile.am): Likewise.
72251         * modules/strnlen (Makefile.am): Likewise.
72252         * modules/strpbrk (Makefile.am): Likewise.
72253         * modules/strsep (Makefile.am): Likewise.
72254         * modules/strstr (Makefile.am): Likewise.
72255         * modules/strtod (Makefile.am): Likewise.
72256         * modules/strtoimax (Makefile.am): Likewise.
72257         * modules/strtok_r (Makefile.am): Likewise.
72258         * modules/strtol (Makefile.am): Likewise.
72259         * modules/strtoll (Makefile.am): Likewise.
72260         * modules/strtoul (Makefile.am): Likewise.
72261         * modules/strtoull (Makefile.am): Likewise.
72262         * modules/strtoumax (Makefile.am): Likewise.
72263         * modules/strverscmp (Makefile.am): Likewise.
72264         * modules/time_r (Makefile.am): Likewise.
72265         * modules/timegm (Makefile.am): Likewise.
72266         * modules/tmpfile-safer (Makefile.am): Likewise.
72267         * modules/unistd-safer (Makefile.am): Likewise.
72268         * modules/unlinkdir (Makefile.am): Likewise.
72269         * modules/userspec (Makefile.am): Likewise.
72270         * modules/utime (Makefile.am): Likewise.
72271         * modules/utimecmp (Makefile.am): Likewise.
72272         * modules/utimens (Makefile.am): Likewise.
72273         * modules/vasnprintf (Makefile.am): Likewise.
72274         * modules/vasprintf (Makefile.am): Likewise.
72275         * modules/vsnprintf (Makefile.am): Likewise.
72276         * modules/xalloc (Makefile.am): Likewise.
72277         * modules/xgetcwd (Makefile.am): Likewise.
72278         * modules/xnanosleep (Makefile.am): Likewise.
72279         * modules/xreadlink (Makefile.am): Likewise.
72280         * modules/xstrtod (Makefile.am): Likewise.
72281         * modules/xstrtol (Makefile.am): Likewise.
72282         * modules/xstrtold (Makefile.am): Likewise.
72283         * modules/yesno (Makefile.am): Likewise.
72284
72285 2006-10-12  Jim Meyering  <jim@meyering.net>
72286
72287         * m4/getloadavg.m4: Revert the change below.
72288
72289         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72290         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72291         fail with a symlink, which is what coreutils' ./bootstrap now
72292         creates by default.
72293
72294 2006-10-12  Bruno Haible  <bruno@clisp.org>
72295
72296         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72297         mingw.
72298         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72299         MSVC and mingw explicitly.
72300
72301 2006-10-11  Simon Josefsson  <jas@extundo.com>
72302             Bruno Haible  <bruno@clisp.org>
72303
72304         Add support for multiple gnulib-tool invocations in the scope of a
72305         single configure.ac file.
72306         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72307         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72308         with the same contents as the _LIBADD variable.
72309         (func_emit_initmacro_start, func_emit_initmacro_end,
72310         func_emit_initmacro_done): New functions.
72311         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72312         gl_LIBOBJS and gl_LTLIBOBJS.
72313
72314 2006-10-11  Bruno Haible  <bruno@clisp.org>
72315
72316         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72317         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72318         autoreconf. Instead, invoke autopoint explicitly but move back the
72319         *.m4 files from gnulib.
72320
72321 2006-10-11  Bruno Haible  <bruno@clisp.org>
72322
72323         * gnulib-tool (func_usage): Make module names after --create-testdir
72324         optional.
72325         (func_create_testdir): If no module was specified, use nearly all
72326         modules.
72327
72328 2006-10-12  Jim Meyering  <jim@meyering.net>
72329
72330         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72331         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72332         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72333         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72334         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72335         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72336         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72337         (fts_set_stat_required): New function.
72338         (fts_open): Defer the calls to fts_stat, if possible or requested.
72339         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72340         into fts_stat itself.
72341         (fts_read): Perform any required (deferred) fts_stat call.
72342         (fts_build): Likewise, for the directory we're about to open and read.
72343         In the readdir loop, carefully decide whether each entry will require
72344         an eventual call to fts_stat, using dirent.d_type info if available.
72345         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72346         a command line argument into this function.  Update all callers.
72347         Map a return value of FTS_DOT to FTS_D for a command line argument.
72348         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72349         Thanks to Miklos Szeredi for his tenacity and for the initial
72350         bug report about "find" failing on a FUSE-based file system.
72351
72352         * lib/fts.c (fts_open): Use consistent indentation.
72353
72354 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72355
72356         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72357         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72358         reported by Jim Meyering.  All uses of cache variables renamed
72359         to match Autoconf's.
72360         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72361         the other one.
72362
72363         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72364         Fix misspelling in diagnostic.
72365
72366 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72367
72368         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72369         defined.  Problem reported by Matthew Woehlke.
72370
72371         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72372         Add support for Tandem NonStop R series.
72373         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72374         Use new macro.
72375
72376         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72377         (has_trailing_slash): Omit size arg; all callers changed.
72378         Omit 'inline', since it doesn't help performance and we'd
72379         need to configure it.
72380         Don't count //, ///, etc. as having a trailing slash.
72381         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72382         (rpl_rename_dest_slash): On failure, use rename's errno rather
72383         than (in some cases) an incorrect or junk errno.
72384         Simplify code by removing need to compute length; this does
72385         cause it to make two passes instead of one over the file name,
72386         but it's worth it.
72387
72388         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72389         change, since Autoconf's version may no longer be appropriate now
72390         that we are using CVS Autoconf's version.  Add support for Tandem.
72391
72392 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72393             Bruno Haible  <bruno@clisp.org>
72394
72395         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72396         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72397         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72398         gl_AC_TYPE_LONG_LONG.
72399
72400         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72401         instead of HAVE_LONG_LONG.
72402         * lib/printf-args.c (printf_fetchargs): Likewise.
72403         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72404         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72405         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72406         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72407         gl_AC_TYPE_LONG_LONG.
72408
72409 2006-10-11  Bruno Haible  <bruno@clisp.org>
72410
72411         * m4/longlong.m4: Add comments.
72412         * m4/ulonglong.m4: Likewise.
72413
72414 2006-10-10  Bruno Haible  <bruno@clisp.org>
72415
72416         Make it possible to #define stpcpy, strdup to aliases.
72417         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72418         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72419
72420 2006-10-10  Bruno Haible  <bruno@clisp.org>
72421
72422         Make it possible to #define gcd to an alias.
72423         * lib/gcd.c: Include config.h.
72424
72425 2006-10-10  Bruno Haible  <bruno@clisp.org>
72426
72427         Make it possible to #define c_isascii to an alias.
72428         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72429         defined. Undefine the macros before defining them, to avoid gcc
72430         warnings.
72431         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72432         define NO_C_CTYPE_MACROS early.
72433
72434 2006-10-10  Bruno Haible  <bruno@clisp.org>
72435
72436         Make it possible to #define set_program_name to an alias.
72437         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72438         ENABLE_RELOCATABLE early.
72439
72440 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72441
72442         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72443         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72444         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72445         More generally, don't assume that 64-bit signed int is available
72446         if unsigned int is, and vice versa.
72447         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72448         unsigned symbols, not on their signed counterparts.
72449         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72450         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72451         (UINT64_C, UINTMAX_C):
72452         Likewise.
72453         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72454         unsigned counterparts.
72455         (Have_long_long, Unsigned): New macros.
72456         (Int): Renamed from INT.
72457         (strtoimax): Use the new macros.
72458         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72459         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72460         * modules/inttypes (inttypes.h): Substitute
72461         HAVE_UNSIGNED_LONG_LONG_INT.
72462         * modules/stdint (stdint.h): Likewise.
72463         (Files): Add m4/ulonglong.m4.
72464
72465 2006-10-10  Bruno Haible  <bruno@clisp.org>
72466
72467         Fix a gcc -Wshadow warning.
72468         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72469         to 'bucket'.
72470         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72471         gl_linked_indexof_from_to): Likewise.
72472         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72473         Likewise.
72474         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72475         Likewise.
72476         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72477         Reported by Eric Blake.
72478
72479 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72480
72481         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72482         for NetBSD.  Problem reported by Bruno Haible.
72483
72484 2006-10-09  Jim Meyering  <jim@meyering.net>
72485
72486         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72487         Patch from Bruno Haible.
72488
72489 2006-10-09  Jim Meyering  <jim@meyering.net>
72490
72491         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72492         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72493         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72494
72495 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72496
72497         Don't include <config.h> twice; this doesn't work in some cases,
72498         e.g., when config.h has "#define intmax_t long long int" and
72499         we include <config.h>, <inttypes.h>, <config.h> in that order.
72500         Problem reported by Matthew Woehlke in:
72501         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72502         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72503         * lib/fts-cycle.c: Don't include config.h.
72504         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72505         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72506         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72507         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72508         inttypes.h.
72509         * lib/xstrtoumax.c: Likewise.
72510         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72511         __strtol and the like, so that this module is more like its siblings.
72512         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72513         Remove; no longer needed now that we assume gnulib inttypes.h.
72514
72515 2006-10-08  Bruno Haible  <bruno@clisp.org>
72516
72517         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72518         option.
72519
72520 2006-10-07  Jim Meyering  <jim@meyering.net>
72521
72522         * modules/inttypes (inttypes.h): Revert what seems to have been
72523         an inadvertent part of today's change: use "|", not "/" in the
72524         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72525
72526 2006-10-07  Bruno Haible  <bruno@clisp.org>
72527
72528         * modules/sublist: New file.
72529
72530 2006-10-07  Bruno Haible  <bruno@clisp.org>
72531
72532         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72533         * modules/argz (argz.h): Likewise.
72534         * modules/arpa_inet (arpa/inet.h): Likewise.
72535         * modules/byteswap (byteswap.h): Likewise.
72536         * modules/configmake (configmake.h): Likewise.
72537         * modules/fcntl (fcntl.h): Likewise.
72538         * modules/fnmatch (fnmatch.h): Likewise.
72539         * modules/getopt (getopt.h): Likewise.
72540         * modules/glob (glob.h): Likewise.
72541         * modules/inttypes (inttypes.h): Likewise.
72542         * modules/netinet_in (netinet/in.h): Likewise.
72543         * modules/poll (poll.h): Likewise.
72544         * modules/stdbool (stdbool.h): Likewise.
72545         * modules/stdint (stdint.h): Likewise.
72546         * modules/sys_select (sys/select.h): Likewise.
72547         * modules/sys_socket (sys/socket.h): Likewise.
72548         * modules/sys_stat (sys/stat.h): Likewise.
72549         * modules/sysexits (sysexits.h): Likewise.
72550         * modules/unistd (unistd.h): Likewise.
72551         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72552         Add a "DO NOT EDIT" comment to the generated file.
72553         (func_import): Likewise for gnulib-comp.m4.
72554
72555 2006-10-07  Bruno Haible  <bruno@clisp.org>
72556
72557         * lib/gl_sublist.h: New file.
72558         * lib/gl_sublist.c: New file.
72559
72560 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72561
72562         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72563         name (relative to the original working directory) and the file
72564         name component (relative to the temporary working directory).  All
72565         callers changed.
72566         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72567         * lib/mkdir-p.c (make_dir_parents): Likewise.
72568         * lib/mkdir-p.h (make_dir_parents): Likewise.
72569
72570 2006-10-06  Eric Blake  <ebb9@byu.net>
72571
72572         Define several macros for use by the clean-temp module.
72573         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72574         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72575         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72576
72577         * lib/clean-temp.h (close_stream_temp): New declaration.
72578         * lib/clean-temp.c (includes): Pull in headers according to what
72579         other modules are in use.
72580         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72581
72582 2006-10-06  Bruno Haible  <bruno@clisp.org>
72583
72584         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72585         instead of fopen, fwriteerror.
72586
72587 2006-10-06  Bruno Haible  <bruno@clisp.org>
72588
72589         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72590         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72591         int.
72592         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72593         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72594         Return an error indicator.
72595         Suggested by Eric Blake.
72596
72597 2006-10-06  Bruno Haible  <bruno@clisp.org>
72598
72599         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72600         Reported by Eric Blake.
72601
72602 2006-10-06  Bruno Haible  <bruno@clisp.org>
72603
72604         * modules/closeout (Description): Mention stderr too.
72605
72606 2006-10-06  Bruno Haible  <bruno@clisp.org>
72607         and Paul Eggert  <eggert@cs.ucla.edu>
72608
72609         * lib/closeout.c (close_stdout): Also close stderr.
72610         * lib/closeout.h: Update comment.
72611
72612 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72613
72614         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72615         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72616         * lib/dirchownmod.c: Include lchown.h.
72617         * lib/lchown.c: Don't include files that lchown.h now includes.
72618         Don't declare chown, since lchown.h now does that.
72619         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72620         (lchown): Define to rpl_chown if lchown is declared but
72621         does not exist.  Declare using a prototype if lchown is not
72622         declared.  Add a copyright notice.
72623         * lib/mkstemp.h: Include <unistd.h>.
72624         * lib/openat.c: Include lchown.h.
72625
72626         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72627         we now test for that separately.
72628         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72629         rather than O_NOFOLLOW, when testing whether it's possible to
72630         avoid a race condition reliably.
72631         * lib/savewd.c (savewd_chdir): Likewise.
72632
72633         Remove macros that are no longer needed now that stdint.h is
72634         reliable.
72635         * lib/fsusage.c (UINTMAX_MAX): Remove.
72636         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72637         * lib/utimecmp.c (SIZE_MAX): Remove.
72638
72639         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72640
72641         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72642         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72643         O_NOATIME works.
72644
72645 2006-10-05  Bruno Haible  <bruno@clisp.org>
72646
72647         * lib/gl_list.h (gl_sortedlist_search_from_to,
72648         gl_sortedlist_indexof_from_to): New declarations.
72649         (gl_list_implementation): New fields sortedlist_search_from_to,
72650         sortedlist_indexof_from_to.
72651         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72652         inline functions.
72653         * lib/gl_list.c (gl_sortedlist_search_from_to,
72654         gl_sortedlist_indexof_from_to): New functions.
72655         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72656         function.
72657         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72658         (gl_array_sortedlist_search_from_to): New function.
72659         (gl_array_list_implementation): Update.
72660         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72661         function.
72662         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72663         (gl_carray_sortedlist_search_from_to): New function.
72664         (gl_carray_list_implementation): Update.
72665         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72666         gl_linked_sortedlist_indexof_from_to): New functions.
72667         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72668         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72669         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72670         gl_tree_sortedlist_indexof_from_to): New functions.
72671         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72672         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72673         Update.
72674         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72675         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72676         Update.
72677
72678 2006-10-05  Bruno Haible  <bruno@clisp.org>
72679
72680         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72681         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72682         (struct gl_list_implementation): Add fields search_from_to,
72683         indexof_from_to. Remove fields search, indexof.
72684         (gl_list_search): Use the search_from_to method.
72685         (gl_list_search_from, gl_list_search_from_to): New functions.
72686         (gl_list_indexof): Use the indexof_from_to method.
72687         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72688         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72689         (gl_list_search_from, gl_list_search_from_to): New functions.
72690         (gl_list_indexof): Use the indexof_from_to method.
72691         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72692         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72693         gl_array_indexof. Add start_index, end_index arguments.
72694         (gl_array_search_from_to): Renamed from gl_array_search. Add
72695         start_index, end_index arguments.
72696         (gl_array_remove, gl_array_list_implementation): Update.
72697         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72698         gl_carray_indexof. Add start_index, end_index arguments.
72699         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72700         start_index, end_index arguments.
72701         (gl_carray_remove, gl_carray_list_implementation): Update.
72702         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72703         gl_linked_search. Add start_index, end_index arguments.
72704         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72705         start_index, end_index arguments.
72706         (gl_linked_remove): Update.
72707         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72708         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72709         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72710         field to 'size_t'.
72711         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72712         gl_tree_search. Add start_index, end_index arguments.
72713         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72714         start_index, end_index arguments.
72715         (gl_tree_remove): Update.
72716         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72717         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72718         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72719         function.
72720         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72721         gl_tree_search. Add start_index, end_index arguments.
72722         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72723         start_index, end_index arguments.
72724         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72725         Update.
72726         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72727
72728 2006-10-05  Bruno Haible  <bruno@clisp.org>
72729
72730         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72731
72732         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72733         fwriteerror_temp): New declarations.
72734         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72735         (descriptors): New variable.
72736         (cleanup): First, close the descriptors.
72737         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72738         fclose_temp, fwriteerror_temp): New functions.
72739
72740 2006-10-04  Jim Meyering  <jim@meyering.net>
72741
72742         * lib/fts.c (fts_open): Tiny comment change.
72743
72744 2006-10-04  Bruno Haible  <bruno@clisp.org>
72745
72746         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72747         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72748         gl_LOCK_BODY.
72749         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72750         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72751         gl_LOCK_EARLY_BODY.
72752         (gl_LOCK): Require gl_LOCK_BODY.
72753
72754 2006-10-04  Bruno Haible  <bruno@clisp.org>
72755
72756         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72757         (gl_oset_search_atleast): New declaration.
72758         (struct gl_oset_implementation): Add field 'search_atleast'.
72759         (gl_oset_search_atleast): New inline function.
72760         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72761         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72762         (gl_array_oset_implementation): Update.
72763         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72764         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72765         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72766
72767 2006-10-04  Bruno Haible  <bruno@clisp.org>
72768
72769         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72770
72771 2006-10-03  Bruno Haible  <bruno@clisp.org>
72772
72773         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72774         from gl_avltreehash_list_implementation.
72775
72776 2006-10-03  Bruno Haible  <bruno@clisp.org>
72777
72778         * lib/gl_oset.c (gl_oset_add): Fix return type.
72779
72780 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72781
72782         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72783
72784 2006-10-02  Eric Blake  <ebb9@byu.net>
72785
72786         * modules/strnlen (Depends-on): Add extensions.
72787
72788 2006-10-02  Eric Blake  <ebb9@byu.net>
72789
72790         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72791         definition in 2.60+.
72792
72793 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72794
72795         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72796         checks.
72797
72798 2006-10-02  Bruno Haible  <bruno@clisp.org>
72799
72800         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72801         to the AUTOMAKE_OPTIONS.
72802         Reported by Jim Meyering.
72803
72804 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72805
72806         Work around bug in Solaris 10 /proc file system:
72807         /proc/self/fd/NNN/.. isn't the parent directory of
72808         the directory whose file descriptor is NNN.  This needs to
72809         be worked around at run time, not compile time, since a
72810         program might be built on Solaris 8, where things work, and
72811         run on Solaris 10.
72812         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72813         to use the following interface instead:
72814         (OPENAT_BUFFER_SIZE): New macro.
72815         (openat_proc_name): New function.
72816         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72817         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72818         Likewise.
72819         * lib/openat-proc.c: New file.
72820         * modules/openat (Files): Add lib/openat-proc.c.
72821         (Depends-on): Add same-inode, stdbool.
72822         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72823
72824 2006-09-29  Bruno Haible  <bruno@clisp.org>
72825
72826         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72827         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72828         argument. Set stdout_closed before testing for ferror, not after.
72829         (fwriteerror, fwriteerror_no_ebadf): New functions.
72830
72831 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72832
72833         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72834
72835 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72836
72837         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72838         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72839
72840 2006-09-28  Jim Meyering  <jim@meyering.net>
72841
72842         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72843         Include <unistd.h>.
72844
72845 2006-09-28  Bruno Haible  <bruno@clisp.org>
72846
72847         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72848         * modules/linkedhash-list (Depends-on): Likewise.
72849         * modules/rbtreehash-list (Depends-on): Likewise.
72850
72851 2006-09-28  Bruno Haible  <bruno@clisp.org>
72852
72853         * lib/strndup.h: Simplify the redefinition of strndup.
72854         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72855         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72856
72857 2006-09-28  Bruno Haible  <bruno@clisp.org>
72858
72859         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72860         * lib/gl_linkedhash_list.c: Likewise.
72861         * lib/gl_rbtreehash_list.c: Likewise.
72862
72863 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72864
72865         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72866         getaddrinfo.
72867
72868         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72869         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72870         it causes <stdio_ext.h> to cause a compile-time error.
72871         Problem reported by Nelson H. F. Beebe.
72872         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72873         of HAVE_DECL___PENDING.
72874
72875         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72876         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72877         declaration.
72878
72879 2006-09-27  Jim Meyering  <jim@meyering.net>
72880
72881         This file could end up with a definition for a function
72882         named __strndup, rather than rpl_strndup on a system with
72883         incomplete weak_alias support.
72884         * lib/strndup.c (strndup): Rename from __strndup.
72885         Remove #defines that used to map __strndup to strndup.
72886         Don't use K&R prototypes.
72887         Remove LIBC-related code, since this file is not sync'd with glibc.
72888         * lib/strndup.h: Revamp, accordingly.
72889         * m4/strndup.m4: Modernize.
72890
72891 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72892
72893         * modules/savewd (Depends-on): Add 'raise'.
72894         * lib/savewd.c: Include <signal.h>, for 'raise'.
72895
72896 2006-09-26  Jim Meyering  <jim@meyering.net>
72897
72898         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72899         when we detect Darwin 8.7.0's acl_get_file bug.
72900         Rearrange to perform the new (below) run-test while $LIBS
72901         contains any acl-related library.  Set USE_ACL at the end.
72902         (gl_ACL_GET_FILE): New function.
72903
72904 2006-09-26  Eric Blake  <ebb9@byu.net>
72905
72906         * lib/verror.c: Include <config.h> unconditionally.
72907
72908 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72909
72910         * modules/clock-time (Maintainer): Add self.
72911         * modules/getlogin_r (Depends-on): Add extensions.
72912
72913 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72914
72915         * modules/clock-time: New module.
72916         * modules/nanosleep (Depends-on): Add clock-time.
72917         * modules/gethrxtime (Depends-on): Likewise.
72918         * modules/gettime (Depends-on): Likewise.
72919         * modules/settime (Depends-on): Likewise.
72920
72921         * modules/fts-lgpl: Depend on openat.
72922         * modules/mkancesdirs: Depend on savewd.
72923         * modules/mkdir-p: Likewise.
72924
72925 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72926
72927         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
72928
72929         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
72930         `gl_have_arbitrary_file_name_length_limit' to
72931         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
72932         actually works between configure runs.
72933
72934 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72935             Bruno Haible  <bruno@clisp.org>
72936
72937         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
72938
72939 2006-09-25  Jim Meyering  <jim@meyering.net>
72940
72941         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
72942         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
72943
72944 2006-09-25  Eric Blake  <ebb9@byu.net>
72945
72946         * gnulib-tool (func_import, func_create_testdir): Fix typos in
72947         exec's in 2006-09-18 patch when shuffling fds.
72948
72949 2006-09-25  Bruno Haible  <bruno@clisp.org>
72950
72951         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
72952         Reported by Jim Meyering.
72953
72954 2006-09-24  Jim Meyering  <jim@meyering.net>
72955
72956         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
72957         compare a pointer against a literal "0".  That caused failures with
72958         at least HP-UX's hpcc.
72959
72960 2006-09-22  Simon Josefsson  <jas@extundo.com>
72961
72962         * modules/gc-sha1:
72963         * modules/gc-md4:
72964         * modules/gc-hmac-sha1:
72965         * modules/gc-hmac-md5:
72966         * modules/gc-des:
72967         * modules/gc-arcfour: Distribute more files.
72968
72969 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72970
72971         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
72972         (gl_linked_iterator_from_to): Initialize struct completely.
72973         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
72974         (gl_tree_iterator_from_to): Likewise
72975         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
72976         * lib/gl_array_list.c [lint] (gl_array_iterator)
72977         (gl_array_iterator_from_to): Likewise.
72978         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
72979         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
72980         (gl_carray_iterator_from_to): Likewise.
72981
72982         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
72983         * lib/md4.c (md4_process_block): Remove unused variable.
72984         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
72985         parentheses for clarity.
72986
72987 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72988
72989         * modules/bison-i18n (Depends-on): Add gettext.
72990
72991 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72992
72993         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
72994         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72995         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
72996         also add missing comma that caused broken test.
72997         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
72998         stdlib.h, for `abort'.
72999         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73000         variables.
73001         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73002         include unistd.h if present, for `rmdir'.
73003         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73004         variables.
73005         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73006         in the process include standard headers for prototypes.
73007         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73008         gets declared on GNU/Linux.
73009         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73010         unistd.h, for `rmdir'.
73011         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73012
73013         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73014         always true.
73015         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73016
73017         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73018
73019 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73020
73021         * gnulib-tool (func_version): Create output all at once.  This
73022         may help avoid triggering unnecessary SIGPIPEs, and at any
73023         rate it doesn't hurt.
73024
73025 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73026             Bruno Haible  <bruno@clisp.org>
73027
73028         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73029         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73030         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73031
73032         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73033         (gl_FUNC_VASPRINTF): Invoke it.
73034
73035 2006-09-22  Bruno Haible  <bruno@clisp.org>
73036
73037         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73038         getloadavg.c as first argument.
73039
73040 2006-09-22  Bruno Haible  <bruno@clisp.org>
73041
73042         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73043         at the beginning of the gl_INIT macro.
73044         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73045         gl_GETLOADAVG.
73046
73047 2006-09-22  Bruno Haible  <bruno@clisp.org>
73048
73049         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73050         module.
73051         Suggested by Ralf Wildenhues.
73052
73053 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73054
73055         Import this patch from libc:
73056
73057         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73058
73059         * lib/regex_internal.c (re_string_reconstruct): Handle
73060         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73061         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73062         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73063         re_string_context_at.
73064
73065         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73066         now requires it.
73067         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73068         gl_REGEX now does it for us.
73069         (gl_REGEX): Add test taken from
73070         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73071
73072         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73073         Check that large offsets work.  Modernize Autoconf usages.
73074         Prefer "yes" to mean a good thing rather than a bad.
73075         Don't put "#define mkstemp" in config.h, as this might interfere
73076         with standard system headers that "#define mkstemp mkstemp64".
73077
73078         * modules/mkstemp (Depends-on): Add extensions, so that
73079         mkstemp is visible on some platforms.
73080         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73081         (Include): Change to "mkstemp.h" from <stdlib.h>.
73082         (Files): Add mkstemp.h.
73083
73084         * lib/mkstemp.h: New file, since some standard headers
73085         #define mkstemp.
73086         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73087         Include "mkstemp.h".
73088         Make the _LIBC code resemble glibc original more,
73089         e.g., use K&R style.
73090         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73091         (mkstemp): Remove, since mkstemp.h does this for us.
73092         * lib/stdlib--.h: Include mkstemp.h.
73093
73094         Import this patch from libc:
73095
73096         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73097
73098         * lib/tempname.c (__gen_tempname): Change attempts_min
73099         into a macro.  Use preprocessor to decide how to initialize
73100         attempts [Coverity CID 67].
73101
73102 2006-09-20  Bruno Haible  <bruno@clisp.org>
73103
73104         * lib/mkdtemp.c: Import from libc.
73105         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73106                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73107                 attempts_min into a macro.  Use preprocessor to decide how to
73108                 initialize attempts [Coverity CID 67].
73109         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73110                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73111                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73112
73113 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73114
73115         * gnulib-tool (func_exit): New function, to allow to pass the
73116         exit status portably through the trap.  Use everywhere.
73117         (--help, --version): Signal a write error.
73118         (trap): catch SIGPIPE, for write errors.
73119         Exit at the end of the trap, with the correct exit status.
73120
73121 2006-09-19  Karl Berry  <karl@gnu.org>
73122
73123         * doc/gnulib.texi: note about the license texinfo files.
73124
73125 2006-09-19  Eric Blake  <ebb9@byu.net>
73126
73127         * gnulib-tool: Avoid space-tab.
73128
73129 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73130
73131         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73132         that prevented coreutils 6.1 from building.  Problem reported
73133         by Petter Reinholdtsen.
73134
73135 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73136
73137         * gnulib-tool (avoidlist): Fix typo that broke options like
73138         --avoid=lock that are used by coreutils bootstrap.
73139
73140 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73141
73142         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73143         more systematically.
73144
73145 2006-09-18  Jim Meyering  <jim@meyering.net>
73146
73147         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73148
73149 2006-09-18  Bruno Haible  <bruno@clisp.org>
73150
73151         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73152
73153 2006-09-18  Bruno Haible  <bruno@clisp.org>
73154
73155         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73156         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73157         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73158         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73159         * m4/gettext.m4: Require autoconf >= 2.52.
73160         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73161         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73162         of gl_cv_header_inttypes_h.
73163
73164 2006-09-18  Bruno Haible  <bruno@clisp.org>
73165
73166         * lib/javaversion.c: Include configmake.h.
73167
73168 2006-09-18  Bruno Haible  <bruno@clisp.org>
73169
73170         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73171         avoid that the while loops be executed in a subshell.
73172
73173 2006-09-18  Bruno Haible  <bruno@clisp.org>
73174
73175         * MODULES.html.sh (func_module): Break long lines.
73176         Suggested by Bruce Korb <bkorb@gnu.org>.
73177
73178 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73179
73180         Speed up by a factor of 1.12.
73181         * gnulib-tool (nl): New variable.
73182         (func_import): Rewrite include directive extraction to only read each
73183         directive once.
73184
73185 2006-09-17  Bruno Haible  <bruno@clisp.org>
73186
73187         * modules/javaversion (Makefile.am): Remove DEFS setting.
73188         (Depends-on): Add configmake, for PKGDATADIR definition.
73189
73190 2006-09-17  Bruno Haible  <bruno@clisp.org>
73191
73192         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73193
73194 2006-09-17  Bruno Haible  <bruno@clisp.org>
73195
73196         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73197         (func_modules_transitive_closure, func_modules_add_dummy,
73198         func_modules_to_filelist, func_import, func_create_testdir,
73199         func_create_megatestdir, ...): Use it wherever possible.
73200         Suggested by Ralf Wildenhues.
73201
73202 2006-09-16  Karl Berry  <karl@gnu.org>
73203
73204         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73205         to avoid sectioning errors.
73206         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73207         [ifinfo]: blank line after @center-ed titles.
73208         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73209         Spell FSF address consistently with others.
73210         (These changes approved by rms.)
73211
73212 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73213
73214         Speed up by a factor of 1.61.
73215         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73216         already checked module names again.
73217
73218 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73219
73220         Speed up by a factor of 1.13.
73221         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73222         for new_files, and the input to func_add_or_update.
73223
73224 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73225
73226         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73227         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73228
73229 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73230
73231         * modules/mkancesdirs (Depends-on): Add fcntl.
73232         * modules/savewd: New file.
73233         * MODULES.html.sh (File system functions): Add savewd.
73234
73235         * modules/configmake (Makefile.am): Add support for the
73236         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73237
73238 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73239
73240         * m4/savewd.m4: New file.
73241
73242 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73243
73244         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73245         (dirchownmod): New arg FD.  All callers changed.
73246         Use FD rather than opening the directory ourself, as opening is
73247         now the caller's responsibility.
73248         * lib/dirchownmod.h: Likewise.
73249         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73250         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73251         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73252         (test_dir): Remove.
73253         (mkancesdirs): Return length of prefix of FILE that has already
73254         been made, or -2 if there is a child doing the work.  Redo
73255         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73256         ".", and treat ".." specially since it might stray back into
73257         already-created areas.  Use a subprocess if necessary.  New arg
73258         WD; all users changed.  MAKE_DIR function should now return 1
73259         if it creates a directory that is not readable.  Return -2 if
73260         a child process is spun off.
73261         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73262         Adjust signature to match code.
73263         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73264         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73265         all users changed.
73266         * lib/savewd.c, lib/savewd.h: New files.
73267
73268 2006-09-15  Jim Meyering  <jim@meyering.net>
73269
73270         * modules/rename-dest-slash: New module.
73271         * MODULES.html.sh (posix_compat): Add it here.
73272
73273         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73274
73275 2006-09-15  Jim Meyering  <jim@meyering.net>
73276
73277         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73278         file.
73279
73280         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73281
73282 2006-09-15  Jim Meyering  <jim@meyering.net>
73283
73284         * lib/rename-dest-slash.c (has_trailing_slash): Use
73285         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73286         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73287         test before testing whether SRC is a directory.
73288         Suggestions from Bruno Haible.
73289
73290         Avoid a warning about an unused variable.
73291         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73292         into the #ifdef block where it's used.
73293
73294         * lib/rename-dest-slash.c: New file.
73295
73296 2006-09-14  Bruno Haible  <bruno@clisp.org>
73297
73298         * lib/allocsa.c: Include <config.h> unconditionally.
73299         * lib/asnprintf.c: Likewise.
73300         * lib/asprintf.c: Likewise.
73301         * lib/c-strcasecmp.c: Likewise.
73302         * lib/c-strcasestr.c: Likewise.
73303         * lib/c-strncasecmp.c: Likewise.
73304         * lib/c-strstr.c: Likewise.
73305         * lib/classpath.c: Likewise.
73306         * lib/clean-temp.c: Likewise.
73307         * lib/concatpath.c: Likewise.
73308         * lib/copy-file.c: Likewise.
73309         * lib/csharpcomp.c: Likewise.
73310         * lib/csharpexec.c: Likewise.
73311         * lib/execute.c: Likewise.
73312         * lib/fatal-signal.c: Likewise.
73313         * lib/findprog.c: Likewise.
73314         * lib/fwriteerror.c: Likewise.
73315         * lib/gl_array_list.c: Likewise.
73316         * lib/gl_array_oset.c: Likewise.
73317         * lib/gl_avltree_list.c: Likewise.
73318         * lib/gl_avltree_oset.c: Likewise.
73319         * lib/gl_avltreehash_list.c: Likewise.
73320         * lib/gl_carray_list.c: Likewise.
73321         * lib/gl_linked_list.c: Likewise.
73322         * lib/gl_linkedhash_list.c: Likewise.
73323         * lib/gl_list.c: Likewise.
73324         * lib/gl_oset.c: Likewise.
73325         * lib/gl_rbtree_list.c: Likewise.
73326         * lib/gl_rbtree_oset.c: Likewise.
73327         * lib/gl_rbtreehash_list.c: Likewise.
73328         * lib/imaxabs.c: Likewise.
73329         * lib/imaxdiv.c: Likewise.
73330         * lib/javacomp.c: Likewise.
73331         * lib/javaexec.c: Likewise.
73332         * lib/javaversion.c: Likewise.
73333         * lib/linebreak.c: Likewise.
73334         * lib/localcharset.c: Likewise.
73335         * lib/lock.c: Likewise.
73336         * lib/mbchar.c: Likewise.
73337         * lib/mbswidth.c: Likewise.
73338         * lib/mkdtemp.c: Likewise.
73339         * lib/pipe.c: Likewise.
73340         * lib/printf-args.c: Likewise.
73341         * lib/printf-parse.c: Likewise.
73342         * lib/progname.c: Likewise.
73343         * lib/progreloc.c: Likewise.
73344         * lib/readlink.c: Likewise.
73345         * lib/sh-quote.c: Likewise.
73346         * lib/stpcpy.c: Likewise.
73347         * lib/stpncpy.c: Likewise.
73348         * lib/strcasecmp.c: Likewise.
73349         * lib/strcasestr.c: Likewise.
73350         * lib/strcspn.c: Likewise.
73351         * lib/striconv.c: Likewise.
73352         * lib/strncasecmp.c: Likewise.
73353         * lib/strnlen1.c: Likewise.
73354         * lib/strstr.c: Likewise.
73355         * lib/strtok_r.c: Likewise.
73356         * lib/tls.c: Likewise.
73357         * lib/tmpdir.c: Likewise.
73358         * lib/unicodeio.c: Likewise.
73359         * lib/unsetenv.c: Likewise.
73360         * lib/vasnprintf.c: Likewise.
73361         * lib/vasprintf.c: Likewise.
73362         * lib/wait-process.c: Likewise.
73363         * lib/xallocsa.c: Likewise.
73364         * lib/xsetenv.c: Likewise.
73365         * lib/xstriconv.c: Likewise.
73366
73367 2006-09-13  Simon Josefsson  <jas@extundo.com>
73368
73369         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73370         that internally, suggested by Ralf Wildenhues
73371         <Ralf.Wildenhues@gmx.de>.
73372
73373 2006-09-13  Simon Josefsson  <jas@extundo.com>
73374
73375         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73376         @LIBOBJS@.
73377         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73378
73379 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73380
73381         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73382         longer worry about uses that don't define HAVE_CONFIG_H.
73383         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73384         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73385         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73386         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73387         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73388         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73389         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73390         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73391         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73392         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73393         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73394         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73395         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73396         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73397         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73398         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73399         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73400         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73401         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73402         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73403         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73404         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73405         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73406         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73407         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73408         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73409         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73410         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73411         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73412         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73413         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73414         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73415         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73416         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73417         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73418         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73419         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73420         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73421         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73422         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73423         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73424         Likewise.
73425
73426 2006-09-13  Eric Blake  <ebb9@byu.net>
73427
73428         * lib/getopt.c: Fix typo in last commit.
73429
73430 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73431
73432         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73433         dgettext.
73434
73435 2006-09-12  Jim Meyering  <jim@meyering.net>
73436
73437         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73438         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73439         Reported by Nelson H. F. Beebe.
73440
73441 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73442
73443         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73444         program_invocation_name and program_invocation_short_name are
73445         initialized.
73446         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73447         and program_invocation_short_name to argp.h, so they are visible
73448         to user programs.
73449         * lib/argp.h: Likewise
73450
73451 2006-09-10  Bruno Haible  <bruno@clisp.org>
73452
73453         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73454         m4/inttypes_h.m4, m4/uintmax_t.m4.
73455
73456 2006-09-10  Bruno Haible  <bruno@clisp.org>
73457
73458         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73459         gl_AC_TYPE_UINTMAX_T.
73460
73461 2006-09-10  Bruno Haible  <bruno@clisp.org>
73462
73463         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73464
73465 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73466
73467         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73468         convention.  Text proposed by Bruno Haible.
73469         (struct argp_option): Document the use of N_() wrappers.
73470
73471         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73472         '\v', and translate the two parts separately, instead of feeding
73473         the whole string to gettext.  This allows to exclude
73474         '\v' from the strings visible to the translator by writing doc
73475         strings as N_("..") "\v" N_("..").
73476
73477 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73478
73479         * config/srclist.txt: Undo latest change; the bug was fixed.
73480
73481 2006-09-09  Bruno Haible  <bruno@clisp.org>
73482
73483         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73484         assignments if building a library without libtool.
73485         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73486         in func_emit_lib_Makefile_am.
73487         (func_import): When building a static library libfoo.a, arrange to
73488         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73489         (func_create_testdir): Likewise.
73490         * modules/gc (configure.ac, Makefile.am): If building statically,
73491         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73492         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73493         * modules/striconv (configure.ac, Makefile.am): Likewise.
73494         Based on a suggestion by Ralf Wildenhues.
73495
73496 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73497
73498         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73499         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73500         Also:
73501
73502         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73503         Add year_2050_test to catch glibc bug 2821
73504         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73505
73506         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73507         Prefer #ifdef to #if.
73508
73509         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73510         Return from 'main' instead of calling 'exit'.
73511
73512 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73513
73514         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73515         returned the maximum time_t value rather than (time_t) -1.
73516         Problem originally reported by William Bardwell
73517         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73518
73519         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73520         Moved to here ...
73521         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73522         ... from here.
73523
73524 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73525
73526         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73527         2821 is fixed.
73528
73529 2006-09-08  Jim Meyering  <jim@meyering.net>
73530
73531         Don't make generated files read-only.  That would bother too many
73532         people.  However, do retain the ability to work when targets are
73533         read-only: remove the destination and temporary files before writing
73534         them (when generated via sed or echo), or by using the -f option for
73535         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73536         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73537         * modules/byteswap, modules/configmake, modules/fcntl:
73538         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73539         * modules/localcharset, modules/netinet_in, modules/poll:
73540         * modules/stdbool, modules/stdint, modules/sys_select:
73541         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73542
73543 2006-09-08  Jim Meyering  <jim@meyering.net>
73544
73545         Avoid new build failure on FreeBSD 6.0.
73546         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73547         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73548         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73549
73550 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73551
73552         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73553
73554 2006-09-07  Jim Meyering  <jim@meyering.net>
73555
73556         Fix global typo in last change: use chmod u-w, not chmod u-x.
73557         Spotted by Paul Eggert and Bruce Korb.
73558         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73559         * modules/byteswap, modules/configmake, modules/fcntl:
73560         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73561         * modules/localcharset, modules/netinet_in, modules/poll:
73562         * modules/stdbool, modules/stdint, modules/sys_select:
73563         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73564
73565 2006-09-06  Jim Meyering  <jim@meyering.net>
73566
73567         Make generated files be read-only.
73568         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73569         Ensure that each generated file is now read-only.
73570         * modules/argz: Likewise.
73571         * modules/arpa_inet: Likewise.
73572         * modules/byteswap: Likewise.
73573         * modules/configmake: Likewise.
73574         * modules/fcntl: Likewise.
73575         * modules/fnmatch: Likewise.
73576         * modules/getopt: Likewise.
73577         * modules/glob: Likewise.
73578         * modules/inttypes: Likewise.
73579         * modules/netinet_in: Likewise.
73580         * modules/poll: Likewise.
73581         * modules/stdbool: Likewise.
73582         * modules/stdint: Likewise.
73583         * modules/sys_select: Likewise.
73584         * modules/sys_socket: Likewise.
73585         * modules/sys_stat: Likewise.
73586         * modules/sysexits: Likewise.
73587         * modules/localcharset: Same as above, but continue using temporary
73588         file named "t-$@" (why different?) rather than the "$@-t" used
73589         everywhere else.
73590
73591         * modules/sysexits (Makefile.am): Replace literal occurrences
73592         of "sysexit.h" more readable, and more consistent, "$@".
73593
73594 2006-09-06  Bruno Haible  <bruno@clisp.org>
73595
73596         * modules/striconv: New file.
73597         * modules/xstriconv: New file.
73598         * MODULES.html.sh (Internationalization functions): Add striconv,
73599         xstriconv.
73600
73601 2006-09-06  Bruno Haible  <bruno@clisp.org>
73602
73603         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73604         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73605         not using libtool correctly.
73606
73607 2006-09-06  Bruno Haible  <bruno@clisp.org>
73608
73609         * lib/striconv.h: New file.
73610         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73611         iconvstring.c.
73612         * lib/xstriconv.h: New file.
73613         * lib/xstriconv.c: New file.
73614
73615 2006-09-06  Bruno Haible  <bruno@clisp.org>
73616
73617         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73618         lib_..._LDFLAGS.
73619
73620 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73621
73622         * lib/argz_.h: Sync from Libtool.
73623
73624         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73625                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73626
73627         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73628
73629 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73630
73631         * modules/trim: New file.
73632
73633 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73634
73635         * lib/trim.h: New file.
73636         * lib/trim.c: New file.
73637
73638 2006-09-05  Bruno Haible  <bruno@clisp.org>
73639
73640         * MODULES.html.sh (String handling): Add trim.
73641
73642 2006-09-04  Karl Berry  <karl@gnu.org>
73643
73644         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73645         until next release.
73646
73647 2006-09-03  Bruno Haible  <bruno@clisp.org>
73648
73649         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73650         correctly.
73651
73652 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73653
73654         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73655         not gl_GETLOADAVG.  Omit unneeded semicolons.
73656         Problems reported by Ralf Wildenhues in
73657         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73658         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73659         at the end, which is the usual gnulib style.
73660
73661         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73662         of doing all the work ourselves.
73663         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73664         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73665
73666 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73667
73668         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73669         Problem reported by Ralf Wildenhues in
73670         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73671
73672         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73673         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73674
73675 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73676
73677         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73678         yesterday's patch by changing test -n to test -z.
73679
73680 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73681
73682         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73683         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73684         the former is now obsolescent.
73685
73686         * modules/chdir-long (Depends-on): Add fcntl.
73687
73688 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73689
73690         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73691         obsolescent, and programs should use gnulib instead.
73692         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73693         but with prefixes changed.
73694
73695 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73696
73697         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73698         or stdbool.h, because they might not exist while configuring.
73699
73700         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73701         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73702         does that for us.
73703         (O_DIRECTORY): Remove.
73704
73705 2006-08-31  Eric Blake  <ebb9@byu.net>
73706
73707         * gnulib-tool: Don't let emacs change spaces to TAB.
73708
73709 2006-08-31  Bruno Haible  <bruno@clisp.org>
73710
73711         * gnulib-tool: When calling func_import more than once, do it in a
73712         subshell.
73713         Reported by Eric Blake <ebb9@byu.net>.
73714
73715 2006-08-31  Bruno Haible  <bruno@clisp.org>
73716
73717         * gnulib-tool (nl): Remove variable.
73718         (sed_transform_lib_file): Use more robust test for config-h module.
73719         (func_import): Fix typo in 2006-08-25 patch.
73720
73721 2006-08-31  Bruno Haible  <bruno@clisp.org>
73722
73723         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73724         specified, augment Makefile.am variables instead of assigning them.
73725
73726 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73727
73728         Work around a bug in both the Linux and SunOS 64-bit kernels:
73729         nanosleep mishandles sleeps for longer than 2**31 seconds.
73730         Problem reported by Frank v Waveren in
73731         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73732         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73733         Check for nanosleep bug.
73734         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73735
73736 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73737
73738         Work around a bug in both the Linux and SunOS 64-bit kernels:
73739         nanosleep mishandles sleeps for longer than 2**31 seconds.
73740         Problem reported by Frank v Waveren in
73741         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73742         * lib/nanosleep.c (BILLION): New constant.
73743         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73744         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73745         implementation.
73746
73747 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73748
73749         * modules/nanosleep (Depends-on): Add gettime.
73750
73751 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73752         and Simon Josefsson  <jas@extundo.com>
73753         and Oskar Liljeblad  <oskar@osk.mine.nu>
73754
73755         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73756         * gnulib-tool (func_import): New license type 'unmodifiable license
73757         text'.
73758         * modules/fdl: Use it.  Longer description.
73759         * module/gpl, module/lgpl: New files.
73760
73761 2006-08-30  Jim Meyering  <jim@meyering.net>
73762
73763         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73764         shadowing the parameter.
73765
73766 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73767
73768         Sync from Libtool:
73769
73770         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73771
73772         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73773         sharing with gnulib.  Report by Eric Blake.
73774
73775 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         * modules/isapipe: New file.
73778         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73779
73780 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73781
73782         * modules/configmake (Makefile.am): Add a comment, and omit
73783         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73784         by Bruno Haible.
73785
73786 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73787
73788         * m4/isapipe.m4: New file.
73789
73790 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73791
73792         * lib/isapipe.c, lib/isapipe.h: New files.
73793
73794 2006-08-29  Jim Meyering  <jim@meyering.net>
73795
73796         * modules/configmake (Makefile.am): Make configmake.h depend on
73797         Makefile.  Otherwise, a stale configmake.h could hang around.
73798
73799 2006-08-29  Eric Blake  <ebb9@byu.net>
73800
73801         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73802         resolution of upstream bug 3044.
73803
73804 2006-08-29  Bruno Haible  <bruno@clisp.org>
73805
73806         * modules/localcharset (Depends-on): Add configmake.
73807         (Makefile.am): Remove setting of LIBDIR through DEFS.
73808
73809 2006-08-29  Bruno Haible  <bruno@clisp.org>
73810
73811         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73812         defined.
73813
73814 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73815
73816         * modules/fcntl: New file.
73817         * modules/chdir-safer (Depends-on): Add fcntl.
73818         * modules/fts: Likewise.
73819         * modules/mkdir-p: Likewise.
73820
73821         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73822         This undoes the most recent change, since we're now addressing the
73823         problem in a different way.
73824
73825         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73826         into output, since the output might be called Makefile.am even
73827         if $makefile_name is something different.
73828         (func_import): Use $makefile_am rather than
73829         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73830         empty.
73831
73832         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73833
73834 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73835
73836         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73837         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73838         recent change to stdint.m4, since we're now addressing the problem in a
73839         different way.
73840
73841 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73842
73843         * m4/fcntl_h.m4: New file.
73844
73845 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73846
73847         * lib/fcntl_.h: New file.
73848         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73849         the fcntl module.
73850         * lib/dirchownmod.c: Likewise.
73851         * lib/fts.c: Likewise.
73852
73853         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73854         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73855         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73856         just before including <inttypes.h>, to avoid circular inclusion.
73857
73858 2006-08-28  Jim Meyering  <jim@meyering.net>
73859
73860         * doc/visibility.texi: Actually read and correct the grammar of the
73861         sentence affected by yesterday's change.
73862
73863 2006-08-28  Eric Blake  <ebb9@byu.net>
73864
73865         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73866         needs wrapper.
73867
73868 2006-08-28  Eric Blake  <ebb9@byu.net>
73869
73870         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73871
73872 2006-08-28  Eric Blake  <ebb9@byu.net>
73873
73874         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73875
73876 2006-08-28  Bruno Haible  <bruno@clisp.org>
73877
73878         * modules/c-strstr: New file, from GNU gettext.
73879         * MODULES.html.sh (String handling): Add c-strstr.
73880
73881 2006-08-28  Bruno Haible  <bruno@clisp.org>
73882
73883         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73884         macros.
73885         Reported by Eric Blake.
73886
73887 2006-08-28  Bruno Haible  <bruno@clisp.org>
73888
73889         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73890         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73891         * lib/vasprintf.c: Include errno.h, limits.h.
73892         (EOVERFLOW): New fallback definition.
73893         (vasprintf): Test here whether the string length is > INT_MAX.
73894         * lib/vsnprintf.c: Include errno.h, limits.h.
73895         (EOVERFLOW): New fallback definition.
73896         (vsnprintf): Fix bug when generated string was too long for the buffer.
73897         Test here whether the string length is > INT_MAX.
73898
73899 2006-08-28  Bruno Haible  <bruno@clisp.org>
73900
73901         * lib/inttypes_.h (SCNX*): Remove definitions.
73902         Reported by Eric Blake.
73903
73904 2006-08-28  Bruno Haible  <bruno@clisp.org>
73905
73906         * lib/c-strstr.h: New file, from GNU gettext.
73907         * lib/c-strstr.c: New file, from GNU gettext.
73908
73909 2006-08-28  Bruno Haible  <bruno@clisp.org>
73910
73911         * gnulib-tool: Reorder some statements.
73912
73913 2006-08-28  Bruno Haible  <bruno@clisp.org>
73914
73915         * gnulib-tool: New option --makefile-name.
73916         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73917         $makefile_name.
73918         (func_import): Write $makefile_name to the cache file, and read it from
73919         there unless explicitly specified. Use $makefile_name as file name
73920         instead of Makefile.am. Adjust the recommendations accordingly.
73921
73922 2006-08-28  Bruno Haible  <bruno@clisp.org>
73923
73924         * gnulib-tool (func_verify_module): Check against misapplying patch.
73925
73926 2006-08-28  Bruno Haible  <bruno@clisp.org>
73927
73928         * gnulib-tool (func_relativize, func_relconcat): New functions.
73929         Give an error if --local-dir is given with --update.
73930         Remove trailing slashes from $local_gnulib_dir.
73931         (func_import): Store the relativized $local_gnulib_dir in
73932         gnulib-cache.m4, and read it from there if not specified explicitly.
73933
73934 2006-08-28  Bruno Haible  <bruno@clisp.org>
73935
73936         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
73937         is the current directory. Respect also $local_gnulib_dir.
73938
73939 2006-08-28  Bruno Haible  <bruno@clisp.org>
73940             Simon Josefsson  <jas@extundo.com>
73941
73942         BeOS portability.
73943         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
73944
73945 2006-08-27  Jim Meyering  <jim@meyering.net>
73946
73947         * doc/visibility.texi: Remove duplicate word: "pointer".
73948
73949 2006-08-26  Bruno Haible  <bruno@clisp.org>
73950
73951         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
73952         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
73953         (Makefile.am): Create inttypes.h from inttypes_.h.
73954         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
73955
73956         * modules/imaxabs: New file.
73957
73958         * modules/imaxdiv: New file.
73959
73960 2006-08-26  Bruno Haible  <bruno@clisp.org>
73961
73962         * m4/inttypes.m4: New file.
73963         * m4/_inttypes_h.m4: Remove file.
73964         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
73965         PRI_MACROS_BROKEN.
73966         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
73967
73968         * m4/imaxabs.m4: New file.
73969
73970         * m4/imaxdiv.m4: New file.
73971
73972 2006-08-26  Bruno Haible  <bruno@clisp.org>
73973
73974         * lib/inttypes_.h: New file.
73975         * lib/inttypes.h: Remove file.
73976         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
73977
73978         * lib/imaxabs.c: New file.
73979
73980         * lib/imaxdiv.c: New file.
73981
73982 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73983
73984         New config-h module, so that "make" output needn't be cluttered
73985         by -DHAVE_CONFIG_H.
73986         * MODULES.html.sh (Support for building libraries and executables):
73987         Add config-h.
73988         * modules/config-h: New file.
73989         * gnulib-tool (nl, sed_transform_lib_file): New vars.
73990         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
73991         the config-h module is used.
73992
73993         New configmake module, so that "make" output needn't be cluttered
73994         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
73995         * MODULES.html.sh (Support for building libraries and executables):
73996         Add configmake.
73997         * modules/configmake: New file.
73998
73999 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74000
74001         * m4/config-h.m4: New file.
74002
74003 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74004
74005         * config/srclist.txt: Add elisp-comp.
74006
74007 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74008
74009         * MODULES.html.sh (Support for building libraries and executables):
74010         Add elisp-comp.
74011         * build-aux/elisp-comp: New file.
74012         * modules/elisp-comp: New file.
74013
74014 2006-08-24  Bruno Haible  <bruno@clisp.org>
74015
74016         * gnulib-tool (func_create_testdir): Use non-default values of
74017         sourcebase and m4base.
74018
74019 2006-08-24  Bruno Haible  <bruno@clisp.org>
74020
74021         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74022         HTML structure.
74023
74024 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74025
74026         * modules/openat (Depends-on): Add lchown.
74027
74028 2006-08-23  Bruno Haible  <bruno@clisp.org>
74029
74030         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74031         of gl_LOCK_EARLY instead of gl_LOCK.
74032
74033 2006-08-23  Bruno Haible  <bruno@clisp.org>
74034
74035         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74036         on OSF/1 to no.
74037         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74038
74039 2006-08-23  Bruno Haible  <bruno@clisp.org>
74040
74041         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74042         as unusable.
74043
74044         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74045         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74046         (gl_LOCK): New macro.
74047
74048 2006-08-22  Simon Josefsson  <jas@extundo.com>
74049
74050         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74051         to md5 module.
74052
74053 2006-08-22  Simon Josefsson  <jas@extundo.com>
74054
74055         * MODULES.html.sh: Add "Support for maintaining and release
74056         projects".
74057
74058         * build-aux/gnupload: New file, from coreutils.
74059
74060 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         Avoid the need for AC_LIBSOURCES in m4 macros.
74063         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74064         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74065         * modules/check-version (EXTRA_DIST): Add check-version.h.
74066         * modules/crc (EXTRA_DIST): Add crc.h.
74067         * modules/des (EXTRA_DIST): Add des.h.
74068         * modules/gc (EXTRA_DIST): Add gc.h.
74069         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74070         * modules/getline (EXTRA_DIST): Add getline.h.
74071         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74072         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74073         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74074         * modules/md2 (EXTRA_DIST): Add md2.h.
74075         * modules/md4 (EXTRA_DIST): Add md4.h.
74076         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74077         * modules/read-file (EXTRA_DIST): Add read-file.h.
74078         * modules/readline (EXTRA_DIST): Add readline.h.
74079         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74080         rijndael-api-fst.h.
74081
74082 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74083
74084         * m4/rijndael.m4 (gl_ARCFOUR):
74085         * m4/arctwo.m4 (gl_ARCTWO):
74086         * m4/check-version.m4 (gl_CHECK_VERSION):
74087         * m4/crc.m4 (gl_CRC):
74088         * m4/des.m4 (gl_DES):
74089         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74090         * m4/gc.m4 (gl_GC):
74091         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74092         * m4/getline.m4 (gl_FUNC_GETLINE):
74093         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74094         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74095         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74096         * m4/md2.m4 (gl_MD2):
74097         * m4/md4.m4 (gl_MD4):
74098         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74099         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74100         * m4/readline.m4 (gl_FUNC_READLINE):
74101         * m4/rijndael.m4 (gl_RIJNDAEL):
74102         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74103         to get the necessary .h files and whatnot.
74104
74105 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74106
74107         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74108         gnulib rather than the other way around.
74109         * config/srclistvars.sh (COREUTILS): Remove.
74110
74111 2006-08-22  Jim Meyering  <jim@meyering.net>
74112
74113         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74114
74115         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74116
74117 2006-08-22  Eric Blake  <ebb9@byu.net>
74118
74119         * modules/regexprops-generic: New file.
74120         * MODULES.html.sh (Support for building documentation): List it.
74121
74122 2006-08-22  Eric Blake  <ebb9@byu.net>
74123
74124         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74125         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74126         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74127         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74128
74129 2006-08-22  Bruno Haible  <bruno@clisp.org>
74130
74131         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74132         and lib_LTLIBRARIES like the other lib_* variables.
74133
74134 2006-08-22  Bruno Haible  <bruno@clisp.org>
74135
74136         * build-aux/x-to-1.in: New file, from GNU gettext.
74137
74138 2006-08-22  Bruno Haible  <bruno@clisp.org>
74139
74140         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74141         <utmpx.h> exists.
74142
74143 2006-08-22  Bruno Haible  <bruno@clisp.org>
74144
74145         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74146         <utmpx.h> exists.
74147
74148 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74149
74150         BeOS portability.
74151         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74152         exist.
74153         Problem reported by Bruno Haible.
74154
74155 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74156
74157         Avoid the need for AC_LIBSOURCES in m4 macros.
74158         * modules/acl (EXTRA_DIST): Add acl.h.
74159         * modules/argmatch (Files): Add m4/argmatch.m4.
74160         (configure.ac): Add gl_ARGMATCH.
74161         (EXTRA_DIST): Renamed from lib_SOURCES, for
74162         consistency with the other modules.  Remove argmatch.c.
74163         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74164         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74165         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74166         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74167         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74168         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74169         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74170         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74171         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74172         * modules/closeout (EXTRA_DIST): Add closeout.h.
74173         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74174         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74175         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74176         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74177         dirname.h; remove basename.c and stripslash.c.
74178         * modules/exclude (EXTRA_DIST): Add exclude.h.
74179         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74180         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74181         * modules/file-type (EXTRA_DIST): Add file-type.h.
74182         * modules/filemode (EXTRA_DIST): Add filemode.h.
74183         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74184         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74185         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74186         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74187         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74188         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74189         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74190         * modules/getdate (EXTRA_DIST): Add getdate.c.
74191         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74192         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74193         * modules/getpass (EXTRA_DIST): Add getpass.h.
74194         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74195         * modules/group-member (EXTRA_DIST): Add group-member.h.
74196         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74197         * modules/hash (EXTRA_DIST): Add hash.h.
74198         * modules/human (EXTRA_DIST): Add human.h.
74199         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74200         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74201         * modules/lchown (EXTRA_DIST): Add lchown.h.
74202         * modules/long-options (EXTRA_DIST): Add long-options.h.
74203         * modules/lstat (EXTRA_DIST): Add lstat.h.
74204         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74205         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74206         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74207         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74208         * modules/memxor (EXTRA_DIST): Add memxor.h.
74209         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74210         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74211         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74212         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74213         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74214         * modules/physmem (EXTRA_DIST): Add physmem.h.
74215         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74216         * modules/posixver (EXTRA_DIST): Add posixver.h.
74217         * modules/quote (EXTRA_DIST): Add quote.h.
74218         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74219         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74220         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74221         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74222         regex_internal.h regexec.c.
74223         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74224         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74225         * modules/same (EXTRA_DIST): Add same.h.
74226         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74227         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74228         * modules/savedir (EXTRA_DIST): Add savedir.h.
74229         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74230         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74231         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74232         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74233         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74234         * modules/strdup (EXTRA_DIST): Add strdup.h.
74235         * modules/strftime (EXTRA_DIST): Add strftime.h.
74236         * modules/strndup (EXTRA_DIST): Add strndup.h.
74237         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74238         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74239         * modules/time_r (EXTRA_DIST): Add time_r.h.
74240         * modules/timespec (EXTRA_DIST): Add timespec.h.
74241         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74242         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74243         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74244         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74245         * modules/userspec (EXTRA_DIST): Add userspec.h.
74246         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74247         * modules/utimens (EXTRA_DIST): Add utimens.h.
74248         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74249         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74250         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74251         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74252         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74253         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74254         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74255         * modules/yesno (EXTRA_DIST): Add yesno.h.
74256
74257 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74258
74259         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74260
74261         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74262         * m4/dev-ino.m4, same-inode.m4: Remove.
74263
74264         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74265         * m4/acl.m4 (AC_FUNC_ACL):
74266         * m4/backupfile.m4 (gl_BACKUPFILE):
74267         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74268         * m4/canon-host.m4 (gl_CANON_HOST):
74269         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74270         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74271         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74272         * m4/cloexec.m4 (gl_CLOEXEC):
74273         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74274         * m4/closeout.m4 (gl_CLOSEOUT):
74275         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74276         * m4/dirname.m4 (gl_DIRNAME):
74277         * m4/exclude.m4 (gl_EXCLUDE):
74278         * m4/exitfail.m4 (gl_EXITFAIL):
74279         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74280         * m4/file-type.m4 (gl_FILE_TYPE):
74281         * m4/filemode.m4 (gl_FILEMODE):
74282         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74283         * m4/fpending.m4 (gl_FUNC_FPENDING):
74284         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74285         * m4/fts.m4 (gl_FUNC_FTS):
74286         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74287         * m4/getdate.m4 (gl_GETDATE):
74288         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74289         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74290         * m4/getpass.m4 (gl_FUNC_GETPASS):
74291         * m4/gettime.m4 (gl_GETTIME):
74292         * m4/getugroups.m4 (gl_GETUGROUPS):
74293         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74294         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74295         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74296         * m4/hash.m4 (gl_HASH):
74297         * m4/idcache.m4 (gl_IDCACHE):
74298         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74299         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74300         * m4/long-options.m4 (gl_LONG_OPTIONS):
74301         * m4/lstat.m4 (gl_FUNC_LSTAT):
74302         * m4/md5.m4 (gl_MD5):
74303         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74304         * m4/memcoll.m4 (gl_MEMCOLL):
74305         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74306         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74307         * m4/memxor.m4 (gl_MEMXOR):
74308         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74309         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74310         * m4/modechange.m4 (gl_MODECHANGE):
74311         * m4/mountlist.m4 (gl_MOUNTLIST):
74312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74313         * m4/openat.m4 (gl_FUNC_OPENAT):
74314         * m4/pathmax.m4 (gl_PATHMAX):
74315         * m4/physmem.m4 (gl_PHYSMEM):
74316         * m4/posixtm.m4 (gl_POSIXTM):
74317         * m4/posixver.m4 (gl_POSIXVER):
74318         * m4/quote.m4 (gl_QUOTE):
74319         * m4/quotearg.m4 (gl_QUOTEARG):
74320         * m4/readtokens.m4 (gl_READTOKENS):
74321         * m4/readutmp.m4 (gl_READUTMP):
74322         * m4/regex.m4 (gl_REGEX):
74323         * m4/safe-read.m4 (gl_SAFE_READ):
74324         * m4/safe-write.m4 (gl_SAFE_WRITE):
74325         * m4/same.m4 (gl_SAME):
74326         * m4/save-cwd.m4 (gl_SAVE_CWD):
74327         * m4/savedir.m4 (gl_SAVEDIR):
74328         * m4/settime.m4 (gl_SETTIME):
74329         * m4/sha1.m4 (gl_SHA1):
74330         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74331         * m4/stat-macros.m4 (gl_STAT_MACROS):
74332         * m4/stat-time.m4 (gl_STAT_TIME):
74333         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74334         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74335         * m4/strdup.m4 (gl_FUNC_STRDUP):
74336         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74337         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74338         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74339         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74340         * m4/time_r.m4 (gl_TIME_R):
74341         * m4/timespec.m4 (gl_TIMESPEC):
74342         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74343         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74344         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74345         * m4/userspec.m4 (gl_USERSPEC):
74346         * m4/utimecmp.m4 (gl_UTIMECMP):
74347         * m4/utimens.m4 (gl_UTIMENS):
74348         * m4/xalloc.m4 (gl_XALLOC):
74349         * m4/xgetcwd.m4 (gl_XGETCWD):
74350         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74351         * m4/xreadlink.m4 (gl_XREADLINK):
74352         * m4/xstrtod.m4 (gl_XSTRTOD):
74353         * m4/yesno.m4 (gl_YESNO):
74354         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74355         to get the necessary .h files and whatnot.
74356
74357 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74358             Bruno Haible  <bruno@clisp.org>
74359
74360         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74361         /bin/sh understanding of '!' conditional negation.
74362
74363 2006-08-21  Jim Meyering  <jim@meyering.net>
74364
74365         * modules/openat (Depends-on): Really alphabetize.
74366
74367         * modules/acl (Depends-on): Add error and quote.
74368
74369         * check-module (find_included_lib_files): Add at-func.c to the
74370         ok-to-include-more-than-once white list.
74371
74372         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74373
74374 2006-08-21  Bruno Haible  <bruno@clisp.org>
74375
74376         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74377         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74378         Reported by Martin Lambers <marlam@marlam.de>.
74379
74380 2006-08-21  Bruno Haible  <bruno@clisp.org>
74381
74382         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74383         specify an installation location, don't emit a noinst_LIBRARIES or
74384         noinst_LTLIBRARIES assignment.
74385
74386 2006-08-21  Bruno Haible  <bruno@clisp.org>
74387
74388         BeOS portability.
74389         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74390         BeOS has mbrtowc() but no <wctype.h>.
74391
74392 2006-08-21  Bruno Haible  <bruno@clisp.org>
74393
74394         BeOS portability.
74395         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74396         exist.
74397
74398 2006-08-21  Bruno Haible  <bruno@clisp.org>
74399
74400         BeOS portability.
74401         * lib/mbchar.h: Include <wctype.h> only if it exists.
74402
74403 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74404
74405         Remove files that are no longer needed by their respective modules.
74406         * m4/obstack.m4: Remove.
74407         * m4/strerror_r.m4: Remove.
74408         * m4/uint32_t.m4: Remove.
74409         * m4/uintptr_t.m4: Remove.
74410         * m4/ullong_max.m4: Remove.
74411         * m4/xstrtoimax.m4: Remove.
74412         * m4/xstrtoumax.m4: Remove.
74413
74414         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74415         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74416         dependencies now capture this.
74417
74418         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74419         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74420         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74421         * m4/human.m4 (gl_HUMAN): Likewise.
74422         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74423         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74424
74425         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74426
74427         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74428         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74429         stdint.
74430         * m4/human.m4 (gl_HUMAN): Likewise.
74431         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74432         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74433         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74434         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74435         * m4/xstrtol (gl_XSTRTOL): Likewise.
74436
74437         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74438         AC_TYPE_LONG_LONG_INT.
74439         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74440         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74441         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74442         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74443
74444         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74445         on stdbool.
74446
74447         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74448         (gl_PREREQ_XSTRTOUL): Remove.
74449
74450         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74451
74452         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74453         mode.
74454
74455 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         Add and change modules to make it easier for coreutils to use
74458         gnulib-tool.
74459         * modules/backupfile (Files): Remove m4/d-ino.m4.
74460         (Depends-on): Add d-ino.
74461         * modules/cycle-check (Depends-on): Add stdint.
74462         (lib_SOURCES): Add cycle-check.h.
74463         * modules/d-ino: New module.
74464         * modules/d-type: New module.
74465         * modules/error (Files): Remove m4/strerror_r.m4.
74466         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74467         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74468         m4/inttypes_h.m4, m4/uintmax_t.m4.
74469         (Depends-on): Add stdint.
74470         (lib_SOURCES): Add fsusage.h.
74471         * modules/getcwd (Files): Remove d-ino.m4.
74472         (Depends-on): Add d-ino.
74473         * modules/getndelim2 (Depends-on): Add stdint.
74474         * modules/glob (Files): Remove m4/d-type.m4.
74475         (Depends-on): Add d-type.
74476         * modules/host-os: New module.
74477         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74478         m4/inttypes_h.m4, m4/uintmax_t.m4.
74479         * Depends-on: Add stdint.
74480         (lib_SOURCES): Add human.h.
74481         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74482         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74483         m4/uintmax_t.m4, m4/ulonglong.m4.
74484         (Depends-on): Add stdint.
74485         (EXTRA_DIST): Add inttostr.h.
74486         * modules/lchmod: New module.
74487         * modules/link-follow: New module.
74488         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74489         (Depends-on): Add lchmod.
74490         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74491         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74492         (Depends-on): Add stdint.
74493         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74494         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74495         (Depends-on): Add stdint.
74496         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74497         * modules/perl: New module.
74498         * modules/regex (Depends-on): Add stdint.
74499         * modules/rmdir-errno: New module.
74500         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74501         m4/intmax_t.m4.
74502         (Depends-on): Add stdint.
74503         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74504         m4/uintmax_t.m4.
74505         (Depends-on): Add stdint.
74506         * modules/unlink-busy: New module.
74507         * modules/utimecmp (Depends-on): Add stdint.
74508         * modules/uptime: New module.
74509         * modules/winsz-ioctl: New module.
74510         * modules/winsz-termios: New module.
74511         * modules/xnanosleep (Depends-on): Add nanosleep.
74512         * modules/ullong_max: Remove.
74513         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74514         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74515         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74516         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74517         (Depends-on): Add inttypes.
74518         (lib_SOURCES): Add xstrtol.h.
74519         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74520         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74521         * MODULES.html.sh: Move 'assert' into the assert section.
74522         Move 'dummy' into the linking section.
74523         Remove ullong_max.
74524         Add section for compatibility checks for POSIX:2001 functions,
74525         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74526         winsz-ioctl, and winsz-termios into it.
74527         Add lchmod.
74528         Add top-level Misc section and put host-os, perl, and uptime
74529         into it.
74530
74531 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74532
74533         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74534         now assume the stdint module.  Do not include inttypes.h.
74535         * lib/fsusage.h: Likewise.
74536         * lib/getndelim2.c: Likewise.
74537         * lib/human.h: Likewise.
74538         * lib/inttostr.h: Likewise.
74539         * lib/obstack.c: Likewise.
74540         * lib/regex_internal.h: Likewise.
74541         * lib/tempname.c: Likewise.
74542         * lib/utimecmp.c: Likewise.
74543         * lib/xstrtol.h: Likewise.
74544
74545         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74546
74547         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74548         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74549         * lib/xtime.h: Likewise.
74550
74551 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74552
74553         * modules/openat (Files): Add lib/fchmodat.c.
74554         Fixes problem reported by Jay Youngman.
74555
74556 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74557
74558         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74559         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74560
74561 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74562             Bruno Haible  <bruno@clisp.org>
74563
74564         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74565         and is a script that invokes bison. Tighten the code. Add comments.
74566
74567 2006-08-18  Jim Meyering  <jim@meyering.net>
74568
74569         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74570         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74571         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74572         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74573
74574 2006-08-18  Bruno Haible  <bruno@clisp.org>
74575
74576         * modules/bison-i18n: New file.
74577         * MODULES.html.sh (Internationalization functions): Add it.
74578
74579 2006-08-18  Bruno Haible  <bruno@clisp.org>
74580
74581         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74582         sys/statvfs.h. When getmntinfo was found, check its declaration and
74583         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74584
74585 2006-08-18  Bruno Haible  <bruno@clisp.org>
74586
74587         * m4/bison-i18n.m4: New file, from bison.
74588
74589 2006-08-18  Bruno Haible  <bruno@clisp.org>
74590
74591         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74592         (ME_DUMMY): Treat "kernfs" as a dummy.
74593         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74594
74595 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74596
74597         Update from coreutils.
74598
74599         2006-08-15  Jim Meyering  <jim@meyering.net>
74600
74601         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74602
74603         2006-01-17  Jim Meyering  <jim@meyering.net>
74604
74605         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74606
74607         2006-01-11  Jim Meyering  <jim@meyering.net>
74608
74609         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74610         Check for the lchmod function.
74611
74612 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74613
74614         Update from coreutils.
74615
74616         * lib/__fpending.h: Add copyright notice.
74617         * lib/fprintftime.h: Likewise.
74618         * lib/savedir.c: Use (C) in copyright notice.
74619         * lib/savedir.h: Likewise.
74620
74621         2006-08-15  Jim Meyering  <jim@meyering.net>
74622
74623         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74624         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74625         in support of the EXPECTED_ERRNO macro.
74626         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74627         definitions.  Instead, define the appropriate symbols and include
74628         "at-func.c".
74629         * lib/mkdirat.c (mkdirat): Likewise.
74630         * lib/fchmodat.c (fchmodat): Likewise.
74631         (ENOSYS): Remove definition.
74632         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74633         it.  Don't include "unistd--.h" -- it wasn't ever used.
74634
74635         2006-01-17  Jim Meyering  <jim@meyering.net>
74636
74637         Rewrite fts.c not to change the current working directory,
74638         by using openat, fstatat, fdopendir, etc..
74639
74640         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74641         (HAVE_OPENAT_SUPPORT): Define.
74642         [_LIBC] (fchdir): Don't undef or define; no longer used.
74643         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74644         Now, this `function' always succeeds, and consumes its file descriptor
74645         parameter -- so callers must not close such FDs.  Update callers.
74646         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74647         (diropen): Add parameter, SP.  Adjust all callers.
74648         Implement using diropen_fd, rather than open.
74649         (fts_open): Initialize new member, fts_cwd_fd.
74650         Remove fts_rft-setting code.
74651         (fts_close): Close fts_cwd_fd, if necessary.
74652         (__opendir2): Define in terms of opendir or opendirat,
74653         depending on whether the FST_NOCHDIR flag is set.
74654         (fts_build): Since fts_safe_changedir consumes its FD, and since
74655         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74656         and close the dup'd file descriptor upon failure.
74657         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74658         (fts_safe_changedir): Tweak semantics to reflect that this function
74659         now calls cwd_advance_fd and hence consumes its FD argument.
74660         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74661         [struct FTS] (fts_rft): Remove now-unused member.
74662         [struct FTS] (fts_cycle.state): Improve comment.
74663
74664         * lib/openat.c (openat_needs_fchdir): New function.
74665         * lib/openat.h (openat_needs_fchdir): Declare it.
74666
74667 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74668
74669         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74670         Problem and fix reported by Pádraig Brady in
74671         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74672
74673 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74674
74675         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74676
74677 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74678
74679         * lib/memcoll.c (memcoll): Optimize for the common case where the
74680         arguments are bytewise equal.
74681
74682 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74683
74684         * doc/regexprops-generic.texi: Add a copyright notice.
74685
74686 2006-08-15  Bruno Haible  <bruno@clisp.org>
74687
74688         * modules/tmpdir (License): Change to LGPL.
74689
74690 2006-08-15  Bruno Haible  <bruno@clisp.org>
74691
74692         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74693         module.
74694
74695 2006-08-14  Simon Josefsson  <jas@extundo.com>
74696
74697         * config/srclist.txt: Add gnupload.
74698
74699 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74700
74701         Change copyright notice from LGPL 2 to GPL 2, since that's the
74702         standard form used in the gnulib repository.
74703         * tests/test-lock.c: Likewise.
74704         * tests/test-stdint.c: Likewise.
74705         * tests/test-tls.c: Likewise.
74706
74707         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74708         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74709         Add copyright notice.
74710
74711         * check-module: Add copyright notice.  Output a copyright
74712         notice if "--version" is specified.
74713         * modules/COPYING: New file.
74714         * tests/test-getaddrinfo.c: Add copyright notice.
74715         * tests/test-verify.c: Likewise.
74716
74717 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74718
74719         Change copyright notice from LGPL 2 to GPL 2, since that's the
74720         standard form used in the gnulib repository.
74721         * lib/lock.c: LGPL -> GPL.
74722         * lib/lock.h: Likewise.
74723         * lib/strnlen1.c: Likewise.
74724         * lib/strnlen1.h: Likewise.
74725         * lib/tls.c: Likewise.
74726         * lib/tls.h: Likewise.
74727         * lib/tmpdir.c: Likewise.
74728
74729         * lib/TODO: Remove; this belongs only in coreutils.
74730
74731 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74732
74733         Add copyright notices to long-enough files that lack them, since
74734         otherwise the files aren't clearly free.  Use the same notice that
74735         getdate.texi already uses.
74736         * doc/alloca-opt.texi: Add copyright notice.
74737         * doc/alloca.texi: Likewise.
74738         * doc/ctime.texi: Likewise.
74739         * doc/functions.texi: Likewise.
74740         * doc/gcd.texi: Likewise.
74741         * doc/gnulib-tool.texi: Likewise.
74742         * doc/inet_ntoa.texi: Likewise.
74743         * doc/visibility.texi: Likewise.
74744
74745         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74746         * doc/quote.texi: Add copyright notice.
74747
74748         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74749         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74750         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74751         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74752         is now obsolete, and give a pointer to the Sun list.
74753         Add copyright notice.
74754
74755 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         * config/srclistvars.sh: Add copyright notice.
74758
74759 2006-08-14  Eric Blake  <ebb9@byu.net>
74760
74761         Import the following change from libc:
74762
74763         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74764
74765         Upstream bug 2997.
74766         * lib/misc/error.c: Add space between program name and message if file
74767         name is missing.
74768
74769 2006-08-12  Karl Berry  <karl@gnu.org>
74770
74771         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74772         remove, these originate in gnulib now.
74773
74774 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74775
74776         * doc/Makefile (standards.info standards.html standards.dvi):
74777         Also depend on make-stds.texi.
74778
74779 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74780
74781         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74782         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74783
74784         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74785         in wchar_t.  Problem reported by Eric Blake.
74786
74787         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74788         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74789         Also, help the compiler to keep LEN in a register.
74790
74791 2006-08-11  Eric Blake  <ebb9@byu.net>
74792
74793         * users.txt: Sort.  Add tar.
74794
74795 2006-08-11  Bruno Haible  <bruno@clisp.org>
74796
74797         * users.txt: New file.
74798
74799 2006-08-11  Bruno Haible  <bruno@clisp.org>
74800
74801         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74802         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74803
74804 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74805
74806         * modules/snprintf (Depends-on): Remove minmax.
74807         (Maintainer): Add self and Bruno.
74808
74809 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74810
74811         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74812         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74813         (EOVERFLOW): Define if the system does not.
74814         Do not include "minmax.h"; it wasn't used.
74815         (snprintf): Don't assume size_t promotes to an unsigned type.
74816         Fix bug when generated string was too long for the buffer: the
74817         buffer's contents are supposed to be the initial prefix of the
74818         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74819         exceeds INT_MAX; do the check ourselves.
74820
74821         Import the following changes from libc:
74822
74823         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74824
74825         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74826         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74827         set wc to the byte which couldn't be converted.
74828         (re_string_reconstruct): Don't clear valid_raw_len before calling
74829         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74830         tip_context using re_string_context_at.
74831
74832         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74833
74834         * lib/posix/regex.h: g++ still cannot handled [restrict].
74835
74836         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74837
74838         * lib/posix/regex.h: Remove special handling for VMS.
74839
74840 2006-08-10  Jim Meyering  <jim@meyering.net>
74841
74842         * modules/same-inode: New module.
74843         * modules/dev-ino: New module.
74844         * modules/cycle-check: Depend on these modules, rather than simply
74845         including their .h files.
74846         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74847         required via m4/cycle-check.m4.
74848         * modules/same: Depend on new same-inode module, rather than
74849         including same-inode.h.
74850         * modules/chdir-safer: New file.
74851
74852         * modules/chown (Depends-on): Add stat-macros.
74853
74854 2006-08-10  Jim Meyering  <jim@meyering.net>
74855
74856         * m4/cycle-check.m4: New file.
74857         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74858         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74859
74860 2006-08-10  Eric Blake  <ebb9@byu.net>
74861
74862         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74863         in from original proposal.
74864
74865 2006-08-10  Eric Blake  <ebb9@byu.net>
74866         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74867
74868         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74869         namespace.
74870
74871 2006-08-10  Bruno Haible  <bruno@clisp.org>
74872
74873         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74874         as well.
74875
74876 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74877
74878         Sync from coreutils.
74879
74880         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74881
74882         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74883         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74884
74885 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74886
74887         * modules/restrict: Remove; no longer needed now that we assume
74888         Autoconf 2.59 or later.
74889         * MODULES.html.sh: Remove 'restrict'.
74890         * modules/argp (Depends-on): Remove 'restrict'.
74891         * modules/base64 (Depends-on): Likewise.
74892         * modules/gc (Depends-on): Likewise.
74893         * modules/getaddrinfo (Depends-on): Likewise.
74894         * modules/glob (Depends-on): Likewise.
74895         * modules/inet_ntop (Depends-on): Likewise.
74896         * modules/inet_pton (Depends-on): Likewise.
74897         * modules/memxor (Depends-on): Likewise.
74898         * modules/regex (Depends-on): Likewise.
74899         * modules/strtok_r (Depends-on): Likewise.
74900         * modules/time_r (Depends-on): Likewise.
74901
74902 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74903
74904         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74905         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74906         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74907         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74908         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74909         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74910         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74911         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74912
74913         Merge from coreutils.
74914         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74915         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74916         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74917         * m4/time_r.m4 (gl_TIME_R): Likewise.
74918
74919 2006-08-09  Karl Berry  <karl@gnu.org>
74920
74921         * config/srclist.txt: no more gettext-tools, per Bruno.
74922
74923 2006-08-08  Eric Blake  <ebb9@byu.net>
74924
74925         * modules/verror: New module.
74926         * MODULES.html.sh: Document it.
74927
74928 2006-08-08  Eric Blake  <ebb9@byu.net>
74929
74930         * lib/verror.h, lib/verror.c: New files.
74931
74932 2006-08-08  Eric Blake  <ebb9@byu.net>
74933
74934         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
74935         verror_at_line output complies with GNU Coding Standards even when
74936         file is NULL.
74937
74938 2006-08-07  Bruno Haible  <bruno@clisp.org>
74939
74940         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
74941         versions of AIX.
74942         Reported by Ralf Wildenhues.
74943
74944 2006-08-07  Bruno Haible  <bruno@clisp.org>
74945
74946         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
74947         in an AC_DEFUN. Needed so that the autoconf snippets can use
74948         AC_REQUIRE.
74949
74950 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74951
74952         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74953         Initialize pkgdata_DATA.
74954         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
74955         overriding it.
74956
74957 2006-08-06  Eric Blake  <ebb9@byu.net>
74958
74959         * lib/error.h: Fold in some upstream changes from glibc.
74960         * lib/error.c: Likewise.
74961
74962 2006-08-04  Bruno Haible  <bruno@clisp.org>
74963
74964         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74965         Make the mostlyclean-local rule depend on mostlyclean-generic.
74966         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
74967
74968 2006-07-31  Bruno Haible  <bruno@clisp.org>
74969
74970         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
74971         <stdlib.h>, <string.h>.
74972
74973 2006-07-30  Bruno Haible  <bruno@clisp.org>
74974
74975         * modules/readlink (License): Change to LGPL.
74976
74977 2006-07-30  Bruno Haible  <bruno@clisp.org>
74978
74979         * modules/javaversion (Makefile.am): Distribute javaversion.java and
74980         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
74981         set PKGDATADIR to point to it.
74982
74983 2006-07-30  Bruno Haible  <bruno@clisp.org>
74984
74985         * modules/csharpexec (configure.ac): Comment out macro invocation.
74986         * modules/javaexec (configure.ac): Likewise.
74987         * modules/javacomp-script (configure.ac): Likewise.
74988
74989         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
74990
74991 2006-07-30  Bruno Haible  <bruno@clisp.org>
74992
74993         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
74994         linked-list.
74995
74996 2006-07-30  Bruno Haible  <bruno@clisp.org>
74997
74998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
74999
75000 2006-07-30  Bruno Haible  <bruno@clisp.org>
75001
75002         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75003         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75004         get removed.
75005
75006 2006-07-29  Bruno Haible  <bruno@clisp.org>
75007
75008         Make it possible for gnulib-tool to work with locally modified or
75009         augmented gnulib repositories.
75010         * gnulib-tool (func_usage): Document --local-dir option.
75011         (local_gnulib_dir): New variable.
75012         Handle --local-dir option.
75013         (func_lookup_file): New function.
75014         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75015         (func_get_description, func_get_filelist, func_get_description,
75016         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75017         func_get_automake_snippet, func_get_include_directive,
75018         func_get_license, func_get_maintainer): Use func_lookup_file.
75019         (func_import, func_create_testdir): Use func_lookup_file.
75020
75021 2006-07-29  Bruno Haible  <bruno@clisp.org>
75022
75023         * modules/setenv (Depends-on): Add unistd.
75024
75025 2006-07-29  Bruno Haible  <bruno@clisp.org>
75026
75027         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75028
75029 2006-07-29  Bruno Haible  <bruno@clisp.org>
75030
75031         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75032
75033 2006-07-29  Bruno Haible  <bruno@clisp.org>
75034
75035         * gnulib-tool (import, update): If there is no Makefile.am, look at
75036         aclocal.m4, instead of bailing out.
75037
75038 2006-07-29  Bruno Haible  <bruno@clisp.org>
75039
75040         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75041         Categorize the options by when they are useful.
75042
75043 2006-07-29  Bruno Haible  <bruno@clisp.org>
75044
75045         * gnulib-tool (func_usage): Document option --no-libtool.
75046         Handle option --no-libtool.
75047         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75048         for changed semantics of $libtool variable.
75049         (func_import): Likewise. If libtool is not used, show this through
75050         an option --no-libtool.
75051         (func_create_testdir): Update.
75052
75053 2006-07-29  Bruno Haible  <bruno@clisp.org>
75054
75055         * gnulib-tool (func_import): Extend error message about missing
75056         --doc-base.
75057
75058 2006-07-29  Bruno Haible  <bruno@clisp.org>
75059
75060         * gnulib-tool (func_import): Don't create the $docbase directory if
75061         there is no file to store there.
75062
75063 2006-07-29  Bruno Haible  <bruno@clisp.org>
75064
75065         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75066         relevant, look for configure.ac there, not in the current directory.
75067         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75068
75069 2006-07-29  Bruno Haible  <bruno@clisp.org>
75070
75071         * gnulib-tool (SORT): New variable.
75072         (func_usage): Undocument --assume-autoconf option.
75073         Remove --assume-autoconf option handling.
75074         (autoconf_minversion): Determine from the contents of configure.ac.
75075         (func_import): Remove autoconf_minversion handling.
75076         Suggested by Eric Blake.
75077
75078 2006-07-29  Bruno Haible  <bruno@clisp.org>
75079
75080         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75081
75082 2006-07-29  Bruno Haible  <bruno@clisp.org>
75083
75084         * config/srclist.txt (*setenv.[ch]): Remove rules.
75085
75086 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75087
75088         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75089
75090 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75091
75092         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75093         arpa/inet.h.
75094
75095 2006-07-28  Simon Josefsson  <jas@extundo.com>
75096
75097         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75098         * modules/inet_pton (Depends-on): Likewise.
75099
75100 2006-07-28  Simon Josefsson  <jas@extundo.com>
75101
75102         * m4/netinet_in_h.m4: New file.
75103
75104 2006-07-28  Simon Josefsson  <jas@extundo.com>
75105
75106         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75107         #include's.
75108
75109 2006-07-28  Simon Josefsson  <jas@extundo.com>
75110
75111         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75112         #include's.
75113
75114 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75115
75116         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75117         setgid on directories only if they set these bits.
75118         * lib/modechange.h: Remove obsolete comment about masks.
75119
75120 2006-07-28  Eric Blake  <ebb9@byu.net>
75121
75122         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75123         macro expansion.
75124
75125 2006-07-28  Bruno Haible  <bruno@clisp.org>
75126
75127         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75128
75129 2006-07-28  Bruno Haible  <bruno@clisp.org>
75130
75131         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75132
75133 2006-07-28  Bruno Haible  <bruno@clisp.org>
75134
75135         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75136         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75137         Define fallbacks.
75138         Avoids link error on FreeBSD 4.x.
75139         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75140
75141         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75142         encoding.
75143         * lib/mbswidth.c (iswcntrl): Likewise.
75144
75145 2006-07-27  Bruno Haible  <bruno@clisp.org>
75146
75147         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75148         test.
75149
75150 2006-07-27  Bruno Haible  <bruno@clisp.org>
75151
75152         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75153         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75154         defined.
75155
75156 2006-07-26  Eric Blake  <ebb9@byu.net>
75157
75158         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75159
75160 2006-07-26  Eric Blake  <ebb9@byu.net>
75161
75162         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75163         like mingw that lack mkstemp.
75164         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75165         avoid compilation warning on mingw.
75166
75167 2006-07-26  Bruno Haible  <bruno@clisp.org>
75168
75169         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75170         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75171         INT_FAST*_MIN, INTPTR_MIN.
75172
75173 2006-07-25  Bruno Haible  <bruno@clisp.org>
75174
75175         * modules/version-etc (Depends-on): Add stdarg.
75176
75177 2006-07-25  Bruno Haible  <bruno@clisp.org>
75178
75179         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75180         complex commands.
75181
75182 2006-07-25  Bruno Haible  <bruno@clisp.org>
75183
75184         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75185         defined in <stdarg.h> or config.h.
75186
75187 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75188
75189         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75190         (gl_STDIO_SAFER): Remove.
75191
75192 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75193
75194         * MODULES.html.sh (File stream based Input/Output):
75195         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75196         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75197         * modules/fopen-safer, modules/tmpfile-safer: New files.
75198         * modules/stdio-safer: Remove.
75199
75200 2006-07-24  Bruno Haible  <bruno@clisp.org>
75201
75202         * modules/tmpdir: New file.
75203         * MODULES.html.sh (File system functions): Add it.
75204
75205 2006-07-24  Bruno Haible  <bruno@clisp.org>
75206
75207         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75208         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75209
75210 2006-07-24  Bruno Haible  <bruno@clisp.org>
75211
75212         * modules/clean-temp: New file.
75213
75214 2006-07-24  Bruno Haible  <bruno@clisp.org>
75215
75216         * m4/tmpdir.m4: New file, from GNU gettext.
75217
75218 2006-07-24  Bruno Haible  <bruno@clisp.org>
75219
75220         * lib/tmpdir.h: New file, from GNU gettext.
75221         * lib/tmpdir.c: New file, from GNU gettext.
75222
75223 2006-07-24  Bruno Haible  <bruno@clisp.org>
75224
75225         * lib/clean-temp.h: New file, from GNU gettext.
75226         * lib/clean-temp.c: New file, from GNU gettext.
75227
75228 2006-07-23  Eric Blake  <ebb9@byu.net>
75229
75230         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75231         (Depends-on): Add binary-io.
75232
75233 2006-07-23  Eric Blake  <ebb9@byu.net>
75234
75235         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75236
75237 2006-07-23  Eric Blake  <ebb9@byu.net>
75238
75239         * lib/tmpfile-safer.c: New file.
75240         * lib/stdio-safer.h (fopen_safer): Add prototype.
75241         * lib/stdio--.h (tmpfile): Make safer.
75242
75243 2006-07-23  Bruno Haible  <bruno@clisp.org>
75244
75245         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75246         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75247         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75248         gl_linked_remove_at): Use it.
75249
75250 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75251         and Simon Josefsson <jas@extundo.com>
75252
75253         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75254
75255         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75256
75257 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75258
75259         * modules/close-stream: New file.
75260         * modules/closeout (Description): Make it clear that it exits
75261         with a diagnostic on error.
75262         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75263         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75264
75265 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75266
75267         * m4/close-stream.m4: New file.
75268
75269 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75270
75271         * lib/close-stream.c, lib/close-stream.h: New files.
75272
75273 2006-07-22  Bruno Haible  <bruno@clisp.org>
75274
75275         Merge from GNU gettext 0.15.
75276
75277         2006-05-01  Bruno Haible  <bruno@clisp.org>
75278
75279                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75280
75281         2006-07-22  Bruno Haible  <bruno@clisp.org>
75282
75283                 * modules/javaversion: New file.
75284                 * MODULES.html.sh (Java): Add javaversion.
75285
75286         2006-03-12  Bruno Haible  <bruno@clisp.org>
75287
75288                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75289
75290         2005-12-04  Bruno Haible  <bruno@clisp.org>
75291
75292                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75293                 (untested).
75294
75295         2006-06-21  Bruno Haible  <bruno@clisp.org>
75296
75297                 Avoid warnings from recent versions of mcs.
75298                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75299                 -o, -L, -r any more. Use options documented since mcs-1.0
75300                 instead. Similarly for -g.
75301
75302         2005-12-04  Bruno Haible  <bruno@clisp.org>
75303
75304                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75305                 .resources, not .resource.
75306
75307         2005-07-09  Bruno Haible  <bruno@clisp.org>
75308
75309                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75310                 add a .dll suffix.
75311                 Reported by Mark Junker <mjscod@gmx.de>.
75312
75313         2006-07-22  Bruno Haible  <bruno@clisp.org>
75314
75315                 * modules/gettext: Upgrade to gettext-0.15.
75316                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75317                 m4/visibility.m4.
75318                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75319
75320 2006-07-22  Bruno Haible  <bruno@clisp.org>
75321
75322         Merge from GNU gettext 0.15.
75323
75324         2006-03-25  Bruno Haible  <bruno@clisp.org>
75325
75326                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75327
75328         2006-07-21  Bruno Haible  <bruno@clisp.org>
75329
75330                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75331                 "1.1".
75332
75333         2006-05-09  Bruno Haible  <bruno@clisp.org>
75334
75335                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75336                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75337                 for the conftestver execution.
75338
75339         2006-05-01  Bruno Haible  <bruno@clisp.org>
75340
75341                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75342                 optional target-version argument. Verify that the compiler
75343                 groks source of the specified source-version, or add -source
75344                 option as necessary. Verify that the compiler produces
75345                 bytecode in the specified target-version, or add -target and
75346                 -source options as necessary. Make the result of the test
75347                 available as variable CONF_JAVAC. Also log error output in
75348                 config.log.
75349
75350         2006-03-11  Bruno Haible  <bruno@clisp.org>
75351
75352                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75353
75354         2006-05-09  Bruno Haible  <bruno@clisp.org>
75355
75356                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75357                 CLASSPATH_SEPARATOR to a semicolon.
75358
75359         2006-03-12  Bruno Haible  <bruno@clisp.org>
75360
75361                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75362                 available as variable CONF_JAVA, for subsequent autoconf
75363                 tests. Also log error output in config.log.
75364
75365         2006-07-19  Bruno Haible  <bruno@clisp.org>
75366
75367                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75368                 that getline works on glibc2 systems. Needed to avoid trouble
75369                 in relocatable.c.
75370                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75371
75372         2005-12-04  Bruno Haible  <bruno@clisp.org>
75373
75374                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75375                 launcher (untested).
75376
75377         2005-12-04  Bruno Haible  <bruno@clisp.org>
75378
75379                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75380
75381         2006-07-22  Bruno Haible  <bruno@clisp.org>
75382
75383                 * gettext.m4: Update from GNU gettext-0.15.
75384                 * nls.m4: Likewise.
75385                 * po.m4: Likewise.
75386                 * inttypes-pri.m4: Likewise.
75387                 * inttypes-h.m4: Renamed from inttypes.m4.
75388                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75389
75390 2006-07-22  Bruno Haible  <bruno@clisp.org>
75391
75392         Merge from GNU gettext 0.15.
75393
75394         2005-07-05  Bruno Haible  <bruno@clisp.org>
75395
75396                 * printf-args.c (printf_fetchargs): Work around broken
75397                 definition of wint_t on mingw.
75398
75399         2005-02-12  Bruno Haible  <bruno@clisp.org>
75400
75401                 * xallocsa.h: Add extern "C" for C++.
75402
75403         2006-05-17  Bruno Haible  <bruno@clisp.org>
75404
75405                 Cygwin portability.
75406                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75407
75408         2006-04-30  Bruno Haible  <bruno@clisp.org>
75409
75410                 * progreloc.c: Include <mach-o/dyld.h> if available.
75411                 (find_executable): Use _NSGetExecutablePath when possible.
75412
75413         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75414
75415                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75416                 function.
75417
75418         2005-12-29  Bruno Haible  <bruno@clisp.org>
75419
75420                 * progreloc.c (set_program_name_and_installdir): Fix
75421                 compilation error.
75422
75423         2005-12-04  Bruno Haible  <bruno@clisp.org>
75424
75425                 Cygwin portability.
75426                 * progreloc.c: Include <windows.h> also on Cygwin.
75427                 (find_executable): Add support for Cygwin.
75428                 (set_program_name_and_installdir): Handle also platforms with
75429                 nonempty EXEEXT.
75430
75431         2006-07-11  Bruno Haible  <bruno@clisp.org>
75432
75433                 * javacomp.c: Fix a comment.
75434                 Reported by Jim Meyering.
75435
75436         2006-04-30  Bruno Haible  <bruno@clisp.org>
75437
75438                 * javacomp.h (compile_java_class): Add source_version,
75439                 target_version arguments.
75440                 * javacomp.c: Rewritten to choose only a compiler that
75441                 respects the specified source_version and target_version.
75442
75443         2006-06-27  Bruno Haible  <bruno@clisp.org>
75444
75445                 Assume correct S_ISDIR macro.
75446                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75447
75448         2006-07-22  Bruno Haible  <bruno@clisp.org>
75449
75450                 * javaversion.h: New file, from GNU gettext.
75451                 * javaversion.c: New file, from GNU gettext.
75452                 * javaversion.java: New file, from GNU gettext.
75453                 * javaversion.class: New file, from GNU gettext.
75454
75455         2006-05-17  Bruno Haible  <bruno@clisp.org>
75456
75457                 Cygwin portability.
75458                 * javaexec.c (execute_java_class): Test for jview program
75459                 also on Cygwin.
75460
75461         2006-04-09  Bruno Haible  <bruno@clisp.org>
75462
75463                 * fatal-signal.c: Don't include string.h.
75464                 (at_fatal_signal): Use a copying loop instead of memcpy.
75465
75466         2005-12-04  Bruno Haible  <bruno@clisp.org>
75467
75468                 * csharpexec.c: Add support for 'clix' launcher (untested).
75469                 (execute_csharp_using_sscli): New function.
75470                 (execute_csharp_program): Call it.
75471
75472         2006-06-21  Bruno Haible  <bruno@clisp.org>
75473
75474                 Avoid warnings from recent versions of mcs.
75475                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75476                 -o, -L, -r any more. Use options documented since mcs-1.0
75477                 instead. Similarly for -g.
75478
75479         2005-07-09  Bruno Haible  <bruno@clisp.org>
75480
75481                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75482                 add a .dll suffix.
75483                 Reported by Mark Junker <mjscod@gmx.de>.
75484
75485         2006-06-17  Bruno Haible  <bruno@clisp.org>
75486
75487                 * config.charset: Update for NetBSD 3.0.
75488
75489         2006-05-17  Bruno Haible  <bruno@clisp.org>
75490
75491                 Cygwin portability.
75492                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75493
75494         2006-05-16  Bruno Haible  <bruno@clisp.org>
75495
75496                 * localcharset.c [CYGWIN]: Include <windows.h>.
75497                 (get_charset_aliases): For Cygwin, return the same CPxxx
75498                 aliases list as under WIN32.
75499                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75500                 the environment variables. Fall back to GetACP().
75501
75502         2006-04-05  Bruno Haible  <bruno@clisp.org>
75503
75504                 * config.charset: Update Juan Manuel Guerrero's address.
75505
75506         2005-02-12  Bruno Haible  <bruno@clisp.org>
75507
75508                 * allocsa.h: Add extern "C" for C++.
75509
75510         2005-02-10  Bruno Haible  <bruno@clisp.org>
75511
75512                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75513                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75514
75515         2006-07-22  Bruno Haible  <bruno@clisp.org>
75516
75517                 * gettext.h: Update to GNU gettext-0.15.
75518
75519 2006-07-22  Bruno Haible  <bruno@clisp.org>
75520
75521         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75522         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75523         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75524
75525 2006-07-21  Eric Blake  <ebb9@byu.net>
75526
75527         * modules/stdlib-safer: New file.
75528         * MODULES.html.sh (File stream based Input/Output): Add
75529         stdlib-safer.
75530
75531 2006-07-21  Eric Blake  <ebb9@byu.net>
75532
75533         * lib/stdlib-safer.h: New file from coreutils, required by
75534         stdlib--.h.
75535
75536 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75537
75538         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75539
75540 2006-07-20  Bruno Haible  <bruno@clisp.org>
75541
75542         * gnulib-tool: Recognize new option --assume-autoconf.
75543         (autoconf_minversion): New variable.
75544         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75545
75546 2006-07-20  Bruno Haible  <bruno@clisp.org>
75547
75548         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75549
75550 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75551
75552         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75553         Reindent and repaginate.
75554
75555 2006-07-19  Derek Price  <derek@ximbiot.com>
75556
75557         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75558         Correct grammar.
75559
75560 2006-07-17  Bruno Haible  <bruno@clisp.org>
75561
75562         * modules/list: New file.
75563         * modules/array-list: New file.
75564         * modules/carray-list, modules/carray-list-tests: New files.
75565         * modules/linked-list, modules/linked-list-tests: New files.
75566         * modules/avltree-list, modules/avltree-list-tests: New files.
75567         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75568         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75569         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75570         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75571         * modules/oset: New file.
75572         * modules/array-oset: New file.
75573         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75574         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75575         * tests/test-carray_list.c: New file.
75576         * tests/test-linked_list.c: New file.
75577         * tests/test-avltree_list.c: New file.
75578         * tests/test-rbtree_list.c: New file.
75579         * tests/test-linkedhash_list.c: New file.
75580         * tests/test-avltreehash_list.c: New file.
75581         * tests/test-rbtreehash_list.c: New file.
75582         * tests/test-avltree_oset.c: New file.
75583         * tests/test-rbtree_oset.c: New file.
75584         * MODULES.html.sh (Container data structures): New section.
75585
75586 2006-07-17  Bruno Haible  <bruno@clisp.org>
75587
75588         * m4/gl_list.m4: New file.
75589
75590 2006-07-17  Bruno Haible  <bruno@clisp.org>
75591
75592         * lib/gl_list.h: New file.
75593         * lib/gl_list.c: New file.
75594         * lib/gl_array_list.h: New file.
75595         * lib/gl_array_list.c: New file.
75596         * lib/gl_carray_list.h: New file.
75597         * lib/gl_carray_list.c: New file.
75598         * lib/gl_linked_list.h: New file.
75599         * lib/gl_linked_list.c: New file.
75600         * lib/gl_anylinked_list1.h: New file.
75601         * lib/gl_anylinked_list2.h: New file.
75602         * lib/gl_avltree_list.h: New file.
75603         * lib/gl_avltree_list.c: New file.
75604         * lib/gl_anyavltree_list1.h: New file.
75605         * lib/gl_anyavltree_list2.h: New file.
75606         * lib/gl_rbtree_list.h: New file.
75607         * lib/gl_rbtree_list.c: New file.
75608         * lib/gl_anyrbtree_list1.h: New file.
75609         * lib/gl_anyrbtree_list2.h: New file.
75610         * lib/gl_anytree_list1.h: New file.
75611         * lib/gl_anytree_list2.h: New file.
75612         * lib/gl_linkedhash_list.h: New file.
75613         * lib/gl_linkedhash_list.c: New file.
75614         * lib/gl_anyhash_list1.h: New file.
75615         * lib/gl_anyhash_list2.h: New file.
75616         * lib/gl_avltreehash_list.h: New file.
75617         * lib/gl_avltreehash_list.c: New file.
75618         * lib/gl_rbtreehash_list.h: New file.
75619         * lib/gl_rbtreehash_list.c: New file.
75620         * lib/gl_anytreehash_list1.h: New file.
75621         * lib/gl_anytreehash_list2.h: New file.
75622
75623         * lib/gl_oset.h: New file.
75624         * lib/gl_oset.c: New file.
75625         * lib/gl_array_oset.h: New file.
75626         * lib/gl_array_oset.c: New file.
75627         * lib/gl_avltree_oset.h: New file.
75628         * lib/gl_avltree_oset.c: New file.
75629         * lib/gl_rbtree_oset.h: New file.
75630         * lib/gl_rbtree_oset.c: New file.
75631         * lib/gl_anytree_oset.h: New file.
75632
75633 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75634
75635         * m4/mkancesdirs.m4: New file.
75636         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75637         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75638         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75639         it.
75640
75641 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75642
75643         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75644         * lib/mkancesdirs.h: New files.
75645         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75646         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75647         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75648         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75649         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75650         callers changed.  Revamp internals significantly, by not
75651         attempting to create directories that are temporarily more
75652         permissive than the final results.  Do not attempt to use
75653         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75654         This removes some race conditions, fixes some bugs, and simplifies
75655         things.  Use new dirchownmod function to do owner and mode changes.
75656         * lib/mkdir-p.h: Likewise.
75657         * lib/modechange.c (octal_to_mode): New function.
75658         (struct mode_change): New member mentioned.
75659         (make_node_op_equals): New arg mentioned.  All callers changed.
75660         (mode_compile): Keep track of which mode bits the user has explicitly
75661         mentioned.
75662         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75663         New arg PMODE_BITS, to keep track of which mode bits the user
75664         mentioned; it treats S_ISUID and S_ISGID speciall.
75665         All callers changed.
75666         * lib/modechange.h: Likewise.
75667
75668 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75669
75670         * MODULES.html.sh: Add mkancestors.
75671         * modules/mkancesdirs: New module.
75672         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75673         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75674         The chdir-safer and afs files are now orphans; I'll remove them
75675         unless someone speaks up.
75676         Add lib/dirchownmod.c, lib/dirchownmod.h.
75677         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75678         Add lchown, mkancesdirs.
75679         (Maintainer): Add self.
75680
75681 2006-07-15  Karl Berry  <karl@gnu.org>
75682
75683         * gnulib-tool: help message wording/arrangement.
75684
75685 2006-07-14  Simon Josefsson  <jas@extundo.com>
75686
75687         * doc/gnulib.texi (Libtool and Windows): New section.
75688
75689 2006-07-12  Simon Josefsson  <jas@extundo.com>
75690
75691         * modules/gendocs (License): Fix license, approved by Karl.
75692
75693 2006-07-12  Eric Blake  <ebb9@byu.net>
75694
75695         * MODULES.html.sh: Add gendocs.
75696
75697 2006-07-11  Eric Blake  <ebb9@byu.net>
75698
75699         * modules/fdl: New module, to install doc/fdl.texi.
75700         * MODULES.html.sh: Add new section for documentation modules.
75701         * gnulib-tool: Avoid space-tab.
75702         (--doc-base): New option, to manage files from doc.
75703
75704 2006-07-11  Eric Blake  <ebb9@byu.net>
75705
75706         * m4/absolute-header.m4: Fix comments to match recent change.
75707
75708 2006-07-11  Eric Blake  <ebb9@byu.net>
75709
75710         * gnulib-tool: List --doc-base before --tests-base.
75711
75712 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75713
75714         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75715
75716 2006-07-11  Bruno Haible  <bruno@clisp.org>
75717
75718         * README: Mention where to put documentation.
75719
75720 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75721
75722         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75723
75724 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75725
75726         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75727         to stdint.m4.
75728
75729 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75730
75731         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75732         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75733         "no/such/file/stdint.h" when there is no such file, so that
75734         the resulting C code can be parsed by dodgy compilers.
75735         Problems reported by Bob Proulx.
75736
75737 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75738
75739         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75740         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75741         macros into the GNU _D_EXACT_NAMLEN.
75742         * lib/savedir.c:  Likewise.
75743         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75744
75745 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75746         and Paul Eggert  <eggert@cs.ucla.edu>
75747
75748         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75749         * m4/savedir.m4:
75750         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75751         macros into the GNU _D_EXACT_NAMLEN.
75752
75753 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75754
75755         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75756         around the absolute name, to work around a problem with the HP-UX
75757         11.23 native C compiler, reported by Bob Proulx.
75758
75759 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75760
75761         * doc/maintain.texi, make-stds.texi: Sync from
75762         <http://savannah.gnu.org/projects/gnustandards>.
75763
75764 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75765
75766         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75767
75768 2006-07-09  Jim Meyering  <jim@meyering.net>
75769
75770         * m4/glob.m4: Remove a doubled word in a comment.
75771
75772 2006-07-09  Jim Meyering  <jim@meyering.net>
75773
75774         * lib/argp-pv.c: Remove a doubled word in a comment.
75775         * lib/check-version.c (check_version): Likewise.
75776         * lib/javacomp.c (compile_java_class): Likewise.
75777
75778 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75779
75780         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75781         for the benefit of people using Autoconf 2.60.  If you want to
75782         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75783         (or m4/onceonly.m4, if pre-2.57) manually.
75784
75785 2006-07-08  Jim Meyering  <jim@meyering.net>
75786
75787         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75788         comment.
75789         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75790         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75791         comment.
75792
75793 2006-07-08  Jim Meyering  <jim@meyering.net>
75794
75795         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75796
75797 2006-07-07  Simon Josefsson  <jas@extundo.com>
75798
75799         * tests/test-crc.c: Change expected crc value, the test vector
75800         were probably computed using the old broken crc.c?
75801
75802 2006-07-06  Simon Josefsson  <jas@extundo.com>
75803
75804         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75805         now the canonical place for the M4 file).
75806
75807         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75808         from the sys_socket dependency now.
75809
75810         * modules/inet_pton (Files): Ditto.
75811
75812         * modules/inet_ntop (Files): Ditto.
75813
75814 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75815
75816         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75817         not gl_PREREQ_GETUSERSHELL.
75818
75819 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75820
75821         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75822         with only one argument, for Autoconf 2.60.
75823         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75824         expand to nothing, so add a shell command to avoid syntax error.
75825         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75826
75827 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75828
75829         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75830
75831 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75832
75833         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75834         no longer needed.  Check for isblank decl.
75835         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75836         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75837         of existence.
75838
75839 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75840
75841         * lib/getloadavg.c: Use __VMS, not VMS.
75842         * lib/getopt.c: Likewise.
75843         * lib/getpagesize.h: Likewise.
75844         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75845         and probably does not work.
75846
75847 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75848
75849         * lib/.cppi-disable: Add wcwidth.
75850         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75851         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75852         (ISGRAPH): Remove.  All uses changed to isgraph.
75853         (FOLD) [!defined _LIBC]: Remove special case.
75854         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75855         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75856         HAVE_ISBLANK.
75857         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75858         case.
75859
75860 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75861
75862         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75863         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75864         brackets.  Other minor changes to suppress some compiler
75865         warnings.
75866
75867 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75868         and Paul Eggert  <eggert@cs.ucla.edu>
75869
75870         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75871         of invoking obsolescent AC_HEADER_DIRENT macro.
75872         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75873         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75874         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75875         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75876         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75877         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75878         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75879         * m4/readdir.m4: Remove; no longer needed.
75880
75881 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75882         and Paul Eggert  <eggert@cs.ucla.edu>
75883
75884         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75885         Don't worry about this obsolete case any more.
75886         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75887         directories.
75888         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75889         worry about this obsolete case any more.
75890         * lib/fts.c: Likewise.
75891         * lib/getcwd.c: Likewise.
75892         * lib/glob.h: Likewise.
75893         * lib/savedir.c: Likewise.
75894
75895 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75896
75897         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75898         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75899         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75900         needed.
75901         All uses removed.
75902         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75903         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75904         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75905         needed.
75906         * m4/getdate.m4 (gl_GETDATE): Likewise.
75907         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75908         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75909         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75910         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75911         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75912         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75913         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75914         needed.
75915
75916 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75917
75918         * lib/memcasecmp.c: Include <limits.h>.
75919         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75920         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75921         Don't assume isdigit succeeds only on '0' through '9'.
75922
75923 2006-07-05  Eric Blake  <ebb9@byu.net>
75924
75925         * modules/getaddrinfo (Depends-on): Add snprintf.
75926
75927 2006-07-05  Eric Blake  <ebb9@byu.net>
75928
75929         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
75930         to avoid 'header present but could not be compiled' on cygwin.
75931
75932 2006-07-05  Eric Blake  <ebb9@byu.net>
75933
75934         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
75935         missing from netdb.h.
75936         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
75937
75938 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75939
75940         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
75941         no longer needed.
75942         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
75943         * m4/getdate.m4 (gl_GETDATE): Likewise.
75944         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75945         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75946         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75947         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75948         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75949
75950 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75951
75952         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
75953         All uses of is_space replaced by isspace.
75954         * lib/exit.h: Don't talk about STDC_HEADERS.
75955         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
75956         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
75957         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
75958         replaced by isprint etc.
75959         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
75960         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75961         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
75962         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
75963         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
75964         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75965
75966 2006-07-05  Bruno Haible  <bruno@clisp.org>
75967
75968         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
75969         the function exists, before testing against AIX.
75970         Reported by Martin Lambers <marlam@marlam.de>.
75971
75972 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75973
75974         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
75975         From Mark D. Baushke.
75976
75977 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75978
75979         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
75980         to the absolute name, not just one, to bypass Sun C 5.8's
75981         "warning: #include of /usr/include/... may be non-portable".
75982
75983 2006-07-04  Eric Blake  <ebb9@byu.net>
75984
75985         * modules/dirname-tests: New test module.
75986         * tests/test-dirname.c: New file, replacing dirname.c
75987         TEST_DIRNAME section that was recently deleted.
75988
75989 2006-07-04  Bruno Haible  <bruno@clisp.org>
75990
75991         Assume ANSI C header files and <ctype.h> functions.
75992         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
75993         (mbsnwidth): Use isprint, iscntrl instead.
75994
75995 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75996
75997         Merge from coreutils.
75998         * MODULES.html.sh: Add xstrtold.
75999         * modules/xstrtold: New file.
76000         * modules/cycle-check (Files): Add lib/same-inode.h.
76001         * modules/dirname (Files): Add m4/double-slash-root.m4.
76002         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76003         * modules/mkdir-p (Files): Add lib/same-inode.h.
76004         * modules/same (Files): Add lib/same-inode.h.
76005
76006 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76007
76008         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76009         This is to keep the terminology clean; POSIX talks about
76010         "absolute pathnames", not "full pathnames", but the GNU
76011         Coding Standards say to use "path" for something else;
76012         so use "absolute" to keep both sides happy.
76013         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76014         Set gl_absolute_header, not gl_full_header_path.
76015         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76016         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76017         All uses changed.
76018
76019         Merge from coreutils.
76020
76021         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76022
76023         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76024         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76025         want to require the building of c-strtod.o.
76026         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76027         needs -lm directly.
76028         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76029
76030         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76031
76032         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76033         --as-needed option if available.  Problem reported by Albert Chin in
76034         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76035         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76036         cc merely issues a bunch of annoying warnings for --as-needed
76037         (this problem was reported by Bob Proulx).  Also, try linking with
76038         -lm to detect a bug in binutils 2.16 (this problem was reported
76039         by Ralf Wildenhues).
76040
76041         2006-06-18  Jim Meyering  <jim@meyering.net>
76042
76043         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76044         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76045         macro.
76046         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76047         also check for glibc-2.4's abort-inducing bug.
76048
76049         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76050         Low-probability clean-up should be to use rmdir to get rid of
76051         the just-created directory, not unlink.
76052
76053         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76054         configure fail, and request a bug report to inform us about it.
76055         Add a comment that, barring reports to the contrary, in 2007 we'll
76056         assume ftruncate is universally available.
76057
76058         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76059
76060         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76061
76062         2006-03-12  Jim Meyering  <jim@meyering.net>
76063
76064         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76065         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76066         * m4/same.m4 (gl_SAME): Likewise.
76067         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76068
76069         2006-03-11  Eric Blake  <ebb9@byu.net>
76070
76071         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76072         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76073         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76074         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76075
76076 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76077
76078         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76079         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76080         reported by Mark D. Baushke, one in
76081         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76082
76083         Merge from coreutils.
76084
76085         * lib/.cppi-disable: Add stdint_.h.
76086         * lib/.cvsignore: Add stdint.h.
76087
76088         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76089
76090         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76091         both double and long double versions.
76092         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76093         * lib/xstrtold.c: New file.
76094         * lib/xstrtod.h (xstrtold): New decl.
76095
76096         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76097
76098         * lib/filemode.c (setst): Remove.
76099         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76100         (arguably) clearer, and the generated code is a bit smaller on my
76101         Debian GNU/Linux stable x86 host.
76102
76103         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76104
76105         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76106         Assume that filemode.h includes sys/types.h and sys/stat.h.
76107         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76108         (ftypelet): Reorder to put common cases first, for efficiency.
76109         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76110         to do 'M'.
76111         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76112         of 10, for compatibility with FreeBSD.  All callers changed.
76113         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76114         types that can't be deduced solely from st_mode.  First arg is now a
76115         const pointer.
76116         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76117         (strmode): Renamed from mode_string.
76118         (filemodestring): New decl.
76119         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76120         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76121         needed.
76122         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76123
76124         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76125
76126         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76127         fsusage.h now does that.  Include fsusage.h first, to test interface.
76128         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76129         at most one method (the old code could have generated decls that
76130         didn't conform to C89, not that this was ever exercised).
76131         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76132
76133         2006-03-19  Jim Meyering  <jim@meyering.net>
76134
76135         Work even in a chroot where d_ino values for entries in "/"
76136         don't match the stat.st_ino values for the same names.
76137         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76138         number, iterate through all entries again, using lstat instead.
76139         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76140         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76141
76142         * lib/getcwd.c (__getcwd): Clarify a comment.
76143         Use memcpy in place of a call to strcpy.
76144
76145         2006-03-12  Jim Meyering  <jim@meyering.net>
76146
76147         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76148         matches that of the current directory (which we're about to chdir ".."
76149         out of), then save the dev-ino of the parent, instead.
76150
76151         * lib/same-inode.h (SAME_INODE): New file/macro.
76152         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76153         Include "same-inode.h", instead.
76154         * lib/same.c: Likewise.
76155         * lib/cycle-check.h: Include "same-inode.h".
76156         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76157         * lib/cycle-check.c (SAME_INODE): Remove definition.
76158         * lib/root-dev-ino.h: Include "same-inode.h".
76159
76160         2006-03-11  Eric Blake  <ebb9@byu.net>
76161
76162         * lib/same.c (same_name): s/base_name/last_component/
76163         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76164         * lib/filenamecat.c (file_name_concat): Likewise.
76165
76166         2006-03-11  Eric Blake  <ebb9@byu.net>,
76167                     Paul Eggert  <eggert@cs.ucla.edu>
76168
76169         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76170         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76171         drive prefix.
76172         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76173         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76174         (last_component): New method.
76175         * lib/dirname.c (dir_len): Determine when drive letters need a
76176         subsequent slash.  Preserve // when it is special.
76177         (dir_name): Don't append dot when drive letter is absolute.
76178         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76179         * lib/basename.c (base_name): New semantics - malloc the result.
76180         Preserve // when it is special.  Preserve relative files that look
76181         like drive letters.
76182         (base_len): Preserve // when it is special.
76183         (last_component): New method, similar to old base_name semantics.
76184         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76185         base_name.  Strip redundant slashes from ///.
76186
76187 2006-07-03  Jim Meyering  <jim@meyering.net>
76188
76189         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76190         macro is used before the first cycle_check call.
76191
76192 2006-07-03  Eric Blake  <ebb9@byu.net>
76193
76194         * modules/dirname (Depends-on): Add xstrndup.
76195
76196 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76197
76198         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76199         test cases, so that config.log is a bit easier to follow.
76200
76201 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76202
76203         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76204         both are 64 bits, since this seems to be the tradition, and this
76205         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76206         we ever run into a host that prefers long long to long in this
76207         case, we'll need another configure-time test.  Problem reported by
76208         Jim Meyering.
76209
76210 2006-07-02  Eric Blake  <ebb9@byu.net>
76211
76212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76213
76214 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76215
76216         * modules/inttypes (Depends-on): No longer depends on stdint.
76217         * modules/stdint (Description): Say more about assumptions.
76218         Say that the fast types might differ.  Say macros are used.
76219         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76220         (Makefile.am): Revise list of substituted symbols to match
76221         new stdint.m4.
76222         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76223         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76224         * tests/test-stdint.c (verify_same_types)
76225         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76226         the code conforms to C99/C89.
76227         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76228         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76229
76230 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76231
76232         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76233         but fix a bug, by requiring at least 64 bits.
76234         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76235         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76236         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76237         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76238
76239         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76240         changes.  Make 2.59 a prerequisite.  Check and substitute for
76241         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76242         inttypes.h.  Do not use special include files; just use the
76243         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76244         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76245         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76246         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76247         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76248         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76249         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76250         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76251         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76252         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76253         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76254         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76255         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76256         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76257         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76258         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76259         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76260         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76261         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76262         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76263         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76264         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76265         not check for things that C99 does not require, e.g., int8_t.  If
76266         a test isn't needed unless <stdint.h> isn't working, and is
76267         unlikely to be needed for any other reason, then don't do it
76268         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76269         size_t, since we assume C89 freestanding at least.  Do not check
76270         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76271         the right thing even if the types are not defined.  Instead use:
76272         (gl_STDINT_TYPE_PROPERTIES): New macro.
76273         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76274         testing whether <sys/types.h> clashes, as Autoconf does this for
76275         us now.  All uses removed.
76276         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76277         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76278         (gl_CHECK_TYPE_SAME):
76279         Remove; no longer needed.
76280         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76281         exists, since we'll return 0 anyway in that case.
76282         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76283
76284 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76285
76286         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76287         possible collision with system files.
76288         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76289         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76290         WCHAR_MIN and WCHAR_MAX in this case.
76291         (<stddef.h>): Do not include; no longer needed.
76292         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76293         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76294         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76295         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76296         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76297         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76298         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76299         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76300         !defined(__c99))]: Include in this case too, since it's harmless
76301         now.
76302         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76303         dangerous to do so.
76304         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76305         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76306         (_STDINT_MIN, _STDINT_MAX): New macros.
76307         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76308         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76309         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76310         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76311         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76312         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76313         macros, not typedefs; this simplifies things quite a bit.
76314         Use long int for all types narrower than int64_t.
76315         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76316         Define in terms of long long int or int64_t or long int,
76317         not int64_t or int32_t.  This saves some compile-time testing.
76318         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76319         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76320         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76321         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76322         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76323         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76324         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76325         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76326         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76327         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76328         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76329         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76330         undef any previous version and define our own version, for
76331         simplicity and consistency with the new macros for types.
76332         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76333         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76334         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76335         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76336         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76337         @WINT_T_SUFFIX@ to keep things simple here.
76338         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76339         Simplify by assuming typical 8/16/32/64 host, since we're
76340         already doing that elsewhere anyway.
76341         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76342         and assume long long int is 64 bits if available.  This
76343         speeds up 'configure'.
76344
76345 2006-07-01  Eric Blake  <ebb9@byu.net>
76346
76347         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76348         Reported by Andreas Buening.
76349
76350 2006-07-01  Eric Blake  <ebb9@byu.net>
76351
76352         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76353
76354 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76355
76356         * lib/getaddrinfo.c: fixed typo
76357
76358 2006-06-29  Jim Meyering  <jim@meyering.net>
76359
76360         * modules/strftime (Maintainer): Add my name, since with the
76361         FPRINTFTIME changes strftime.c has forked from glibc.
76362
76363 2006-06-29  Eric Blake  <ebb9@byu.net>
76364
76365         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76366
76367 2006-06-29  Eric Blake  <ebb9@byu.net>
76368
76369         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76370
76371 2006-06-29  Eric Blake  <ebb9@byu.net>
76372
76373         * lib/stat_.h: New file.
76374
76375 2006-06-29  Eric Blake  <ebb9@byu.net>
76376
76377         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76378         unused static function.
76379
76380 2006-06-29  Eric Blake  <ebb9@byu.net>
76381
76382         * doc/functions.texi (Function Portability): Document missing lstat
76383         on mingw.
76384
76385 2006-06-29  Eric Blake  <ebb9@byu.net>
76386
76387         * MODULES.html.sh: Add sys_stat.
76388         * modules/sys_stat: New module.
76389         * modules/mkstemp (Depends-on): Add sys_stat.
76390
76391 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76392
76393         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76394
76395 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76396
76397         * m4/c-bs-a.m4: Removed.
76398
76399 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76400
76401         * lib/strftime.c: Assume strftime() exists.
76402
76403 2006-06-29  Derek Price  <derek@ximbiot.com>
76404
76405         * modules/c-bs-a: Removed - \a is C89.
76406         * MODULES.html.sh: Remove c-bs-a.
76407
76408 2006-06-29  Bruno Haible  <bruno@clisp.org>
76409
76410         * modules/wcwidth (License): Change to LGPL.
76411
76412 2006-06-28  Simon Josefsson  <jas@extundo.com>
76413
76414         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76415         on _WIN32.
76416
76417         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76418         getnameinfo.
76419
76420 2006-06-28  Simon Josefsson  <jas@extundo.com>
76421
76422         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76423
76424 2006-06-28  Simon Josefsson  <jas@extundo.com>
76425
76426         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76427         functions there.  It will succeed on Windows XP, but on Windows
76428         2000 and (presumably) earlier, it will fail, and use the internal
76429         re-implementation.
76430         (use_win32_p): New function.
76431         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76432         Support AI_NUMERICSERV to disable getservbyname.
76433         (getnameinfo): New function, only supports
76434         NI_NUMERICHOST|NI_NUMERICSERV for now.
76435
76436         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76437         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76438         getnameinfo.
76439
76440 2006-06-28  Eric Blake  <ebb9@byu.net>
76441
76442         * modules/wcwidth: New file.
76443         * modules/mbchar (Depends-on): Add wcwidth.
76444         * modules/mbswidth (Depends-on): Add wcwidth.
76445         * MODULES.html.sh: Add wcwidth.
76446
76447 2006-06-28  Eric Blake  <ebb9@byu.net>
76448
76449         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76450         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76451
76452 2006-06-28  Eric Blake  <ebb9@byu.net>
76453
76454         * lib/xvasprintf.h: Fix comments.
76455
76456 2006-06-28  Eric Blake  <ebb9@byu.net>
76457
76458         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76459         * lib/mbswidth.c (wcwidth): Move from here...
76460         * lib/wcwidth.h: ...to this new file.
76461
76462 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76463
76464         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76465
76466         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76467         it's obsolete.
76468         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76469
76470 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76471
76472         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76473         Autoconf 2.60 says this stuff was obsolete.
76474
76475 2006-06-28  Bruno Haible  <bruno@clisp.org>
76476
76477         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76478
76479 2006-06-28  Bruno Haible  <bruno@clisp.org>
76480
76481         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76482         gt_TYPE_WCHAR_T.
76483
76484 2006-06-28  Bruno Haible  <bruno@clisp.org>
76485
76486         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76487         declaration for wcwidth.
76488         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76489
76490 2006-06-28  Bruno Haible  <bruno@clisp.org>
76491
76492         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76493         (mkdir): Define using _mkdir.
76494
76495 2006-06-28  Bruno Haible  <bruno@clisp.org>
76496
76497         * lib/getaddrinfo.h: Fix POSIX URL.
76498         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76499         _WIN32.
76500         (use_win32_p): Make static.
76501         (getaddrinfo): Reject service name if it is empty or does not consist
76502         solely of decimal digits, or if its value is > 65535.
76503         (getnameinfo): Remove useless casts.
76504
76505 2006-06-27  Simon Josefsson  <jas@extundo.com>
76506
76507         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76508         Eggert and Martin Lambers.
76509
76510 2006-06-27  Simon Josefsson  <jas@extundo.com>
76511
76512         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76513         Eggert and Martin Lambers.
76514
76515 2006-06-27  Bruno Haible  <bruno@clisp.org>
76516
76517         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76518         result to 0, not to empty.
76519         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76520
76521 2006-06-27  Bruno Haible  <bruno@clisp.org>
76522
76523         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76524
76525 2006-06-26  Simon Josefsson  <jas@extundo.com>
76526
76527         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76528         present.
76529
76530 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76531
76532         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76533         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76534         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76535
76536 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76537
76538         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76539
76540 2006-06-26  Bruno Haible  <bruno@clisp.org>
76541
76542         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76543
76544 2006-06-26  Bruno Haible  <bruno@clisp.org>
76545
76546         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76547
76548 2006-06-26  Bruno Haible  <bruno@clisp.org>
76549
76550         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76551         SGI C compiler in pre-C99 mode.
76552         Suggested by Mark D. Baushke and Larry Jones.
76553
76554 2006-06-26  Bruno Haible  <bruno@clisp.org>
76555
76556         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76557         WCHAR_MAX.
76558         Reported by Mark D. Baushke and Larry Jones.
76559
76560 2006-06-26  Bruno Haible  <bruno@clisp.org>
76561
76562         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76563         in pre-C99 mode.
76564         Suggested by Mark D. Baushke and Larry Jones.
76565
76566 2006-06-23  Simon Josefsson  <jas@extundo.com>
76567             Bruno Haible  <bruno@clisp.org>
76568
76569         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76570         Emit mostlyclean-local rule.
76571         (func_emit_tests_Makefile_am): Likewise.
76572         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76573
76574 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76575
76576         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76577
76578 2006-06-23  Bruno Haible  <bruno@clisp.org>
76579
76580         * tests/test-stdint.c: Update to match ISO C 99 Technical
76581         Corrigendum 1.
76582
76583 2006-06-23  Bruno Haible  <bruno@clisp.org>
76584
76585         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76586
76587 2006-06-23  Bruno Haible  <bruno@clisp.org>
76588
76589         * lib/stdint_.h: Treat IRIX like OpenBSD.
76590
76591 2006-06-23  Bruno Haible  <bruno@clisp.org>
76592
76593         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76594         ISO C 99 Technical Corrigendum 1.
76595
76596 2006-06-22  Simon Josefsson  <jas@extundo.com>
76597
76598         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76599         MinGW.
76600
76601 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76602
76603         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76604         needed.  Some compiler complained about some of them.  Problem reported
76605         by Larry Jones in
76606         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76607
76608 2006-06-21  Simon Josefsson  <jas@extundo.com>
76609
76610         * tests/test-getaddrinfo.c: New file.
76611
76612         * modules/getaddrinfo-tests: New file.
76613
76614         * MODULES.html.sh: Add inet_pton.
76615
76616         * modules/inet_pton: New file.
76617
76618 2006-06-21  Simon Josefsson  <jas@extundo.com>
76619
76620         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76621         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76622         of using the (limited) gnulib implementation on Windows XP.
76623
76624         * m4/inet_pton.m4: New file.
76625
76626 2006-06-21  Simon Josefsson  <jas@extundo.com>
76627
76628         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76629         variable.
76630
76631         * lib/socket_.h: Don't define WINVER.
76632
76633         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76634         slightly modified to work in gnulib.
76635
76636 2006-06-21  Simon Josefsson  <jas@extundo.com>
76637
76638         * doc/gnulib.texi (Windows sockets): Add.
76639
76640 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76641
76642         * lib/read-file.c (fread_file): Start with buffer allocation of
76643         0 bytes rather than 1 byte; this simplifies the code.
76644         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76645         code to free buffer and save/restore errno.
76646         (internal_read_file): Remove unused local.
76647
76648 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76649
76650         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76651         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76652         Problem reported by Denis Excoffier in
76653         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76654
76655 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76656
76657         * modules/sys_socket, modules/socklen: Include sys/types since
76658         FreeBSD 4.x's sys/socket.h needs it.
76659
76660 2006-06-19  Simon Josefsson  <jas@extundo.com>
76661
76662         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76663
76664 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76665
76666         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76667
76668 2006-06-19  Bruno Haible  <bruno@clisp.org>
76669
76670         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76671         and FULL_PATH_INTTYPES_H in angle brackets.
76672         Reported by Mark D. Baushke <mdb@gnu.org>.
76673
76674 2006-06-17  Eric Blake  <ebb9@byu.net>
76675
76676         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76677         errno.
76678
76679 2006-06-17  Bruno Haible  <bruno@clisp.org>
76680
76681         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76682         <sys/inttypes.h>.
76683
76684 2006-06-17  Bruno Haible  <bruno@clisp.org>
76685
76686         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76687         whether errno is declared. Assume <errno.h> declares errno.
76688
76689 2006-06-17  Bruno Haible  <bruno@clisp.org>
76690
76691         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76692
76693 2006-06-17  Bruno Haible  <bruno@clisp.org>
76694
76695         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76696         problem on Solaris 2.5.1.
76697
76698 2006-06-16  Eric Blake  <ebb9@byu.net>
76699
76700         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76701         * lib/unicodeio.c [!defined errno]: Likewise.
76702         * lib/strtol.c [!defined errno]: Likewise.
76703         * lib/strtod.c [!defined errno]: Likewise.
76704
76705 2006-06-15  Eric Blake  <ebb9@byu.net>
76706
76707         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76708
76709 2006-06-15  Eric Blake  <ebb9@byu.net>
76710
76711         * config/srclist.txt (ssize_t.m4): Lose sync.
76712
76713 2006-06-15  Bruno Haible  <bruno@clisp.org>
76714
76715         * modules/stdint (Files): Include m4/full-header-path.m4,
76716         m4/size_max.m4, m4/wchar_t.m4.
76717         (Makefile.am): Many more substitutions.
76718         * modules/stdint-tests: New file.
76719         * tests/test-stdint.c: New file.
76720
76721 2006-06-15  Bruno Haible  <bruno@clisp.org>
76722
76723         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76724         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76725         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76726         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76727         gl_CHECK_TYPE_SAME): New macros.
76728
76729 2006-06-15  Bruno Haible  <bruno@clisp.org>
76730
76731         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76732
76733 2006-06-15  Bruno Haible  <bruno@clisp.org>
76734
76735         * lib/stdint_.h: Rewritten to be fully auto-configured.
76736         Fixes bug on HP-UX/IA64.
76737
76738 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76739
76740         * lib/getdate.y (__attribute__): Don't define if already defined.
76741         Problem reported by Larry Jones.
76742         * lib/utimens.c (__attribute__): Likewise.
76743
76744 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76745
76746         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76747         reported by Andreas Schwab.
76748
76749 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76750             Bruno Haible  <bruno@clisp.org>
76751
76752         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76753         check for the declaration of strnlen and a run test that exposes the
76754         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76755         rpl_strndup.
76756
76757 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76758             Bruno Haible  <bruno@clisp.org>
76759
76760         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76761
76762 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76763
76764         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76765         compile test, for Tru64 4.0D.
76766
76767 2006-05-28  Karl Berry  <karl@gnu.org>
76768
76769         * config/srclist.txt (printf-args.c): lose sync.
76770
76771 2006-05-26  Martin Lambers  <marlam@marlam.de>
76772
76773         * lib/getpass.c: Updates the test for the native W32 API, and adds
76774         missing includes, thus fixing compilation warnings.
76775
76776 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76777
76778         * lib/exclude.c (exclude_fnmatch): New function.
76779         (excluded_file_name): Call exclude_fnmatch.
76780         * lib/exclude.h (excluded_file_name): New prototype
76781
76782 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76783
76784         * lib/tempname.c (small_open, large_open): New macros.
76785         (__open, __open64) [!_LIBC]: Remove.
76786         (__gen_tempname): Use small_open and large_open instead of __open
76787         and __open64.  This fixes a portability bug on HP-UX 11.11i
76788         reported by Simon Wing-Tang in
76789         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76790
76791 2006-05-24  Bruno Haible  <bruno@clisp.org>
76792
76793         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76794         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76795         Reported by Thorsten Maerz <torte@netztorte.de> via
76796         Aaron Stone <aaron@serendipity.cx>.
76797
76798 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76799
76800         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76801         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76802         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76803         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76804         not really conditional on the cache.
76805         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76806
76807 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76808
76809         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76810         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76811         (my_usleep): Don't mishandle maximum value.
76812
76813 2006-05-19  Jim Meyering  <jim@meyering.net>
76814
76815         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76816
76817 2006-05-17  Bruno Haible  <bruno@clisp.org>
76818
76819         Cygwin portability.
76820         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76821
76822 2006-05-17  Bruno Haible  <bruno@clisp.org>
76823
76824         * lib/stdint_.h: Fix recognition of Cygwin.
76825
76826 2006-05-15  Bruno Haible  <bruno@clisp.org>
76827
76828         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76829         on libtool patch by Ralf Wildenhues.
76830
76831 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76832
76833         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76834         test for C99 conformance; (bool) 0.5 is an integer constant
76835         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76836         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76837
76838 2006-05-11  Simon Josefsson  <jas@extundo.com>
76839
76840         * m4/xvasprintf.m4: Fix obvious typo.
76841
76842 2006-05-11  Jim Meyering  <jim@meyering.net>
76843
76844         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76845         James Lemley.
76846
76847 2006-05-10  Simon Josefsson  <jas@extundo.com>
76848
76849         * lib/md4.c: Typo fix, update copyright years.
76850         (K1, K2): Don't use L because it turn computations into 64-bit on
76851         64-bit platforms.
76852
76853 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76854
76855         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76856         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76857         unwanted sign propagation, e.g., on hosts with 64-bit int.
76858         There still are some problems with reeelly weird theoretical hosts
76859         (e.g., 33-bit int) but it's not worth worrying about now.
76860         * lib/sha1.c (rol): Likewise.
76861         (K1, K2, K3, K4): Remove unnecessary L suffix.
76862
76863 2006-05-10  Bruno Haible  <bruno@clisp.org>
76864
76865         * lib/des.c: Cast to avoid warnings.
76866
76867 2006-05-09  Bruno Haible  <bruno@clisp.org>
76868
76869         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76870         (Depends-on): Depend also on xsize, stdarg.
76871         (configure.ac): Add gl_XVASPRINTF.
76872
76873 2006-05-09  Bruno Haible  <bruno@clisp.org>
76874
76875         * m4/xvasprintf.m4: New file.
76876
76877 2006-05-09  Bruno Haible  <bruno@clisp.org>
76878
76879         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76880         (EOVERFLOW): Define fallback value.
76881         (xstrcat): New function.
76882         (xvasprintf): Recognize the special case of a string concatenation.
76883
76884 2006-05-08  Eric Blake  <ebb9@byu.net>
76885
76886         * gnulib-tool (func_version): Base copyright year on CVS date.
76887         (func_emit_copyright_notice): New function.
76888         (func_emit_lib_Makefile_am): Use it.
76889         (func_emit_tests_Makefile_am): Likewise.
76890         (func_import): Likewise.
76891
76892 2006-05-08  Bruno Haible  <bruno@clisp.org>
76893
76894         * modules/stdarg: New file.
76895         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76896
76897 2006-05-08  Bruno Haible  <bruno@clisp.org>
76898
76899         * m4/stdarg.m4: New file, from GNU gettext.
76900
76901 2006-05-08  Bruno Haible  <bruno@clisp.org>
76902
76903         * config/srclist.txt (build-aux/config.rpath): different from latest
76904         release.
76905
76906 2006-05-08  Bruno Haible  <bruno@clisp.org>
76907
76908         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76909
76910 2006-05-05  Jim Meyering  <jim@meyering.net>
76911
76912         * m4/warning.m4: New file, derived from bison's file by the same name.
76913
76914 2006-05-03  Bruno Haible  <bruno@clisp.org>
76915
76916         * lib/stdint_.h: Shorter URL.
76917         * lib/inttypes.h: Likewise.
76918
76919 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76920
76921         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76922
76923 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76924
76925         * lib/verify.h: Document the internals better.  Most of this change
76926         was written by Bruno Haible.
76927
76928 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76929
76930         * doc/verify.texi: New file, partly based on a proposal by
76931         Bruno Haible.
76932
76933 2006-05-02  Bruno Haible  <bruno@clisp.org>
76934
76935         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
76936         test from here...
76937         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
76938
76939 2006-04-29  Bruno Haible  <bruno@clisp.org>
76940
76941         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
76942         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
76943
76944 2006-04-29  Bruno Haible  <bruno@clisp.org>
76945
76946         * gnulib-tool: Make --update option actually work.
76947
76948 2006-04-29  Bruno Haible  <bruno@clisp.org>
76949
76950         * doc/gcd.texi: New file.
76951         * doc/gnulib.texi: Include it.
76952
76953 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
76954
76955         * lib/getdate.y (get_date): When adding relative date, start with the
76956         initial time, not with the result of the first mktime call.
76957
76958 2006-04-25  Bruno Haible  <bruno@clisp.org>
76959
76960         * gnulib-tool (func_import): Output the include directives in three
76961         blocks, sorted separately.
76962         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76963
76964 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76965
76966         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
76967         to define main with arguments, for C++.  Reported by Eric Blake.
76968         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
76969         Prefer 'int main ()' to 'int main (void)', for C++.
76970         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
76971         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
76972         for 'main', for C99 and C++.
76973
76974 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76975
76976         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
76977         Don't assume that exit status -1 is valid.
76978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76979         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76980         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76981         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
76982         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
76983         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
76984         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
76985         functions can be used without declaring them, or that you can
76986         exit with status -1.
76987         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76988
76989 2006-04-24  Karl Berry  <karl@gnu.org>
76990
76991         * config/srclist.txt (longdouble.m4): sync lost.
76992
76993 2006-04-24  Eric Blake  <ebb9@byu.net>
76994
76995         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
76996
76997 2006-04-24  Bruno Haible  <bruno@clisp.org>
76998
76999         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77000         poll() implementation in AIX.
77001         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77002
77003 2006-04-24  Bruno Haible  <bruno@clisp.org>
77004
77005         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77006         assigned exactly once.
77007
77008 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77009             Bruno Haible  <bruno@clisp.org>
77010
77011         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77012         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77013         for AM_CPPFLAGS.
77014
77015 2006-04-23  Bruno Haible  <bruno@clisp.org>
77016
77017         * modules/copy-file: Depend on unistd.
77018         * modules/execute: Likewise.
77019         * modules/fatal-signal: Likewise.
77020         * modules/findprog: Likewise.
77021         * modules/mkdtemp : Likewise.
77022         * modules/pipe: Likewise.
77023         * modules/wait-process: Likewise.
77024
77025 2006-04-23  Bruno Haible  <bruno@clisp.org>
77026
77027         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77028         condition was already detected.
77029         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77030
77031 2006-04-23  Bruno Haible  <bruno@clisp.org>
77032
77033         * lib/copy-file.c: Include <unistd.h> unconditionally.
77034         * lib/execute.c: Likewise.
77035         * lib/fatal-signal.c: Likewise.
77036         * lib/findprog.c: Likewise.
77037         * lib/mkdtemp.c: Likewise.
77038         * lib/pipe.h: Likewise.
77039         * lib/pipe.c: Likewise.
77040         * lib/wait-process.h: Likewise.
77041
77042 2006-04-23  Bruno Haible  <bruno@clisp.org>
77043
77044         * gnulib-tool (func_usage): Fix --import description. Document
77045         --update.
77046         (func_import): Create temporary file in a temporary directory, if
77047         --dry-run is specified. Silence errors from 'grep' when there are no
77048         m4 files in $m4dir.
77049         (func_create_testdir): Silence errors from 'grep' when there are no
77050         m4 files in $m4dir.
77051         Reported by Karl Berry <karl@freefriends.org>.
77052
77053 2006-04-20  Bruno Haible  <bruno@clisp.org>
77054
77055         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77056         one argument, so that the code will be portable to Autoconf 2.60.
77057         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77058         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77059         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77060
77061 2006-04-19  Derek Price  <derek@ximbiot.com>
77062             Eric Blake  <ebb9@byu.net>
77063
77064         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77065         rather than "/full/path.h".  Update comment to match.  Shorten &
77066         generalize m4_translit call via AS_TR_CPP.
77067
77068 2006-04-19  Derek Price  <derek@ximbiot.com>
77069             Eric Blake  <ebb9@byu.net>
77070
77071         * lib/inttypes.h: Correct grammar in comment.
77072
77073 2006-04-18  Derek Price  <derek@ximbiot.com>
77074             Paul Eggert  <eggert@cs.ucla.edu>
77075
77076         * modules/inttypes: New file.
77077         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77078
77079 2006-04-18  Derek Price  <derek@ximbiot.com>
77080             Paul Eggert  <eggert@cs.ucla.edu>
77081
77082         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77083         New files.
77084
77085 2006-04-18  Derek Price  <derek@ximbiot.com>
77086             Paul Eggert  <eggert@cs.ucla.edu>
77087
77088         * lib/inttypes.h: New file.
77089         * lib/strtoimax.c: Assume <inttypes.h>.
77090
77091 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77092
77093         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77094         isn't mounted.  Problem reported by Kir Kolyshkin.
77095
77096 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77097
77098         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77099         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77100         Derek R. Price.
77101         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77102         implementation.
77103
77104 2006-04-12  Eric Blake  <ebb9@byu.net>
77105
77106         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77107         is now done automatically by the corresponding Autoconf macro.
77108
77109 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77110
77111         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77112         time_r.h.
77113
77114 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77115
77116         Merge regex changes from libc, removing some of our
77117         POSIX-conformance changes that were rejected and redoing them in a
77118         less-intrusive way.
77119
77120         * lib/regcomp.c (re_compile_internal, init_dfa):
77121         Length arg is now size_t, not Idx.  All uses changed.
77122         (peek_token): Forward decl now says internal_function.
77123         (__re_error_msgid, __re_error_msgid_idx):
77124         Now static rather than extern with attribute_hidden.
77125         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77126         For some reason libc prefers K&R style defns for external functions.
77127         (regerror) [!defined _LIBC]: Likewise.
77128         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77129         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77130         (build_range_exp, build_collating_symbol):
77131         Use K&R-style defn.
77132         (re_compile_fastmap): Use '\0' to memset, not 0.
77133         (utf8_sb_map): Make the calculations more obvious.
77134         (init_dfa, parse_bracket_exp, build_charclass_op):
77135         Call calloc and cast result, as glibc does.
77136         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77137         (build_range_exp, build_collating_symbol):
77138         Now internal functions.
77139
77140         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77141
77142         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77143         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77144         Don't depend on VMS; depend on __VMS instead, for POSIX
77145         namespace cleanness.
77146         (regoff_t): Define to ssize_t, not long int.
77147
77148         Remove the REG_ macros named below.  Instead, make the old names
77149         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77150         __USE_GNU_REGEX.
77151         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77152         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77153         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77154         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77155         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77156         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77157         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77158         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77159         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77160         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77161         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77162         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77163         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77164         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77165         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77166         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77167         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77168         (REG_NREGS):
77169         Remove.  All uses replaced by the old RE_* names.
77170         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77171         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77172         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77173         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77174         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77175         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77176         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77177         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77178         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77179         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77180         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77181         Don't bother having these macros be independent of each others'
77182         values, since they no longer exist in the POSIX name space.
77183
77184         Rename the following member names back to their old names,
77185         unless !__USE_GNU_REGEX.  All uses changed back.
77186         (buffer): Renamed from re_buffer.
77187         (allocated): Renamed from re_allocated.
77188         (used): Renamed from re_used.
77189         (syntax): Renamed from re_syntax.
77190         (fastmap): Renamed from re_fastmap.
77191         (translate): Renamed from re_translate.
77192         (can_be_null): Renamed from re_can_be_null.
77193         (regs_allocated): Renamed from re_regs_allocated.
77194         (fastmap_accurate): Renamed from re_fastmap_accurate.
77195         (no_sub): Renamed from re_no_sub.
77196         (not_bol): Renamed from re_not_bol.
77197         (not_eol): Renamed from re_not_eol.
77198         (newline_anchor): Renamed from re_newline_anchor.
77199         (num_regs): Renamed from rm_num_regs.
77200         (start): Renamed from rm_start.
77201         (end): Renamed from rm_end.
77202
77203         (free_state): Move up a bit.
77204
77205         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77206         #define to be empty.
77207         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77208         when that is what is intended.
77209         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77210         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77211         (MAX): New macro.
77212         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77213         All uses changed back to re_malloc, etc.  It's now the caller's
77214         responsibility to check for overflow; all callers changed.
77215         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77216         (re_x2nrealloc): Remove.
77217         (free_state): Remove decl.
77218
77219         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77220         (re_set_registers, re_exec):
77221         Use K&R-style defn.
77222
77223         2006-01-31  Roland McGrath  <roland@redhat.com>
77224
77225         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77226         Reported by Mike Frysinger <vapier@gentoo.org>.
77227
77228         2006-01-15  Andreas Jaeger  <aj@suse.de>
77229
77230         [BZ #1950]
77231         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77232         build_wcs_upper_buffer change.
77233         (build_wcs_upper_buffer): Change return type.
77234
77235         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77236
77237         * lib/regex_internal.h: Include <stdint.h> if available.
77238
77239         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77240
77241         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77242
77243         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77244
77245         * lib/regcomp.c: Adjust for changed secondary hash function.
77246
77247         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77248
77249         * lib/regex.h: Pretty printing.
77250         Clean up namespace a bit.
77251
77252         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77253
77254         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77255         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77256
77257         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77258                     Ulrich Drepper  <drepper@redhat.com>
77259
77260         [BZ #1302]
77261         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77262         changed.
77263         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77264
77265         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77266
77267         [BZ #281]
77268         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77269         * lib/regcomp.c: Remove unnecessary uses of
77270         unsigned RE_TRANSLATE_TYPE.
77271         * lib/regex_internal.h: Likewise.
77272         * lib/regex_internal.c: Likewise.
77273         * lib/regexec.c: Likewise.
77274         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77275
77276         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77277
77278         * lib/regexec.c (find_recover_state): Remove unnecessary
77279         initialization.
77280         (transit_state_bkref): Make DFA a const pointer.
77281         (get_subexp): Likewise.
77282         (check_arrival): Likewise.
77283         (update_cur_sifted_state): Likewise.
77284         (re_search_internal): Likewise.
77285         (prune_impossible_nodes): Likewise.
77286         (acquire_init_state_context): Likewise.
77287         (proceed_next_node): Likewise.
77288         (set_regs): Likewise.
77289         (free_fail_stack_return): Likewise.
77290         (check_arrival_expand_ecl): Mark DFA parameter as const.
77291         (check_arrival_expand_ecl_sub): Likewise.
77292         (check_subexp_limits): Likewise.
77293         (sub_epsilon_src_nodes):  Likewise.
77294         (add_epsilon_src_nodes):  Likewise.
77295         (merge_state_array): Likewise.
77296         (update_regs): Likewise.
77297         (build_trtable): Likewise.
77298         (sift_states_backward): Mark MCTX parameter as const.
77299         (build_sifted_states): Likewise.
77300         (update_cur_sifted_state): Likewise.
77301         (sift_states_mkref): Likewise.
77302         (check_arrival_expand_ecl): Mark eclosure as const.
77303         (check_dst_limits_calc_pos_1): Likewise.
77304         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77305         pointer.
77306
77307         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77308
77309         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77310         (transit_state_sb): Likewise.
77311         (transit_state_mb): Likewise.
77312         (sift_states_iter_mb): Likewise.
77313         (check_arrival_add_next_nodes): Likewise.
77314         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77315         [_LIBC] (re_search_2_stub): Use mempcpy.
77316
77317         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77318         mbrtowc for very simple UTF-8 case.
77319
77320         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77321         a pointer-to-const.
77322         (re_acquire_state_context): Likewise.
77323         * lib/regex_internal.h: Adjust prototypes.
77324
77325         * lib/regex.c: Prevent using C++ compilers.
77326
77327         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77328         (re_acquire_state_context): Likewise.
77329
77330 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77331
77332         * modules/regex (Depends-on): Add ssize_t.
77333
77334 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77335
77336         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77337         translation table.
77338
77339 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77340
77341         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77342
77343 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77344             Bruno Haible  <bruno@clisp.org>
77345
77346         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77347         <sys/types.h> and <inttypes.h>.
77348
77349 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77350
77351         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77352         `__error_t_defined', so argp.h will not typedef the former.
77353
77354 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77355
77356         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77357         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77358         glibc names.  Even if glibc is changed to conform to POSIX, the
77359         traditional names will be available anyway, since regex depends on
77360         the extensions module.  Also, fix a longstanding typo in the
77361         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77362         reported by Emanuele Giaquinta.  Also, change sense of cached
77363         variable, so that the message makes sense.
77364
77365 2006-03-24  Simon Josefsson  <jas@extundo.com>
77366
77367         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77368         including some doc fixes.
77369         (base64_encode_alloc): Fix +1 bug on allocation failures.
77370
77371 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77372
77373         * lib/base64.c (base64_encode): Do not read past end of array with
77374         unsanitized input on systems with CHAR_BIT > 8.
77375
77376 2006-03-24  Eric Blake  <ebb9@byu.net>
77377
77378         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77379
77380 2006-03-22  Karl Berry  <karl@gnu.org>
77381
77382         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77383         * config/srclistvars.sh (COREUTILS): new var.
77384
77385 2006-03-17  Jim Meyering  <jim@meyering.net>
77386
77387         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77388         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77389
77390 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77391
77392         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77393         no longer needs it.  Instead, check that regoff_t is as least
77394         as wide as ptrdiff_t.
77395
77396         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77397         so that our regex.h stays compatible with the installed regex.
77398         This is helpful for installers who configure --without-included-regex.
77399         Problem reported by Emanuele Giaquinta.
77400
77401 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77402
77403         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77404         Typedef to long int, not to off_, as POSIX will likely change
77405         in that direction.
77406
77407 2006-03-15  Eric Blake  <ebb9@byu.net>
77408
77409         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77410
77411 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77412
77413         * lib/argp-help.c (validate_uparams): Fix typo
77414         * lib/argp-parse.c (argp_default_options): Consistently begin help
77415         messages with a lowercase letter.
77416
77417 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77418
77419         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77420         overrun buffers and shouldn't be used (much as gets shouldn't be
77421         used).
77422         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77423
77424 2006-03-08  Simon Josefsson  <jas@extundo.com>
77425
77426         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77427         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77428
77429 2006-03-08  Simon Josefsson  <jas@extundo.com>
77430
77431         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77432         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77433
77434 2006-03-08  Simon Josefsson  <jas@extundo.com>
77435
77436         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77437         signal that configure disabled the device.
77438
77439 2006-03-08  Simon Josefsson  <jas@extundo.com>
77440
77441         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77442         languages.
77443
77444 2006-03-07  Simon Josefsson  <jas@extundo.com>
77445
77446         * modules/getopt (Depends-on): Add unistd.
77447
77448         * modules/unistd: New file.
77449
77450 2006-03-07  Simon Josefsson  <jas@extundo.com>
77451
77452         * modules/gc-random: New file.
77453
77454 2006-03-07  Simon Josefsson  <jas@extundo.com>
77455
77456         * m4/unistd_h.m4: New file.
77457
77458 2006-03-07  Simon Josefsson  <jas@extundo.com>
77459
77460         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77461         test to be side-effect free by storing the result in the cache
77462         variable gl_cv_lib_readline, and moving the assignment of
77463         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77464         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77465
77466 2006-03-07  Simon Josefsson  <jas@extundo.com>
77467
77468         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77469         error on missing devices (the functions will return an error).
77470
77471         * m4/gc.m4: Move random stuff to gc-random.m4
77472
77473 2006-03-07  Simon Josefsson  <jas@extundo.com>
77474
77475         * lib/unistd_.h: New file.
77476
77477 2006-03-07  Simon Josefsson  <jas@extundo.com>
77478
77479         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77480
77481 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77482
77483         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77484         Problem reported by Juan Manuel Guerrero.
77485
77486 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77487
77488         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77489         the unistd module.
77490         * lib/getlogin_r.c: Likewise.
77491         * lib/getlogin_r.h: Likewise.
77492         * lib/glob.c: Likewise.
77493         * lib/pagealign_alloc.c: Likewise.
77494         * lib/unistd_.h: Remove; no longer needed.
77495
77496 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77497
77498         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77499         Add unistd.
77500         * modules/c-stack (Depends-on): Add unistd.
77501         * modules/getlogin_r: Likewise.
77502         * modules/glob: Likewise.
77503         * modules/pagealign_alloc: Likewise.
77504         * modules/unistd (Files): Remove lib/unistd_.h.
77505         (EXTRA_DIST): Remove.
77506         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77507         need unistd_.h.
77508         (MOSTLYCLEANFILES): Remove unistd.h-t.
77509
77510 2006-03-03  Simon Josefsson  <jas@extundo.com>
77511
77512         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77513
77514 2006-03-03  Simon Josefsson  <jas@extundo.com>
77515
77516         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77517         libidn and bison.
77518
77519 2006-03-03  Simon Josefsson  <jas@extundo.com>
77520
77521         * build-aux/maint.mk: Add indent target.
77522
77523 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77524
77525         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77526         our replacement poll.h in any case, to avoid a differing
77527         declaration from a system header.  Seen on AIX.
77528
77529 2006-03-01  Simon Josefsson  <jas@extundo.com>
77530
77531         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77532         <kasal@ucw.cz>.
77533
77534 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77535
77536         * modules/gettime (Depends-on): Add extensions module.
77537         * modules/nanosleep (Depends-on): Likewise.
77538         * modules/settime (Depends-on): Likewise.
77539
77540 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77541
77542         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77543         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77544         pedantically.
77545         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77546         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77547
77548         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77549         not "==".  Reported by Ralf Wildenhues.
77550
77551 2006-03-01  Karl Berry  <karl@gnu.org>
77552
77553         * doc/Copyright/request-*: new files, synced from gnuorg.
77554
77555 2006-03-01  Karl Berry  <karl@gnu.org>
77556
77557         * config/srclist.txt (Copyright/*): new entries.
77558
77559 2006-02-28  Simon Josefsson  <jas@extundo.com>
77560
77561         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77562
77563 2006-02-27  Simon Josefsson  <jas@extundo.com>
77564
77565         * lib/base64.h: Indent #define's.  From Jim Meyering
77566         <jim@meyering.net>.
77567
77568 2006-02-27  Jim Meyering  <jim@meyering.net>
77569
77570         Revert the change of 2006-02-24, so these files can continue
77571         to be sync'd from gettext.
77572         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77573         of `config.h'.
77574
77575 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77576
77577         * modules/intprops: New file.
77578         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77579         Add intprops.
77580         * modules/getloadavg (Files): Remove lib/intprops.h.
77581         (Depends-on): Add intprops.
77582         * modules/human: Likewise.
77583         * modules/inttostr: Likewise.
77584         * modules/openat: Likewise.
77585         * modules/sig2str: Likewise.
77586         * modules/userspec: Likewise.
77587         * modules/utimecmp: Likewise.
77588         * modules/xnanosleep: Likewise.
77589         * modules/xstrtol: Likewise.
77590
77591 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77592
77593         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77594         * modules/lock-tests (TESTS): Use $(EXEEXT).
77595         * modules/tls-tests: Likewise.
77596         * modules/argp-tests: Likewise.
77597         (check_PROGRAMS): New var, replacing...
77598         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77599
77600 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77601
77602         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77603         `config.h'.
77604
77605 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77606
77607         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77608
77609 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77610
77611         Sync from coreutils.
77612         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77613         gl_CHDIR_SAFER.
77614
77615 2006-02-22  Jim Meyering  <jim@meyering.net>
77616
77617         Sync from coreutils.
77618         * m4/chdir-safer.m4: New file.
77619
77620 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77621
77622         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77623         AT_FDCWD exceeds INT_MAX.
77624         * lib/openat.h (AT_FDCWD): Likewise.
77625
77626 2006-02-17  Eric Blake  <address@hidden>
77627
77628         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77629
77630 2006-02-16  Simon Josefsson  <jas@extundo.com>
77631
77632         * modules/getaddrinfo (Depends-on): Add sys_socket.
77633
77634 2006-02-15  Simon Josefsson  <jas@extundo.com>
77635
77636         * build-aux/maint.mk: Add dsyntax-check rule.
77637
77638 2006-02-15  Eric Blake  <ebb9@byu.net>
77639
77640         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77641         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77642         'present but cannot compile' warnings on cygwin.
77643         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77644         use ws2tcpip.h if sys/socket.h works.
77645         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77646         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77647
77648 2006-02-14  Simon Josefsson  <jas@extundo.com>
77649
77650         * modules/maintainer-makefile (Files): Rename.
77651
77652         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77653         and (the local) Makefile.cfg to maint-cfg.mk.
77654
77655         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77656         to the latter.
77657
77658         * modules/maintainer-makefile: New module.
77659
77660         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77661         severaly stripped to make it possible to build it up from scratch
77662         with reliable tests.
77663
77664         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77665         fixes to permit overriding the default actions when configure and
77666         makefile are not available.
77667
77668 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77669
77670         Sync from coreutils.
77671         * modules/lstat (Depends-on): Don't depend on xalloc.
77672         (License): Change from GPL to LGPL, since this is now simply a
77673         replacement for a libc function.
77674
77675 2006-02-14  Jim Meyering  <jim@meyering.net>
77676
77677         Sync from coreutils.
77678
77679         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77680         failure on deficient systems, and simplify gnulib lgpl dependencies.
77681         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77682         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77683
77684         * lib/xalloc-die.c: Remove unused definition of N_.
77685
77686 2006-02-14  Jim Meyering  <jim@meyering.net>
77687
77688         Sync from coreutils.
77689         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77690         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77691         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77692         double-quote uses of that variable, to accommodate the rare case in
77693         which getmntent is available in none of the libraries checked.  This
77694         happens at least on FreeBSD 5.0.
77695
77696 2006-02-13  Simon Josefsson  <jas@extundo.com>
77697
77698         * gnulib-tool (Usage): Fix --import, from
77699         karl@freefriends.org (Karl Berry).
77700
77701 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77702
77703         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77704
77705 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77706
77707         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77708         "autoupdate" on 2005-12-12.
77709
77710 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77711
77712         * modules/closeout (Depends-on): Remove atexit.
77713
77714 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77717         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77718
77719 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77720
77721         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77722         __EXTENSIONS__ if this causes compilation to fail.  Problem
77723         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77724         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77725
77726 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77727
77728         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77729         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77730         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77731         All uses changed.
77732
77733 2006-01-26  Simon Josefsson  <jas@extundo.com>
77734
77735         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77736         prototype is visible on mingw32.
77737
77738         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77739         for mingw32.
77740
77741         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77742         mingw32).
77743
77744 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77745
77746         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77747         attempt to open for write; this always fails, at least on POSIX
77748         hosts.  This reinstates the 2006-01-09 change, which was
77749         inadvertently removed.
77750
77751 2006-01-26  Bruno Haible  <bruno@clisp.org>
77752
77753         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77754         Reported by Paul Eggert.
77755
77756 2006-01-26  Bruno Haible  <bruno@clisp.org>
77757             Paul Eggert  <eggert@cs.ucla.edu>
77758
77759         * lib/stdbool_.h (_Bool)
77760         [(! (defined __cplusplus || defined __BEOS__)
77761           && !defined __GNUC__
77762           && !(defined __HP_cc || defined __xlc__
77763                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77764                || defined __sgi))]:
77765         #define to signed char in these cases too; this simplifies
77766         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77767         etc., separately) and makes it more conservative.
77768
77769 2006-01-25  Simon Josefsson  <jas@extundo.com>
77770
77771         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77772         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77773         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77774
77775 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77776
77777         * lib/argp-namefrob.h: Bugfix. Remove stray #
77778
77779 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77780
77781         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77782         so that we test the test.
77783         Check for yet another HP-UX cc bug involving *bool |= bool.
77784
77785 2006-01-25  Karl Berry  <karl@gnu.org>
77786
77787         * config/srclist.txt (vasnprintf.c): sync lost.
77788
77789 2006-01-25  Jim Meyering  <jim@meyering.net>
77790
77791         Sync from the stable (b5) branch of coreutils:
77792
77793         * lib/fts.c (fts_children): Don't let close() clobber errno from
77794         failed fchdir().
77795
77796         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77797         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77798         a dangling symlink.  That can also happen at least for ELOOP.
77799         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77800         FYI, this bug predates the inclusion of fts.c in coreutils.
77801
77802         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77803         in their own block, so pre-c99 compilers don't object.
77804
77805         Avoid the double-free (first in fts_read, second in fts_close) that
77806         would occur when an `active' directory is made inaccessible (e.g.,
77807         via chmod a-x) during a traversal.
77808         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77809         before returning.  Reproduce this failure by
77810         mkdir -p a/b; cd a; chmod a-x . b
77811         Reported by Stavros Passas.
77812
77813 2006-01-25  Jim Meyering  <jim@meyering.net>
77814
77815         * lib/fileblocks.c: Remove more useless parentheses.
77816         * lib/readutmp.h: Likewise.
77817
77818 2006-01-25  Bruno Haible  <bruno@clisp.org>
77819
77820         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77821         warnings.
77822         Reported by Paul Eggert.
77823
77824 2006-01-25  Bruno Haible  <bruno@clisp.org>
77825
77826         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77827         rid of a trap command. For Solaris sh.
77828         Reported by Mark D. Baushke <mdb@gnu.org>.
77829
77830 2006-01-24  Simon Josefsson  <jas@extundo.com>
77831
77832         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77833         Bruno.
77834
77835 2006-01-24  Karl Berry  <karl@gnu.org>
77836
77837         * config/srclist.txt (argp-namefrob.h): sync lost.
77838
77839 2006-01-24  Jim Meyering  <jim@meyering.net>
77840
77841         * modules/openat (Files): Add lib/intprops.h.
77842         From Mark D. Baushke.
77843
77844 2006-01-24  Jim Meyering  <jim@meyering.net>
77845
77846         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77847         Reported by Mark D. Baushke.
77848
77849 2006-01-24  Jim Meyering  <jim@meyering.net>
77850
77851         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77852
77853 2006-01-24  Bruno Haible  <bruno@clisp.org>
77854
77855         * modules/strnlen (Maintainer): Change from glibc to all.
77856
77857 2006-01-24  Bruno Haible  <bruno@clisp.org>
77858
77859         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77860         Patch by Paul Eggert.
77861
77862 2006-01-24  Bruno Haible  <bruno@clisp.org>
77863
77864         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77865         already has it.
77866         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77867         2005-11-26.
77868
77869         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77870         'signed char' to avoid problems with the built-in _Bool type.
77871         Reported by Paul Eggert on 2005-11-26.
77872
77873 2006-01-24  Bruno Haible  <bruno@clisp.org>
77874
77875         * gnulib-tool (func_import): Avoid constructing complicated sed
77876         expressions inside backquote.
77877         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77878
77879 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77880
77881         These changes imported from libc.
77882         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77883         test and two separate function calls.
77884         * lib/strndup.c (__strndup): Add libc_hidden_def.
77885
77886 2006-01-23  Simon Josefsson  <jas@extundo.com>
77887
77888         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77889         Remove the test_*_SOURCES variable: automake infers it by default.
77890         * modules/tls-tests: Likewise.
77891
77892 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77893
77894         Work around porting bugs reported by Dieter in
77895         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77896         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77897         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77898         Include "getopt.h" first, to check interface.
77899         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77900         !HAVE_DECL_GETENV.
77901         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77902         (__strndup): Revert to K&R-style function dfns, the glibc style.
77903         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77904         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77905         Include strnlen.h first, to get prototype properly.
77906         (strnlen): Renamed from __strnlen.
77907         Remove weak alias.
77908
77909 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77910
77911         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77912
77913 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77914
77915         * config/srclist.txt: Adjust to reflect glibc reorganization.
77916         This affects only comments.
77917
77918 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77919
77920          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77921          Reported by Bruce Korb <bkorb@gnu.org>.
77922
77923 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77924
77925         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77926         to pacify gcc -Wswitch-default.
77927
77928 2006-01-22  Bruno Haible  <bruno@clisp.org>
77929
77930         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
77931         temporary buffer for sprintf, take into account the precision also
77932         for 'd', 'i', 'u', 'o', 'x', 'X'.
77933
77934 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77935
77936         * modules/argp-tests: New module
77937         * tests/test-argp.c: New file
77938         * tests/test-argp-2.sh: New file
77939
77940 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77941
77942         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
77943         (__argp_base_name): Removed
77944         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
77945         typo.
77946         (__argp_base_name): Provide macro definition or extern declaration
77947         depending on the configuration
77948
77949 2006-01-20  Simon Josefsson  <jas@extundo.com>
77950
77951         * modules/inet_ntop (Depends-on): Depend on sys_socket.
77952
77953 2006-01-20  Simon Josefsson  <jas@extundo.com>
77954
77955         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
77956
77957 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77958
77959         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
77960         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
77961         Suggested by Bruno Haible.
77962
77963 2006-01-20  Karl Berry  <karl@gnu.org>
77964
77965         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
77966         until changes propagate, I guess.
77967
77968 2006-01-19  Simon Josefsson  <jas@extundo.com>
77969
77970         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
77971
77972 2006-01-19  Simon Josefsson  <jas@extundo.com>
77973
77974         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
77975
77976 2006-01-19  Simon Josefsson  <jas@extundo.com>
77977
77978         * gnulib-tool: Set check_PROGRAMS.
77979
77980         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77981         modules/des-tests, modules/gc-arcfour-tests,
77982         modules/gc-arctwo-tests, modules/gc-des-tests,
77983         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77984         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77985         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77986         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77987         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77988         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
77989         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
77990         test_*_SOURCES.
77991
77992 2006-01-18  Simon Josefsson  <jas@extundo.com>
77993
77994         * modules/socklen (Depends-on): Depend on sys_socket.
77995
77996 2006-01-18  Simon Josefsson  <jas@extundo.com>
77997
77998         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77999         modules/des-tests, modules/gc-arcfour-tests,
78000         modules/gc-arctwo-tests, modules/gc-des-tests,
78001         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78002         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78003         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78004         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78005         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78006         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78007         $(EXEEXT) to automake TESTS variable, for mingw32.
78008
78009 2006-01-17  Simon Josefsson  <jas@extundo.com>
78010
78011         * modules/socklen (Include): Need sys/socket.h.
78012
78013 2006-01-17  Bruno Haible  <bruno@clisp.org>
78014
78015         * modules/ssize_t (Include): Add <sys/types.h>.
78016
78017 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78018
78019         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78020         it's not portable and it doesn't work with cross-compiles.
78021         Problem reported by Bruno Haible.  Fix missing-$ typo in
78022         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78023         -zignore from being used with Sun's C compiler.
78024
78025 2006-01-12  Simon Josefsson  <jas@extundo.com>
78026
78027         * lib/base64.c: Fix warning, reported by Bruno Haible
78028         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78029
78030 2006-01-12  Bruno Haible  <bruno@clisp.org>
78031
78032         * modules/ldd: New file.
78033         * build-aux/ldd.sh.in: New file.
78034         * MODULES.html.sh (Support for building libraries and executables): Add
78035         ldd.
78036
78037 2006-01-12  Bruno Haible  <bruno@clisp.org>
78038
78039         * m4/ldd.m4: New file.
78040
78041 2006-01-12  Bruno Haible  <bruno@clisp.org>
78042
78043         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78044         endless loop while replacing $auxdir with build-aux.
78045
78046 2006-01-11  Simon Josefsson  <jas@extundo.com>
78047
78048         * lib/stdint_.h (SIZE_MAX): Add missing (.
78049
78050 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78051
78052         Sync from coreutils.
78053         * lib/md5.c: Fix commentary typos.
78054         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78055         * lib/md5.h (__attribute__): Remove; unused.
78056         * lib/sha1.c: Fix commentary to match md5 better.
78057         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78058         so that we don't need to worry about alignment.  All uses changed.
78059         This merges the 2005-10-28 md5 change into sha1.
78060
78061 2006-01-11  Jim Meyering  <jim@meyering.net>
78062
78063         Sync from coreutils.
78064         * lib/md5.c (OP): Fix spacing.
78065
78066 2006-01-11  Bruno Haible  <bruno@clisp.org>
78067
78068         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78069         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78070         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78071
78072 2006-01-11  Bruno Haible  <bruno@clisp.org>
78073
78074         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78075         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78076         the "early" section as well.
78077
78078 2006-01-11  Bruno Haible  <bruno@clisp.org>
78079
78080         Avoid "ar: no archive members specified" error on MacOS X.
78081         * gnulib-tool (func_modules_add_dummy): New function.
78082         (func_import, func_create_testdir): Invoke it.
78083
78084 2006-01-11  Bruno Haible  <bruno@clisp.org>
78085
78086         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78087         with $auxdir in AC_CONFIG_FILES statements.
78088
78089 2006-01-11  Bruno Haible  <bruno@clisp.org>
78090
78091         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78092         Initialize also noinst_HEADERS to empty.
78093
78094 2006-01-11  Bruno Haible  <bruno@clisp.org>
78095
78096         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78097         variables.
78098         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78099         autoreconf.
78100
78101 2006-01-11  Bruno Haible  <bruno@clisp.org>
78102
78103         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78104         overridable by the user.
78105         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78106
78107 2006-01-10  Simon Josefsson  <jas@extundo.com>
78108
78109         * modules/sys_socket: New file.
78110
78111 2006-01-10  Simon Josefsson  <jas@extundo.com>
78112
78113         * m4/sys_socket_h.m4: New file.
78114
78115 2006-01-10  Simon Josefsson  <jas@extundo.com>
78116
78117         * lib/socket_.h: New file.
78118
78119 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78120
78121         * modules/readutmp (Maintainer): Add myself.
78122
78123 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78124
78125         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78126         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78127         People who are still concerned with buggy memcmp implementations
78128         can invoke gl_FUNC_MEMCMP themselves.
78129
78130 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78131
78132         * lib/regex_internal.h (BITSET_WORD_BITS):
78133         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78134         preprocessor mishandles large unsigned values as if they were signed.
78135         Problem reported by Claudio Fontana in
78136         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78137
78138 2006-01-10  Jim Meyering  <jim@meyering.net>
78139
78140         Avoid the double-free (first in fts_read, second in fts_close) that
78141         would occur when an `active' directory is made inaccessible (e.g.,
78142         via chmod a-x) during a traversal.
78143         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78144         before returning.  Reproduce this failure by
78145         mkdir -p a/b; cd a; chmod a-x . b
78146         Reported by Stavros Passas.
78147
78148         Sync from coreutils.
78149         * lib/sha1.c: Tweak grammar in a comment.
78150
78151 2006-01-10  Jim Meyering  <jim@meyering.net>
78152
78153         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78154         Patch by Joerg Sonnenberger.
78155
78156 2006-01-10  Bruno Haible  <bruno@clisp.org>
78157
78158         * modules/readutmp: Depend on module free.
78159         * modules/strtok_r: Depend on module restrict.
78160
78161 2006-01-10  Bruno Haible  <bruno@clisp.org>
78162
78163         * modules/gettext (configure.ac): Add an invocation of
78164         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78165
78166 2006-01-10  Bruno Haible  <bruno@clisp.org>
78167
78168         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78169         Reported by Werner Lemberg <wl@gnu.org>.
78170
78171 2006-01-10  Bruno Haible  <bruno@clisp.org>
78172
78173         * lib/localcharset.c: Update from GNU gettext.
78174
78175 2006-01-10  Bruno Haible  <bruno@clisp.org>
78176
78177         * lib/argp.h (__const): Remove macro. Use const instead.
78178         * lib/argp-fmtstream.h (__const): Likewise.
78179         * lib/glob_.h (__const): Remove macro.
78180         * lib/glob-libc.h: Use const instead of __const.
78181
78182 2006-01-10  Bruno Haible  <bruno@clisp.org>
78183
78184         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78185         variable.
78186         Needed to avoid an automake error regarding the 'gettext' module.
78187
78188 2006-01-09  Simon Josefsson  <jas@extundo.com>
78189
78190         * modules/inet_ntop (Depends-on): Add restrict.
78191
78192 2006-01-09  Simon Josefsson  <jas@extundo.com>
78193
78194         * modules/gc-rijndael-tests (License): Put under LGPL.
78195
78196         * modules/gc-des-tests (License): Likewise.
78197
78198         * modules/gc-arcfour-tests (License): Likewise.
78199
78200         * modules/gc-arctwo-tests (License): Likewise.
78201
78202         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78203
78204         * modules/gc-hmac-sha1-tests (Files): Likewise.
78205
78206         * modules/gc-hmac-md5-tests (License): Likewise.
78207
78208         * modules/gc-sha1-tests (License): Likewise.
78209
78210         * modules/gc-md5-tests (License): Likewise.
78211
78212         * modules/gc-md4-tests (License): Likewise.
78213
78214         * modules/gc-md2-tests (License): Likewise.
78215
78216         * modules/gc-tests (License): Likewise.
78217
78218         * modules/des-tests (License): Likewise.
78219
78220         * modules/md4-tests (License): Likewise.
78221
78222         * modules/md2-tests (License): Likewise.
78223
78224 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78225
78226         Sync from coreutils:
78227
78228         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78229         * modules/lib-ignore: New file.
78230         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78231         chdir-safer.m4, lchmod.m4.
78232         * modules/openat: Add mkdirat.c, openat-priv.h.
78233
78234 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78235
78236         Sync from coreutils.
78237         * m4/lib-ignore.m4: New file.
78238         * m4/lchmod.m4: New file.
78239
78240 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78241
78242         Sync from coreutils.
78243         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78244         for write access: POSIX says that must fail.
78245         * lib/fts.c (diropen): Likewise.
78246         * lib/save-cwd.c (save_cwd): Likewise.
78247         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78248         well, for minor improvements on hosts that lack O_DIRECTORY.
78249         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78250         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78251         Fall back on chown if open failed with EACCES.
78252
78253         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78254         Report an error at compile-time if only a 1-second nominal clock
78255         resolution is found.
78256
78257         * lib/lchmod.h: New file.
78258         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78259         (make_dir_parents): Use lchown rather than chown, and
78260         lchmod rather than chmod.
78261
78262         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78263         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78264         "proc" reported by n0dalus.
78265
78266         * lib/mountlist.c: Include <limits.h>.
78267         (dev_from_mount_options)
78268         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78269         New function.  It no longer assumes "dev=" has the System V meaning
78270         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78271         (read_file_system_list)
78272         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78273         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78274         dev= in that case.
78275
78276         * lib/posixtm.h (PDS_PRE_2000): New macro.
78277         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78278         allow_century.  All usages changed.  Reject dates outside the range
78279         1969-1999 if PDS_PRE_2000 is used.
78280
78281 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78282
78283         Sync from coreutils.
78284         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78285         (Time of day items): Mention the possibility of leap seconds.
78286         Problem reported by Dr. David Alan Gilbert.
78287
78288 2006-01-09  Jim Meyering  <jim@meyering.net>
78289
78290         Sync from coreutils.
78291
78292         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78293
78294         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78295
78296         * lib/modechange.c (mode_compile): Reject an invalid mode string
78297         that starts with an octal digit.  From Andreas Gruenbacher.
78298
78299         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78300         and dup to open_safer and dup_safer, respectively.
78301         (openat_permissive): Fix typo in comment.
78302
78303         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78304         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78305         (_): Remove; no longer needed.
78306         (openat): Renamed from rpl_openat; no need for rpl_openat
78307         since openat.h renames openat for us.
78308         Replace most of the body with a call to openat_permissive,
78309         to avoid duplicate code.
78310         Port to (probably hypothetical) environments were mode_t is
78311         wider than int.
78312         (openat_permissive): Require mode arg, so that we can check
78313         types better.  Put it just after flags.  Change cwd failure
78314         indicator from pointer-to-bool to pointer-to-errno-value.
78315         All callers changed.
78316         Invoke openat_save_fail and/or openat_restore_fail if
78317         cwd_errno is null, so that openat can call us.
78318         (openat_permissive, fdopendir, fstatat, unlinkat):
78319         Simplify errno handling to avoid some duplicate code,
78320         as it's OK to set errno on success.
78321         * lib/openat.h: Revamp code so that function macros depend on
78322         __OPENAT_PREFIX only, not also on AT_FDCWD.
78323         (openat_ro): Remove.  Caller changed to use openat_permissive.
78324         (openat_permissive): Now a macro, if not a function.
78325         (openat_restore_fail, openat_save_fail): Now always functions,
78326         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78327
78328         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78329         and openat.c.
78330         * lib/mkdirat.c: Include openat-priv.h.
78331         Remove definitions of macros defined therein.
78332         * lib/openat.c: Likewise.
78333
78334         * lib/mkdirat.c (mkdirat): New file and function.
78335         * lib/openat.h (mkdirat): Declare.
78336
78337         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78338
78339         * lib/openat.h (openat_permissive): Declare.
78340         (openat_ro): Define.
78341
78342         * lib/openat.c (EXPECTED_ERRNO): New macro.
78343         (openat_permissive): New function -- used in remove.c rewrite.
78344         (all functions): Set errno just before returning, only if there
78345         was an actual failure.
78346         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78347
78348         Emulate openat-family functions using Linux's procfs, if possible.
78349         Idea and some code based on Ulrich Drepper's glibc changes.
78350
78351         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78352         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78353         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78354         before falling back on save_cwd and restore_cwd.
78355         (fdopendir, fstatat, unlinkat): Likewise.
78356
78357         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78358         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78359
78360         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78361         as second argument to va_arg.  Otherwise, some versions of gcc
78362         warn that `if this code is reached, the program will abort'.
78363
78364 2006-01-09  Jim Meyering  <jim@meyering.net>
78365
78366         Sync from coreutils.
78367         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78368         Require openat-priv.h.
78369
78370 2006-01-09  Bruno Haible  <bruno@clisp.org>
78371
78372         * modules/strnlen (Include): Use strnlen.h.
78373
78374 2006-01-09  Bruno Haible  <bruno@clisp.org>
78375
78376         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78377
78378 2006-01-09  Bruno Haible  <bruno@clisp.org>
78379
78380         * lib/sysexit_.h (EX_OK): New macro.
78381         Suggested by Martin Lambers <marlam@marlam.de>.
78382
78383 2006-01-09  Bruno Haible  <bruno@clisp.org>
78384
78385         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78386         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78387
78388 2006-01-09  Bruno Haible  <bruno@clisp.org>
78389
78390         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78391         numbers.
78392
78393 2006-01-09  Bruno Haible  <bruno@clisp.org>
78394
78395         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78396         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78397         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78398         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78399
78400 2006-01-09  Bruno Haible  <bruno@clisp.org>
78401
78402         * build-aux/javacomp.sh.in: New file, moved from lib/.
78403         * modules/javacomp-script (Files): Update.
78404         (configure.ac): Add AC_CONFIG_FILES invocation.
78405         (EXTRA_DIST): Remove variable.
78406
78407         * build-aux/javaexec.sh.in: New file, moved from lib/.
78408         * modules/javaexec (Files): Update.
78409         (configure.ac): Add AC_CONFIG_FILES invocation.
78410         (EXTRA_DIST): Remove javaexec.sh.in.
78411
78412         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78413         * modules/csharpcomp-script (Files): Update.
78414         (configure.ac): Add AC_CONFIG_FILES invocation.
78415         (EXTRA_DIST): Remove variable.
78416
78417         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78418         * modules/csharpexec (Files): Update.
78419         (configure.ac): Add AC_CONFIG_FILES invocation.
78420         (EXTRA_DIST): Remove csharpexec.sh.in.
78421
78422 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78423
78424         Sync from coreutils.
78425
78426         Add POSIX ACL support
78427         * lib/acl.h (copy_acl, set_acl): Add declarations.
78428         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78429         systems other than Linux.
78430         (chmod_or_fchmod): New function: use fchmod when possible,
78431         and chmod otherwise.
78432         (file_has_acl): Add a POSIX ACL implementation, with a
78433         Linux-specific subcase.
78434         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78435         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78436         acls are unsupported.
78437         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78438         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78439         are unsupported.
78440
78441 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78442
78443         Sync from coreutils.
78444         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78445
78446 2006-01-07  Bruno Haible  <bruno@clisp.org>
78447
78448         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78449         gl_EARLY.
78450
78451 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78452
78453         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78454         Problem reported for Mingw by Mark Junker.
78455
78456 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78457
78458         * README: Gnulib normally doesn't generate a tarball.
78459
78460 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78461
78462         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78463         long int, not int, for nanosecond counts, so that people who are
78464         used to POSIX struct timespec won't be surprised.  Reported by Jim
78465         Meyering.
78466
78467 2005-12-28  Bruno Haible  <bruno@clisp.org>
78468
78469         * build-aux/config.rpath: Update from GNU gettext.
78470
78471 2005-12-16  Jim Meyering  <jim@meyering.net>
78472
78473         * modules/fprintftime: New module.
78474         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78475
78476 2005-12-16  Jim Meyering  <jim@meyering.net>
78477
78478         * m4/fprintftime.m4: New file.
78479
78480 2005-12-16  Jim Meyering  <jim@meyering.net>
78481
78482         * lib/fprintftime.c, lib/fprintftime.h: New files.
78483
78484 2005-12-15  Simon Josefsson  <jas@extundo.com>
78485
78486         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78487         new m4/socklen.m4.
78488
78489 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78490
78491         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78492         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78493
78494 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78495
78496         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78497         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78498         struct uparams is valid. Fall back to the default values if it is
78499         not.
78500
78501 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78502
78503         * modules/argp (Files): Add argp-pin.c
78504         (Depends-on): dirname
78505         (lib_SOURCES): Add argp-pin.c
78506
78507 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78508
78509         * m4/argp.m4:  Check if program_invocation_name and
78510         program_invocation_short_name are declared and define appropriate
78511         macros if they are not.
78512
78513 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78514
78515         * lib/argp-help.c (__argp_base_name): New function
78516         (__argp_short_program_name): Rewrite using __argp_base_name
78517         * lib/argp-namefrob.h: Define program_invocation_name and
78518         program_invocation_short_name if requested
78519         (__argp_base_name): Add prototype
78520         * lib/argp-parse.c (argp_def): Use gettext wrappers
78521         (argp_default_parser): Use __argp_base_name
78522         * lib/argp-pin.c: New file. Defines program_invocation_name and
78523         program_invocation_short_name on systems that lack them.
78524
78525 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78526
78527         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78528         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78529         porting problem reported by Georg Schwarz in
78530         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78531
78532 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78533
78534         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78535         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78536         porting problem reported by Georg Schwarz in
78537         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78538
78539 2005-12-05  Bruno Haible  <bruno@clisp.org>
78540
78541         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78542         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78543         Reported by Mark Junker <mjscod@gmx.de>.
78544
78545 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78546
78547         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78548         Use implementation from Albert Chin, with some
78549         comments/corrections by Stepan Kasal and myself.
78550
78551 2005-12-02  Bruno Haible  <bruno@clisp.org>
78552
78553         * gnulib-tool (func_import): Accept GPLed build tool modules when
78554         --lgpl is given.
78555         * modules/csharpcomp-script: New file.
78556         * modules/csharpcomp: Depend on it.
78557         * modules/javacomp-script: New file.
78558         * modules/javacomp: Depend on it.
78559         Suggested by Simon Josefsson.
78560
78561 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78562
78563         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78564         statement, to work around an HP-UX 10.20 compiler bug reported by
78565         Peter O'Gorman.
78566
78567 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78568
78569         * modules/savedir (Depends-on): Add openat.
78570
78571 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78572
78573         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78574         (uintmax_t) [defined uintmax_t]: Do not declare.
78575         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78576         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78577         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78578         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78579         sake of portability to weird hosts that C allows (though we don't
78580         know of any practical examples).
78581
78582         * lib/savedir.h (fdsavedir): New decl.
78583         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78584         contains most of the former guts of savedir.
78585         (savedir): Use savedirstream.
78586         Include "openat.h".
78587
78588 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78589
78590         * modules/obstack (Files): Add m4/ulonglong.m4.
78591         Problem reported by Davide Angelocola.
78592
78593 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78594
78595         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78596         coreutils no longer futzes with rounding modes.
78597
78598 2005-11-14  Jim Meyering  <jim@meyering.net>
78599
78600         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78601         replacement of mkstemp.
78602
78603 2005-11-10  Simon Josefsson  <jas@extundo.com>
78604
78605         * lib/readline.c: Remove EOL.
78606
78607 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78608
78609         * modules/gethrxtime (Depends-on): Add gettime.
78610
78611 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78612
78613         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78614         or gettimeofday; no longer needed.
78615
78616 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78617
78618         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78619         time business.
78620         (gethrxtime) [! (HAVE_NANOUPTIME
78621         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78622         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78623         our own approximation.
78624
78625 2005-11-08  Eric Blake  <ebb9@byu.net>
78626
78627         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78628
78629 2005-11-08  Eric Blake  <ebb9@byu.net>
78630
78631         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78632
78633 2005-11-04  Bruno Haible  <bruno@clisp.org>
78634
78635         * gnulib-tool: Implement --update mode.
78636
78637 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78638
78639         Fix porting problem reported by Theodoros V. Kalamatianos.
78640         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78641         Don't assume that futimes failing means we must fail.
78642
78643 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78644
78645         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78646         variables to suggest the intended function of the PATH_MAX check.
78647
78648 2005-10-30  Kean Johnston  <jkj@sco.com>
78649
78650         Trivial changes to support SCO systems.
78651         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78652         as PATH_MAX.
78653         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78654         where __ptr is null when no I/O is pending.
78655
78656 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78657
78658         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78659         leave errno alone.  Problem reported by Dmitry V. Levin.
78660
78661 2005-10-28  Simon Josefsson  <jas@extundo.com>
78662
78663         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78664         Test more.
78665
78666         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78667
78668         * modules/md2, modules/md2-tests: New files.
78669
78670 2005-10-28  Simon Josefsson  <jas@extundo.com>
78671
78672         * m4/inet_ntop.m4: More tests.
78673
78674         * m4/gc-md2.m4, md2.m4: New file.
78675
78676 2005-10-28  Simon Josefsson  <jas@extundo.com>
78677
78678         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78679         "restrict" keywords, as per POSIX.  Protect the function
78680         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78681         Don't use K&R prototypes.  Check the sprintf return values.
78682         Re-define EAFNOSUPPORT if not present.  Indent.
78683
78684         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78685         suggested by Bruno Haible <bruno@clisp.org>.
78686
78687         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78688
78689         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78690
78691         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78692         libgcrypt).
78693
78694         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78695
78696         * lib/md2.h, lib/md2.c: New files.
78697
78698 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78699
78700         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78701         errno alone.  Problem reported by Frederic Jolliton.
78702
78703 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78704
78705         * modules/verify (License): Change from GPL to LGPL.  This is a
78706         tiny module and there are apparently near-equivalents that are
78707         under the BSD license.
78708
78709 2005-10-24  Simon Josefsson  <jas@extundo.com>
78710
78711         * modules/sha1: Relicense to LGPL.
78712
78713 2005-10-24  Simon Josefsson  <jas@extundo.com>
78714
78715         * lib/md4.h: Shrink buffer size, now that we changed the type.
78716
78717 2005-10-23  Simon Josefsson  <jas@extundo.com>
78718
78719         * gnulib-tool (func_import): Fix --tests-base.
78720
78721 2005-10-22  Simon Josefsson  <jas@extundo.com>
78722
78723         * modules/arcfour (Depends-on): Need stdint.
78724
78725 2005-10-22  Simon Josefsson  <jas@extundo.com>
78726
78727         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78728         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78729
78730 2005-10-22  Simon Josefsson  <jas@extundo.com>
78731
78732         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78733         suggested by Bruno Haible <bruno@clisp.org>.
78734
78735 2005-10-22  Simon Josefsson  <jas@extundo.com>
78736
78737         * lib/crc.h: Include stddef.h, for size_t.
78738
78739 2005-10-22  Simon Josefsson  <jas@extundo.com>
78740
78741         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78742         arcfour_context struct (simplify test vector testing in GNU
78743         Shishi).
78744
78745 2005-10-21  Simon Josefsson  <jas@extundo.com>
78746
78747         * modules/des, modules/des-tests: New files.
78748
78749         * modules/gc-des, modules/gc-des-tests: New files.
78750
78751         * tests/test-des.c, tests/test-gc-des.c: New file.
78752
78753 2005-10-21  Simon Josefsson  <jas@extundo.com>
78754
78755         * modules/arctwo, modules/arctwo-tests: New files.
78756
78757         * tests/test-arctwo.c: New file.
78758
78759         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78760
78761         * tests/test-gc-arctwo.c: New file.
78762
78763 2005-10-21  Simon Josefsson  <jas@extundo.com>
78764
78765         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78766         Bruno Haible <bruno@clisp.org>.
78767
78768         * m4/gc-des.m4: New file.
78769
78770 2005-10-21  Simon Josefsson  <jas@extundo.com>
78771
78772         * m4/arctwo.m4: New file.
78773
78774         * m4/gc-arctwo.m4: New file.
78775
78776 2005-10-21  Simon Josefsson  <jas@extundo.com>
78777
78778         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78779         block.
78780
78781 2005-10-21  Simon Josefsson  <jas@extundo.com>
78782
78783         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78784         <bruno@clisp.org>.
78785
78786         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78787
78788         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78789         Bruno Haible <bruno@clisp.org>.
78790
78791         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78792         <bruno@clisp.org>.
78793
78794 2005-10-21  Simon Josefsson  <jas@extundo.com>
78795
78796         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78797
78798 2005-10-21  Simon Josefsson  <jas@extundo.com>
78799
78800         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78801
78802 2005-10-21  Simon Josefsson  <jas@extundo.com>
78803
78804         * lib/des.h, lib/des.c: New files.
78805
78806         * lib/gc-gnulib.c: Support DES.c
78807
78808 2005-10-21  Simon Josefsson  <jas@extundo.com>
78809
78810         * lib/arctwo.h, lib/arctwo.c: New files.
78811
78812         * lib/gc-gnulib.c: Support ARCTWO.
78813
78814 2005-10-21  Simon Josefsson  <jas@extundo.com>
78815
78816         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78817         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78818
78819 2005-10-21  Simon Josefsson  <jas@extundo.com>
78820
78821         * gnulib-tool (func_import, func_create_testdir): Define automake
78822         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78823         Makefile.am snippet),
78824         suggested by Bruno Haible <bruno@clisp.org>.
78825
78826         * modules/gc (Makefile.am): Use it.
78827
78828 2005-10-21  Bruno Haible  <bruno@clisp.org>
78829
78830         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78831         patch.
78832
78833 2005-10-19  Simon Josefsson  <jas@extundo.com>
78834
78835         * tests/test-gc-rijndael.c: New file.
78836
78837         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78838
78839 2005-10-19  Simon Josefsson  <jas@extundo.com>
78840
78841         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78842         interface too.
78843
78844 2005-10-19  Simon Josefsson  <jas@extundo.com>
78845
78846         * tests/test-gc-arcfour.c: New file.
78847
78848         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78849
78850 2005-10-19  Simon Josefsson  <jas@extundo.com>
78851
78852         * modules/gc-md4, modules/gc-md4-tests: New file.
78853
78854         * tests/test-gc-md4.c: New file.
78855
78856 2005-10-19  Simon Josefsson  <jas@extundo.com>
78857
78858         * m4/gc-md4.m4: New file.
78859
78860 2005-10-19  Simon Josefsson  <jas@extundo.com>
78861
78862         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78863         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78864         <kasal@ucw.cz>.
78865
78866 2005-10-19  Simon Josefsson  <jas@extundo.com>
78867
78868         * m4/gc-arcfour.m4: New file.
78869
78870         * m4/gc-rijndael.m4: New file.
78871
78872 2005-10-19  Simon Josefsson  <jas@extundo.com>
78873
78874         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78875
78876 2005-10-19  Simon Josefsson  <jas@extundo.com>
78877
78878         * lib/gc-gnulib.c: Support ARCFOUR.
78879
78880 2005-10-19  Simon Josefsson  <jas@extundo.com>
78881
78882         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78883         support.
78884
78885         * lib/gc.h: Add ECB enum type.
78886
78887         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78888
78889 2005-10-18  Simon Josefsson  <jas@extundo.com>
78890
78891         * tests/test-md5.c: New file.
78892
78893         * modules/md5-tests: New file.
78894
78895 2005-10-18  Simon Josefsson  <jas@extundo.com>
78896
78897         * tests/test-md4.c: New file.
78898
78899         * modules/md4, modules/md4-tests: New files.
78900
78901 2005-10-18  Simon Josefsson  <jas@extundo.com>
78902
78903         * m4/md4.m4: New file.
78904
78905 2005-10-18  Simon Josefsson  <jas@extundo.com>
78906
78907         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78908
78909 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78910
78911         * gnulib-tool (func_create_testdir): Omit the second check whether
78912         BUILT_SOURCES in nonempty.
78913
78914 2005-10-17  Simon Josefsson  <jas@extundo.com>
78915
78916         * tests/test-rijndael.c: New file.
78917
78918 2005-10-17  Simon Josefsson  <jas@extundo.com>
78919
78920         * modules/sha1: Depend on stdint instead of md5.
78921
78922         * modules/md5: Depend on stdint, remove uint32_t.
78923
78924 2005-10-17  Simon Josefsson  <jas@extundo.com>
78925
78926         * modules/gc-sha1-tests: New file.
78927
78928         * tests/test-gc-sha1.c: New file.
78929
78930 2005-10-17  Simon Josefsson  <jas@extundo.com>
78931
78932         * m4/md5.m4: Remove call to uint32_t.m4.
78933
78934 2005-10-17  Simon Josefsson  <jas@extundo.com>
78935
78936         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
78937
78938         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
78939         md5.h.
78940
78941         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
78942
78943         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
78944
78945 2005-10-17  Simon Josefsson  <jas@extundo.com>
78946
78947         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
78948
78949 2005-10-17  Simon Josefsson  <jas@extundo.com>
78950
78951         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
78952
78953 2005-10-17  Simon Josefsson  <jas@extundo.com>
78954
78955         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
78956
78957         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
78958
78959 2005-10-17  Bruno Haible  <bruno@clisp.org>
78960
78961         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
78962         that it can also be used in a test.
78963
78964 2005-10-16  Bruno Haible  <bruno@clisp.org>
78965
78966         * gnulib-tool (func_emit_tests_Makefile_am): Also define
78967         TESTS_ENVIRONMENT, so that individual tests can augment it.
78968
78969         * gnulib-tool (func_create_testdir): Use an intermediate target for
78970         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
78971         macros, like $(ALLOCA_H), which cannot be passed through the command
78972         line.
78973
78974 2005-10-15  Simon Josefsson  <jas@extundo.com>
78975
78976         * modules/rijndael-tests: New file.
78977
78978         * modules/rijndael: New file.
78979
78980 2005-10-15  Simon Josefsson  <jas@extundo.com>
78981
78982         * m4/rijndael.m4: New file.
78983
78984 2005-10-15  Simon Josefsson  <jas@extundo.com>
78985
78986         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
78987
78988         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
78989
78990 2005-10-14  Simon Josefsson  <jas@extundo.com>
78991
78992         * tests/test-arcfour.c: New file.
78993
78994         * modules/arcfour, modules/arcfour-tests: New files.
78995
78996 2005-10-14  Simon Josefsson  <jas@extundo.com>
78997
78998         * m4/arcfour.m4: New file.
78999
79000 2005-10-14  Simon Josefsson  <jas@extundo.com>
79001
79002         * lib/arcfour.h, lib/arcfour.c: New files.
79003
79004 2005-10-14  Roland McGrath  <roland@redhat.com>
79005
79006         Import from libc.  [BZ #1331]
79007         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79008         macro argument.
79009         Reported by Matej Vela <vela@debian.org>.
79010
79011 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79012
79013         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79014         include <wchar.h>; no longer needed.
79015
79016 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79017
79018         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79019
79020 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79021         and  Ulrich Drepper  <drepper@redhat.com>
79022
79023         Import from libc.
79024         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79025         instead of inline stream orientation test and two separate
79026         function calls.  Pay no attention to USE_IN_LIBIO.
79027
79028 2005-10-13  Simon Josefsson  <jas@extundo.com>
79029
79030         * modules/gc-hmac-md5-tests: New file.
79031
79032         * tests/test-gc-hmac-sha1.c: New file.
79033
79034         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79035
79036         * modules/gc-hmac-md5-tests: New file.
79037
79038         * tests/test-gc-md5.c: New file.
79039
79040         * modules/gc-md5-tests: New file.
79041
79042 2005-10-13  Simon Josefsson  <jas@extundo.com>
79043
79044         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79045         Move memory allocation outside of loop.
79046
79047 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79048
79049         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79050         intermediate directory is in a read-only file system.  Problem
79051         reported by Eric Blake.
79052
79053 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79054
79055         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79056
79057 2005-10-12  Simon Josefsson  <jas@extundo.com>
79058
79059         * tests/test-hmac-sha1.c: New file.
79060
79061         * modules/hmac-sha1-tests: New file.
79062
79063         * modules/hmac-sha1: New file.
79064
79065 2005-10-12  Simon Josefsson  <jas@extundo.com>
79066
79067         * modules/gc-sha1: New file.
79068
79069 2005-10-12  Simon Josefsson  <jas@extundo.com>
79070
79071         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79072
79073         * tests/test-gc-pbkdf2-sha1.c: New file.
79074
79075 2005-10-12  Simon Josefsson  <jas@extundo.com>
79076
79077         * modules/gc-md5, modules/gc-hmac-md5: New files.
79078
79079         * modules/gc (Files): Remove md5, memxor and hmac files.
79080
79081 2005-10-12  Simon Josefsson  <jas@extundo.com>
79082
79083         * m4/gc-pbkdf2-sha1.m4: New file.
79084
79085         * m4/gc-hmac-sha1.m4: New file.
79086
79087         * m4/gc-sha1: New file.
79088
79089         * m4/hmac-sha1.m4: New file.
79090
79091 2005-10-12  Simon Josefsson  <jas@extundo.com>
79092
79093         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79094
79095         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79096
79097 2005-10-12  Simon Josefsson  <jas@extundo.com>
79098
79099         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79100         suggested by Bruno Haible <bruno@clisp.org>.
79101
79102 2005-10-12  Simon Josefsson  <jas@extundo.com>
79103
79104         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79105
79106 2005-10-12  Simon Josefsson  <jas@extundo.com>
79107
79108         * lib/gc-pbkdf2-sha1.c: New file.
79109
79110         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79111
79112 2005-10-12  Simon Josefsson  <jas@extundo.com>
79113
79114         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79115
79116         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79117
79118 2005-10-12  Simon Josefsson  <jas@extundo.com>
79119
79120         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79121         GC_USE_HMAC_MD5, respectively.
79122
79123         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79124         (gc_md5): Fix typo.
79125
79126         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79127
79128         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79129
79130         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79131
79132 2005-10-12  Bruno Haible  <bruno@clisp.org>
79133
79134         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79135         Reported by Stepan Kasal <kasal@ucw.cz>.
79136
79137 2005-10-11  Simon Josefsson  <jas@extundo.com>
79138
79139         * tests/test-crc.c: New file.
79140
79141         * modules/crc, modules/crc-tests: New files.
79142
79143 2005-10-11  Simon Josefsson  <jas@extundo.com>
79144
79145         * m4/crc.m4: New file.
79146
79147 2005-10-11  Simon Josefsson  <jas@extundo.com>
79148
79149         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79150
79151         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79152
79153         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79154
79155 2005-10-11  Simon Josefsson  <jas@extundo.com>
79156
79157         * lib/crc.h, lib/crc.c: New files.
79158
79159         * lib/gc.h (gc_hash_buffer): Add doc.
79160
79161 2005-10-11  Bruno Haible  <bruno@clisp.org>
79162
79163         * modules/c-strcasestr: New file.
79164         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79165
79166 2005-10-11  Bruno Haible  <bruno@clisp.org>
79167
79168         * modules/c-strcase: New file.
79169         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79170
79171 2005-10-11  Bruno Haible  <bruno@clisp.org>
79172
79173         * lib/strcasecmp.c: Include limits.h.
79174         (strcasecmp): Avoid integer overflow on exotic platforms.
79175         * lib/strncasecmp.c: Include limits.h.
79176         (strncasecmp): Avoid integer overflow on exotic platforms.
79177         Reported by Paul Eggert.
79178
79179 2005-10-11  Bruno Haible  <bruno@clisp.org>
79180
79181         * lib/c-strcasestr.h: New file, from GNU gettext.
79182         * lib/c-strcasestr.c: New file, from GNU gettext.
79183
79184 2005-10-11  Bruno Haible  <bruno@clisp.org>
79185
79186         * lib/c-strcase.h: New file, from GNU gettext.
79187         * lib/c-strcasecmp.c: New file, from GNU gettext.
79188         * lib/c-strncasecmp.c: New file, from GNU gettext.
79189
79190 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79191
79192         * modules/mempcpy (License): GPL -> LGPL.
79193         * modules/strchrnul (License): Likewise.
79194         * modules/sysexits (License): Likewise.
79195
79196 2005-10-08  Simon Josefsson  <jas@extundo.com>
79197
79198         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79199
79200 2005-10-07  Simon Josefsson  <jas@extundo.com>
79201
79202         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79203
79204 2005-10-06  Simon Josefsson  <jas@extundo.com>
79205
79206         * tests/test-hmac-md5.c: New file.
79207
79208         * modules/hmac-md5-tests: New file.
79209
79210         * modules/hmac-md5: New file.
79211
79212 2005-10-06  Simon Josefsson  <jas@extundo.com>
79213
79214         * m4/hmac-md5.m4: New file.
79215
79216         * m4/memxor.m4: Require gl_C_RESTRICT.
79217
79218 2005-10-06  Simon Josefsson  <jas@extundo.com>
79219
79220         * lib/memxor.c (memxor): Avoid casts and warnings.
79221
79222 2005-10-06  Simon Josefsson  <jas@extundo.com>
79223
79224         * lib/hmac-md5.c: New file.
79225
79226         * lib/hmac.h: New file.
79227
79228 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79229
79230         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79231         promotes to int, not unsigned int, to catch the AIX 5.3
79232         compiler bug.
79233
79234 2005-10-05  Simon Josefsson  <jas@extundo.com>
79235
79236         * modules/memxor: New file.
79237
79238         * modules/iconv (Files): Move config.rpath to havelib, it is used
79239         there.
79240
79241         * modules/havelib (Files): Add config.rpath.
79242
79243 2005-10-05  Simon Josefsson  <jas@extundo.com>
79244
79245         * m4/memxor.m4: New file.
79246
79247 2005-10-05  Simon Josefsson  <jas@extundo.com>
79248
79249         * lib/memxor.c (memxor): Fix compiler error.
79250
79251         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79252         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79253
79254         * lib/memxor.h, lib/memxor.c: New files.
79255
79256         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79257         we assume all systems have it, suggested by Jim Meyering
79258         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79259         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79260         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79261         same reasons.
79262
79263 2005-10-05  Simon Josefsson  <jas@extundo.com>
79264
79265         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79266
79267 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79268
79269         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79270         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79271         needed, since the source code now assumes these .h files.
79272
79273 2005-10-05  Derek Price  <derek@ximbiot.com>
79274
79275         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79276
79277 2005-10-05  Bruno Haible  <bruno@clisp.org>
79278
79279         * modules/stdint (License): Change to LGPL.
79280
79281 2005-10-04  Simon Josefsson  <jas@extundo.com>
79282
79283         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79284         D. Baushke" <mdb@gnu.org>.
79285
79286 2005-10-04  Bruno Haible  <bruno@clisp.org>
79287
79288         * lib/verify.h (verify_true): Provide alternative definition for C++.
79289
79290 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79291
79292         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79293         (SSIZE_MAX): New macro, if not already defined.
79294         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79295         than 2 GiB.
79296
79297 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79298
79299         Sync from coreutils.
79300         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79301         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79302         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79303         ULLONG_MAX doesn't work with 2.7.2.1.
79304
79305 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79306
79307         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79308         From Ben Pfaff.
79309
79310         * modules/exclude (Depends-on): Depend on verify.
79311         * modules/strtoimax (Depends-on): Likewise.
79312         * modules/utimecmp (Depends-on): Likewise.
79313
79314 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79315
79316         * lib/exclude.c: Include verify.h.
79317         (verify): Remove.  All callers changed to use verify.h's version.
79318         * lib/strtoimax.c: Likewise.
79319         * lib/utimecmp.c: Likewis.e
79320
79321         Sync from coreutils.
79322         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79323         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79324         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79325         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79326         bother returning ENOSYS if settimeofday or stime fails; just let
79327         them return whatever errno they want to return.
79328         * lib/utimens.c: Include unistd.h, for dup2.
79329         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79330         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79331
79332 2005-10-02  Jim Meyering  <jim@meyering.net>
79333
79334         Sync from coreutils.
79335         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79336         from glibc-2.2.5 that fails for read-only files.
79337
79338 2005-10-02  Jim Meyering  <jim@meyering.net>
79339
79340         Sync from coreutils.
79341         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79342         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79343         `#if HAVE_CONFIG_H'.
79344         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79345         Remove AT_FDCWD test.
79346         Do not consume the fd unless successful.
79347         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79348         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79349         block, so that we don't even try to compile it if settimeofday is
79350         available.  This works around a compilation failure on OSF1 V5.1,
79351         due to stime requiring a `long int*' while tv_sec is `int'.
79352
79353 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79354
79355         Sync from coreutils.
79356         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79357         against `yes', rather than just testing for nonempty.
79358
79359 2005-10-01  Simon Josefsson  <jas@extundo.com>
79360
79361         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79362         and Darwin.
79363
79364         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79365         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79366         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79367         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79368         Check if struct addrinfo is declared.
79369
79370 2005-10-01  Simon Josefsson  <jas@extundo.com>
79371
79372         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79373         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79374         AI_* and EAI_* definitions.  Protect function declarations.
79375
79376 2005-10-01  Jim Meyering  <jim@meyering.net>
79377
79378         Sync from coreutils.
79379
79380         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79381         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79382         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79383         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79384         in the inet and nsl libraries.  Required on Solaris 5.7.
79385
79386 2005-10-01  Jim Meyering  <jim@meyering.net>
79387
79388         Sync from coreutils.
79389         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79390         in the inet and nsl libraries.  Required on Solaris 5.7.
79391
79392 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79393
79394         * lib/getdelim.c (getdelim): Remove unused variables.
79395
79396 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79397
79398         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79399         so that the code works even with ancient cpp.  Portability problem
79400         with GCC 2.7.2.1 reported by Thomas M.Ott.
79401
79402 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79403
79404         * modules/regex (Depends-on): Add strcase.
79405
79406         * modules/gethostname (Licence): Change from GPL to LGPL, since
79407         gethostname.c is a trivial implementation of a standard library
79408         function.
79409         * modules/poll (License): Change from GPL to LGPL, since it's
79410         derived from LGPL code.
79411
79412 2005-09-27  Jim Meyering  <jim@meyering.net>
79413
79414         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79415         HAVE_CONFIG_H.
79416
79417         * lib/intprops.h (signed_type_or_expr__): Define.
79418         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79419         for unsigned types.
79420
79421 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79422
79423         * lib/verify.h (verify_expr): Remove, replacing with:
79424         (verify_true): New macro that returns true instead of void.
79425         (verify_type__): Remove.
79426         (verify): Use verify_true rather than verify_type__.
79427
79428 2005-09-26  Bruno Haible  <bruno@clisp.org>
79429
79430         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79431         is necessary.
79432         (lib_SOURCES): Remove mbchar.c.
79433         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79434         (Files): Add m4/mbrtowc.m4.
79435         * modules/mbiter: Likewise.
79436         * modules/mbuiter: Likewise.
79437
79438 2005-09-26  Bruno Haible  <bruno@clisp.org>
79439
79440         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79441         compile mbchar.c if they are not both present.
79442         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79443         * m4/mbiter.m4 (gl_MBITER): Likewise.
79444         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79445         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79446         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79447
79448 2005-09-25  Jim Meyering  <jim@meyering.net>
79449
79450         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79451         also uses socklen_t.
79452
79453 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79454
79455         * lib/utimens.c (ENOSYS): Define if not already defined.
79456         (futimens): Support having a null PATH if the file descriptor
79457         is nonnegative.
79458
79459         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79460         Remove.
79461         (__attribute): Define to empty unless GCC 3.1 or later.
79462         This works around a core dump on OpenBSD 3.4, which has GCC
79463         2.95.3, which dumps core when given __attribute__(()).  It also
79464         simplifies other tests, since we really don't want to bother with
79465         worrying about which ancient version of GCC supported what.
79466         Original problem reported by Yoann Vandoorselaere, with part of
79467         the fix suggested by Derek Price.
79468
79469 2005-09-24  Jim Meyering  <jim@meyering.net>
79470
79471         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79472         so we can once again use a positive bitfield width of 1 -- now we
79473         don't have to explain why we were using a bitfield width of 2.
79474
79475 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79476
79477         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79478         and similarly for the other external symbols.  Problem reported
79479         by James Gallager.
79480
79481         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79482         bug reported by Jim Meyering.
79483
79484         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79485         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79486         not needed, since socklen is a prerequisite module.
79487
79488 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79489
79490         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79491         Problem reported by Eric Blake.
79492         (getaddrinfo): Initialize se so that it's not garbage.
79493         Redo internal storage allocation so that it doesn't make unportable
79494         assumptions about alignment.
79495         Fix a memory leak.
79496
79497         * lib/utimens.c (futimens): Use futimesat if available.
79498         Prefer it to futimes since it doesn't have the futimes bug.
79499
79500         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79501         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79502         Instead, declare a function that returns a pointer to an array,
79503         and use verify_type__ to declare the size of the array.
79504         Problem and germ of a solution reported by Bruno Haible.
79505         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79506         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79507
79508 2005-09-23  Jim Meyering  <jim@meyering.net>
79509
79510         Sync from coreutils.
79511         Correct build failure (socklen_t not defined) on at least
79512         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79513         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79514
79515 2005-09-23  Jim Meyering  <jim@meyering.net>
79516
79517         * modules/getaddrinfo (Depends-on): Add socklen.
79518
79519 2005-09-23  Bruno Haible  <bruno@clisp.org>
79520
79521         * tests/test-verify.c: New file.
79522
79523 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79524
79525         Sync from coreutils.
79526
79527         * modules/argmatch (Depends-on): Add verify.
79528         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79529         unistd-safer.
79530         * modules/save-cwd (Depends-on): Likewise.
79531
79532         * modules/openat (Files): Add lib/openat-die.c.
79533         (Depends-on): Remove error, exitfail.
79534         Add dirname.
79535
79536         * modules/verify: New file.
79537         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79538         with "verify" module.
79539
79540 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79541
79542         Sync from coreutils.
79543
79544         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79545         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79546         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79547         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79548         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79549         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79550         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79551         Don't bother checking for string.h, stdlib.h, unistd.h.
79552         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79553         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79554         module's job.
79555         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79556         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79557
79558         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79559         (gl_GETDATE): Use it.
79560
79561         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79562
79563 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79564
79565         Sync from coreutils.
79566
79567         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79568         stat-time.h.
79569         * lib/argmatch.h: Include verify.h
79570         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79571         (ARGMATCH_ASSERT): Remove; unused.
79572         * lib/canonicalize.c: Assume STDC_HEADERS.
79573         * lib/exclude.c: Include "strcase.h".
79574         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79575         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79576         and stdio-safer.h.
79577         (getusershell): Call fopen, not fopen_safer.
79578         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79579         Do not include unistd-safer.h.
79580         (save_cwd): Don't call fd_safer; no longer needed
79581         now that we include fcntl--.h.
79582
79583         * lib/getdate.y (relative_time): New type.
79584         (RELATIVE_TIME_0): New constant.
79585         (parser_control): Use relative_time instead of doing it ourselves.
79586         (%union): Add new relative_time rel member.
79587         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79588         Now typeless.
79589         (relunit, relunit_snumber): Now of type rel.
79590         (zone, rel, relunit, get_date): Adjust to above changes.
79591
79592         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79593         Do not include unistd-safer.h.
79594         (getloadavg): Don't call fd_safer; no longer needed
79595         now that we include fcntl--.h.
79596
79597         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79598         (make_dir_parents): Treat ENOSYS like EEXIST.
79599
79600         Improve quality of diagnostics on restore_cwd failure.
79601         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79602         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79603         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79604         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79605         each time through the loop.  Do not diagnose restore_cwd failure;
79606         that is the caller's job (and perhaps the caller does not care).
79607
79608         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79609         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79610         If the file already exists but is not a directory, don't bother
79611         to try to make its parents.
79612         Close potential file descriptor leak if we can't chdir("/") (!).
79613         Don't always return true if chdir($PWD) fails; return true only
79614         if the requested action was done successfully (except for the
79615         chdir($PWD)).
79616         Don't log final directory unless we actually made it.
79617         Refactor to avoid duplicate code to fix up permissions.
79618         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79619
79620         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79621         to make it a bit faster and (I hope) clearer.
79622         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79623         Fix bug in formats like %2N.
79624
79625         * lib/verify.h: New file.
79626
79627 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79628
79629         Sync from coreutils.
79630         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79631
79632 2005-09-22  Jim Meyering  <jim@meyering.net>
79633
79634         Sync from coreutils.
79635
79636         * m4/lstat.m4 (gl_FUNC_LSTAT):
79637         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79638         Remove obsolete comment.
79639         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79640         * m4/xstrtod.m4: Likewise.
79641
79642         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79643
79644 2005-09-22  Jim Meyering  <jim@meyering.net>
79645
79646         Sync from coreutils.
79647
79648         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79649
79650         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79651         the .tm_year member, since otherwise gcc-4.0 would now warn about
79652         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79653
79654         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79655         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79656
79657         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79658         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79659         when run in a time zone for which daylight savings time is in effect
79660         for the starting date.
79661
79662         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79663         stop us from restricting permissions of just-created absolute-named
79664         directories.
79665         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79666         to restore initial working directory.
79667         * lib/mkdir-p.c (make_dir_parents): New parameter:
79668         different_working_dir, to tell caller if/when we change the working
79669         directory and are unable to return to the initial one.
79670         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79671         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79672         `return false'.  This fixes a bug introduced on 2004-07-30.
79673
79674         * lib/openat.c (fdopendir): Be sure to close the supplied
79675         file descriptor before returning.  This makes our replacement
79676         implementation a little closer to Solaris's, where fdopendir
79677         ties the file descriptor to the returned DIR* pointer.
79678         * lib/openat.c (unlinkat): New function.
79679         * lib/openat.h (unlinkat): Add prototype.
79680         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79681         (openat_restore_fail): Rename from openat_restore_die.
79682         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79683
79684         Provide an alternative to exiting immediately upon save_cwd or
79685         restore_cwd failure.  Now, an application can arrange e.g.,
79686         to perform a longjump in that case.
79687         * lib/openat.c: Include dirname.h.
79688         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79689         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79690         and openat_restore_die rather than calling error directly.
79691         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79692
79693         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79694         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79695         define.
79696
79697         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79698         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79699                             int utc, int nanoseconds);
79700         Background:
79701         date should not have to allocate a megabyte of virtual memory to
79702         handle a format argument like +%1048575T.  When implemented with
79703         strftime, it must allocate such a buffer, use strftime to fill it
79704         in, print it, then free it.
79705         With fprintftime, it simply prints everything and exits.
79706         With no need for memory allocation, that's one fewer way to fail.
79707         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79708         optional field width, not before, so we accept %9:z, not %:9z.
79709         (my_strftime): Be sure to use L_('x') for literals.
79710
79711         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79712         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79713         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79714         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79715         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79716         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79717         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79718         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79719         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79720         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79721         * lib/xgethostname.c, lib/xreadlink.c:
79722         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79723
79724         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79725         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79726         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79727         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79728         and don't include <sys/file.h>).
79729
79730 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79731
79732         Sync from coreutils.
79733
79734         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79735         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79736         [!LDAV_DONE]: Avoid unused variable warning.
79737
79738 2005-09-21  Bruno Haible  <bruno@clisp.org>
79739
79740         * lib/unicodeio.h (unicode_to_mb): New declaration.
79741
79742 2005-09-20  Derek Price  <derek@ximbiot.com>
79743
79744         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79745         getaddrinfo.h.
79746
79747 2005-09-20  Bruno Haible  <bruno@clisp.org>
79748
79749         * gnulib-tool: Remove trailing slashes from the values specified for
79750         --source-base, --m4-base, --tests-base, --aux-dir.
79751         Suggested by Simon Josefsson <jas@extundo.com>.
79752
79753 2005-09-20  Bruno Haible  <bruno@clisp.org>
79754
79755         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79756         func_modules_to_filelist, func_import, func_create_testdir): Make all
79757         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79758         change when gnulib-tool is invoked in a different locale.
79759
79760 2005-09-19  Simon Josefsson  <jas@extundo.com>
79761
79762         * m4/socklen.m4: Fix typo.
79763
79764 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79765
79766         Use a consistent style for including <config.h>.
79767         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79768         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79769         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79770         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79771         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79772         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79773         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79774         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79775         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79776         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79777         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79778         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79779         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79780         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79781         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79782         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79783         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79784         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79785         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79786         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79787         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79788         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79789         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79790         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79791         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79792         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79793         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79794         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79795         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79796         lib/xstrtoumax.c, lib/yesno.c:
79797         Standardize inclusion of config.h.
79798         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79799         lib/inttostr.h:  Removed inclusion of config.h from header files.
79800         * lib/inttostr.c:  Adjusted in-tree users.
79801         * lib/timespec.h: Remove superfluous warning to include config.h.
79802         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79803         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79804         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79805         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79806         config.h with HAVE_CONFIG_H.
79807
79808 2005-09-19  Jim Meyering  <jim@meyering.net>
79809
79810         * modules/pathmax (License): Change to LGPL.
79811
79812 2005-09-19  Derek Price  <derek@ximbiot.com>
79813
79814         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79815
79816 2005-09-19  Bruno Haible  <bruno@clisp.org>
79817
79818         * gnulib-tool (import): Provide default for --tests-base.
79819
79820 2005-09-19  Bruno Haible  <bruno@clisp.org>
79821
79822         * doc/quote.texi: New file, extracted from gnulib.texi.
79823         * doc/ctime.texi: New file, extracted from gnulib.texi.
79824         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79825         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79826         * doc/gnulib.texi: Include them.
79827
79828 2005-09-18  Bruno Haible  <bruno@clisp.org>
79829
79830         Portability fix.
79831         * gnulib-tool (func_readlink): New function.
79832         (func_ln_if_changed): Use it.
79833
79834 2005-09-18  Bruno Haible  <bruno@clisp.org>
79835
79836         * gnulib-tool: Support --with-tests also with --import.
79837         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79838         (func_import): Use variables $testsbase and $inctests. Emit a
79839         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79840         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79841         SUBDIRS += $testsdir.
79842         (func_create_testdir): Update.
79843
79844 2005-09-18  Bruno Haible  <bruno@clisp.org>
79845
79846         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79847         instead of $dry_run.
79848         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79849         (func_ln_if_changed): Don't handle dry-run here.
79850         (func_import): In dry-run mode, detect more precisely which actions
79851         would be performed, and don't use "...ing" verbs.
79852
79853 2005-09-18  Bruno Haible  <bruno@clisp.org>
79854
79855         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79856         (func_import): Use join on two temporary files instead of three nested
79857         loops, in order to determine which files are new or old.
79858
79859 2005-09-18  Bruno Haible  <bruno@clisp.org>
79860
79861         * gnulib-tool (func_import): Comment out code that spits out the
79862         new files with --dry-run.
79863
79864 2005-09-18  Bruno Haible  <bruno@clisp.org>
79865
79866         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79867
79868 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79869
79870         * lib/stat-time.h: New file.
79871         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79872         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79873         in a different way.
79874         (timespec_cmp): New function.
79875         * lib/utimecmp.c: Include stat-time.h.
79876         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79877         members exist, not on the obsolescent ST_MTIM_NSEC.
79878         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79879
79880 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79881
79882         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79883
79884 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79885
79886         * MODULES.html.sh (File system functions): Add stat-time.
79887         * modules/stat-time: New file.
79888         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79889         is now done in a different way, by the stat-time module.
79890         * modules/utimecmp (Depends-on): Add stat-time.
79891
79892 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79893
79894         * m4/st_mtim.m4: Remove.  Superseded by...
79895         * m4/stat-time.m4: New file.
79896         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79897         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79898
79899 2005-09-15  Derek Price  <derek@ximbiot.com>
79900
79901         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79902
79903 2005-09-15  Derek Price  <derek@ximbiot.com>
79904
79905         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79906         * lib/regex_internal.c: Ditto, using this...
79907         (__GNUC_PREREQ): ...new macro.
79908         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79909         using...
79910         (__GNUC_PREREQ): ...this new macro.
79911
79912         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79913
79914 2005-09-15  Derek Price  <derek@ximbiot.com>
79915             Paul Eggert  <eggert@cs.ucla.edu>
79916
79917         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79918         changes, consolidating in...
79919         * lib/regex_internal.h: ...this file.
79920
79921 2005-09-13  Jim Meyering  <jim@meyering.net>
79922
79923         * lib/canon-host.c: Filter through gnu indent and reword comments
79924         slightly.
79925         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79926
79927 2005-09-13  Derek Price  <derek@ximbiot.com>
79928
79929         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
79930         failure.
79931         Reported by Jim Meyering  <jim@meyering.net>.
79932
79933 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79934
79935         * lib/base64.c: Typo.
79936         (base64_encode): Put b64str in initialized data section.
79937
79938 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
79939
79940         Merge glibc and coreutils changes into gnulib, plus a few
79941         extra fixes.
79942         * lib/md5.c: Use #error rather than a string.
79943         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
79944         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
79945         (__attribute__): Define to empty for non recent-GCC.
79946         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
79947         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
79948         Renamed from their non-__ counterparts, with new macros replacing
79949         them if not _LIBC.  Add __THROW attribute.
79950         (rol): Remove.
79951         (struct md5_ctx): Align buffer if using GCC.
79952         * lib/sha1.h (struct sha1_ctx): Likewise.
79953         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
79954         The old name was backwards.
79955         (NOTSWAP): Remove; not used.
79956         (rol): New macro, moved here from md5.h.
79957         (sha1_process_block): Remove a FIXME that doesn't make sense.
79958
79959 2005-09-12  Derek Price  <derek@ximbiot.com>
79960
79961         Return usable errors from canon-host.
79962         * lib/canon-host.h: New file.
79963         * lib/canon-host.c (canon_host): Wrap...
79964         (canon_host_r): ...this new function, which now relies exclusively on
79965         getaddrinfo.
79966         (ch_strerror): New function.
79967         (last_cherror): New global.
79968         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
79969         interface.
79970         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
79971         void *.
79972         (freeaddrinfo): Free ai->ai_canonname when set.
79973
79974 2005-09-12  Derek Price  <derek@ximbiot.com>
79975
79976         Make canon-host require getaddrinfo.
79977         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
79978         AC_LIBSOURCE canon-host.h.  Call...
79979         (gl_PREREQ_CANON_HOST): ...this new function, which requires
79980         gl_GETADDRINFO.
79981         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
79982
79983 2005-09-12  Derek Price  <derek@ximbiot.com>
79984
79985         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
79986         LGPL.
79987         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
79988
79989 2005-09-12  Derek Price  <derek@ximbiot.com>
79990
79991         * lib/gai_strerror.c: Include config.h when available.  Include
79992         getaddrinfo.h before other headers to test interface.
79993         Reported by Larry Jones <lawrence.jones@ugs.com>.
79994
79995 2005-09-12  Derek Price  <derek@ximbiot.com>
79996             Paul Eggert  <eggert@cs.ucla.edu>
79997
79998         * modules/glob (Files): Add glob-libc.h.
79999
80000 2005-09-12  Derek Price  <derek@ximbiot.com>
80001             Paul Eggert  <eggert@cs.ucla.edu>
80002
80003         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80004         glob_.h, glob-libc.h.
80005         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80006
80007 2005-09-12  Derek Price  <derek@ximbiot.com>
80008             Paul Eggert  <eggert@cs.ucla.edu>
80009
80010         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80011         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80012         protecting things that should be done only in gnulib contexts.
80013         * lib/glob_.h: New file, containing only the glob things needed for
80014         gnulib.
80015         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80016         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80017         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80018         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80019         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80020         and to respect the namespace rules better.
80021
80022 2005-09-08  Simon Josefsson  <jas@extundo.com>
80023
80024         * modules/socklen: New file.
80025
80026 2005-09-08  Simon Josefsson  <jas@extundo.com>
80027
80028         * m4/socklen.m4: New file.
80029
80030 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80031
80032         * modules/utimens (Files): Add m4/utimbuf.m4, since
80033         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80034         Reported by Sergey Poznyakoff.
80035
80036 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80037
80038         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80039         definitions, since that's the preferred style in glibc.
80040         Fix a minor spacing issue, and update copyright notice to match
80041         glibc's.
80042
80043 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80044
80045         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80046
80047 2005-09-06  Simon Josefsson  <jas@extundo.com>
80048
80049         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80050         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80051
80052 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80053
80054         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80055         warning.
80056
80057 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80058
80059         * config/srclist.txt: Add glibc bug 1302.
80060
80061 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80062
80063         Change bitset word type from unsigned int to unsigned long int,
80064         as this has better performance on typical 64-bit hosts.
80065         Port bitset code to hosts with unusual word sizes.
80066         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80067         (build_collating_symbol):
80068         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80069         argument is a bitset.  This is merely a style issue, but it makes
80070         it clearer that an entire array is expected.
80071         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80072         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80073         Port to the case where bitset_word is not the same as unsigned int.
80074         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80075         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80076         Likewise.
80077         * lib/regexec.c (check_dst_limits_calc_pos_1,
80078         check_subexp_matching_top):
80079         (build_trtable, group_nodes_into_DFAstates):
80080         Likewise.
80081         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80082         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80083         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80084         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80085         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80086         * lib/regcomp.c (optimize_subexps, lower_subexp):
80087         Work even if bitset_word has holes in its bitwise representation.
80088         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80089         * lib/regexec.c (check_dst_limits_calc_pos_1,
80090         check_subexp_matching_top):
80091         Likewise.
80092         * lib/regex_internal.c (re_string_reconstruct):
80093         Don't assume UCHAR_MAX == 255.
80094         * lib/regex_internal.h (bitset_set_all): Likewise.
80095         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80096         All uses changed.
80097         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80098         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80099         All uses changed.
80100         (BITSET_WORD_MAX): New macro.
80101         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80102         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80103         (bitset_empty, bitset_copy):
80104         Prefer sizeof (bitset) to multiplying it out ourselves.
80105         (bitset_not_merge): Remove; unused.
80106         (bitset_contain): Return bool, not unsigned int with one bit on.
80107         All callers changed.
80108         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80109         alignment than re_node_set; do this by defining a new internal
80110         type struct dests_alloc and using it to allocate memory.
80111
80112 2005-09-05  Bruno Haible  <bruno@clisp.org>
80113
80114         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80115         links.
80116
80117 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80118
80119         * modules/size_max (Makefile.am): Add size_max.h
80120
80121 2005-09-04  Derek Price  <derek@ximbiot.com>
80122
80123         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80124
80125 2005-09-03  Simon Josefsson  <jas@extundo.com>
80126
80127         * gnulib-tool: Fix typo.
80128
80129 2005-09-03  Simon Josefsson  <jas@extundo.com>
80130
80131         * config/srclist.txt: Add glibc bug 1293.
80132
80133 2005-09-03  Derek Price  <derek@ximbiot.com>
80134
80135         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80136         From Larry Jones <lawrence.jones@ugs.com>.
80137
80138 2005-09-02  Simon Josefsson  <jas@extundo.com>
80139
80140         * modules/socklen: New file.
80141
80142 2005-09-02  Simon Josefsson  <jas@extundo.com>
80143
80144         * modules/havelib: New module.
80145
80146         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80147         Use havelib.
80148
80149 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80150
80151         Check for arithmetic overflow when calculating sizes, to prevent
80152         some buffer-overflow issues.  These patches are conservative, in the
80153         sense that when I couldn't determine whether an overflow was possible,
80154         I inserted a run-time check.
80155         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80156         macros.
80157         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80158         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80159         (re_xnrealloc, re_x2nrealloc): New inline functions.
80160         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80161         parse_bracket_exp):
80162         (build_equiv_class, build_charclass): Check for arithmetic overflow
80163         in size expression calculations.
80164         * lib/regex_internal.c (re_string_realloc_buffers):
80165         (build_wcs_upper_buffer, re_node_set_add_intersect):
80166         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80167         (re_dfa_add_node, register_state): Likewise.
80168         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80169         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80170         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80171         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80172
80173 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80174
80175         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80176         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80177
80178 2005-09-02  Bruno Haible  <bruno@clisp.org>
80179
80180         Support for lib vs. lib64 distinction on biarch platforms.
80181         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80182         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80183         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80184
80185 2005-09-02  Bruno Haible  <bruno@clisp.org>
80186
80187         * gnulib-tool (import): In the other first-use case, provide defaults
80188         as well.
80189
80190 2005-09-02  Bruno Haible  <bruno@clisp.org>
80191
80192         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80193         patches not yet found in the latest gettext release.
80194
80195 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80196
80197         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80198         to avoid a collision with bits/local_lim.h in glibc.
80199         All uses changed.  Problem reported by Dmitry V. Levin in
80200         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80201
80202         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80203         bugs in int versus size_t comparisons.
80204         (re_string_context_at): Fix bug where the code assumed that
80205         Idx is signed.
80206
80207         Use bool where appropriate.
80208         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80209         All callers changed.
80210         (calc_eclosure_iter): Likewise, for ROOT arg.
80211         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80212         (build_charclass_op): Likewise, for NON_MATCH arg.
80213         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80214         (re_string_construct_common): Likewise, for ICASE arg.
80215         * lib/regexec.c (re_search_2_stub, re_search_stub):
80216         Likewise, for RET_LEN arg.
80217         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80218         (set_regs): Likewise, for FL_BACKTRACK arg.
80219         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80220         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80221         (calc_eclosure_iter, parse_bracket_exp):
80222         Use bool for internal variables that are booleans.
80223         * lib/regexec.c (re_search_internal, check_matching,
80224         proceed_next_node):
80225         (set_regs, build_sifted_states, sift_states_bkref):
80226         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80227         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80228         (find_collation_sequence_value):
80229         Likewise.
80230         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80231         (re_node_set_compare):
80232         Return bool, not int. All callers changed.
80233         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80234         (build_trtable, check_node_accept): Likewise.
80235         * lib/regex_internal.h: Include stdbool.h.
80236
80237         Fix bugs uncovered when converting to bool.
80238         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80239         failure instead of charging ahead blindly.
80240         * lib/regex_internal.c (register_state): Likewise.
80241         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80242         for freeing internal storage.
80243         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80244         bitset pieces used as boolean, to avoid undefined behavior
80245         on hosts that do int overflow checking.
80246
80247 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80248
80249         * config/srclist.txt: Add glibc bugs 1285-1287.
80250
80251 2005-09-01  Jim Meyering  <jim@meyering.net>
80252
80253         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80254         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80255         Require gl_STAT_MACROS, too.
80256
80257 2005-09-01  Bruno Haible  <bruno@clisp.org>
80258
80259         * gnulib-tool (import): In the first-use case, provide defaults.
80260
80261 2005-09-01  Bruno Haible  <bruno@clisp.org>
80262
80263         * gnulib-tool (func_import): Remove the .tmp files.
80264
80265 2005-09-01  Bruno Haible  <bruno@clisp.org>
80266
80267         * gnulib-tool (func_import): Fix handling of symbolic links.
80268
80269 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80270
80271         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80272         old glibc regex code mishandles strings longer than 2**31 bytes.
80273         This patch fixes this when the regex code is used in gnulib
80274         (i.e., outside glibc).
80275
80276         This patch should not affect the use of the regex code inside
80277         glibc.  No doubt this problem also needs to be handled for glibc
80278         as well, but the result will be an incompatible change to the
80279         glibc ABI, and the old ABI will have to be supported too.  That
80280         can be the the subject for another patch.
80281
80282         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80283         governing whether the rest of this patch is active.  By default,
80284         the macro is disabled and the patch has no effect.
80285         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80286         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80287         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80288         (re_match_2, re_set_registers): Use the new types.
80289         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80290         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80291         New macros.
80292         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80293         (re_string_context_at, bin_tree_t, re_dfastate_t):
80294         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80295         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80296         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80297         (re_string_char_size_at, re_string_wchar_at):
80298         (re_string_elem_size_at):
80299         Use the new types and macros to port to 64-bit hosts.
80300         Use unsigned types for internal values, so that the code
80301         mostly works even for arrays larger than SSIZE_MAX.
80302         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80303         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80304         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80305         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80306         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80307         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80308         (calc_inveclosure, parse_dup_op, build_range_exp):
80309         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80310         (fetch_number, create_token_tree, mark_opt_subexp):
80311         Likewise.
80312         * lib/regex_internal.c (re_string_construct_common,
80313         create_ci_newstate):
80314         (create_cd_newstate, re_string_allocate, re_string_construct):
80315         (re_string_realloc_buffers, build_wcs_upper_buffer):
80316         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80317         (re_string_reconstruct, re_string_peek_byte_case):
80318         (re_string_fetch_byte_case, re_string_context_at):
80319         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80320         (re_node_set_init_copy, re_node_set_add_intersect):
80321         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80322         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80323         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80324         (re_acquire_state, re_acquire_state_context, register_state):
80325         Likewise.
80326         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80327         search_cur_bkref_entry):
80328         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80329         (re_search_internal, re_search_2_stub, re_search_stub)
80330         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80331         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80332         (update_cur_sifted_state, check_dst_limits):
80333         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80334         (check_subexp_limits, sift_states_bkref, merge_state_array):
80335         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80336         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80337         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80338         (expand_bkref_cache, check_node_accept_bytes):
80339         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80340         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80341         (acquire_init_state_context, check_halt_node_context):
80342         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80343         (sift_states_backward, clean_state_log_if_needed):
80344         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80345         (find_recover_state, transit_state_sb, transit_state_mb):
80346         (transit_state_bkref, build_trtable, match_ctx_clean):
80347         Likewise.
80348         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80349         to work around an assumption that REG_MISSING is negative.
80350
80351         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80352         (seek_collating_symbol_entry) [defined _LIBC]:
80353         (lookup_collation_sequence_value) [defined _LIBC]:
80354         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80355         Use prototypes rather than old-style function definitions.
80356         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80357         (transit_state_sb) [0]:
80358         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80359
80360         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80361         rm_eo.
80362
80363         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80364         (optimize_subexps, lower_subexp):
80365         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80366         since the signed shift might overflow.  Use 1u<<31 instead.
80367         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80368         Likewise.
80369         * lib/regexec.c (check_dst_limits_calc_pos_1,
80370         check_subexp_matching_top): Likewise.
80371
80372         * lib/regcomp.c (optimize_subexps, lower_subexp):
80373         Use CHAR_BIT rather than 8, for clarity.
80374         * lib/regexec.c (check_dst_limits_calc_pos_1):
80375         (check_subexp_matching_top): Likewise.
80376         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80377         have to worry about portability issues when shifting it left.
80378         Remove no-longer-needed test for table_size > 0.
80379         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80380         in a word, as the resulting behavior is undefined.
80381         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80382         in one case, a <= should have been an <, and in another case the
80383         whole test was missing.
80384         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80385         the standard name CHAR_BIT.
80386         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80387         this is not true on one's complement and signed-magnitude hosts.
80388
80389         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80390         next_last_offset.
80391         (struct re_dfa_t): Remove unused member states_alloc.
80392         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80393
80394 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80395
80396         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80397         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80398         and large-file glibc and in 32-bit large-file Solaris.
80399
80400 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80401
80402         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80403         lengths fit in regoff_t; this isn't true if regoff_t is the same
80404         width as size_t.
80405         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80406         (= START + RANGE) instead of RANGE.  This avoids overflow
80407         problems when regoff_t is the same width as size_t.
80408         All callers changed.
80409         (re_search_2_stub): Check for overflow when adding the
80410         sizes of the two strings.
80411         (re_search_stub): Check for overflow when adding START
80412         to RANGE; if it occurs, substitute the extreme value.
80413
80414 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80415
80416         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80417
80418 2005-08-31  Jim Meyering  <jim@meyering.net>
80419
80420         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80421         a pointer-to-const.
80422         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80423         (register_state): Likewise.
80424         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80425         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80426         (group_nodes_into_DFAstates): Likewise.
80427
80428 2005-08-31  Jim Meyering  <jim@meyering.net>
80429
80430         * check-module: Add a FIXME comment.
80431
80432 2005-08-31  Eric Blake  <ebb9@byu.net>
80433
80434         * modules/unistd-safer (Files): Add unistd--.h.
80435         * modules/stdio-safer (Files): Add stdio--.h.
80436
80437 2005-08-31  Derek Price  <derek@ximbiot.com>
80438
80439         * lib/getdelim.c (getdelim): Return EOF on EOF.
80440         Reported by Larry Jones <lawrence.jones@ugs.com>.
80441
80442 2005-08-31  Bruno Haible  <bruno@clisp.org>
80443
80444         Avoid unnecessary diffs in the generated lib/Makefile.am.
80445         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80446         the generated files.
80447         (func_import): Don't set cmd.
80448
80449 2005-08-31  Bruno Haible  <bruno@clisp.org>
80450
80451         * lib/strstr.c: Include <stddef.h>, for NULL.
80452         * lib/strcasestr.c: Likewise.
80453         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80454
80455 2005-08-31  Bruno Haible  <bruno@clisp.org>
80456
80457         * gnulib-tool: New option --macro-prefix.
80458         (func_import): Use macro_prefix.
80459         (import): Handle option --macro-prefix.
80460
80461 2005-08-31  Bruno Haible  <bruno@clisp.org>
80462
80463         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80464         Also use new variables cached_lgpl, cached_libtool.
80465
80466 2005-08-31  Bruno Haible  <bruno@clisp.org>
80467
80468         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80469         always instantiating them.
80470
80471 2005-08-31  Bruno Haible  <bruno@clisp.org>
80472
80473         * gnulib-tool (func_import): Read the previous cached settings
80474         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80475         earlier added by gnulib but are now dropped. Warn when a gnulib file
80476         overwrites a non-gnulib file.
80477
80478 2005-08-31  Bruno Haible  <bruno@clisp.org>
80479
80480         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80481         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80482         projects that don't keep autogenerated files in CVS. Put into
80483         actioncmd only the specified modules, not the transitive closure.
80484
80485 2005-08-31  Bruno Haible  <bruno@clisp.org>
80486
80487         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80488         Create directories that shall be filled.
80489         (import): Don't look for gl_* macros in configure.ac. Recurse across
80490         all directories containing a gnulib-cache.m4 files, if meaningful.
80491
80492 2005-08-31  Bruno Haible  <bruno@clisp.org>
80493
80494         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80495         (import): Set seen_libtool when we see gl_LIBTOOL.
80496
80497 2005-08-31  Bruno Haible  <bruno@clisp.org>
80498
80499         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80500         declaration macro definitions from generated gnulib.m4.
80501
80502 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80503
80504         * lib/iconvme.h: Add prototype for iconv_alloc.
80505
80506 2005-08-29  Simon Josefsson  <jas@extundo.com>
80507
80508         * lib/iconvme.c: Fix errno.
80509
80510 2005-08-29  Bruno Haible  <bruno@clisp.org>
80511
80512         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80513         that it works when the directory contains spaces.
80514
80515 2005-08-29  Bruno Haible  <bruno@clisp.org>
80516
80517         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80518
80519 2005-08-29  Bruno Haible  <bruno@clisp.org>
80520
80521         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80522         Emit more advice.
80523
80524 2005-08-29  Bruno Haible  <bruno@clisp.org>
80525         and Stepan Kasal  <kasal@ucw.cz>
80526
80527         * check-module: If more parameters are given, check each of them
80528         separately; add more exceptions, as noted by Jim Meyering.
80529         (check_module): New procedure.
80530         (%exempt_header): Now contains all exceptions.
80531
80532 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80533
80534         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80535
80536 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80537
80538         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80539
80540 2005-08-28  Bruno Haible  <bruno@clisp.org>
80541
80542         * m4/gnulib-tool.m4: New file.
80543
80544 2005-08-27  Jim Meyering  <jim@meyering.net>
80545
80546         * modules/unistd-safer (Files): Add pipe-safer.c.
80547         * modules/fcntl-safer (Files): Add creat-safer.c.
80548
80549 2005-08-27  Jim Meyering  <jim@meyering.net>
80550
80551         * m4/stdlib-safer.m4: New file.  From coreutils.
80552         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80553         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80554         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80555         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80556         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80557
80558 2005-08-27  Jim Meyering  <jim@meyering.net>
80559
80560         * lib/fopen-safer.c: Merge minor changes from coreutils.
80561         * lib/dup-safer.c: Likewise.
80562         * lib/fd-safer.c: Likewise.
80563
80564         Merge from coreutils.
80565         * lib/stdio--.h: New file.
80566         * lib/stdlib--.h: New file.
80567         * lib/mkstemp-safer.c: New file.
80568
80569         GNU tar needs these.
80570         * lib/pipe-safer.c: New file.
80571         * lib/creat-safer.c: New file.
80572         * lib/fcntl--.h (creat): Define to creat_safer.
80573         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80574         * lib/unistd--.h (pipe): Define to pipe_safer.
80575         * lib/unistd-safer.h: Declare pipe_safer.
80576
80577 2005-08-26  Simon Josefsson  <jas@extundo.com>
80578
80579         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80580         Haible <bruno@clisp.org>.
80581
80582 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80583
80584         * lib/regex_internal.h: Remove all references to
80585         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80586         or better.
80587         (bitset_not, bitset_merge, bitset_not_merge):
80588         (bitset_mask, re_string_allocate, re_string_construct):
80589         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80590         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80591         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80592         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80593         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80594         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80595         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80596         (re_acquire_state_context):
80597         Remove unnecessary forward decls.
80598         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80599         Put __attribute at function definition,
80600         now that the function decl has been removed.
80601         * lib/regex_internal.c (re_string_peek_byte_case):
80602         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80603         Likewise.
80604
80605 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80606
80607         * m4/regex.m4: Add AC_PREREQ(2.50).
80608         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80609
80610 2005-08-25  Simon Josefsson  <jas@extundo.com>
80611
80612         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80613         __fsetlocking.
80614
80615 2005-08-25  Simon Josefsson  <jas@extundo.com>
80616
80617         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80618         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80619         GLIBC specific code.
80620
80621 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80622
80623         Make regex safe for g++.  This fixes one real bug (an "err"
80624         that should have been "*err").  g++ problem reported by
80625         Sam Steingold.
80626         * lib/regex_internal.h (re_calloc): New macro, consistent with
80627         re_malloc etc.  All callers of calloc changed to use re_calloc.
80628         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80629         not int.  All callers changed.
80630         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80631         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80632         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80633         (find_recover_state): Change "err" to "*err"; this fixes what
80634         appears to be a real bug.
80635         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80636         versus int.
80637
80638 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80639
80640         * modules/regex (Depends-on): Add malloc, since the code
80641         assumes that !malloc(0) means failure.
80642
80643 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80644
80645         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80646
80647         alloca modernization/simplification for regex.
80648         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80649         needs to be at the start of the file, and can be moved into
80650         regex_internal.h and simplified.
80651         * lib/regex_internal.h: Include <alloca.h>.
80652         (__libc_use_alloca) [!defined _LIBC]: New macro.
80653         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80654         now works outside glibc.
80655
80656 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80657
80658         * config/srclist.txt: Add glibc bugs 1241, 1245.
80659
80660 2005-08-25  Jim Meyering  <jim@meyering.net>
80661
80662         * lib/open-safer.c: Include <config.h>.
80663         Otherwise, we'd lose LARGEFILE support in any file using
80664         e.g. "fcntl--.h"
80665
80666 2005-08-25  Bruno Haible  <bruno@clisp.org>
80667
80668         * m4/minmax.m4: Require autoconf 2.52.
80669         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80670         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80671         alternatives of translit over the alphabet.
80672         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80673
80674 2005-08-24  Simon Josefsson  <jas@extundo.com>
80675
80676         * tests/test-getpass.c: New file.
80677
80678 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80679
80680         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80681         for GNU regex features.
80682
80683 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80684
80685         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80686         * lib/regex.h (regerror): Likewise.
80687
80688         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80689         requires this.  (The code never needed it.)
80690
80691         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80692         All uses of recently-renamed identifiers changed to use the new,
80693         POSIX-compliant names.  The code will build and run just fine
80694         without these changes, but it's better to eat our own dog food
80695         and use the standard-conforming names.
80696
80697         * lib/regex.h: Fix a multitude of POSIX name space violations.
80698         These changes have an effect only for programs that define
80699         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80700         do not change anything for programs compiled in the normal way.
80701         Also, there is no effect on the ABI.
80702
80703         (_REGEX_SOURCE): New macro.
80704         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80705         defined and _GNU_SOURCE is not; this fixes a name space violation.
80706
80707         Rename the following macros to obey POSIX requirements.
80708         The old names are still visible as macros if _REGEX_SOURCE is defined.
80709         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80710         RE_BACKSLASH_ESCAPE_IN_LISTS.
80711         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80712         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80713         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80714         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80715         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80716         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80717         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80718         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80719         (REG_INTERVALS): renamed from RE_INTERVALS.
80720         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80721         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80722         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80723         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80724         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80725         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80726         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80727         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80728         RE_UNMATCHED_RIGHT_PAREN_ORD.
80729         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80730         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80731         (REG_DEBUG): renamed from RE_DEBUG.
80732         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80733         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80734         unusual, since we can't clash with the POSIX REG_ICASE.
80735         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80736         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80737         (REG_NO_SUB): renamed from RE_NO_SUB.
80738         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80739         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80740         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80741         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80742         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80743         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80744         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80745         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80746         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80747         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80748         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80749         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80750         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80751         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80752         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80753         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80754         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80755         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80756         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80757         (REG_FIXED): Renamed from REGS_FIXED.
80758         (REG_NREGS): Renamed from RE_NREGS.
80759
80760         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80761         of other REG_* macros, since POSIX says the user is allowed to
80762         #undef these macros selectively.
80763
80764         (reg_errcode_t): Update comment stating what other tables need
80765         to be consistent.
80766
80767         Rename the following enum values to obey POSIX requirements.
80768         The old names are still visible as macros.
80769         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80770         is not defined, since GNU is supposed to be a superset of POSIX as
80771         much as possible, and since we want reg_errcode_t to be a signed
80772         type for implementation consistency.
80773         (_REG_NOERROR): Renamed from REG_NOERROR.
80774         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80775         (_REG_BADPAT): Renamed from REG_BADPAT.
80776         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80777         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80778         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80779         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80780         (_REG_EBRACK): Renamed from REG_EBRACK.
80781         (_REG_EPAREN): Renamed from REG_EPAREN.
80782         (_REG_EBRACE): Renamed from REG_EBRACE.
80783         (_REG_BADBR): Renamed from REG_BADBR.
80784         (_REG_ERANGE): Renamed from REG_ERANGE.
80785         (_REG_ESPACE): Renamed from REG_ESPACE.
80786         (_REG_BADRPT): Renamed from REG_BADRPT.
80787         (_REG_EEND): Renamed from REG_EEND.
80788         (_REG_ESIZE): Renamed from REG_ESIZE.
80789         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80790         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80791         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80792         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80793         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80794
80795         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80796         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80797         changed.  But support the old name if the new one is not defined
80798         and if _REGEX_SOURCE.
80799
80800         Change the following member names in struct re_pattern_buffer.
80801         The old names are still supported if !_REGEX_SOURCE.
80802         The new names are always supported, regardless of _REGEX_SOURCE.
80803         (re_buffer): Renamed from buffer.
80804         (re_allocated): Renamed from allocated.
80805         (re_used): Renamed from used.
80806         (re_syntax): Renamed from syntax.
80807         (re_fastmap): Renamed from fastmap.
80808         (re_translate): Renamed from translate.
80809         (re_can_be_null): Renamed from can_be_null.
80810         (re_regs_allocated): Renamed from regs_allocated.
80811         (re_fastmap_accurate): Renamed from fastmap_accurate.
80812         (re_no_sub): Renamed from no_sub.
80813         (re_not_bol): Renamed from not_bol.
80814         (re_not_eol): Renamed from not_eol.
80815         (re_newline_anchor): Renamed from newline_anchor.
80816
80817         Change the following member names in struct re_registers.
80818         The old names are still supported if !_REGEX_SOURCE.
80819         The new names are always supported, regardless of _REGEX_SOURCE.
80820         (rm_num_regs): Renamed from num_regs.
80821         (rm_start): Renamed from start.
80822         (rm_end): Renamed from end.
80823
80824         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80825         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80826         Prepend __ to parameter names.
80827
80828         Undo yesterday's changes.
80829
80830 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80831
80832         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80833         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80834         lib/regex.c.
80835
80836 2005-08-24  Jim Meyering  <jim@meyering.net>
80837
80838         Sync from coreutils.
80839         * m4/fcntl-safer.m4: New file.
80840
80841         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80842         and object files for this module.
80843
80844 2005-08-24  Jim Meyering  <jim@meyering.net>
80845
80846         Sync from coreutils.
80847         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80848
80849 2005-08-24  Jim Meyering  <jim@meyering.net>
80850
80851         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80852         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80853
80854 2005-08-24  Jim Meyering  <jim@meyering.net>
80855
80856         * modules/fcntl-safer: New module.
80857         * modules/fts (Depends-on): Add fcntl-safer.
80858         * MODULES.html.sh (File descriptor based Input/Output):
80859         Add fcntl-safer.
80860
80861 2005-08-24  Bruno Haible  <bruno@clisp.org>
80862
80863         Support for unit test modules.
80864         * modules/README: Mention tests modules.
80865         * modules/TEMPLATE-TESTS: New file.
80866         * gnulib-tool: New options --extract-tests-module, --with-tests and
80867         --tests-base (unused for the moment).
80868         (testsbase, inctests): New variables.
80869         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80870         (func_verify_module): Exclude TEMPLATE-TESTS.
80871         (func_verify_nontests_module, func_verify_tests_module): New functions.
80872         (func_get_dependencies): Add implicit dependency for tests modules.
80873         (func_get_tests_module): New function.
80874         (func_modules_transitive_closure): When --with-tests was specified,
80875         include the unit tests as well, unless explicitly avoided.
80876         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80877         (func_emit_tests_Makefile_am): New function.
80878         (func_create_testdir): When --with-tests was specified, emit a
80879         tests/ directory.
80880         * MODULES.html.sh (Future developments): Update.
80881
80882 2005-08-24  Bruno Haible  <bruno@clisp.org>
80883
80884         * modules/tls-tests: New file.
80885         * tests/test-tls.c: New file, from GNU gettext.
80886
80887 2005-08-24  Bruno Haible  <bruno@clisp.org>
80888
80889         * modules/lock-tests: New file.
80890         * tests/test-lock.c: New file, from GNU gettext.
80891
80892 2005-08-24  Bruno Haible  <bruno@clisp.org>
80893
80894         * lib/lock.h: Add multiple inclusion guard.
80895         * lib/tls.h: Add multiple inclusion guard.
80896
80897 2005-08-24  Bruno Haible  <bruno@clisp.org>
80898
80899         * gnulib-tool: Add support for the --aux-dir option to
80900         --create-testdir, --create-megatestdir, --test, --megatest.
80901         (func_create_testdir, func_create_megatestdir): Optionally emit a
80902         AC_CONFIG_AUX_DIR directive.
80903         (create-testdir, create-megatestdir, test, megatest): Provide a
80904         default value for $auxdir.
80905
80906 2005-08-24  Bruno Haible  <bruno@clisp.org>
80907
80908         * gnulib-tool (import): Use compound statement instead of subshell
80909         where possible.
80910
80911 2005-08-24  Bruno Haible  <bruno@clisp.org>
80912
80913         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80914
80915 2005-08-24  Bruno Haible  <bruno@clisp.org>
80916
80917         * gnulib-tool (func_version): Update.
80918
80919 2005-08-24  Bruno Haible  <bruno@clisp.org>
80920
80921         * gnulib-tool (func_import, func_create_testdir,
80922         func_create_megatestdir): Quote all autoconf macro arguments.
80923
80924 2005-08-24  Bruno Haible  <bruno@clisp.org>
80925
80926         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80927         option --force, because --force causes the aclocal.m4 of each
80928         subdirectory to be newer than the corresponding config.h.in.
80929
80930 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80931
80932         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
80933         All contents moved to gl_REGEX.
80934         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
80935         assume that it does.
80936
80937 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80938
80939         * lib/regex.h (REG_NOSYS)
80940         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
80941         Define, since POSIX requires it as of 2001.
80942         (_REG_ENOSYS)
80943         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
80944         New private symbol, used to keep the enum signed in all cases.
80945         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
80946         Youngman in
80947         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
80948
80949         * lib/regex_internal.c (re_string_skip_chars, register_state):
80950         (calc_state_hash):
80951         Remove forward decls; no longer needed now that we use prototypes.
80952         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
80953         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
80954         (clean_state_log_if_needed): Likewise.
80955
80956 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80957
80958         * config/srclist.txt: Add glibc bugs 1231-1233.
80959
80960 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80961
80962         Fix problems reported by Sam Steingold in
80963         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
80964         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
80965         assumed that reg_errcode_t is a signed type, which is not
80966         necessarily true if _XOPEN_SOURCE is not defined.
80967         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
80968         since some compilers warn about it otherwise.
80969
80970 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80971
80972         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
80973         (init_word_char, create_initial_state, duplicate_node_closure):
80974         (fetch_token, peek_token_bracket, build_range_exp):
80975         (build_collating_symbol): Remove forward decls; no longer needed
80976         now that we use prototypes.
80977
80978         * lib/regcomp.c:
80979         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
80980         (re_compile_fastmap_iter, regcomp, regerror, regfree):
80981         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
80982         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
80983         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
80984         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
80985         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
80986         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
80987         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
80988         (build_range_exp, build_collating_symbol, parse_bracket_exp):
80989         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
80990         (build_charclass, build_charclass_op, fetch_number, create_tree):
80991         (create_token_tree, mark_opt_subexp, duplicate_tree):
80992         Use prototypes rather than old-style definitions.
80993
80994         * lib/regex_internal.c:
80995         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
80996         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
80997         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80998         (re_string_reconstruct, re_string_peek_byte_case):
80999         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81000         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81001         (re_node_set_init_copy, re_node_set_add_intersect):
81002         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81003         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81004         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81005         (re_acquire_state, re_acquire_state_context, register_state):
81006         (create_ci_newstate, create_cd_newstate, free_state):
81007         Likewise.
81008         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81009         re_search_2):
81010         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81011         (re_search_internal, prune_impossible_nodes):
81012         (acquire_init_state_context, check_matching, static):
81013         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81014         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81015         (update_regs, sift_states_backward, build_sifted_states):
81016         (clean_state_log_if_needed, merge_state_array):
81017         (update_cur_sifted_state, add_epsilon_src_nodes):
81018         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81019         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81020         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81021         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81022         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81023         (check_arrival, check_arrival_add_next_nodes):
81024         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81025         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81026         (check_node_accept_bytes, check_node_accept, extend_buffers):
81027         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81028         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81029         (sift_ctx_init):
81030         Likewise.
81031
81032         * lib/regex_internal.h:
81033         (re_string_allocate, re_string_construct, re_string_reconstruct):
81034         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81035         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81036         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81037         (re_string_context_at, re_string_peek_byte_case):
81038         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81039         is defined, since we now use prototypes always.
81040
81041         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81042         C89 or better.  All uses removed.
81043
81044 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81045
81046         * config/srclist.txt: Add glibc bugs 1220-1227.
81047
81048 2005-08-20  Jim Meyering  <jim@meyering.net>
81049
81050         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81051         of unused local, dfa.
81052
81053 2005-08-20  Bruno Haible  <bruno@clisp.org>
81054
81055         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81056
81057 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81058
81059         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81060         (re_node_set_insert_last, re_dfa_add_node):
81061         Rename local variables to avoid GCC shadowing warnings.
81062
81063 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81064
81065         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81066         [defined lint]: Suppress bogus uninitialized-variable warnings.
81067
81068         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81069         and let the caller return REG_ESPACE if out of space.  This
81070         removes an uninitialied-variable warning with GCC 4.0.1, and also
81071         avoids taking the address of a local variable.  All callers
81072         changed.
81073
81074 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81075
81076         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81077         $LIBCSRC/posix/regexec.c.
81078         Add glibc bug 1217 for regcomp.c.
81079
81080 2005-08-19  Jim Meyering  <jim@meyering.net>
81081
81082         * lib/regexec.c (proceed_next_node): Redo local variables to
81083         avoid GCC shadowing warnings.
81084
81085 2005-08-18  Bruno Haible  <bruno@clisp.org>
81086
81087         * lib/strstr.c (strstr): Fix return value in multibyte case.
81088         * lib/strcasestr.c (strcasestr): Likewise.
81089
81090 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81091
81092         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81093
81094 2005-08-17  Jim Meyering  <jim@meyering.net>
81095
81096         Make the %s format (seconds since the epoch) work for a negative
81097         number and when used with a zero-padded field width, e.g. %015s.
81098
81099         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81100         label so that it precedes the code to set `digits'.  Otherwise,
81101         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81102         print `00-22'.  Now, it prints `-0022', as it should.
81103
81104 2005-08-17  Bruno Haible  <bruno@clisp.org>
81105
81106         * modules/strstr (Files): Add m4/mbrtowc.m4.
81107         (Depends-on): Add mbuiter.
81108
81109 2005-08-17  Bruno Haible  <bruno@clisp.org>
81110
81111         * modules/strcasestr: New file.
81112         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81113         strcasestr.
81114
81115 2005-08-17  Bruno Haible  <bruno@clisp.org>
81116
81117         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81118
81119 2005-08-17  Bruno Haible  <bruno@clisp.org>
81120
81121         * modules/mbuiter: New file.
81122         * MODULES.html.sh (Extended multibyte and wide character utilities):
81123         Add mbuiter.
81124
81125 2005-08-17  Bruno Haible  <bruno@clisp.org>
81126
81127         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81128         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81129
81130 2005-08-17  Bruno Haible  <bruno@clisp.org>
81131
81132         * m4/strcasestr.m4: New file.
81133
81134 2005-08-17  Bruno Haible  <bruno@clisp.org>
81135
81136         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81137         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81138
81139 2005-08-17  Bruno Haible  <bruno@clisp.org>
81140
81141         * lib/strcasestr.h: New file.
81142         * lib/strcasestr.c: New file.
81143
81144 2005-08-17  Bruno Haible  <bruno@clisp.org>
81145
81146         * lib/strcasecmp.c: Use mbuiter.h.
81147
81148 2005-08-17  Bruno Haible  <bruno@clisp.org>
81149
81150         * lib/mbuiter.h: New file.
81151
81152 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81153
81154         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81155         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81156         and gl_GETOPT are both invoked via different paths (as happens
81157         with GNU tar CVS because it uses both argp and getopt), the former
81158         wins.
81159
81160 2005-08-16  Bruno Haible  <bruno@clisp.org>
81161
81162         * modules/tls: New file.
81163         * MODULES.html.sh (Multithreading): Add tls.
81164
81165 2005-08-16  Bruno Haible  <bruno@clisp.org>
81166
81167         * modules/strnlen1: New file.
81168         * MODULES.html.sh (String handling): Add strnlen1.
81169
81170 2005-08-16  Bruno Haible  <bruno@clisp.org>
81171
81172         * modules/strcase (Files): Add m4/mbrtowc.m4.
81173         (Depends-on): Add strnlen1, mbchar.
81174
81175 2005-08-16  Bruno Haible  <bruno@clisp.org>
81176
81177         * modules/mbiter: New file.
81178         * MODULES.html.sh (Extended multibyte and wide character utilities):
81179         Add mbiter.
81180
81181 2005-08-16  Bruno Haible  <bruno@clisp.org>
81182
81183         * modules/mbfile: New file.
81184         * MODULES.html.sh (Extended multibyte and wide character utilities):
81185         Add mbfile.
81186
81187 2005-08-16  Bruno Haible  <bruno@clisp.org>
81188
81189         * modules/mbchar: New file.
81190         * MODULES.html.sh (Extended multibyte and wide character utilities):
81191         New section.
81192
81193 2005-08-16  Bruno Haible  <bruno@clisp.org>
81194
81195         * m4/tls.m4: New file, from GNU gettext.
81196
81197 2005-08-16  Bruno Haible  <bruno@clisp.org>
81198
81199         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81200         always.
81201         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81202
81203 2005-08-16  Bruno Haible  <bruno@clisp.org>
81204
81205         * m4/mbiter.m4: New file.
81206
81207 2005-08-16  Bruno Haible  <bruno@clisp.org>
81208
81209         * m4/mbfile.m4: New file.
81210
81211 2005-08-16  Bruno Haible  <bruno@clisp.org>
81212
81213         * m4/mbchar.m4: New file.
81214
81215 2005-08-16  Bruno Haible  <bruno@clisp.org>
81216
81217         * lib/tls.h: New file, from GNU gettext.
81218         * lib/tls.c: New file, from GNU gettext.
81219
81220 2005-08-16  Bruno Haible  <bruno@clisp.org>
81221
81222         * lib/strnlen1.h: New file.
81223         * lib/strnlen1.c: New file.
81224
81225 2005-08-16  Bruno Haible  <bruno@clisp.org>
81226
81227         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81228         (mbi_init): Update.
81229         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81230         NUL byte, not after it.
81231
81232 2005-08-16  Bruno Haible  <bruno@clisp.org>
81233
81234         * lib/strcase.h (strcasecmp): Add note in comments.
81235         * lib/strncasecmp.c: Use code from strcasecmp.c.
81236         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81237         (strcasecmp): Work correctly in multibyte locales.
81238
81239 2005-08-16  Bruno Haible  <bruno@clisp.org>
81240
81241         * lib/mbiter.h: New file.
81242
81243 2005-08-16  Bruno Haible  <bruno@clisp.org>
81244
81245         * lib/mbfile.h: New file.
81246
81247 2005-08-16  Bruno Haible  <bruno@clisp.org>
81248
81249         * lib/mbchar.h: New file.
81250         * lib/mbchar.c: New file.
81251
81252 2005-08-16  Bruno Haible  <bruno@clisp.org>
81253
81254         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81255         the valid ones. Makes the comparison operations transitive:
81256         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81257         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81258
81259 2005-08-15  Simon Josefsson  <jas@extundo.com>
81260
81261         * modules/ssize_t (License): Change to 'unlimited'.
81262
81263         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81264
81265 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81266
81267         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81268         Add comments for each pending glibc patch.
81269
81270 2005-08-15  Bruno Haible  <bruno@clisp.org>
81271
81272         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81273         __cplusplus is defined.
81274
81275 2005-08-14  Jim Meyering  <jim@meyering.net>
81276
81277         Sync from coreutils.
81278
81279         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81280         Use the hash-table-based cycle-detection code not just when
81281         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81282         Reported by James Youngman in
81283         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81284         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81285         FTS_TIGHT_CYCLE_CHECK.
81286         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81287         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81288         once again.
81289         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81290         * lib/fts.c (fd_safer): Remove decl.
81291         Include fcntl--.h rather than unistd-safer.h
81292         (fts_safe_changedir): Don't call fd_safer; no longer needed
81293         now that we include fcntl--.h.
81294
81295 2005-08-12  Simon Josefsson  <jas@extundo.com>
81296
81297         * modules/getndelim2: Use ssize_t module.
81298         * modules/getnline: Likewise.
81299         * modules/safe-read: Likewise.
81300         * modules/xreadlink: Likewise.
81301
81302         * modules/ssize_t: New file.
81303
81304 2005-08-12  Simon Josefsson  <jas@extundo.com>
81305
81306         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81307
81308 2005-08-12  Simon Josefsson  <jas@extundo.com>
81309
81310         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81311         ssize_t.
81312
81313 2005-08-12  Simon Josefsson  <jas@extundo.com>
81314
81315         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81316         readline, getdelim and check_version.
81317         (Support for systems lacking ISO C 99: Sizes of integer types):
81318         Add size_max.
81319
81320 2005-08-12  Bruno Haible  <bruno@clisp.org>
81321
81322         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81323
81324 2005-08-11  Simon Josefsson  <jas@extundo.com>
81325
81326         * modules/readline: New file.
81327
81328         * modules/strnlen (Files): Add strnlen.h.
81329
81330 2005-08-11  Simon Josefsson  <jas@extundo.com>
81331
81332         * m4/readline.m4: New file.
81333
81334 2005-08-11  Simon Josefsson  <jas@extundo.com>
81335
81336         * lib/readline.h, readline.c: New file.
81337
81338 2005-08-11  Simon Josefsson  <jas@extundo.com>
81339
81340         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81341         gl_AVOID.
81342
81343 2005-08-11  Bruno Haible  <bruno@clisp.org>
81344
81345         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81346
81347 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81348
81349         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81350
81351 2005-08-10  Simon Josefsson  <jas@extundo.com>
81352
81353         * tests/test-iconvme.c: New file.
81354
81355 2005-08-10  Simon Josefsson  <jas@extundo.com>
81356
81357         * m4/strnlen.m4: New file.
81358
81359         * m4/strndup.m4: Don't check for strnlen declaration, done in
81360         strnlen.m4.
81361
81362 2005-08-10  Simon Josefsson  <jas@extundo.com>
81363
81364         * lib/strndup.c: Use strnlen.h.
81365
81366         * lib/strnlen.h: New file.
81367
81368 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81369
81370         * README: Typos.
81371
81372 2005-08-02  Simon Josefsson  <jas@extundo.com>
81373
81374         * modules/readline: New file.
81375
81376 2005-08-02  Simon Josefsson  <jas@extundo.com>
81377
81378         * modules/getdelim: New file.
81379
81380         * modules/getline: Rewrite, don't use getndelim2.
81381
81382 2005-08-02  Simon Josefsson  <jas@extundo.com>
81383
81384         * m4/getline.m4: Separate out getdelim stuff into separate module.
81385
81386         * m4/getdelim.m4: New file.
81387
81388 2005-08-02  Simon Josefsson  <jas@extundo.com>
81389
81390         * lib/getline.h, getline.c: Rewrite.
81391
81392         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81393
81394 2005-07-31  Bruno Haible  <bruno@clisp.org>
81395
81396         * lib/lock.h (gl_lock_initializer): New macro.
81397         (gl_lock_define_initialized): Use it.
81398         (gl_rwlock_initializer): New macro.
81399         (gl_rwlock_define_initialized): Use it.
81400         (gl_recursive_lock_initializer): New macro.
81401         (gl_recursive_lock_define_initialized): Use it.
81402
81403 2005-07-30  Karl Berry  <karl@gnu.org>
81404
81405         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81406         Report from Ben Pfaff, regarding getopt.
81407
81408 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81409
81410         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81411         normal way.
81412         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81413         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81414         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81415         (gl_GETOPT): Use the new macros.  Most of the implementation
81416         is moved to the new macros.  This is for programs like Emacs
81417         that don't want all the functionality of gl_GETOPT.
81418
81419 2005-07-26  Bruno Haible  <bruno@clisp.org>
81420
81421         * m4/lock.m4: Update from GNU gettext.
81422
81423 2005-07-26  Bruno Haible  <bruno@clisp.org>
81424
81425         * lib/lock.h: Update from GNU gettext.
81426         * lib/lock.c: Update from GNU gettext.
81427
81428 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81429
81430         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81431         obsolescent AC_TRY_RUN.  Include the default includes files, for
81432         'exit'.
81433
81434 2005-07-24  Bruno Haible  <bruno@clisp.org>
81435
81436         * modules/visibility: New file.
81437         * MODULES.html.sh (Misc): Add visibility.
81438
81439 2005-07-24  Bruno Haible  <bruno@clisp.org>
81440
81441         * m4/visibility.m4: New file.
81442
81443 2005-07-24  Bruno Haible  <bruno@clisp.org>
81444
81445         * doc/visibility.texi: New file.
81446
81447 2005-07-22  Bruno Haible  <bruno@clisp.org>
81448
81449         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81450         $(ALLOCA_H), redundant through BUILT_SOURCES.
81451         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81452         redundant through BUILT_SOURCES.
81453         * modules/byteswap (Makefile.am): Remove explicit dependency on
81454         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81455         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81456         $(FNMATCH_H), redundant through BUILT_SOURCES.
81457         * modules/getopt (Makefile.am): Remove explicit dependency on
81458         $(GETOPT_H), redundant through BUILT_SOURCES.
81459         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81460         redundant through BUILT_SOURCES.
81461         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81462         redundant through BUILT_SOURCES.
81463         * modules/stdbool (Makefile.am): Remove explicit dependency on
81464         $(STDBOOL_H), redundant through BUILT_SOURCES.
81465         * modules/stdint (Makefile.am): Remove explicit dependency on
81466         $(STDINT_H), redundant through BUILT_SOURCES.
81467         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81468         Remove explicit dependency on $(SYSEXITS_H).
81469         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81470
81471 2005-07-18  Simon Josefsson  <jas@extundo.com>
81472
81473         * lib/check-version.c (check_version): Accept identical versions too.
81474
81475 2005-07-18  Bruno Haible  <bruno@clisp.org>
81476
81477         * modules/lock: New file.
81478         * MODULES.html.sh (Multithreading): New section.
81479
81480 2005-07-18  Bruno Haible  <bruno@clisp.org>
81481
81482         * m4/lock.m4: New file, from GNU gettext.
81483
81484 2005-07-18  Bruno Haible  <bruno@clisp.org>
81485
81486         * lib/lock.h: New file, from GNU gettext.
81487         * lib/lock.c: New file, from GNU gettext.
81488
81489 2005-07-18  Bruno Haible  <bruno@clisp.org>
81490
81491         * lib/lock.h (gl_once_t): New type.
81492         (gl_once_define, gl_once): New macros.
81493         * lib/lock.c (fresh_once): New variable.
81494         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81495         functions.
81496
81497 2005-07-16  Simon Josefsson  <jas@extundo.com>
81498
81499         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81500         workaround, suggested by Bruno.
81501
81502 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81503
81504         * modules/xalloc (Depends-on): Add xalloc-die.
81505         * modules/xvasprintf (Depends-on): Add xalloc-die.
81506
81507 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81508
81509         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81510         with a minor change.
81511
81512 2005-07-15  Bruno Haible  <bruno@clisp.org>
81513
81514         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81515         When using lib/poll.c, define poll as rpl_poll.
81516
81517 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81518
81519         * modules/argp (Depends-on): Remove unlocked-io.
81520
81521 2005-07-14  Derek Price  <derek@ximbiot.com>
81522
81523         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81524         for glob symlink bug.
81525
81526 2005-07-14  Bruno Haible  <bruno@clisp.org>
81527
81528         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81529         Instead, test for *_unlocked function declarations directly.
81530
81531 2005-07-11  Simon Josefsson  <jas@extundo.com>
81532
81533         * modules/size_max: New file.
81534
81535         * modules/xsize: Depend on size_max module for size_max.m4.
81536
81537 2005-07-11  Simon Josefsson  <jas@extundo.com>
81538
81539         * lib/size_max.h: New file.
81540
81541 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81542
81543         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81544         copyright symbol and the year.
81545         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81546         (version_etc_va): Use parameterized copyright notice.
81547         Reword to conform to the current GNU coding standards.
81548
81549 2005-07-11  Karl Berry  <karl@gnu.org>
81550
81551         * doc/gnulib.texi (Quoting): new node.
81552         (Initial import): more info, from Patrice.
81553
81554 2005-07-11  Bruno Haible  <bruno@clisp.org>
81555
81556         * gnulib-tool (func_usage): Document option --avoid.
81557         (Command line options): Handle --avoid.
81558         (func_acceptable): New function.
81559         (func_modules_transitive_closure): Use it.
81560
81561 2005-07-11  Bruno Haible  <bruno@clisp.org>
81562
81563         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81564         Reported by Jim Meyering.
81565
81566 2005-07-10  Bruno Haible  <bruno@clisp.org>
81567
81568         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81569         Needed when size_t is smaller than 'unsigned int'.
81570         Reported by Paul Eggert.
81571
81572 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81573
81574         * modules/argp (Depends-on): Add unlocked-io
81575
81576 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81577
81578         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81579         block of defines.
81580
81581 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81582
81583         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81584         fix now.
81585
81586 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81587         and Paul Eggert  <eggert@cs.ucla.edu>
81588
81589         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81590         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81591
81592 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81593
81594         * modules/regex (Files): Add lib/regex_internal.c,
81595         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81596         (Depends-on): Add extensions.
81597         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81598
81599 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81600
81601         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81602         pathconf.
81603         * m4/same.m4 (gl_SAME): Likewise.
81604         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81605
81606         * m4/regex.m4: Adjust to new libc regex implementation.
81607         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81608         all the .c and .h parts of (the new) regex.
81609         Quote the m4 stuff better.
81610         Check for RE_ICASE bug of old gnulib.
81611         Check for REG_STARTEND of recent libc.
81612         Rename local variables from jm_* to gl_*.
81613         Quote operand of "test -f".
81614         Say "recent enough" version of libc, not "version 2".
81615         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81616         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81617         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81618         Remove check for btowc, isascii.
81619         Require AM_LANGINFO_CODESET.
81620
81621 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81622
81623         * lib/regex.c, regex.h: Sync from libc.
81624         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81625         * lib/regexec.c:
81626         New files, synced from libc, except that regex_internal.h
81627         currently has a small porting fix.
81628
81629 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81630
81631         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81632         regex_internal.c, regexec.c.
81633         Add regex_internal.h too, but as a comment, since the libc version
81634         is currently broken in gnulib mode.
81635
81636 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81637
81638         Support programs like Emacs that use gnulib but not gettext.
81639         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81640         * modules/gettext-h: New file.
81641         * modules/gettext (Files): Remove lib/gettext.h.
81642         (Depends-on): Add gettext-h.
81643         (Makefile.am): Remove lib_SOURCES.
81644         * modules/argmatch, modules/c-stack, modules/closeout:
81645         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81646         * modules/execute, modules/file-type, modules/getaddrinfo:
81647         * modules/getopt, modules/human, modules/javacomp:
81648         * modules/javaexec, modules/mkdir-p, modules/obstack:
81649         * modules/openat, modules/pagealign_alloc, modules/pipe:
81650         * modules/quotearg, modules/regex, modules/rpmatch:
81651         * modules/unicodeio, modules/userspec, modules/version-etc:
81652         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81653         * modules/xsetenv:
81654         Depend on gettext-h, not gettext.
81655
81656 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81657
81658         * gnulib-tool (func_import): Add support for 'public domain' license.
81659         * modules/alloca, modules/atexit, modules/memmove:
81660         Now public domain, not GPL.
81661         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81662         * modules/realloc, modules/strerror, modules/strtod:
81663         Now LGPL, not GPL.
81664
81665 2005-07-05  Bruno Haible  <bruno@clisp.org>
81666
81667         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81668         autoconf CVS. Needed for mingw.
81669
81670 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81671
81672         Remove the dependency of the strftime module on the tzset module.
81673         * modules/strftime (Depends-on): Remove dependency on tzset.
81674
81675 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81676
81677         Remove the dependency of the strftime module on the tzset module.
81678         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81679         gl_FUNC_TZSET_CLOBBER.
81680
81681 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81682
81683         Remove the dependency of the strftime module on the tzset module.
81684         * lib/strftime.c (my_strftime)
81685         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81686         Copy the input structure, to work around some of the bug with
81687         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81688         Solaris releases, you should also use the tzset module, but we won't
81689         require it as a dependency any more since we don't want LGPLed code
81690         to depend on GPLed code.
81691
81692 2005-07-02  Jim Meyering  <jim@meyering.net>
81693
81694         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81695         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81696         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81697         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81698
81699 2005-07-02  Jim Meyering  <jim@meyering.net>
81700
81701         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81702
81703 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81704
81705         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81706         declares only 'struct timespec;' (!).
81707
81708 2005-07-01  Jim Meyering  <jim@meyering.net>
81709
81710         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81711         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81712         * lib/save-cwd.c, tempname.c:
81713         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81714         and don't include <sys/file.h>).
81715
81716 2005-06-29  Jim Meyering  <jim@meyering.net>
81717
81718         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81719         type name.  Use the variable name instead.
81720         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81721         Likewise.
81722
81723 2005-06-28  Simon Josefsson  <jas@extundo.com>
81724
81725         * modules/check-version (Files): Add check-version.m4.
81726
81727 2005-06-28  Simon Josefsson  <jas@extundo.com>
81728
81729         * m4/check-version.m4: New file, suggested by Jim Meyering
81730         <jim@meyering.net>.
81731
81732 2005-06-28  Simon Josefsson  <jas@extundo.com>
81733
81734         * lib/check-version.h, lib/check-version.c: New files.
81735
81736 2005-06-28  Simon Josefsson  <jas@extundo.com>
81737
81738         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81739         collision with global variable.  Better indentation.  Don't
81740         increment buffer pointer beyond buffer end.  Based on comments
81741         from Paul Eggert <eggert@cs.ucla.edu>.
81742
81743         * lib/base64.h: Indent.
81744
81745 2005-06-28  Simon Josefsson  <jas@extundo.com>
81746
81747         * doc/gnulib.texi (Library version handling): New section.
81748
81749 2005-06-28  Jim Meyering  <jim@meyering.net>
81750
81751         * check-module (find_included_lib_files): Hard-code another
81752         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81753         but modules/fts-lgpl (correctly) does not list those files.
81754
81755         * modules/canonicalize (Files): Add lib/pathmax.h.
81756
81757 2005-06-25  Simon Josefsson  <jas@extundo.com>
81758
81759         * modules/check-version: New file.
81760
81761 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81762
81763         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81764         initializer of struct addrinfo, as an indication that we don't
81765         care how many members the structure has.
81766
81767 2005-06-24  Derek Price  <derek@ximbiot.com>
81768         and Bruno Haible  <bruno@clisp.org>
81769
81770         Remove stat module & update lstat.
81771         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81772         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81773         * m4/stat.m4: Remove this file.
81774
81775 2005-06-24  Derek Price  <derek@ximbiot.com>
81776         and Bruno Haible  <bruno@clisp.org>
81777
81778         Remove stat module & update lstat.
81779         * lib/stat.c: Remove this file...
81780         (slash_aware_lstat): ...moving this content and its support...
81781         * lib/lstat.c (rpl_lstat): ...into here.
81782         * lib/lstat.h: New file.
81783
81784 2005-06-24  Derek Price  <derek@ximbiot.com>
81785         and Bruno Haible  <bruno@clisp.org>
81786
81787         Remove stat module & update lstat.
81788         * config/srclist.txt (libc sources): Remove stat.
81789
81790 2005-06-24  Derek Price  <derek@ximbiot.com>
81791         and Bruno Haible  <bruno@clisp.org>
81792
81793         Remove stat module & update lstat.
81794         * MODULES.html.sh (stat): Remove.
81795         * MODULES.html: Regenerated.
81796         * modules/lstat (Description): Correct function name.
81797         (Files): Add "lstat.h".
81798         (Depends-on): Remove stat, add xalloc, stat-macros.
81799         * modules/stat: Remove this file.
81800         (Include): Add "lstat.h", remove <sys/stat.h>.
81801
81802 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81803
81804         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81805         (ranged_convert): Don't save conversion in a temporary struct.
81806         This causes a warning with GCC 4.0.0, and anyway in the typical
81807         case it's not worth the extra 100 bytes or so of code.
81808         (ranged_convert, __mktime_internal): When calling a function via a
81809         pointer P, use P () rather than (*P) (), as we now assume C89 or
81810         better.
81811
81812 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81813
81814         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81815         "who -r" failed to give output.  Problem reported by Tim Waugh.
81816
81817         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81818         (xcalloc): Use it to avoid needless tests.
81819         Problem reported by Jim Meyering.
81820
81821 2005-06-20  Derek Price  <derek@ximbiot.com>
81822
81823         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81824         unnecessary for Autoconfs > 2.59c.
81825
81826 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81827
81828         * lib/argp.h (__option_is_short): Check upper limit of
81829         __key. Isprint() requires its argument to have the value
81830         of an unsigned char or EOF.
81831
81832 2005-06-16  Jim Meyering  <jim@meyering.net>
81833
81834         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81835         when either N or S is zero.
81836
81837 2005-06-16  Derek Price  <derek@ximbiot.com>
81838
81839         * m4/bison.m4: Declare YACC & YFLAGS precious.
81840
81841 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81842
81843         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81844         multibyte string or pattern, fall back on unibyte matching.
81845         Problem reported by James Youngman.
81846
81847 2005-06-08  Bruno Haible  <bruno@clisp.org>
81848
81849         * modules/csharpcomp: New file.
81850         * MODULES.html.sh (C#): Add csharpcomp.
81851
81852 2005-06-08  Bruno Haible  <bruno@clisp.org>
81853
81854         * m4/csharpcomp.m4: New file, from GNU gettext.
81855
81856 2005-06-08  Bruno Haible  <bruno@clisp.org>
81857
81858         * lib/csharpcomp.h: New file, from GNU gettext.
81859         * lib/csharpcomp.c: New file, from GNU gettext.
81860         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81861
81862 2005-06-08  Bruno Haible  <bruno@clisp.org>
81863
81864         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81865         warning on mingw.
81866
81867 2005-06-07  Derek Price  <derek@ximbiot.com>
81868
81869         Sync from CVS.
81870         * lib/glob_.h: Indent nested #ifdef.
81871
81872 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81873
81874         Sync from coreutils.
81875         Use "file name" when talking about file names, instead of "filename"
81876         or "path", as per the GNU coding standards.
81877         * lib/mkdir-p.c: Renamed from makepath.c.
81878         (make_dir_parents): Renamed from make_path.  All callers changed.
81879         * lib/mkdir-p.h: Likewise.  All includers changed.
81880         * lib/filenamecat.c: Renamed from path-concat.c.
81881         (file_name_concat): Renamed from path_concat.  All callers changed.
81882         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81883         * lib/filenamecat.h: Likewise.  All includers changed.
81884         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81885         in comments or local variable names.
81886         * lib/basename.c: Likewise.
81887         * lib/canonicalize.c, canonicalize.h: Likewise.
81888         * lib/dirname.c, dirname.h: Likewise.
81889         * lib/euidaccess.c: Likewise.
81890         * lib/exclude.c: Likewise
81891         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81892         * lib/fsusage.c, fsuage.h: Likewise.
81893         * lib/fts.c, fts_.h: Likewise.
81894         * lib/getcwd.c: Likewise.
81895         * lib/getloadavg.c: Likewise.
81896         * lib/mkstemp.c: Likewise.
81897         * lib/mountlist.c, mountlist.h: Likewise.
81898         * lib/openat.c, openat.h: Likewise.
81899         * lib/readlink-stub.c: Likewise.
81900         * lib/readutmp.c, readutmp.h: Likewise.
81901         * lib/rename.c: Likewise.
81902         * lib/rmdir.c: Likewise.
81903         * lib/same.c: Likewise.
81904         * lib/savedir.c: Likewise.
81905         * lib/stripslash.c: Likewise.
81906         * lib/tempname.c: Likewise.
81907         * lib/xreadlink.c: Likewise.
81908         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81909         All uses changed.
81910         * lib/exclude.h: Likewise.
81911
81912         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81913         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81914         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81915         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81916         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81917         files have been getting away with it for years (MORE/BSD 4.3
81918         is extinct now).
81919         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81920         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81921
81922         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81923         Define to 256, not 255, as per modern POSIX.
81924
81925 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81926
81927         Sync from coreutils.
81928         Use "file name" when talking about file names, instead of "filename"
81929         or "path", as per the GNU coding standards.
81930         * MODULES.html.sh: mkdir-p renamed from makepath.
81931         filenamecat renamed from path-concat.
81932         * modules/filenamecat: Renamed from modules/path-concat.
81933         (Files): filenamecat.h and filenamecat.c renamed from
81934         path-concat.h and path-concat.c.
81935         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
81936         (Include): filenamecat.h, not path-concat.h.
81937         * modules/mkdir-p: Renamed from modules/makepath.
81938         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
81939         makepath.c.
81940         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
81941         (Include): mkdir-p.h, not makepath.h.
81942
81943 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81944
81945         Sync from coreutils.
81946         * m4/mkdir-p.m4: Renamed from makepath.m4.
81947         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
81948         Rename files from makepath.c to mkdir-p.c, and from
81949         makepath.h to mkdir-p.h.
81950         * m4/filenamecat.m4: Renamed from path-concat.m4.
81951         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
81952         Rename files from path-concat.c to filenamecat.c,
81953         and from path-concat.h to filenamecat.h.
81954         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
81955         "file name" in local variables or comments.
81956         * m4/rename.m4: Likewise.
81957
81958 2005-06-01  Bruno Haible  <bruno@clisp.org>
81959
81960         * modules/csharpexec: New file.
81961         * MODULES.html.sh (C#): New section.
81962
81963 2005-06-01  Bruno Haible  <bruno@clisp.org>
81964
81965         * m4/csharp.m4: New file, from GNU gettext.
81966         * m4/csharpexec.m4: New file, from GNU gettext.
81967
81968 2005-06-01  Bruno Haible  <bruno@clisp.org>
81969
81970         * lib/csharpexec.h: New file, from GNU gettext.
81971         * lib/csharpexec.c: New file, from GNU gettext.
81972         * lib/csharpexec.sh.in: New file, from GNU gettext.
81973
81974 2005-05-31  Derek Price  <derek@ximbiot.com>
81975             Paul Eggert  <eggert@cs.ucla.edu>
81976
81977         Sync from cvs.
81978         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81979
81980 2005-05-31  Derek Price  <derek@ximbiot.com>
81981             Paul Eggert  <eggert@cs.ucla.edu>
81982
81983         Sync from cvs.
81984         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81985
81986 2005-05-29  Derek Price  <derek@ximbiot.com>
81987
81988         * config/srclist.txt (glob_.h, glob.c): Add these files.
81989
81990 2005-05-29  Derek Price  <derek@ximbiot.com>
81991
81992         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
81993         * modules/glob: New file.
81994         * modules/getlogin_r: Add link to POSIX spec in description.
81995
81996 2005-05-29  Derek Price  <derek@ximbiot.com>
81997             Paul Eggert  <eggert@cs.ucla.edu>
81998
81999         * m4/glob.m4: New file.
82000
82001 2005-05-29  Derek Price  <derek@ximbiot.com>
82002             Paul Eggert  <eggert@cs.ucla.edu>
82003
82004         * lib/glob_.h, lib/glob.c: New files.
82005
82006 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82007
82008         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82009         * modules/fts-lgpl (Depends-on): Remove gettext.
82010
82011 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82012
82013         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82014         and don't require gt_INTTYPES_PRI.
82015
82016 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82017
82018         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82019
82020         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82021         the configuration hassle isn't worth it.
82022         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82023         (LONGEST_MODIFIER, PRIuMAX): Remove.
82024
82025 2005-05-27  Bruno Haible  <bruno@clisp.org>
82026
82027         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82028
82029 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82030
82031         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82032         _POSIX_PTHREAD_SEMANTICS for Solaris.
82033
82034 2005-05-25  Derek Price  <derek@ximbiot.com>
82035
82036         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82037
82038 2005-05-25  Derek Price  <derek@ximbiot.com>
82039             Paul Eggert  <eggert@cs.ucla.edu>
82040
82041         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82042         * lib/getlogin_r.c, getlogin_r.h: New files.
82043
82044 2005-05-25  Bruno Haible  <bruno@clisp.org>
82045             Derek Price  <derek@ximbiot.com>
82046
82047         * lib/getlogin_r.h: Simplify API documentation.
82048
82049 2005-05-23  Derek Price  <derek@ximbiot.com>
82050
82051         * modules/minmax (Files): Add m4/minmax.m4.
82052         (configure.ac): Add gl_MINMAX.
82053
82054 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82055
82056         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82057         so that unistd-safer.h (GPL'ed code) need not be included.
82058
82059 2005-05-22  Bruno Haible  <bruno@clisp.org>
82060
82061         * m4/minmax.m4: New file.
82062         Based on a patch by Derek Price <derek@ximbiot.com>.
82063
82064 2005-05-22  Bruno Haible  <bruno@clisp.org>
82065
82066         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82067         (INT64_MIN): Fix definition.
82068         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82069
82070         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82071         NEED_SIGNED_INT_TYPES.
82072
82073         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82074         HAVE_SYSTEM_INTTYPES.
82075
82076 2005-05-22  Bruno Haible  <bruno@clisp.org>
82077
82078         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82079         Also include <sys/param.h> if it defines MIN, MAX.
82080         Based on a patch by Derek Price <derek@ximbiot.com>.
82081
82082 2005-05-21  Jim Meyering  <jim@meyering.net>
82083
82084         * modules/fts (Files): Add m4/inttypes-pri.m4.
82085         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82086
82087 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82088
82089         New fts module.
82090         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82091         (setup_dir, free_dir): New functions.
82092         (enter_dir, leave_dir): Define trivial
82093         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82094         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82095         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82096         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82097         Move to fts-cycle.c.
82098         (fts_open): Use setup_dir.
82099         (fts_close): Use free_dir.
82100         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82101         This adds a label and some gotos, but the alternatives were messier.
82102         Check for memory allocation failure when entering a dir.
82103         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82104         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82105         (FTS): New member fts_cycle, that is a union that contains the
82106         old active_dir_ht and cycle_state.  All uses changed to mention
82107         fts_cycle.ht and fts_cycle.state.
82108         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82109         fts.c, with the following changes:
82110         (setup_dir, free_dir): New functions.
82111         (enter_dir): Now returns bool.  Return true if successful, false
82112         if memory exhausted.  All callers changed.
82113         Do not bother partly cleaning up on
82114         memory allocation failure; that is free_dir's job.
82115         However, free ad if hash_insert fails, to avoid memory leak.
82116         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82117         fts->fts_options to see which union member to use.
82118
82119 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82120
82121         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82122         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82123
82124 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82125
82126         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82127
82128 2005-05-20  Jim Meyering  <jim@meyering.net>
82129
82130         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82131         Now a macro, to pacify GCC.
82132
82133 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82134
82135         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82136         of -1.
82137
82138 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82139
82140         * lib/chown.c (rpl_chown): Return -1 on failure.
82141
82142 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82143
82144         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82145         Don't check for stddef.h.
82146         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82147         don't use its results.
82148         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82149         since we include them unconditionally.  Don't require
82150         AM_STDBOOL_H, since stdbool is a prerequisite.
82151         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82152         since we assume C89 or better.
82153         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82154         as we don't use their results.
82155         Don't check for fchdir, memmove, memset, strrchr, as we use
82156         them unconditionally.
82157         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82158         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82159
82160 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82161
82162         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82163         Include <stddef.h> unconditionally, since we assume C89 now.
82164         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82165         * lib/fts.c: Include fts_.h first, to check interface.
82166         Do not include intprops.h; no longer needed.
82167         Include cycle-check.h and hash.h, since fts_.h no longer does.
82168         Remove unnecessary casts of closedir to void.
82169         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82170         decide whether to decrement nlinks.
82171         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82172         (FTS): Use struct hash_table * instead of Hash_table, so that
82173         we no longer need to include hash.h here.
82174
82175 2005-05-18  Jim Meyering  <jim@meyering.net>
82176
82177         * modules/dirfd (License): Change to LGPL.  Most of the code
82178         is already in the public domain.
82179
82180 2005-05-18  Jim Meyering  <jim@meyering.net>
82181
82182         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82183         Reported by Yoann Vandoorselaere.
82184
82185 2005-05-17  Jim Meyering  <jim@meyering.net>
82186
82187         * m4/fts.m4: New file, from coreutils.
82188
82189 2005-05-17  Jim Meyering  <jim@meyering.net>
82190
82191         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82192
82193 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82194
82195         Sync from coreutils.
82196         * m4/unlinkdir.m4: New file.
82197
82198 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82199
82200         Sync from coreutils.
82201         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82202         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82203         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82204         White space changes only.
82205         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82206         special.
82207         * lib/yesno.c: Include getline.h, not ctype.h.
82208         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82209         Use getline to remove arbitrary restriction on response length.
82210
82211 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82212
82213         * config/srclist-update: Spell out "Street" in FSF postal
82214         mail address; this is the style the FSF seems to prefer.
82215
82216         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82217         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82218         this updates FSF postal mail address.
82219
82220         Sync from coreutils.
82221         * modules/unlinkdir: New file.
82222         * modules/yesno (Depends-on): Add getline.
82223         * MODULES.html.sh (File system functions): Add unlinkdir.
82224
82225 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82226
82227         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82228         lib/strsep.h:
82229         Change the initial comment to refer to GPL, not LGPL.
82230         gnulib-tool will change it to LGPL as needed.
82231
82232         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82233         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82234         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82235         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82236         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82237         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82238         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82239         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82240         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82241         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82242         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82243         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82244         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82245         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82246         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82247         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82248         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82249         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82250         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82251         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82252         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82253         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82254         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82255         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82256         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82257         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82258         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82259         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82260         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82261         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82262         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82263         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82264         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82265         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82266         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82267         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82268         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82269         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82270         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82271         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82272         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82273         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82274         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82275         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82276         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82277         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82278         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82279         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82280         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82281         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82282         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82283         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82284         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82285         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82286         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82287         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82288         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82289         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82290         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82291         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82292         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82293         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82294         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82295         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82296         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82297         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82298         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82299         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82300         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82301         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82302         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82303         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82304         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82305         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82306         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82307         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82308         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82309         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82310         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82311         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82312         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82313         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82314         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82315         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82316         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82317         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82318         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82319         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82320         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82321         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82322         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82323         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82324         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82325         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82326         lib/yesno.c, lib/yesno.h:
82327         Update FSF postal mail address.
82328
82329 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82330
82331         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82332         tests/test-memmem.c, tests/test-stpncpy.c:
82333         Update FSF postal mail address.
82334
82335 2005-05-13  Bruno Haible  <bruno@clisp.org>
82336
82337         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82338         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82339         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82340         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82341         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82342         Add support for 64-bit integers in the MSVC compiler.
82343
82344 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82345
82346         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82347
82348 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82349
82350         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82351
82352 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82353
82354         * doc/getdate.texi (General date syntax): Don't say that date
82355         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82356         Problem reported by Nic Ferrier.
82357
82358 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82359
82360         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82361         specified in ai_socktype. Fix invalid ai_protocol
82362         check. ai_protocol is usually set to 0 or depending on
82363         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82364         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82365         ai_socktype / ai_protocol in the returned addrinfo structure.
82366
82367 2005-05-10  Simon Josefsson  <jas@extundo.com>
82368
82369         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82370         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82371
82372 2005-05-10  Karl Berry  <karl@gnu.org>
82373
82374         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82375         (from http://www.gnu.org/licenses).
82376         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82377         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82378         fdl.texi suffices.
82379
82380 2005-05-10  Karl Berry  <karl@gnu.org>
82381
82382         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82383         (COPYING.DOC): remove.
82384
82385         * config/srclist-update: new FSF address.
82386
82387 2005-05-10  Derek Price  <derek@ximbiot.com>
82388
82389         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82390         possible.
82391
82392 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82393             Bruno Haible  <bruno@clisp.org>
82394
82395         * modules/inet_ntop: New file.
82396         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82397         inet_ntop.
82398
82399 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82400             Bruno Haible  <bruno@clisp.org>
82401
82402         * m4/inet_ntop.m4: New file.
82403
82404 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82405             Bruno Haible  <bruno@clisp.org>
82406
82407         * lib/inet_ntop.h: New file.
82408         * lib/inet_ntop.c: New file, from glibc with modifications.
82409
82410 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82411
82412         * modules/time_r (License): Change to LGPL.
82413         * modules/extensions (License): Change to LGPL.  Actually,
82414         the license is more permissive than that, but currently gnulib-tool
82415         doesn't know how to handle more-permissive licenses.
82416
82417         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82418         Problem reported by Dave Love.
82419
82420 2005-05-08  Jim Meyering  <jim@meyering.net>
82421
82422         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82423         blank.
82424
82425 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82426
82427         * modules/argmatch (Depends-on): Add stdbool.
82428         * modules/backupfile (Depends-on): Likewise.
82429         * modules/chdir-long (Depends-on): Likewise.
82430         * modules/closeout (Depends-on): Likewise.
82431         * modules/cycle-check (Depends-on): Likewise.
82432         * modules/dirname (Depends-on): Likewise.
82433         * modules/fnmatch (Depends-on): Likewise.
82434         * modules/fsusage (Depends-on): Likewise.
82435         * modules/fwriteerror (Depends-on): Likewise.
82436         * modules/getcwd (Depends-on): Likewise.
82437         * modules/getloadavg (Depends-on): Likewise.
82438         * modules/hard-locale (Depends-on): Likewise.
82439         * modules/makepath (Depends-on): Likewise.
82440         * modules/mountlist (Depends-on): Likewise.
82441         * modules/nanosleep (Depends-on): Likewise.
82442         * modules/posixtm (Depends-on): Likewise.
82443         * modules/quotearg (Depends-on): Likewise.
82444         * modules/readtokens (Depends-on): Likewise.
82445         * modules/readtokens0 (Depends-on): Likewise.
82446         * modules/readutmp (Depends-on): Likewise.
82447         * modules/save-cwd (Depends-on): Likewise.
82448         * modules/strftime (Depends-on): Likewise.
82449         * modules/userspec (Depends-on): Likewise.
82450         * modules/utimecmp (Depends-on): Likewise.
82451         * modules/xgetcwd (Depends-on): Likewise.
82452         * modules/xnanosleep (Depends-on): Likewise.
82453         * modules/xstrtod (Depends-on): Likewise.
82454         * modules/yesno (Depends-on): Likewise.
82455
82456 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82457
82458         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82459         needless checks.
82460
82461 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82462
82463         Merge from coreutils.  Among other things,
82464         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82465         * lib/fd-safer.c: New file.
82466         * lib/fcntl-safer.h, open-safer.c: Remove.
82467         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82468         * lib/dup-safer.c: Include unistd-safer.h first.
82469         Don't include errno.h.
82470         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82471         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82472         * lib/file-type.c: Rely on file-type.h change.
82473         * lib/getloadavg.c: Include unistd-safer.h.
82474         (getloadavg): Use safer open.
82475         * lib/getusershell.c: Include "stdio-safer.h".
82476         (getusershell): Use safer fopen.
82477         * lib/long-options.c (long_options): Use NULL rather than 0.
82478         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82479         'free'.
82480         * lib/modechange.c: Likewise.
82481         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82482         (MODE_DONE): New constant.
82483         (struct mode_change): Remove 'next' member.
82484         (make_node_op_equals): New function; like the old one of the
82485         same name, except it allocates an array.
82486         (mode_compile, mode_create_from_ref): Use it.
82487         (mode_compile): Allocate result as an array, not a linked list.
82488         Parse octal string ourself, so that we catch mistakes like "+0".
82489         (mode_adjust): Arg is an array, not a linked list.
82490         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82491         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82492         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82493         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82494         Remove.  This is now stat-macros.h's job.
82495         (talloc): Remove.  All callers replaced by xalloc, so that
82496         our invokers don't have to worry about reporting memory failures.
82497         (make_node_op_equals): Remove.
82498         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82499         New constants.
82500         (struct mode_change): Moved here from modechange.h.
82501         (mode_append_entry): Remove.
82502         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82503         apps to have incorrect behavior.  Use simpler algorithm for head
82504         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82505         Detect more invalid usages rather than having somewhat-random behavior.
82506         Don't insert an "a=" action, as that leads to incorrect behavior.
82507         (mode_compile, mode_create_from_ref): Return NULL on error instead
82508         of an enum, since now there's only one way to have an error.  All
82509         callers changed.
82510         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82511         at the correct time.  Simplify calculation of "+u" and its ilk.
82512         Don't mishandle "+X".
82513         (mode_free): Remove "register" and localize decls.
82514         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82515         (struct mode_change): Move to modechange.c; callers don't
82516         need to see this stuff.
82517         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82518         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82519         (mode_change, mode_adjust): Reflect the new signatures noted above.
82520         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82521         that might redefine system include files.
82522         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82523         (my_usleep): Use NULL rather than (void *) 0.
82524         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82525         Use siginterrupt to specify that system calls should be interrupted.
82526         (rpl_nanosleep): Move initialization of suspended closer to call of
82527         my_usleep.
82528         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82529         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82530         (desirable_utmp_entry): New function.
82531         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82532         using x2nrealloc, to simplify logic.
82533         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82534         size calculation.  Do not assume utmp file is a regular file.
82535         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82536         (READ_UTMP_CHECK_PIDS): New constant.
82537         * lib/save-cwd.c: Include unistd-safer.h.
82538         (save_cwd): Use fd_safer.
82539         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82540         [!_LIBC] Include "stat-macros.h" instead.
82541         * lib/unistd-safer.h (fd_safer): New decl.
82542
82543 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82544
82545         * modules/getloadavg (Depends-on): Add unistd-safer.
82546         * modules/getusershell (Depends-on): Add stdio-safer.
82547         * modules/lstat (Depends-on): Remove xalloc.
82548         * modules/mkstemp (Depends-on): Add stat-macros.
82549         * modules/modechange (Depends-on): Remove xstrtol.
82550         Add stat-macros, xalloc.
82551         * modules/save-cwd (Depends-on): Add unistd-safer.
82552         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82553         * modules/unistd-safer (Files): Add lib/fd-safer.c
82554         (Makefile.am): Remove lib_SOURCES.
82555
82556         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82557         Remove fcntl-safer; unistd-safer supersedes it.
82558
82559 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82560
82561         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82562         AC_HEADER_STAT.
82563         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82564         (gl_PREREQ_CHOWN): Remove.
82565         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82566         it.  Don't require AC_HEADER_STAT.
82567         (gl_PREREQ_LSTAT): Remove.
82568         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82569         Don't require AC_HEADER_STAT.
82570         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82571         (gl_PREREQ_RMDIR): Remove.
82572         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82573         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82574         the stat-macros module a prerequisite.
82575         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82576         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82577         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82578         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82579         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82580         variable names.
82581         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82582         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82583         variable prefixes.
82584         * m4/fcntl-safer.m4: Remove.
82585         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82586         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82587         Invoke gl_PREREQ_FD_SAFER.
82588         (gl_PREREQ_FD_SAFER): New macro.
82589         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82590         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82591         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82592         Remove duplicate call to AC_LIBOBJ(readutmp).
82593         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82594
82595         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82596         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82597
82598 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82599
82600         * MODULES.html.sh (Misc): Add byteswap.
82601
82602 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82603
82604         * modules/getcwd (Depends-on): Add extensions.
82605         * modules/openat (Depends-on): Likewise.
82606
82607 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82608
82609         * modules/byteswap: New file.
82610
82611 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82612
82613         * m4/byteswap.m4: New file.
82614
82615 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82616
82617         * lib/byteswap_.h: New file.
82618
82619 2005-04-25  Karl Berry  <karl@gnu.org>
82620
82621         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82622
82623 2005-04-25  Albert Chin  <china@thewrittenword.com>
82624
82625         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82626         Toolkit C bug.
82627
82628 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82629
82630         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82631         (func_ln_if_changed): Remove forcibly for no error message
82632         in case file does not exist.
82633
82634 2005-04-19  Simon Josefsson  <jas@extundo.com>
82635
82636         * gnulib-tool (Options): Make --symlink mean --symbolic.
82637
82638 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82639
82640         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82641
82642 2005-04-16  Simon Josefsson  <jas@extundo.com>
82643
82644         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82645
82646 2005-04-15  Simon Josefsson  <jas@extundo.com>
82647
82648         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82649
82650 2005-04-15  Simon Josefsson  <jas@extundo.com>
82651
82652         * gnulib-tool: Rename --symlink to --symbolic.
82653
82654 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82655
82656         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82657         symbolic links to files instead of copying/moving.  Add --aux-dir,
82658         specifying directory relative --dir where auxiliary build tools
82659         are placed.
82660
82661 2005-04-14  Bruno Haible  <bruno@clisp.org>
82662
82663         * modules/allocsa (License): Change to LGPL.
82664         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82665
82666 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82667
82668         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82669         that "UTC +1 second" continues to work.  Problem reported
82670         by Dmitry V. Levin.
82671         (relunit_snumber): New rule.
82672         (relunit): Use it.
82673
82674 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82675
82676         * lib/getdate.y (universal_time_zone_table): New constant.
82677         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82678         universal_time_zone_table.
82679         (lookup_zone): Prefer universal_time_zone_table to
82680         local_time_zone_table, so that "GMT" time stamps are allowed in
82681         London during the summer.  Problem reported by Ian Abbott.
82682
82683 2005-04-12  Jim Meyering  <jim@meyering.net>
82684
82685         * lib/human.c (humblock): Set *options even when returning due to
82686         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82687         warning from gcc-4.
82688
82689 2005-04-09  Jim Meyering  <jim@meyering.net>
82690
82691         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82692         -Wuninitialized: initialize tm0.tm_year.
82693
82694 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82695
82696         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82697         count, since there's no maximum.  All uses changed.
82698         Add member dsts_seen.
82699         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82700         not being INT_MAX.
82701         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82702         Use pc_rels_seen to decide whther a date is absolute.
82703
82704         * lib/getdate.y (number): Don't overwrite year.
82705         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82706         check.
82707
82708 2005-04-02  Simon Josefsson  <jas@extundo.com>
82709
82710         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82711         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82712
82713 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82714
82715         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82716         where no absolute path name can be longer than PATH_MAX.
82717
82718 2005-03-27  Jim Meyering  <jim@meyering.net>
82719
82720         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82721
82722 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82723
82724         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82725         "one's complement" -> "ones' complement" in comment, as per Knuth.
82726         "value of type" -> "type or expression" in comment.
82727         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82728
82729 2005-03-26  Jim Meyering  <jim@meyering.net>
82730
82731         Comment nits.
82732         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82733         Correct typos: s/or/of/.
82734
82735 2005-03-26  Jim Meyering  <jim@meyering.net>
82736
82737         * modules/check-include-files: Move to ../ and rename to...
82738         * check-module: ...this.
82739
82740 2005-03-25  Jim Meyering  <jim@meyering.net>
82741
82742         * modules/xvasprintf (Files): Add xalloc.h.
82743
82744 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82745
82746         * modules/gettext (Files): config/config.rpath ->
82747         build-aux/config.rpath
82748         * modules/iconv (Files): Likewise.
82749         Problem reported by Oskar Liljeblad.
82750
82751 2005-03-23  Jim Meyering  <jim@meyering.net>
82752
82753         * modules/check-include-files: New script to check for
82754         missing dependencies, multiple includes, etc.
82755
82756         * modules/c-strtold (Depends-on): Add xalloc.
82757         * modules/c-strtod (Depends-on): Add xalloc.
82758         * modules/hash (Depends-on): Add xalloc.
82759         (Files): Remove lib/xalloc.h.
82760
82761         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82762         * modules/userspec (Files): Add lib/inttostr.h.
82763
82764 2005-03-23  Jim Meyering  <jim@meyering.net>
82765
82766         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82767
82768 2005-03-22  Jim Meyering  <jim@meyering.net>
82769
82770         * modules/stat-macros: New module.
82771         * modules/canonicalize, modules/euidaccess, modules/file-type,
82772         * modules/filemode, modules/lchown, modules/makepath,
82773         * modules/rmdir, modules/stat: Depend on new stat-macros module
82774         rather than listing lib/stat-macros.h manually.
82775         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82776
82777 2005-03-22  Jim Meyering  <jim@meyering.net>
82778
82779         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82780
82781 2005-03-22  Bruno Haible  <bruno@clisp.org>
82782
82783         * config/srclist.txt: Replace target directory 'config' with
82784         'build-aux'.
82785         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82786         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82787         ../build-aux/.
82788
82789 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82790
82791         * modules/chdir-long (Depends-on): Add mempcpy.
82792
82793         * modules/acl, modules/backupfile, modules/c-strtod,
82794         modules/c-strtold, modules/canon-host, modules/canonicalize,
82795         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82796         modules/exclude, modules/exitfail, modules/file-type,
82797         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82798         modules/getdate, modules/getline, modules/getpagesize,
82799         modules/getpass, modules/getugroups, modules/group-member,
82800         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82801         modules/inttostr, modules/long-options, modules/makepath,
82802         modules/md5, modules/memcasecmp, modules/memcoll,
82803         modules/modechange, modules/mountlist, modules/path-concat,
82804         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82805         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82806         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82807         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82808         modules/strftime, modules/strndup, modules/strverscmp,
82809         modules/timespec, modules/unlocked-io, modules/userspec,
82810         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82811         modules/yesno:
82812         Remove lib_SOURCES line from Makefile.am section, as this is now
82813         done automatically by the corresponding Autoconf macro.
82814
82815 2005-03-21  Jim Meyering  <jim@meyering.net>
82816
82817         Changes imported from coreutils.
82818
82819         * lib/cycle-check.c: Don't include xalloc.h.
82820
82821         * lib/path-concat.c: Don't include assert.h.
82822         (path_concat): Remove assertion that would have triggered
82823         for ABASE starting with more than one slash.
82824         Reported by Andreas Schwab.
82825
82826         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82827         properly when ABASE is an absolute file name.
82828         Correct the description of this function.
82829         Include <assert.h>.
82830         Add an assertion and a test driver.
82831         This fixes a bug introduced on 2004-07-02.
82832         Andreas Schwab reported the resulting failure of cp --parents:
82833         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82834
82835 2005-03-21  Jim Meyering  <jim@meyering.net>
82836
82837         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82838         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82839
82840 2005-03-21  Jim Meyering  <jim@meyering.net>
82841         and  Paul Eggert  <eggert@cs.ucla.edu>
82842
82843         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82844         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82845         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82846         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82847         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82848         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82849         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82850         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82851         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82852         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82853         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82854         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82855         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82856         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82857         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82858         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82859         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82860         for these modules.
82861
82862 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82863
82864         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82865         (which shouldn't happen), generate nothing instead of returning 0
82866         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82867
82868 2005-03-16  Bruno Haible  <bruno@clisp.org>
82869
82870         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82871         HAVE_LONGLONG_64BIT.
82872
82873 2005-03-16  Bruno Haible  <bruno@clisp.org>
82874
82875         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82876         HAVE_LONGLONG_64BIT.
82877
82878 2005-03-16  Bruno Haible  <bruno@clisp.org>
82879
82880         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82881         HAVE_LONGLONG_64BIT.
82882
82883 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82884
82885         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82886         reliably distinguish strftime failure from empty output on POSIX
82887         hosts.
82888
82889 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82890
82891         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82892         (iconv_string): Don't guess a size-zero buffer, as that might cause
82893         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82894         result would be 'too large', where 'too large' is (heuristically)
82895         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82896         overflow concerns.  This will prevent some unwanted malloc failures
82897         when the inputs are very large.
82898
82899 2005-03-15  Karl Berry  <karl@gnu.org>
82900
82901         * config/srclist.txt (config.rpath): from gettext.
82902         * config/config.rpath: update.
82903
82904 2005-03-15  Bruno Haible  <bruno@clisp.org>
82905
82906         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82907         to 'negate'.
82908
82909         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82910         variable.
82911
82912         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82913         results.
82914
82915 2005-03-14  Simon Josefsson  <jas@extundo.com>
82916
82917         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82918         <fx@gnu.org>.
82919
82920 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82921
82922         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82923         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82924         intprops.h.
82925         * lib/strtol.c: Likewise.
82926
82927 2005-03-14  Jim Meyering  <jim@meyering.net>
82928
82929         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
82930         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
82931         to be nonzero so that we (and caller) can detect the difference
82932         between a valid zero-length expansion and an error return, even
82933         when the underlying strftime fails before writing anything into
82934         that location.
82935
82936 2005-03-14  Bruno Haible  <bruno@clisp.org>
82937
82938         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
82939         Update from GNU gettext 0.14.3.
82940
82941 2005-03-10  Jim Meyering  <jim@meyering.net>
82942
82943         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
82944
82945 2005-03-10  Jim Meyering  <jim@meyering.net>
82946
82947         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
82948         so that this module works on systems without fchdir.
82949
82950 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
82951
82952         Factor int-properties macros into a single file, except for
82953         glibc-related files.
82954         * lib/intprops.h: New file.
82955         * lib/getloadavg.c: Include it instead of limits.h.
82956         (INT_STRLEN_BOUND): Remove.
82957         * lib/human.c: Include intprops.h.
82958         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
82959         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
82960         302/1000.
82961         * lib/inttostr.h: Include intprops.h instead of limits.h.
82962         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
82963         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
82964         for consistency with intprops.h.
82965         (time_t_is_integer, twos_complement_arithmetic): Use them.
82966         * lib/sig2str.h: Include <signal.h>, intprops.h.
82967         (INT_STRLEN_BOUND): Remove.
82968         * lib/strftime.c (TYPE_SIGNED): Remove.
82969         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
82970         * lib/strtol.c: Adjust comments to match intprops.h.
82971         * lib/userspec.c: Include intprops.h.
82972         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
82973         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
82974         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
82975         instead of rolling our own expressions.
82976         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
82977
82978         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
82979         instead of int.
82980         (my_strftime): Do not mishandle years close to INT_MAX, by doing
82981         the right thing even if adding 1900 would overflow.  Similarly
82982         for tm_mon + 1 and tm_yday + 1.
82983         Make %Y always equivalent to %C%y, and similarly for %G and %g.
82984         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
82985         (DO_SIGNED_NUMBER): New macro.
82986         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
82987
82988 2005-03-07  Bruno Haible  <bruno@clisp.org>
82989
82990         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
82991
82992 2005-03-07  Bruno Haible  <bruno@clisp.org>
82993
82994         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
82995
82996 2005-03-04  Derek R. Price  <derek@ximbiot.com>
82997
82998         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
82999         (func_import): Only replace files via --import when they have actually
83000         changed.
83001
83002 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83003
83004         * m4/mmap-anon.m4: New file.
83005         * m4/pagealign_alloc.m4: New file.
83006
83007 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83008             Bruno Haible  <bruno@clisp.org>
83009
83010         * modules/pagealign_alloc: New file.
83011         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83012
83013 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83014             Bruno Haible  <bruno@clisp.org>
83015
83016         * lib/pagealign_alloc.h: New file.
83017         * lib/pagealign_alloc.c: New file.
83018
83019 2005-03-03  Bruno Haible  <bruno@clisp.org>
83020
83021         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83022         Use an all-permissive copyright notice, recommended by RMS.
83023
83024 2005-03-02  Bruno Haible  <bruno@clisp.org>
83025
83026         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83027         of AIX, the replacement has to be done only after <string.h> is
83028         included, therefore not in config.h. stpncpy.h does the replacement,
83029         and stpncpy.c uses it.
83030
83031 2005-03-02  Bruno Haible  <bruno@clisp.org>
83032
83033         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83034         stpncpy.c uses it.
83035
83036 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83037
83038         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83039         The workaround isn't strictly needed for POSIX conformance, and
83040         it's too much of a pain to configure and maintain.  We'll ask
83041         people to fix their kernels instead.
83042         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83043         (NANOSLEEP_BUG_WORKAROUND): Remove.
83044         (xnanosleep): Remove the workaround.
83045
83046 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83047
83048         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83049         Reported by Derek Price.
83050         (Include): Add "timespec.h".
83051
83052         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83053
83054 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83055
83056         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83057         to detect nanosleep bug.
83058
83059 2005-03-01  Bruno Haible  <bruno@clisp.org>
83060
83061         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83062
83063 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83064
83065         * modules/gethrxtime: New file.
83066         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83067         (Depends-on): Add gethrxtime.
83068         (configure.ac): Add gl_XNANOSLEEP.
83069         (Makefile.am): Remove lib_SOURCES line.
83070
83071 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83072
83073         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83074         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83075
83076 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83077
83078         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83079         * lib/timespec.h (gettime): Return void, since it always
83080         succeeds now.  All uses changed.
83081         * lib/gettime.c (gettime): Likewise.
83082         [HAVE_NANOTIME]: Prefer nanotime.
83083         Assume gettimeofday succeeds, as POSIX requires.
83084         Assime time () succeeds, since other code already does.
83085         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83086         (timespec_subtract): Remove.
83087         (NANOSLEEP_BUG_WORKAROUND): New constant.
83088         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83089         things considerably.  Use it only on GNU/Linux hosts, since the
83090         workaround shouldn't be needed elsewhere.
83091
83092 2005-02-24  Bruno Haible  <bruno@clisp.org>
83093
83094         * modules/gettext (Files): Add m4/glibc2.m4.
83095
83096 2005-02-24  Bruno Haible  <bruno@clisp.org>
83097
83098         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83099         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83100         * m4/progtest.m4:
83101         Update from GNU gettext 0.14.2.
83102         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83103
83104 2005-02-24  Bruno Haible  <bruno@clisp.org>
83105
83106         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83107         * lib/config.charset: Update from GNU gettext 0.14.2.
83108
83109 2005-02-24  Bruno Haible  <bruno@clisp.org>
83110
83111         * lib/gettext.h: Update from GNU gettext 0.14.2.
83112
83113 2005-02-23  Simon Josefsson  <jas@extundo.com>
83114
83115         * m4/iconvme.m4: New file.
83116
83117 2005-02-23  Jim Meyering  <jim@meyering.net>
83118
83119         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83120         change.
83121         Thanks to Bruno Haible for catching it.
83122
83123 2005-02-22  Simon Josefsson  <jas@extundo.com>
83124
83125         * modules/iconvme: New file.
83126
83127         * MODULES.html.sh: Add iconvme.
83128
83129 2005-02-22  Simon Josefsson  <jas@extundo.com>
83130
83131         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83132
83133 2005-02-22  Simon Josefsson  <jas@extundo.com>
83134
83135         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83136
83137 2005-02-22  Jim Meyering  <jim@meyering.net>
83138
83139         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83140         s/ifndef/ifdef/.
83141
83142 2005-02-20  Neil Conway  <neilc@samurai.com>
83143
83144         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83145         returned by OSX/Darwin if the specified buffer is not large
83146         enough for the hostname.
83147
83148 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83149
83150         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83151         pass it to _help, otherwise the latter coredumps trying to
83152         dereference state.root_argp.
83153
83154 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83155
83156         * modules/chdir-long (Depends-on): Add memrchr.
83157         * modules/memrchr (Files): Add lib/memrchr.h.
83158         (Include): "memrchr.h".
83159
83160 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83161
83162         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83163
83164 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83165
83166         * lib/memrchr.h: New file.
83167         * lib/chdir-long.c: Include it.
83168         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83169         Don't bother including stddef.h.
83170
83171 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83172
83173         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83174         inclusion.
83175         Include <sys/types.h>, for dev_t.
83176         (ME_DUMMY, ME_REMOTE): Move from here....
83177         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83178         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83179         Dmitry V. Levin.
83180         Include mountlist.h first, to test the interface.
83181
83182 2005-01-29  Bruno Haible  <bruno@clisp.org>
83183
83184         * lib/progname.c (program_name): Initialize.
83185         Needed when linking statically on MacOS X.
83186
83187 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83188
83189         Sync from coreutils.
83190         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83191         (Depends-on): Add c-strtod.
83192         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83193
83194 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83195
83196         Sync from coreutils.
83197         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83198
83199         Remove files that are specific to coreutils.
83200         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83201
83202 2005-01-28  Bruno Haible  <bruno@clisp.org>
83203
83204         * modules/javacomp: New file.
83205         * MODULES.html.sh (Java): Add javacomp.
83206
83207 2005-01-28  Bruno Haible  <bruno@clisp.org>
83208
83209         * m4/javacomp.m4: New file, from GNU gettext.
83210
83211 2005-01-28  Bruno Haible  <bruno@clisp.org>
83212
83213         * lib/javacomp.sh.in: New file, from GNU gettext.
83214         * lib/javacomp.h: New file, from GNU gettext.
83215         * lib/javacomp.c: New file, from GNU gettext.
83216
83217 2005-01-26  Simon Josefsson  <jas@extundo.com>
83218
83219         * lib/gai_strerror.c: Use GPL in header.
83220
83221 2005-01-26  Bruno Haible  <bruno@clisp.org>
83222
83223         * modules/javaexec: New file.
83224         * MODULES.html.sh (Java): Add javaexec.
83225
83226 2005-01-26  Bruno Haible  <bruno@clisp.org>
83227
83228         * m4/javaexec.m4: New file, from GNU gettext.
83229
83230 2005-01-26  Bruno Haible  <bruno@clisp.org>
83231
83232         * lib/javaexec.sh.in: New file, from GNU gettext.
83233         * lib/javaexec.h: New file, from GNU gettext.
83234         * lib/javaexec.c: New file, from GNU gettext.
83235
83236 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83237
83238         * modules/lchown (Depends-on): Remove lchown.h
83239
83240 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83241
83242         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83243         must be defined if the header file was not found, in order
83244         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83245
83246 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83247
83248         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83249         initializers for struct pentry_state.
83250         (__argp_error): Check return value of __asprintf
83251         (__argp_failure): Translate error message
83252
83253         * lib/argp-parse.c: Removed braces around the expansion of N_()
83254
83255 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83256
83257         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83258         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83259         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83260         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83261         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83262         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83263         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83264         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83265         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83266         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83267         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83268         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83269         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83270         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83271         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83272         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83273         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83274         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83275         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83276         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83277         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83278         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83279         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83280         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83281         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83282         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83283         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83284         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83285         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83286         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83287         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83288         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83289         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83290         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83291         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83292         Use an all-permissive copyright notice, recommended by RMS.
83293
83294 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83295
83296         * modules/chdir-long (Depends-on): Remove mempcpy.
83297
83298 2005-01-21  Jim Meyering  <jim@meyering.net>
83299
83300         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83301         same value as for Solaris 9.
83302
83303         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83304         component length.  This included changing the parameter to be
83305         of type `char *' rather than `char const *'.
83306         * lib/chdir-long.h (chdir_long): Update prototype.
83307
83308         * lib/openat.c (fdopendir, fstatat): New functions.
83309         * lib/openat.h: Include headers required for use of DIR and struct
83310         stat.
83311         [AT_SYMLINK_NOFOLLOW]: Define.
83312         (fdopendir, fstatat): Add prototypes.
83313
83314 2005-01-21  Bruno Haible  <bruno@clisp.org>
83315
83316         * modules/classpath: New file.
83317         * MODULES.html.sh (Java): Add classpath.
83318
83319 2005-01-21  Bruno Haible  <bruno@clisp.org>
83320
83321         * lib/classpath.h: New file, from GNU gettext.
83322         * lib/classpath.c: New file, from GNU gettext.
83323
83324 2005-01-20  Simon Josefsson  <jas@extundo.com>
83325
83326         * modules/version-etc-fsf: New file.
83327
83328 2005-01-20  Simon Josefsson  <jas@extundo.com>
83329
83330         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83331         * lib/version-etc.c: Remove version_etc_copyright.
83332         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83333         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83334
83335 2005-01-20  Simon Josefsson  <jas@extundo.com>
83336
83337         * lib/base64.h (isbase64): Add.
83338
83339         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83340         using a unsigned prototype, don't inline.
83341         (base64_decode): Use it.
83342
83343 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83344
83345         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83346         it.
83347
83348 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83349
83350         * lib/save-cwd.c (save_cwd): Remove code to support the case
83351         where fchdir is missing or flaky.
83352
83353 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83354
83355         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83356
83357 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83358
83359         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83360         AC_LIBSOURCES now does this.
83361         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83362         with new ullong_max module.
83363
83364 2005-01-19  Bruno Haible  <bruno@clisp.org>
83365
83366         * modules/sh-quote: New file.
83367         * MODULES.html.sh (Executing programs): Add sh-quote.
83368
83369 2005-01-19  Bruno Haible  <bruno@clisp.org>
83370
83371         * lib/sh-quote.h: New file, from GNU gettext.
83372         * lib/sh-quote.c: New file, from GNU gettext.
83373
83374 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83375
83376         Merge from coreutils.
83377         * m4/ullong_max.m4: New file.
83378         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83379         (gl_MACROS): Assume localeconv exists.
83380
83381 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83382
83383         Merge changes from coreutils, as described below in several
83384         changelogs dated today.
83385
83386         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83387         (O_DIRECTORY): Remove; not needed here, since "." must be
83388         a directory.  All uses removed.
83389         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83390         universal on Suns, and we also need to test for IRIX.
83391         Revamp code to use 'if' rather than '#if'.
83392         Avoid unnecessary comparison of cwd->desc to 0.
83393
83394         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83395         for known valid error numbers rather than observed invalid ones.
83396
83397 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83398
83399         * modules/ullong_max: New file.
83400
83401         * modules/chdir-long, modules/openat: New files.
83402         * modules/save-cwd (Depends-on): Depend on chdir-long.
83403         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83404
83405 2005-01-18  Jim Meyering  <jim@meyering.net>
83406
83407         Merge from coreutils.
83408         * m4/chdir-long.m4, m4/openat.m4: New files.
83409         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83410         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83411         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83412         is sane and DOES follow symlinks.  Besides, testing 20 different
83413         systems found no broken chown implementations.
83414         Prompted by a change in rsync's copy of this macro.
83415         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83416
83417         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83418
83419         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83420         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83421         NULL-means-set-to-current-time semantics.
83422         Remove temporary file immediately, rather than waiting
83423         for configure's at-exit trap code to do it.
83424
83425 2005-01-18  Jim Meyering  <jim@meyering.net>
83426
83427         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83428
83429         * lib/utimens.c (futimens): Account for the fact that futimes
83430         can also fail with errno == ENOSYS or errno == ENOENT.
83431         Patch from Dmitry V. Levin.
83432
83433         Change the name of the robust chdir function from chdir to chdir_long.
83434         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83435         (restore_cwd): Use chdir_long, not chdir.
83436         * lib/chdir-long.c: Renamed from chdir.c.
83437         * lib/chdir-long.h: Renamed from chdir.h.
83438         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83439         Hurd.
83440
83441 2005-01-18  Bruno Haible  <bruno@clisp.org>
83442
83443         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83444         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83445         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83446         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83447         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83448         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83449         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83450         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83451         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83452         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83453         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83454         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83455         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83456         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83457         Use an all-permissive copyright notice, recommended by RMS.
83458
83459 2005-01-18  Bob Proulx  <bob@proulx.com>
83460
83461         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83462         simplify offsetof() macro construct to avoid compile failure with
83463         native HP-UX 11.0 ANSI C compiler.
83464
83465 2005-01-17  Bruno Haible  <bruno@clisp.org>
83466
83467         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83468         redundant because stpncpy.m4 takes care of it.
83469
83470 2005-01-17  Bruno Haible  <bruno@clisp.org>
83471
83472         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83473
83474 2005-01-17  Bruno Haible  <bruno@clisp.org>
83475
83476         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83477         used.
83478
83479 2005-01-17  Bruno Haible  <bruno@clisp.org>
83480
83481         * lib/fwriteerror.h (fwriteerror): Change specification to include
83482         fclose.
83483         * lib/fwriteerror.c: Include <stdbool.h>.
83484         (fwriteerror): At the end, close the file stream. Record whether
83485         stdout was already closed.
83486
83487 2005-01-17  Bruno Haible  <bruno@clisp.org>
83488
83489         * lib/execute.c (environ): Declare if needed.
83490         * lib/pipe.c (environ): Likewise.
83491         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83492
83493 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83494
83495         * modules/argp: Depend on vsnprintf
83496
83497 2005-01-10  Jim Meyering  <jim@meyering.net>
83498
83499         * modules/closeout (Depends-on): Add atexit.
83500
83501 2005-01-06  Bruno Haible  <bruno@clisp.org>
83502
83503         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83504
83505 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83506
83507         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83508         definitions to be after all include files, to avoid collisions.
83509         Problem reported by Bob Proulx.
83510
83511 2005-01-04  Jim Meyering  <jim@meyering.net>
83512
83513         Changes imported from coreutils.
83514         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83515         as the mkstemp template, use a temporary directory and an
83516         8.3-friendly template to avoid trouble on systems like DJGPP.
83517         Reported by Juan M. Guerrero via Stepan Kasal.
83518         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83519         close. Remove the temporary directory right away, rather than waiting
83520         for configure's at-exit trap code to do it.
83521         Suggestion from Stepan Kasal.
83522
83523 2005-01-01  Simon Josefsson  <jas@extundo.com>
83524
83525         * gnulib-tool: Print #include directives when --import'ing.
83526
83527 2004-12-28  Simon Josefsson  <jas@extundo.com>
83528
83529         * tests/test-base64.c: Include required header files.  Remove
83530         unused variables.
83531
83532 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83533
83534         * modules/error (Depends-on): Remove gettext.
83535
83536 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83537
83538         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83539         not needed.  This removes a dependency on the gettext module.
83540         [defined _LIBC]: Do not include <libintl.h>; not needed.
83541
83542 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83543
83544         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83545         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83546
83547 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83548
83549         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83550         HAVE_DECL_STRTOLD.
83551
83552 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83553
83554         * modules/getdate (Depends-on): Remove alloca-opt.
83555
83556 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83557
83558         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83559
83560 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83561
83562         * lib/argp-parse.c: Include <stddef.h>.
83563         (alignof, alignto): New macros.
83564         (parser_init): Don't assume that void * is aligned sufficiently
83565         for struct option.
83566
83567         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83568         need to extend the stack.
83569         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83570         large.
83571
83572 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83573
83574         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83575
83576 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83577
83578         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83579         (2004-10-24) change.  Apparently this was a false alarm.
83580
83581         * modules/getdate: Depend on alloca-opt, not alloca.
83582
83583 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83584
83585         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83586         Remove now-obsolete comment about AIX.
83587         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83588         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83589         (YYMAXDEPTH): New macro.
83590
83591 2004-12-18  Simon Josefsson  <jas@extundo.com>
83592
83593         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83594
83595 2004-12-18  Bruno Haible  <bruno@clisp.org>
83596
83597         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83598
83599 2004-12-18  Bruno Haible  <bruno@clisp.org>
83600
83601         * lib/fatal-signal.c (fatal_signals): Make non-const.
83602         (init_fatal_signals): New function.
83603         (uninstall_handlers, install_handlers): Ignore signals that were set to
83604         SIG_IGN.
83605         (at_fatal_signal): Call init_fatal_signals.
83606         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83607         SIG_IGN.
83608         Reported by Paul Eggert.
83609
83610 2004-12-18  Bruno Haible  <bruno@clisp.org>
83611
83612         * doc/alloca.texi: New file.
83613         * doc/alloca-opt.texi: New file.
83614
83615 2004-12-17  Jim Meyering  <jim@meyering.net>
83616
83617         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83618         Otherwise, install-sh could exit with improper exit status when
83619         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83620
83621 2004-12-16  Simon Josefsson  <jas@extundo.com>
83622
83623         * tests/test-base64.c: Add license.
83624
83625 2004-12-15  Stepan Kasal  <address@hidden>
83626
83627         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83628
83629 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83630
83631         * modules/getcwd (Files): Add m4/d-ino.m4.
83632         Suggested by Mark D. Baushke.
83633
83634 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83635
83636         * lib/getdate.y (textint): New member "negative".
83637         (time_zone_hhmm): New function.
83638         Expect 14 shift-reduce conflicts, not 13.
83639         (o_colon_minutes): New rule.
83640         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83641         (yylex): Set the "negative" member of signed numbers.
83642
83643 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83644
83645         * doc/getdate.texi (Time of day items, Time zone items):
83646         Describe new formats +00:00, UTC+00:00.
83647
83648 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83649
83650         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83651         spurious "-l"s.  Problem reported by Stepan Kasal.
83652
83653 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83654
83655         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83656         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83657
83658 2004-12-04  Simon Josefsson  <jas@extundo.com>
83659
83660         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83661         Vandoorselaere <yoann@prelude-ids.org>.
83662
83663 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83664
83665         Changes imported from coreutils.
83666         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83667         exist.
83668         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83669
83670 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83671
83672         Changes imported from coreutils.
83673         * lib/hard-locale.c: Assume <locale.h> exists.
83674         Include "strdup.h".
83675         (GLIBC_VERSION): New macro.
83676         (hard_locale): Assume setlocale exists.
83677         Rewrite to avoid #ifdef.
83678         Use strdup rather than malloc + strcpy.
83679         * lib/human.c: Assume <locale.h> exists.
83680         (human_readable): Assume localeconv exists.
83681
83682 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83683
83684         * modules/hard-locale (Depends-on): Add strdup.
83685
83686 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83687
83688         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83689         convert T2, not T.  (Imported from libc.)
83690
83691 2004-11-30  Simon Josefsson  <jas@extundo.com>
83692
83693         * modules/restrict (License): Change to LGPL.
83694
83695 2004-11-30  Simon Josefsson  <jas@extundo.com>
83696
83697         * m4/restrict.m4: Add copyright and copying conditions.
83698
83699 2004-11-30  Simon Josefsson  <jas@extundo.com>
83700
83701         * m4/base64.m4: New file.
83702
83703 2004-11-30  Simon Josefsson  <jas@extundo.com>
83704
83705         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83706         base64.
83707
83708         * tests/test-base64.c: New file.
83709
83710         * modules/base64: New file.
83711
83712 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83713
83714         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83715         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83716
83717         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83718
83719 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83720
83721         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83722         (__getcwd.c): Don't restore errno; glibc doesn't.
83723         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83724         first, falling back to our code only if its results look suspicious.
83725         Ensure that the resulting buffer is only as large as necessary.
83726
83727         * lib/readutmp.c: Include readutmp.h first.
83728         Include <errno.h>, since readutmp.h no longer does that.
83729         * lib/readutmp.h: Don't include <errno.h>,
83730         <sys/param.h>, <time.h>; not needed to establish interface.
83731         (errno): Remove decl.
83732         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83733         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83734         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83735
83736 2004-11-28  Simon Josefsson  <jas@extundo.com>
83737
83738         * lib/base64.h, base64.c: New file.
83739
83740 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83741
83742         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83743
83744 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83745
83746         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83747         (Depends-on): Remove pathmax, same.  Add mempcpy.
83748         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83749         (Makefile.am): Append getcwd.h to lib_SOURCES.
83750         (Include): Add getcwd.h.
83751         (Maintainer): Change from Jim Meyering to "all, glibc",
83752         since getdate now uses intended-for-glibc code.
83753         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83754         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83755
83756 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83757
83758         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83759         HP's ANSI C compiler.
83760         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83761         Declaring int functions causes warnings on some modern systems and
83762         shouldn't be needed to compile on ancient ones.
83763         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83764         defined.
83765
83766         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83767         with the following changes.
83768         (__set_errno): Parenthesize properly.
83769         Include <stdbool.h>.
83770         (MIN, MAX, MATCHING_INO): New macros.
83771         (__getcwd): Define with prototype, not K&R form.
83772         Use heuristics to allocate default buffer on stack if possible.
83773         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83774         behavior, and to avoid the PATH_MAX limit when computing
83775         ../../../../...
83776         Use MATCHING_INO to compare inode number to file.
83777         Check for arithmetic overflow in size calculations.
83778         Fix bug in reallocation of dot array that caused getcwd to fail
83779         on directories nested deeper than 75.
83780         Be more careful about saving errno on error.
83781         Do not use realloc; use only free+malloc, as this is a bit
83782         more flexible and avoids a needless copy operation.
83783         Do not inspect st_dev and st_ino for symbolic links; POSIX
83784         doesn't specify the latter.
83785         Check for closedir errors.
83786         Avoid needless casts.
83787         Use "#ifdef weak_alias" around weak_alias, to be like other
83788         glibc code.
83789         The following changes to getcwd.c have effect only when used in
83790         gnulib; they have no effect inside glibc proper.
83791         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83792         as alloca isn't used.
83793         (alloca, __alloca): Likewise.
83794         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83795         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83796         unconditionally, as gnulib assumes C89 or better.
83797         Do not include <sys/param.h>.
83798         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83799         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83800         better.
83801         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83802         Include <dirent.h> in a way that is compatible with modern Autoconf.
83803         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83804         New macros, if not already defined.
83805         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83806         Use "_LIBC", not "defined _LIBC", for consistency.
83807         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83808         a mempcpy module.
83809         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83810         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83811         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83812         credit only to Jim Meyering and adjust the copyright dates.
83813         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83814         <stdlib.h>, <unistd.h>, "pathmax.h".
83815         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83816         (INITIAL_BUFFER_SIZE): Remove.
83817         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83818
83819 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83820
83821         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83822         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83823         Use the _ONCE methods, for efficiency.
83824         Check for fcntl.h.  In test program, include <errno.h>
83825         and <fcntl.h> if available.  Remove old K&R cruft from
83826         test program.  Check for common errors in GNU/Linux,
83827         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83828         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83829         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83830         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83831         name accordingly.
83832         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83833         accommodate new getcwd.c.
83834         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83835         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83836         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83837         that's all we need now.
83838
83839 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83840
83841         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83842         argp-parse.c depends on getopt internals, that means we should
83843         always use our getopt, to be on the safe side.
83844         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83845         order not to spoil the result of an eventual previous invocation
83846         of gl_GETOPT_SUBSTITUTE.
83847
83848 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83849
83850         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83851         redefinition warnings. To avoid them, include the defines
83852         in `#if !defined __need_getopt ... #endif'. The only place
83853         where __getopt_argv_const is used is in definitions
83854         of getopt_long and getopt_long_only below, which are as well
83855         protected by `#ifndef __need_getopt'.
83856         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83857         __need_getopt after including <stdio.h> and <unistd.h> These
83858         headers might have defined it.
83859
83860 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83861
83862         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83863
83864 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83865
83866         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83867         (futimens): New function, which uses futimes if available.
83868         (futimens, utimens): Support timespec==NULL, with same semantics
83869         as utime and utimens.
83870         * lib/utimens.h (futimens): New decl.
83871
83872 2004-11-23  Jim Meyering  <jim@meyering.net>
83873
83874         * lib/getopt_.h: Remove trailing blanks.
83875
83876 2004-11-23  Jim Meyering  <jim@meyering.net>
83877
83878         * lib/__fpending.c: Add comment.
83879
83880 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83881
83882         * modules/canonicalize (Depends-on): Add xreadlink.
83883         Problem reported by James Youngman.
83884
83885 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83886
83887         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83888         New macros.
83889         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83890         optopt): Use them instead of invoking ## directly; otherwise, the
83891         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83892
83893 2004-11-19  Bruno Haible  <bruno@clisp.org>
83894
83895         * lib/strtok_r.c: Move comments from here...
83896         * lib/strtok_r.h: ... to here.
83897
83898 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83899
83900         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83901         implementations that mishandle size_t overflow.
83902
83903 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83904
83905         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83906         might fail.  Problem reported by Yoann Vandoorselaere.
83907         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83908         implementations that mishandle size_t overflow.
83909
83910 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83911
83912         * modules/canon-host (Depends-on): Add strdup.
83913
83914 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83915
83916         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83917
83918 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83919
83920         * lib/canon-host.c: Include "strdup.h".
83921         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83922         Use strdup instead of malloc/strcpy to duplicate strings.
83923
83924         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83925         (human_space_before_unit): New constant.
83926         * lib/human.c (human_readable): Support it.
83927
83928         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
83929         (xgetcwd): Set errno correctly when failing.
83930         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
83931         the failure is actually due to a PATH_MAX problem.
83932
83933         Further getopt changes to make it more likely that glibc will
83934         buy the changes back.
83935         * lib/getopt.c (POSIXLY_CORRECT): New constant.
83936         (getopt): Use it, so to preserve glibc semantic
83937         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
83938         when compiling for libc.
83939         * lib/getopt_.h (__getopt_argv_const): Bring it back.
83940         (getopt_long, getopt_long_only): Use it.
83941
83942         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83943         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
83944         (getopt): Argv is now char * const *, as per standard.
83945         (_getopt_internal_r, _getopt_internal): Argv is now char **,
83946         not char *__getopt_argv_const *.
83947         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83948         _getopt_long_only_r): Likewise.
83949         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
83950         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83951         _getopt_long_r, _getopt_long_only_r): Likewise.
83952         * lib/getopt_.h (__getopt_argv_const): Remove.
83953         (getopt): Argv is now char * const *, as per standard.
83954
83955         * lib/getdate.y (tORDINAL): New token.
83956         (day, relunit): Allow it for relative times.
83957         (relative_time_table): Use tORDINAL for ordinals.
83958
83959 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83960
83961         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
83962         Document that "second" isn't allowed as an ordinal number.
83963
83964 2004-11-16  Jim Meyering  <jim@meyering.net>
83965
83966         * modules/closeout (Depends-on): Add fpending.
83967
83968 2004-11-15  Jim Meyering  <jim@meyering.net>
83969
83970         * lib/closeout.c: Include "__fpending.h" once again.
83971         Include <stdbool.h>.
83972         (close_stdout): Don't fail just because stdout was closed initially,
83973         since some programs don't write to stdout in the normal course of
83974         operation (other than --version and --help), and we don't want this
83975         function to make e.g. `touch file >&-' fail.
83976         But do fail if it was closed and someone has tried to write to it.
83977         E.g., `printf foo >&-' must fail.
83978
83979 2004-11-13  Jim Meyering  <jim@meyering.net>
83980
83981         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
83982
83983 2004-11-12  Simon Josefsson  <jas@extundo.com>
83984
83985         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
83986         small doc fix is still pending.
83987
83988 2004-11-11  Simon Josefsson  <jas@extundo.com>
83989
83990         * modules/strtok_r: New file.
83991
83992         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83993         strtok_r.
83994
83995 2004-11-11  Simon Josefsson  <jas@extundo.com>
83996
83997         * m4/strtok_r.m4: New file.
83998
83999         * m4/getopt.m4: Replace opterr.
84000
84001 2004-11-11  Simon Josefsson  <jas@extundo.com>
84002
84003         * lib/strtok_r.h, strtok_r.c: New file.
84004
84005 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84006
84007         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84008         of replacing opterr, getopt, etc.  This should handle the
84009         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84010
84011 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84012
84013         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84014         we can stop lying to compilers about the constness of argv when we
84015         are compiled outside glibc.
84016         (getopt, getopt_long, getopt_long_only): Use it.
84017         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84018         _getopt_internal, getopt): Likewise.
84019         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84020         _getopt_long_only_r): Likewise.
84021         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84022         _getopt_long_r, _getopt_long_only_r): Likewise.
84023
84024         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84025         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84026         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84027         the other external symbols.
84028         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84029         declaration, since the above renaming now works around collisions.
84030
84031 2004-11-11  Jim Meyering  <jim@meyering.net>
84032
84033         * lib/linebreak.c: Remove trailing blanks.
84034         * lib/alloca_.h: Likewise.
84035         * lib/acosl.c: Likewise.
84036         * lib/euidaccess.c: Likewise.
84037         * lib/allocsa.h: Likewise.
84038
84039 2004-11-10  Simon Josefsson  <jas@extundo.com>
84040
84041         * m4/getaddrinfo.m4: New file.
84042
84043 2004-11-10  Simon Josefsson  <jas@extundo.com>
84044
84045         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84046
84047 2004-11-10  Simon Josefsson  <jas@extundo.com>
84048
84049         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84050         getaddrinfo.
84051
84052         * modules/getaddrinfo: New file.
84053
84054 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84055
84056         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84057
84058 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84059
84060         * lib/mktime.c (SHR): New macro, which is a portable
84061         substitute for >> that should work even on Crays.
84062         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84063         Problem reported by Mark D. Baushke in
84064         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84065         * lib/getdate.y (SHR): Likewise.
84066         (tm_diff): Use it.
84067         * lib/strftime.c (SHR): Likewise.
84068         (tm_diff): Use it.
84069         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84070         quote_these_too, so that right shifts are well defined.  All uses
84071         changed.
84072
84073 2004-11-10  Jim Meyering  <jim@meyering.net>
84074
84075         Ensure that no close failure goes unreported.
84076         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84077         return early when it seems there's nothing to flush.
84078         Don't include __fpending.h.
84079
84080 2004-11-10  Jim Meyering  <jim@meyering.net>
84081
84082         * modules/closeout (Depends-on): Remove fpending.
84083
84084 2004-11-10  Jim Meyering  <jim@meyering.net>
84085
84086         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84087
84088 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84089
84090         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84091         gl_FUNC_STRFTIME.
84092         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84093         and AC_REQUIRE when possible, to avoid duplicate checks.
84094         Check for <wchar.h>.
84095
84096 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84097
84098         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84099
84100 2004-11-09  Bruno Haible  <bruno@clisp.org>
84101
84102         * m4/sockpfaf.m4: New file.
84103
84104 2004-11-05  Bruno Haible  <bruno@clisp.org>
84105
84106         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84107         Reported by Mark D. Baushke <mdb@cvshome.org>.
84108
84109 2004-11-04  Bruno Haible  <bruno@clisp.org>
84110
84111         2004-09-11  Bruno Haible  <bruno@clisp.org>
84112                 * allocsa.valgrind: New file.
84113         2004-02-06  Bruno Haible  <bruno@clisp.org>
84114                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84115                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84116                 Reported by Christopher Seip <chris.seip@hp.com>.
84117
84118 2004-11-04  Bruno Haible  <bruno@clisp.org>
84119
84120         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84121         (Makefile.am): Distribute it.
84122
84123 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84124
84125         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84126         with errno == ERANGE if the buffer is too small.
84127         Problem reported by Mark D. Baushke.
84128
84129 2004-11-03  Albert Chin  <china@thewrittenword.com>
84130             Paul Eggert  <eggert@cs.ucla.edu>
84131
84132         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84133         equivalent, substitute $ac_type for equivalent type rather than
84134         blindly using uint32_t *always* which won't work if uint32_t is not
84135         available.  Define _UINT32_T to work around typedef of uint32_t if
84136         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84137         2.5.1.
84138
84139 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84140
84141         * m4/jm-macros.m4: Sync from coreutils.
84142         (gl_MACROS): Check for mbrlen, for pathchk.
84143         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84144
84145 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84146
84147         * lib/xreadlink.c (MAXSIZE): New macro.
84148         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84149         size does not exceed MAXSIZE.  Avoid cast.
84150         As suggested by Mark D. Baushke in
84151         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84152         if readlink fails with buffer size just under MAXSIZE, try again
84153         with MAXSIZE.
84154
84155 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84156
84157         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84158
84159 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84160         and  Paul Eggert  <eggert@cs.ucla.edu>
84161
84162         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84163         (get_date): Overparenthesize to avoid GCC warning.
84164
84165 2004-11-02  Bruno Haible  <bruno@clisp.org>
84166
84167         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84168         returns void.
84169
84170 2004-11-02  Bruno Haible  <bruno@clisp.org>
84171
84172         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84173         function returns void.
84174
84175 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84176
84177         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84178         fflush_unlocked, flockfile, funlockfile, funlockfile,
84179         fputs_unlocked, putc_unlocked.
84180
84181 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84182
84183         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84184         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84185         already declared.
84186
84187 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84188
84189         * modules/getdate (Files): Add doc/getdate.texi.
84190         (Depends-on): Add setenv, xalloc.
84191
84192 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84193
84194         * lib/getdate.y: Add support for TZ="foo" within a date string.
84195         Fix some bugs near time_t boundaries.  Reject dates with
84196         out-of-range components, e.g., "Sept 31".
84197         Include <stdlib.h>, "setenv.h", "xalloc.h".
84198         (ISDIGIT_LOCALE): Remove; unused.
84199         Note that the TZ and time functions used here are not reentrant.
84200         (mktime_ok, get_tz): New functions.
84201         (TZBUFSIZE): New constant.
84202         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84203         This requires that we sometimes generate our own TZ="XXX..." setting.
84204
84205 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84206
84207         * doc/getdate.texi: New file, from coreutils with modifications for
84208         the new TZ parsing.
84209
84210 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84211
84212         * lib/mktime.c (not_equal_tm): Remove redundant check.
84213
84214 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84215
84216         * modules/regex (lib_SOURCES): Add regex.c.
84217         Reported by James Youngman in
84218         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84219
84220 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84221
84222         * lib/getdate.y: Use Bison 1.875 features, and some minor
84223         code cleanups.  This change does not affect semantics.
84224         Don't include <stdlib.h>; no longer needed.
84225         Don't include unlocked-io.h; only the "#if TEST" code uses
84226         stdio, and performance isn't crucial there.
84227         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84228         Bison 1.875 features as described below.
84229         All uses of "PC." replaced by "pc->".
84230         (YYSTYPE): Add a forward declaration.
84231         (yylex, yyerror): Use full prototypes in forward decls.
84232         Use "%pure-parser" rather than obsolescent "%pure_parser".
84233         Use %parse-param and %lex-param instead of obsolescent
84234         YYPARSE_PARAM and YYLEX_PARAM.
84235         (meridian_table, month_and_day_table, time_units_table,
84236         relative_time_table, time_zone_table, military_table,
84237         lookup_zone, lookup_word, get_date):
84238         Use NULL instead of 0 where appropriate.
84239         (to_hour): Avoid abort (), to avoid a dependency on
84240         stdlib.h.
84241         (yyerror, yylex): Now accepts parser_control * arg.
84242         (main) [TEST]: Use '\0' rather than 0 for char.
84243
84244 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84245
84246         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84247
84248 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84249
84250         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84251         It's now the caller's responsibility to handle the case where
84252         !HAVE_GETPAGESIZE && !defined getpagesize.
84253
84254         * lib/mktime.c (leapyear): Arg is long int, not int.
84255
84256 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84257
84258         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84259
84260 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84261
84262         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84263         missing.  Problem reported by James Youngman.
84264
84265 2004-10-16  Simon Josefsson  <jas@extundo.com>
84266
84267         * gnulib-tool: Fix comments.  Fix parse problem.
84268         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84269
84270 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84271
84272         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84273         implementation of getopt_long.  Problem reported by Alexander Taler in:
84274         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84275
84276 2004-10-15  Bruno Haible  <bruno@clisp.org>
84277
84278         * gnulib-tool: Untabify. Initialize supplied_libname.
84279         (func_usage): More homogenous output.
84280         (func_modules_transitive_closure, func_modules_to_filelist,
84281         func_emit_lib_Makefile_am): New functions.
84282         (func_import): New function, extracted from big case statement. Use
84283         func_get_license, func_modules_transitive_closure,
84284         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84285         opt_lgpl. Don't use test -a, as it's not portable.
84286         (func_create_testdir): Use func_modules_transitive_closure,
84287         func_modules_to_filelist, func_emit_lib_Makefile_am.
84288
84289 2004-10-15  Bruno Haible  <bruno@clisp.org>
84290
84291         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84292
84293 2004-10-15  Bruno Haible  <bruno@clisp.org>
84294
84295         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84296         the portions belonging to each module.
84297         Suggested by Derek Robert Price <derek@ximbiot.com>.
84298
84299 2004-10-12  Simon Josefsson  <jas@extundo.com>
84300
84301         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84302         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84303         to real functions.
84304
84305 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84306
84307         * modules/vsnprintf: New file.
84308
84309 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84310
84311         * m4/vsnprintf.m4: New file.
84312
84313 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84314
84315         * lib/vsnprintf.h: New file.
84316         * lib/vsnprintf.c: New file.
84317
84318 2004-10-11  Bruno Haible  <bruno@clisp.org>
84319
84320         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84321         vsnprintf.
84322
84323 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84324
84325         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84326
84327 2004-10-07  Bruno Haible  <bruno@clisp.org>
84328
84329         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84330         fits into the provided buffer.
84331
84332 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84333
84334         * lib/diacrit.c, diacrit.h: Add GPL notice.
84335
84336         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84337         notice.
84338         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84339         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84340         This avoids a potential constant-folding bug.
84341
84342 2004-10-05  Bruno Haible  <bruno@clisp.org>
84343
84344         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84345         for the declaration of strsep.
84346
84347 2004-10-05  Bruno Haible  <bruno@clisp.org>
84348
84349         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84350
84351 2004-10-04  Simon Josefsson  <jas@extundo.com>
84352
84353         * modules/memmem: New file.
84354         * tests/test-memmem.c: New file.
84355         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84356
84357 2004-10-04  Simon Josefsson  <jas@extundo.com>
84358
84359         * m4/memmem.m4: New file.
84360
84361 2004-10-04  Simon Josefsson  <jas@extundo.com>
84362
84363         * lib/memmem.h: New file.
84364         * lib/memmem.c: New file, taken from glibc.
84365
84366 2004-10-04  Simon Josefsson  <jas@extundo.com>
84367
84368         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84369         '#ifdef USE_UNLOCKED_IO'.
84370
84371 2004-10-04  Simon Josefsson  <jas@extundo.com>
84372
84373         * config/srclist.txt: Add memmem from glibc.
84374
84375 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84376
84377         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84378
84379         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84380         modules/exclude, modules/getdate, modules/getline,
84381         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84382         modules/getusershell, modules/linebuffer, modules/md5,
84383         modules/mountlist, modules/posixtm, modules/readtokens,
84384         modules/readutmp, modules/regex, modules/sha1,
84385         modules/version-etc, modules/yesno:
84386         Remove dependency on unlocked-io.
84387
84388 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84389
84390         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84391
84392         * m4/unlocked-io.m4: Add copyright notice.
84393         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84394
84395 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84396
84397         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84398         * lib/xmalloc.c (xmemdup): Likewise.
84399         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84400         XFREE): Remove these long-obsolescent macros.
84401         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84402         * lib/xstrdup.c: Remove.
84403
84404         * lib/regex.c (re_comp): Cast gettext return value to char *,
84405         Problem reported by Martin Neitzel via Mark D. Baushke.
84406
84407 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84408
84409         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84410         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84411         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84412         regex.c, sha1.c, version-etc.c, yesno.c:
84413         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84414         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84415         the includer's responsibility.
84416
84417         Sync from coreutils.
84418
84419         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84420         points to the start of a string, as the C Standard says the
84421         resulting behavior is undefined.
84422
84423         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84424         simple -> simple_backups, numbered_existing ->
84425         numbered_existing_backups, numbered -> numbered_backups
84426         to avoid shadowing problems.  All uses changed.
84427         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84428         * lib/backupfile.c (check_extension, numbered_backup):
84429         Rename locals to avoid shadowing 'basename'.
84430         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84431         once.
84432
84433         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84434         * lib/.cvsignore: Add getopt.h.
84435
84436 2004-10-04  Bruno Haible  <bruno@clisp.org>
84437
84438         * modules/README: New file.
84439         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84440         not a module.
84441
84442 2004-10-02  Jim Meyering  <jim@meyering.net>
84443
84444         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84445
84446 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84447
84448         * modules/strsep: New file.
84449
84450 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84451
84452         * m4/strsep.m4: New file.
84453
84454 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84455
84456         * lib/strsep.h: New file.
84457         * lib/strsep.c: New file.
84458
84459 2004-10-01  Simon Josefsson  <jas@extundo.com>
84460
84461         * lib/snprintf.c (snprintf): Handle size==0.
84462
84463 2004-10-01  Simon Josefsson  <jas@extundo.com>
84464             Bruno Haible  <bruno@clisp.org>
84465
84466         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84467         (snprintf): Declare 'args'.
84468
84469 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84470
84471         * lib/snprintf.c: Remove comments as to why each header is needed.
84472
84473 2004-10-01  Bruno Haible  <bruno@clisp.org>
84474
84475         * MODULES.html.sh: Add strsep.
84476
84477 2004-09-30  Simon Josefsson  <jas@extundo.com>
84478
84479         * modules/snprintf: New file.
84480
84481 2004-09-30  Simon Josefsson  <jas@extundo.com>
84482
84483         * m4/snprintf.m4: New file.
84484
84485 2004-09-30  Simon Josefsson  <jas@extundo.com>
84486
84487         * lib/snprintf.h, lib/snprintf.c: New files.
84488
84489 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84490
84491         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84492         (hol_entry_help): Never translate an empty string.
84493         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84494         * lib/argp.h (OPTION_NO_TRANS): New option.
84495
84496 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84497
84498         * modules/argp (Maintainer): Replace Simon Josefsson
84499         by Sergey Poznyakoff.
84500
84501 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84502
84503         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84504         changes merged back into glibc.
84505
84506 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84507
84508         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84509
84510 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84511
84512         * lib/xvasprintf.c: Include xalloc.h.
84513         (xvasprintf): Use xalloc_die, not xmalloc_die.
84514
84515 2004-09-29  Bruno Haible  <bruno@clisp.org>
84516
84517         * modules/alloca-opt: New file, derived from modules/alloca.
84518         * modules/allocsa: Depend on alloca-opt instead of alloca.
84519         * modules/setenv: Likewise.
84520         * modules/vasnprintf: Likewise.
84521         * MODULES.html.sh: Add alloca-opt.
84522
84523 2004-09-28  Simon Josefsson  <jas@extundo.com>
84524
84525         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84526         LGPL, and to replace license template from GPL to LGPL.
84527
84528 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84529
84530         * modules/dummy: Change license to LGPL.
84531
84532 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84533
84534         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84535
84536 2004-09-24  Simon Josefsson  <jas@extundo.com>
84537
84538         * modules/minmax (License): Change from GPL to LGPL.
84539
84540 2004-09-23  Simon Josefsson  <jas@extundo.com>
84541
84542         * gnulib-tool (--import): Typo.
84543
84544 2004-09-23  Simon Josefsson  <jas@extundo.com>
84545
84546         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84547
84548 2004-09-22  Bruno Haible  <bruno@clisp.org>
84549
84550         * modules/*: Add 'License' field.
84551         * gnulib-tool: Accept --extract-license option.
84552         (func_get_license): New function.
84553
84554 2004-09-21  Bruno Haible  <bruno@clisp.org>
84555
84556         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84557         Reported by Simon Josefsson.
84558
84559 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84560
84561         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84562         gl_AC_TYPE_LONG_LONG.
84563
84564 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84565
84566         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84567
84568 2004-09-18  Simon Josefsson  <jas@extundo.com>
84569         and  Paul Eggert  <eggert@cs.ucla.edu>
84570
84571         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84572         calls with autoreconf.  Define GL_LIB.
84573
84574 2004-09-14  Karl Berry  <karl@gnu.org>
84575
84576         * config/srclist.txt: unsync setenv.c, sigh.
84577
84578 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84579
84580         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84581         Problem reported by Bruno Haible in:
84582         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84583
84584 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84585
84586         * config/srclist.txt: Comment out argp-pvh.c.
84587
84588 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84589
84590         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84591         in case some system header has #define'd it.  Problem reported by
84592         Soeren D. Schulze in
84593         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84594
84595 2004-09-09  Karl Berry  <karl@gnu.org>
84596
84597         * regex.[ch]: delete from the root.  These were supposed to be
84598                 synced with emacs cvs, but this has not happened for about
84599                 a year, and anyway nothing else uses emacs regex.[ch].
84600                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84601                 lib/regex[.ch] is untouched.
84602
84603 2004-09-09  Bruno Haible  <bruno@clisp.org>
84604
84605         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84606
84607 2004-09-09  Bruno Haible  <bruno@clisp.org>
84608
84609         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84610         modifications.
84611         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84612
84613 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84614
84615         * modules/xvasprintf: New file.
84616         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84617
84618 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84619
84620         * lib/xvasprintf.h: New file.
84621         * lib/xvasprintf.c: New file.
84622         * lib/xasprintf.c: New file.
84623
84624 2004-09-08  Bruno Haible  <bruno@clisp.org>
84625
84626         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84627
84628 2004-09-08  Bruno Haible  <bruno@clisp.org>
84629
84630         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84631         length is > INT_MAX.
84632         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84633         more.
84634
84635 2004-09-08  Bruno Haible  <bruno@clisp.org>
84636
84637         * lib/stdint_.h: New file, taken from GNU clisp.
84638
84639 2004-09-08  Bruno Haible  <bruno@clisp.org>
84640             Oskar Liljeblad  <oskar@osk.mine.nu>
84641
84642         * modules/stdint: New file.
84643         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84644
84645 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84646
84647         Import from coreutils.
84648         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84649         strings on unbounded length.  alloca's performance benefits aren't
84650         that important here.
84651         (V_STRDUP): Remove.
84652         (parse_with_separator): New function, with most of the internals
84653         of the old parse_user_spec.  Allow user to omit both user and group,
84654         for compatibility with FreeBSD.
84655         Clone only the user name, not the entire spec.
84656         Do not set *uid, *gid unless entirely successful.
84657         Avoid memory leak in some failing cases.
84658         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84659         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84660         (parse_user_spec): Rewrite to use parse_with_separator.
84661
84662 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84663
84664         * modules/userspec: Don't depend on alloca.
84665
84666 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84667
84668         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84669
84670 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84671
84672         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84673         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84674         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84675
84676 2004-08-16  Simon Josefsson  <jas@extundo.com>
84677
84678         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84679         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84680         Add --dry-run for --import.
84681         Let user provided command line parameters override configure.ac
84682         settings.
84683
84684 2004-08-12  Simon Josefsson  <jas@extundo.com>
84685
84686         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84687         as discussed with Paul Eggert in threads rooted at
84688         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84689         and
84690         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84691         Before, the test was empty, and relied on ELIDE_CODE in source
84692         code.)
84693         (gl_PREREQ_GETOPT): New macro.
84694         (gl_GETOPT): Use them.
84695
84696 2004-08-12  Simon Josefsson  <jas@extundo.com>
84697
84698         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84699         * lib/getopt_.h: Renamed from getopt.h.
84700
84701 2004-08-12  Simon Josefsson  <jas@extundo.com>
84702
84703         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84704         Change default library name from libfoo to libgnu.
84705         Now, if you have a configure.ac that says:
84706                 gl_SOURCE_BASE(gl)
84707                 gl_M4_BASE(gl/m4)
84708                 gl_MODULES(error getopt etcetera)
84709                 gl_INIT
84710         you can import all you need by running:
84711                 ../gnulib/gnulib-tool --import
84712
84713         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84714         (Makefile.am): Rewrite, use logic from argz.
84715         (Include): Use <getopt.h> instead of "getopt.h".
84716
84717 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84718
84719         * modules/argp (Files): Add m4/unlocked-io.m4.
84720         (Depends-on): Add extensions.
84721
84722 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84723
84724         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84725         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84726         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84727         Check for program_invocation_name, program_invocation_short_name,
84728         flockfile, funlockfile, features.h, _getopt_long_only_r.
84729
84730 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84731
84732         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84733         its complicated substitute.
84734         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84735         and program_invocation_name.
84736         (__argp_basename) [!_LIBC]: Remove; the only use was
84737         replaced by its body.
84738         (__argp_short_program_name): Change condition from
84739         !defined __argp_short_program_name to
84740         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84741         to match argp-namefrob.h.
84742         (__argp_failure): Don't assume strerror_r returns char *.
84743         * lib/argp-parse.c (N_): Define unconditionally.
84744         (argp_default_options): Fill out initializers with 0 to avoid
84745         gcc warnings.
84746
84747 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84748
84749         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84750         getopt1.c.
84751
84752 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84753
84754         Merge from coreutils.
84755
84756         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84757
84758         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84759         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84760
84761 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84762
84763         Merge from coreutils.
84764
84765         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84766         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84767         for Reliant Unix 5.43.
84768
84769         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84770         (union fooround): Use uintmax_t, not long int.
84771         The rest is a merge from libc:
84772         [defined _LIBC]: Include <shlib-compat.h>.
84773         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84774
84775         * lib/settime.c (settime): Recode to avoid warning with
84776         Sun Forte C 6U2.
84777
84778         * lib/strverscmp.c: Convert to UTF-8.
84779
84780 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84781
84782         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84783         m4/uintmax_t.m4.
84784
84785 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84786
84787         * modules/xalloc-die: New file.
84788         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84789
84790         * modules/md5 (Files): Add m4/uint32_t.m4.
84791         * modules/sha1: Renamed from modules/sha.
84792         (Files):
84793         Rename lib/sha.h to lib/sha1.h.
84794         Rename lib/sha.c to lib/sha1.c.
84795         Rename m4/sha.m4 to m4/sha1.m4.
84796         (lib_SOURCES): Likewise.
84797         (configure.ac): Rename gl_SHA to gl_SHA1.
84798         (Include): sha.h -> sha1.h.
84799
84800 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84801
84802         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84803         * m4/sha1.m4: Renamed from sha.m4.
84804         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84805
84806 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84807
84808         * lib/obstack.h (obstack_empty_p):
84809         Don't assume that chunk->contents is suitably aligned.
84810         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84811         Likewise. Problem reported by Benno in
84812         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84813
84814         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84815         readable.  This could be improved further but it'd take some work.
84816
84817 2004-08-08  Simon Josefsson  <jas@extundo.com>
84818
84819         * modules/xgethostname (Depends-on): Remove exit and error (not
84820         used).
84821
84822         * modules/getpass-gnu: Add getpass.h.
84823         (Depends-on): Add stdbool.
84824         * modules/getpass: Add getpass.h.
84825
84826 2004-08-08  Simon Josefsson  <jas@extundo.com>
84827
84828         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84829         Check getpass declaration.
84830
84831 2004-08-08  Simon Josefsson  <jas@extundo.com>
84832
84833         * lib/xgethostname.c: Don't include error.h (not used).
84834
84835         * lib/getpass.h: Add.
84836         * lib/getpass.c: Include getpass.h first.
84837
84838 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84839
84840         * lib/xalloc-die.c: New file.
84841         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84842         All uses removed.
84843         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84844         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84845         xalloc-die.c.
84846         (_, N_, xalloc_die): Move to xalloc-die.c.
84847         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84848         so that we needn't mess with xalloc_msg_memory_exhausted.
84849
84850         * lib/sha1.h: Renamed from sha.h.
84851         (SHA1_H): Renamed from _SHA_H.
84852         (sha1_ctx): Renamed from sha_ctx.
84853         (sha1_init_ctx): Renamed from sha_init_ctx.
84854         (sha1_process_block): Renamed from sha_process_block.
84855         (sha1_process_bytes): Renamed from sha_process_bytes.
84856         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84857         (sha1_read_ctx): Renamed from sha_read_ctx.
84858         (sha1_stream): Renamed from sha_stream.
84859         (sha1_buffer): Renamed from sha_buffer.
84860         * lib/sha1.c: Likewise; renamed from sha.c.
84861         Do not include <sys/types.h>.
84862         Include <stddef.h> rather than <stdlib.h>.
84863
84864 2004-08-08  Bruno Haible  <bruno@clisp.org>
84865
84866         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84867         FILESYSTEM_PREFIX_LEN.
84868         * lib/progreloc.c: Likewise.
84869         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84870
84871 2004-08-06  Simon Josefsson  <jas@extundo.com>
84872
84873         * modules/progname (Depends-on): Don't depend on stdbool.
84874
84875 2004-08-06  Simon Josefsson  <jas@extundo.com>
84876
84877         * modules/getsubopt: New file.
84878         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84879         getsubopt.
84880
84881 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84882
84883         More merge from coreutils.
84884
84885         * m4/utimens.m4, m4/utimecmp.m4: New files.
84886         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84887         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84888         prereq.m4, sha.m4: Import changes from coreutils.
84889
84890 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84891
84892         More merge from coreutils.
84893         * modules/raise, modules/readtokens0, modules/utimens:
84894         * modules/utimecmp, module/xnanosleep: New files.
84895         * modules/strftime: Add lib/strftime.h.
84896         Change include from <time.h> to "strftime.h".
84897         * modules/yesno: Add lib/yesno.h.
84898         * modules/backupfile: Remove lib/addext.c.
84899         * modules/euidaccess: Add stat-macros.h.
84900         * modules/canonicalize, modules/euidaccess,
84901         modules/filemode, modules/lchown, modules/makepath,
84902         modules/rmdir, modules/stat: Likewise.
84903
84904 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84905
84906         Merge from tar.
84907         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84908         SIZE_MAX is a valid preprocessor constant.
84909         (__argp_basename): Change from "#ifndef _LIBC"
84910         to "#ifndef __argp_short_program_name", so that
84911         we don't compile these functions for tar.
84912
84913         More merges from coreutils.
84914         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84915         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84916         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84917         * lib/addext.c: Remove; no longer needed.
84918         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84919         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84920         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84921         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84922         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84923         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84924         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84925         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84926         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84927         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84928         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
84929         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
84930         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
84931         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
84932         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
84933         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
84934         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
84935         Import changes from coreutils.
84936
84937 2004-08-05  Simon Josefsson  <jas@extundo.com>
84938
84939         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
84940
84941 2004-08-05  Simon Josefsson  <jas@extundo.com>
84942
84943         * m4/getsubopt.m4: New file.
84944
84945 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84946
84947         Merge from coreutils.
84948
84949         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
84950         * m4/getcwd-path-max.m4: New files.
84951
84952         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
84953         FILESYSTEM_PREFIX_LEN ->
84954         FILE_SYSTEM_PREFIX_LEN.
84955         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
84956         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
84957         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
84958         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
84959
84960         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
84961         prerequisite modules now handle the DOS stuff.
84962         Don't check for unistd.h.
84963
84964 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84965
84966         Merge from coreutils.
84967
84968         * lib/.gdb-history: Remove; this doesn't belong here.
84969
84970         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
84971         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
84972         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
84973         * lib/getcwd.c: New files.
84974
84975         * lib/dirname.h: Include <stdbool.h>.
84976         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
84977         for consistency with POSIX terminology.  All uses changed.
84978         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
84979         (strip_trailing_slashes): Use bool for booleans.
84980         * lib/stripslash.c (strip_trailing_slashes): Likewise.
84981
84982         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
84983         sometimes returns a positive errno value even when it succeeds.
84984         (print_errno_message) [!LIBC]: Fall back on strerror if
84985         __strerror_r fails.
84986
84987         * lib/path-concat.c (mempcpy): Don't define if a system header defines
84988         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
84989         (longest_relative_suffix): New function.
84990         (path_concat): Use it.  Assume first argument is not NULL.
84991         Port to DOS.  Omit redundant separators.
84992         Report an error instead of returning NULL.
84993         Use mempcpy instead of memcpy.
84994         (xpath_concat): Remove: not declared or used.
84995
84996         * lib/same.h: Include <stdbool.h>
84997         (same_name): Return bool, not int.
84998         * lib/same.c (same_name): Likewise.
84999         (errno): Don't declare; we assume C89 or better now.
85000
85001         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85002         if not already defined.
85003
85004         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85005         * lib/dup-safer.c (errno): Likewise.
85006
85007 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85008
85009         Merge from coreutils.
85010         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85011         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85012         * modules/path-concat: Don't depend on strdup.
85013
85014 2004-08-03  Simon Josefsson  <jas@extundo.com>
85015
85016         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85017         * lib/progname.h: Don't include stdbool.h.
85018
85019 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85020
85021         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85022         * MODULES.html.sh (func_all_modules): Remove fatal.
85023
85024 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85025
85026         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85027
85028 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85029
85030         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85031         working.
85032
85033 2004-08-02  Simon Josefsson  <jas@extundo.com>
85034
85035         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85036         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85037         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85038
85039 2004-08-01  Simon Josefsson  <jas@extundo.com>
85040
85041         * lib/xgetdomainname.c: Include stdlib.h, for free().
85042
85043 2004-07-19  Bruno Haible  <bruno@clisp.org>
85044
85045         * MODULES.html.sh (func_all_modules): Add dummy.
85046
85047 2004-07-16  Simon Josefsson  <jas@extundo.com>
85048
85049         * modules/dummy: New file.
85050
85051 2004-07-16  Simon Josefsson  <jas@extundo.com>
85052
85053         * lib/dummy.c: New file.
85054
85055 2004-07-16  Bruno Haible  <bruno@clisp.org>
85056
85057         * lib/backupfile.h: Add extern "C" for C++.
85058         * lib/closeout.h: Likewise.
85059         * lib/copy-file.h: Likewise.
85060         * lib/findprog.h: Likewise.
85061         * lib/full-write.h: Likewise.
85062         * lib/pathname.h: Likewise.
85063         * lib/progname.h: Likewise.
85064         * lib/stpcpy.h: Likewise.
85065         * lib/stpncpy.h: Likewise.
85066         * lib/strcase.h: Likewise.
85067         * lib/strstr.h: Likewise.
85068         * lib/xalloc.h: Likewise.
85069
85070         * lib/mbswidth.h: Add extern "C" for C++.
85071         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85072
85073 2004-07-13  Robert Millan  <robertmh@gnu.org>
85074
85075         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85076
85077 2004-07-09  Simon Josefsson  <jas@extundo.com>
85078
85079         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85080         failed without this.)
85081
85082 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85083
85084         * modules/chown (Files): Add lib/fchown-stub.c, since
85085         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85086
85087 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85088
85089         * lib/fchown-stub.c: New file.
85090
85091 2004-06-24  Jim Meyering  <jim@meyering.net>
85092
85093         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85094
85095 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85096
85097         * modules/argz: Omit "#include".
85098
85099         * MODULES.html.sh (func_all_modules): Add calloc, to match
85100         2004-06-01 addition of calloc module.
85101
85102 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85103
85104         * m4/argz.m4: New file, which is autoupdated from libtool.
85105
85106 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85107
85108         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85109         libtool.
85110
85111 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85112
85113         * config/srclist-update: Don't insist on "USA." before the
85114         close-comment, as libtool omits the period and puts the */ on a
85115         separate line.
85116         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85117         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85118
85119 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85120
85121         * modules/argz: New file.
85122         * MODULES.html.sh (func_all_modules): Add argz.
85123
85124 2004-06-12  Jim Meyering  <jim@meyering.net>
85125         and  Paul Eggert  <eggert@cs.ucla.edu>
85126
85127         * modules/hash (Files): Add lib/xalloc.h.
85128         * modules/pipe (Depends-on): Add wait-process.
85129         * modules/stat (Depends-on): Add xalloc.
85130         * modules/userspec (Files): Add lib/userspec.h.
85131         * modules/xstrto
85132
85133         Upgrade from gettext-0.13.
85134         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85135         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85136         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85137
85138 2004-06-10  Jim Meyering  <jim@meyering.net>
85139
85140         * lib/calloc.c: New file.
85141
85142 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85143
85144         * lib/getdate.y (yylex): Allow space between sign and number.
85145         Problem reported by Dan Jacobson.
85146
85147 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85148
85149         Merge from coreutils CVS.
85150
85151         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85152         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85153         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85154         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85155         xstrtol.m4: Fix copyright date and/or serial number.
85156
85157         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85158         See if we need an fchown replacement.
85159         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85160         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85161         and use the replacement function if we detect either defect.
85162
85163         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85164         gl_UTIMECMP.
85165
85166 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85167         and  Jim Meyering  <jim@meyering.net>
85168
85169         Merge from coreutils CVS.
85170
85171         * lib/stat-macros.h: New file, with contents from file-type.h
85172         and coreutils' system.h.
85173         * lib/file-type.c: Include "stat-macros.h".
85174         * lib/file-type.h (file_type): Move all macro definitions to new file,
85175         stat-macros.h.
85176
85177         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85178         Wrap old code with this conditional.
85179         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85180         function that does not dereference symlinks.
85181         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85182
85183         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85184         dependency problems.
85185         (xreadlink): Accept new arg SIZE, for efficiency.
85186         All decls and uses changed.
85187         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85188
85189         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85190         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85191
85192         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85193         sysexits.h.
85194
85195 2004-06-01  Jim Meyering  <jim@meyering.net>
85196
85197         * m4/calloc.m4: New file.
85198
85199 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85200
85201         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85202         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85203         Also, fix a typo in a diagnostic.
85204
85205 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85206
85207         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85208         or AC_FUNC_REALLOC.
85209
85210 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85211
85212         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85213         macros to be defined.
85214         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85215         the allocator returns NULL because the requested size is zero.
85216
85217 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85218
85219         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85220         var.  Add comment explaining why libc still defines it.  This
85221         merges the following patch from glibc:
85222         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85223
85224 2004-05-20  Andreas Schwab  <schwab@suse.de>
85225
85226         * m4/free.m4: Replace free if it not known to work, not the other
85227         way round.
85228
85229 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85230
85231         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85232         present in glibc since revision 1.1 of this file.
85233         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85234         obstack_alignment_mask, obstack_alloc, obstack_base,
85235         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85236         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85237         obstack_grow0, obstack_init, obstack_int_grow,
85238         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85239         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85240         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85241         nonexistent functions.
85242
85243 2004-05-18  Karl Berry  <karl@gnu.org>
85244
85245         * config/srclist.txt: break link for vasnprintf.c.
85246
85247 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85248
85249         Port obstack to the AS/400, where pointers are 16 bytes wide and
85250         you cannot cast an integer to a valid pointer.  This patch is
85251         currently waiting to be integrated into glibc; see
85252         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85253
85254         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85255         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85256         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85257         (struct obstack): temp member is now a union of a pointer and
85258         an integer, instead of an integer.  All integer uses changed.
85259         This does not affect the physical layout of struct obstack,
85260         except on hosts (like the AS/400) where the size or alignment of
85261         void * is greater than that of ptrdiff_t.
85262         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85263         __STDC__)]: Store temporary in pointer member of union, not
85264         integer member.
85265         * lib/obstack.c: Include <stddef.h>, for offsetof.
85266         (struct fooalign): Remove; it doesn't need a name.
85267         (union fooround): Change double to long double, and add void *.
85268         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85269         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85270         not a macro.  Hence the values are always int; so remove all
85271         casts-to-int in uses.
85272
85273 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85274
85275         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85276         we can get this patch merged into glibc.
85277
85278 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85279             Paul Eggert  <eggert@cs.ucla.edu>
85280
85281         * m4/argp: Depend on alloca.
85282
85283 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85284             Paul Eggert  <eggert@cs.ucla.edu>
85285
85286         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85287         freecoding.
85288
85289 2004-05-17  Bruno Haible  <bruno@clisp.org>
85290
85291         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85292         precision that consists of a '.' followed by an empty digit string.
85293         Patch by Tor Lillqvist <tml@iki.fi>.
85294
85295 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85296
85297         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85298         for backward compatibility with older code.  We need our own
85299         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85300         it under some other name, and our alloca.h will define it.
85301
85302 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85303             Derek Price  <derek@ximbiot.com>
85304
85305         * lib/alloca.c: Include <alloca.h>, to get our interface.
85306         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85307         include <alloca.h> first.  Use C89 prototype for alloca; this
85308         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85309         Use #elif for simplicity, since we can assume C89 now.
85310         Don't try to source the system alloca.h since it will not be found
85311         and to prevent recursively including its replacement.
85312         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85313         * lib/regex.c: Likewise.
85314
85315 2004-05-16  Derek Price  <derek@ximbiot.com>
85316             Paul Eggert  <eggert@cs.ucla.edu>
85317
85318         getline cleanup.  This changes the getndelim2 API: both order of
85319         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85320         no delimiter).
85321
85322         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85323         interface does that.
85324         (getline): Always use getdelim, so that we don't have two
85325         copies of this code.
85326         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85327         if available.
85328         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85329         (GETNDELIM2_MAXIMUM): New macro.
85330         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85331         instead of the old practice of delim2==0.  All callers changed.
85332         Return -1 on overflow, instead of returning junk.
85333         Do not set *linesize unless allocation succeeds.
85334         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85335         that we include sys/types.h.
85336         * lib/getnline.h: Likewise.
85337         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85338         (getndelim2): Reorder arguments.
85339         * lib/getnline.c (getnline, getndelim):
85340         Don't discard the NMAX argument.
85341         (getnline): Invoke getndelim, to avoid code duplication.
85342         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85343         of (size_t) -1 by callers of the getnline family.
85344
85345 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85346
85347         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85348         Check for gettimeofday.
85349         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85350         Check for settimeofday, stime.
85351
85352 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85353
85354         * lib/nanosleep.c (suspended): Change its type from int to
85355         sig_atomic_t volatile.
85356         (first_call): Make it private to rpl_nanosleep, and have it
85357         be zero initially as that's a bit faster.
85358         (my_usleep): Round up fractional times instead of truncating them,
85359         as this is the usual meaning for 'sleep'.
85360
85361         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85362         doesn't work.
85363         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85364         (ENOSYS): Define if not defined.
85365         (settime): Fall back on stime if it exists and settimeofday fails.
85366         But don't bother with fallbacks if a method fails with errno == EPERM.
85367
85368 2004-05-11  Jim Meyering  <jim@meyering.net>
85369
85370         Prior to this change, the save_cwd caller required read access to the
85371         current directory on most systems (ones with the fchdir function).
85372
85373         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85374         fails, try write-only, and finally, resort to using xgetcwd.
85375
85376 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85377
85378         * lib/obstack.c, obstack.h: Import changes from libc.
85379
85380 2004-04-28  Bruno Haible  <bruno@clisp.org>
85381
85382         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85383         also implicitly appends .exe to executables.
85384         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85385         accepts Windows pathnames.
85386         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85387         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85388         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85389         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85390         Reported by Derek Robert Price <derek@ximbiot.com>.
85391
85392 2004-04-21  Karl Berry  <karl@gnu.org>
85393
85394         * config/srclist.txt (localcharset.c): break sync.
85395
85396 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85397
85398         * m4/host-os.m4: Add a copyright notice.
85399
85400 2004-04-20  Jim Meyering  <jim@meyering.net>
85401
85402         Change UTILS_ to gl_ in AC_DEFINE'd names.
85403         Change utils_- and jm_-prefixed variables, too.
85404         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85405         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85406         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85407
85408         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85409         Don't emit trailing blanks.
85410         Also rename jm_-prefixed variables to have gl_ prefix.
85411
85412         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85413         Also rename jm_-prefixed variables to have gl_ prefix.
85414
85415         * m4/jm-macros.m4: Reflect the renamings.
85416         * m4/prereq.m4: Likewise.
85417
85418 2004-04-20  Jim Meyering  <jim@meyering.net>
85419
85420         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85421         memory.
85422
85423 2004-04-20  Jim Meyering  <jim@meyering.net>
85424             Bruno Haible  <bruno@clisp.org>
85425
85426         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85427         memory when realloc fails.
85428
85429 2004-04-19  Jim Meyering  <jim@meyering.net>
85430
85431         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85432         now that readutmp.c may call `free (0)'.
85433
85434 2004-04-19  Bruno Haible  <bruno@clisp.org>
85435
85436         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85437         * m4/inttypes_h.m4: Likewise.
85438         * m4/stdint_h.m4: Likewise.
85439         * m4/intmax_t.m4: Likewise.
85440         * m4/uintmax_t.m4: Likewise.
85441
85442 2004-04-18  Jim Meyering  <jim@meyering.net>
85443
85444         * m4/prereq.m4: Don't forbid jm_ prefix.
85445
85446         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85447         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85448         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85449         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85450         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85451         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85452         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85453         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85454         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85455         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85456         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85457         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85458         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85459         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85460         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85461         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85462         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85463         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85464         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85465
85466 2004-04-18  Jim Meyering  <jim@meyering.net>
85467
85468         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85469         failure, don't leak memory and do call END_UTMP_ENT.
85470
85471 2004-04-16  Jim Meyering  <jim@meyering.net>
85472
85473         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85474         coreutils' stat program.
85475         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85476
85477 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85478
85479         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85480         C89.
85481         (CHAR_BIT): Remove, since we assume C89.
85482         Include <stdint.h> if available, as per current Autoconf CVS advice.
85483
85484 2004-03-31  Jim Meyering  <jim@meyering.net>
85485
85486         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85487         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85488         * m4/xalloc.m4: Likewise.
85489
85490 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85491
85492         Merge from coreutils.
85493
85494         * m4/inttostr.m4: New file.
85495         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85496         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85497         Require gl_CLOCK_TIME.
85498         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85499
85500 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85501
85502         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85503         not bool, to be more consistent with Unix conventions.
85504         Suggested by Bruno Haible.
85505
85506         Merge from coreutils.
85507
85508         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85509         * lib/umaxtostr.c: New files.
85510
85511         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85512         the usual <time.h> dance.
85513         (get_date): Change signature to support fractional time stamps.
85514         All callers changed.
85515         * lib/getdate.y: Include "getdate.h" first, as we can now
85516         assume C89 and don't need to worry about 'const'.
85517         Similarly, include "unlocked-io.h" near start, not in middle.
85518         Include <limits.h>.
85519         (textint.value): Use long int rather than int.
85520         (textint.digits): Use size_t rather than int.
85521         (BILLION, LOG10_BILLION): New constants.
85522         (parser_control): New member rel_ns.  Members day_ordinal,
85523         time_zone, month, day, hour, minutes, rel_year, rel_month,
85524         rel_day, rel_hour, rel_minutes, rel_seconds
85525         are now long int, not int.  Member seconds is now struct timespec,
85526         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85527         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85528         not int.
85529         (%union.intval): Now long int, not int.
85530         New member timespec.
85531         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85532         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85533         (spec): Now is a timespec or an item list.
85534         (timespec, items): New nonterminals.
85535         (time, rel, relunit, number, get_date):
85536         Add support for fractional seconds.
85537         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85538         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85539         (to_hour): First arg is now long int, not int.
85540         (to_year): Returns long int, not int.
85541         Don't treat year -70 like 70.
85542         (tm_diff): Returns long int, not int.
85543         (lookup_word): Use bool instead of int when appropriate.
85544         (yylex): Use size_t for count, not int.
85545         Detect overflow when parsing large integer constants.
85546         Add support for fractions.
85547         (get_date): Make pointers 'const' if possible.
85548         Use more-portable code to detect integer overflow.
85549         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85550         Don't use ctime; it's not reliable if the year has >4 digits.
85551
85552         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85553         This is for compatibility with BSD.
85554
85555         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85556         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85557         From coreutils' system.h.
85558
85559         * lib/userspec.c: Don't include "posixver.h".
85560         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85561         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85562         compatible extension.  Simplify code by removing a boolean int
85563         that was always nonzero if a string was nonnull.
85564
85565 2004-03-30  Jim Meyering  <jim@meyering.net>
85566
85567         Merge from coreutils.
85568
85569         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85570         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85571         on some systems one must include <grp.h> before it.
85572         Reported by Christian Krackowizer.
85573
85574 2004-03-30  Jim Meyering  <jim@meyering.net>
85575
85576         Merge from coreutils.
85577
85578         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85579
85580         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85581         an empty input stream.
85582
85583         * lib/readtokens.c: Include <stdbool.h>.
85584         (readtoken): Use `size_t' rather than int/long.
85585         All callers adjusted.
85586         Use `bool' rather than `int' where appropriate.
85587         Use memset rather than an explicit loop.
85588         Use x2nrealloc rather than xrealloc.
85589         Allow the use of `\0' as a delimiter.
85590         (readtokens): Likewise.
85591         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85592
85593 2004-03-30  Jim Meyering  <jim@meyering.net>
85594
85595         * m4/realloc.m4: Remove file, since now it does no more than
85596         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85597         the `configure.ac' section of module/realloc.
85598         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85599
85600 2004-03-30  Bruno Haible  <bruno@clisp.org>
85601
85602         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85603         nonnull.
85604
85605 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85606
85607         Merge changes to getloadavg.c from coreutils and Emacs.
85608
85609         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85610         Define to an expression, not to the empty string.
85611         Include cloexec.h and xalloc.h.
85612         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85613         Use set_cloexec_flag rather than rolling our own.
85614         * lib/cloexec.c, lib/cloexec.h: New files.
85615
85616 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85617
85618         * m4/cloexec.m4: New file.
85619
85620 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85621
85622         * lib/getopt.h: Sync with libc CVS.
85623
85624 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85625             Bruno Haible  <bruno@clisp.org>
85626
85627         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85628         mbswidth.
85629
85630 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85631             Bruno Haible  <bruno@clisp.org>
85632
85633         * lib/mbswidth.h: Include <wchar.h> only if
85634         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85635         <wchar.h>.
85636         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85637
85638 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85639
85640         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85641         Sync with libc CVS.
85642         * lib/getopt_int.h: New file, also synced from libc.
85643
85644 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85645
85646         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85647         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85648         Bring back getopt.c, getopt.h, getopt1.c.
85649
85650 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85651
85652         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85653         All uses changed.  Check for sa_sigaction member; this fixes
85654         a bug first reported by Jason Andrade in
85655         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85656
85657 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85658
85659         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85660         '#if' expressions.  Unlike the code it replaces, it does not
85661         depend on (defined _SC_PAGESIZE).  However, it does depend on
85662         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85663         first reported by Jason Andrade in
85664         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85665
85666 2004-02-25  Simon Josefsson  <jas@extundo.com>
85667
85668         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85669
85670 2004-02-25  Simon Josefsson  <jas@extundo.com>
85671
85672         * lib/strdup.h: New file.
85673         * lib/strdup.c: Include it.
85674         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85675         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85676
85677 2004-02-23  Karl Berry  <karl@gnu.org>
85678
85679         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85680         (from fencepost.gnu.org:/gd/gnuorg).
85681
85682 2004-02-23  Karl Berry  <karl@gnu.org>
85683
85684         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85685         * config/srclist.txt: add maintain/standards documents.
85686
85687 2004-02-18  Bruno Haible  <bruno@clisp.org>
85688
85689         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85690         Reported by Derek Robert Price <derek@ximbiot.com>.
85691
85692 2004-02-16  Karl Berry  <karl@gnu.org>
85693
85694         * config/mkinstalldirs, install-sh: update from automake.
85695
85696 2004-02-06  Karl Berry  <karl@gnu.org>
85697
85698         * m4/po.m4: update from gettext 0.14.1.
85699
85700 2004-02-06  Karl Berry  <karl@gnu.org>
85701
85702         * lib/config.charset: update from gettext 0.14.1.
85703
85704 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85705
85706         Add comments and code, prompted by suggestions from Bruno Haible
85707         for sh-quote.
85708         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85709         describing the enum quoting_style values.
85710         * lib/quotearg.c (quotearg_alloc): New function.
85711         (quotearg_buffer_restyled): Treat lone { and } as special.
85712         Treat = as special.  Work around bug with older shells
85713         that "see" a '\' that is really the 2nd byte of a multibyte char.
85714         Quote empty string with shell_quoting_style.
85715
85716 2004-02-03  Bruno Haible  <bruno@clisp.org>
85717
85718         * m4/pipe.m4: New file, from GNU gettext.
85719
85720 2004-02-03  Bruno Haible  <bruno@clisp.org>
85721
85722         * lib/pipe.h: New file, from GNU gettext.
85723         * lib/pipe.c: New file, from GNU gettext.
85724
85725 2004-01-27  Bruno Haible  <bruno@clisp.org>
85726
85727         * m4/execute.m4: New file, from GNU gettext.
85728
85729 2004-01-27  Bruno Haible  <bruno@clisp.org>
85730
85731         * lib/execute.h: New file, from GNU gettext.
85732         * lib/execute.c: New file, from GNU gettext.
85733         * lib/w32spawn.h: New file, from GNU gettext.
85734
85735 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85736
85737         Merge from diffutils.
85738
85739         * lib/file-type.c (file_type): Add typed memory objects.
85740         * lib/file-type.h (S_TYPEISTMO): New macro.
85741
85742         * lib/c-stack.h (c_stack_action): Remove argv argument.
85743         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85744         (die): Don't calculate message unless segv_action returns.
85745         (get_stack_location, min_address_from_argv, max_address_from_argv,
85746         volatile stack_base, volatile_stack_size): Remove.
85747         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85748         that every segmentation violation is a stack overflow.  (Ouch!)
85749         See Debian bug 136249 (still outstanding) for more info about why
85750         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85751
85752 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85753
85754         Exit-status fix from coreutils.
85755
85756         Use exit_failure consistently in place of EXIT_FAILURE,
85757         so that program exit statuses are consistent on failure.
85758
85759         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85760         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85761         * lib/argmatch.h: Comment fix to match the above.
85762         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85763         Now a macro referring to exit_failure, instead of a separate
85764         variable.  Include "exitfail.h" to get it.
85765         * lib/xstrtol.h: Include "exitfail.h".
85766         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85767
85768         * lib/long-options.c (parse_long_options): Use prototype
85769         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85770         for clarity.
85771
85772 2004-01-21  Jim Meyering  <jim@meyering.net>
85773
85774         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85775         so as not to conflict with a different-sized __mktime_internal
85776         function in GNU libc.
85777         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85778         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85779
85780 2004-01-20  Karl Berry  <karl@gnu.org>
85781
85782         * config/config.guess: update from config.
85783
85784         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85785
85786 2004-01-20  Bruno Haible  <bruno@clisp.org>
85787
85788         Safer stack allocation.
85789         * lib/setenv.c: Include allocsa.h.
85790         (alloca): Remove fallback definition.
85791         (freea): Remove macro.
85792         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85793         instead of freea.
85794
85795 2004-01-20  Bruno Haible  <bruno@clisp.org>
85796
85797         * m4/eealloc.m4: New file, from GNU gettext.
85798
85799 2004-01-20  Bruno Haible  <bruno@clisp.org>
85800
85801         * m4/allocsa.m4: New file, from GNU gettext.
85802
85803 2004-01-20  Bruno Haible  <bruno@clisp.org>
85804
85805         * lib/xallocsa.h: New file, from GNU gettext.
85806         * lib/xallocsa.c: New file, from GNU gettext.
85807
85808 2004-01-20  Bruno Haible  <bruno@clisp.org>
85809
85810         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85811
85812 2004-01-20  Bruno Haible  <bruno@clisp.org>
85813
85814         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85815         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85816         specially.
85817
85818 2004-01-20  Bruno Haible  <bruno@clisp.org>
85819
85820         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85821         patch.
85822
85823 2004-01-20  Bruno Haible  <bruno@clisp.org>
85824
85825         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85826
85827 2004-01-20  Bruno Haible  <bruno@clisp.org>
85828
85829         * lib/eealloc.h: New file.
85830
85831 2004-01-20  Bruno Haible  <bruno@clisp.org>
85832
85833         * lib/binary-io.h: Avoid warnings on Cygwin.
85834
85835 2004-01-20  Bruno Haible  <bruno@clisp.org>
85836
85837         * lib/allocsa.h: New file, from GNU gettext.
85838         * lib/allocsa.c: New file, from GNU gettext.
85839
85840 2004-01-18  Karl Berry  <karl@gnu.org>
85841
85842         * doc/gpl.texi, doc/lgpl.texi: new files.
85843
85844 2004-01-18  Karl Berry  <karl@gnu.org>
85845
85846         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85847         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85848
85849 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85850
85851         Merge from coreutils.
85852
85853         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85854         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85855         (gl_DEFAULT_POSIX2_VERSION): Move
85856         the documentation from 'configure' into 'config.hin',
85857         so that 'configure --help' isn't burdened by it and
85858         we don't have to worry about its formatting there.
85859         Reword the documentation so that it's more succinct
85860         and can be run together into a single paragraph.
85861         * m4/same.m4 (gl_SAME): Check for pathconf.
85862
85863 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85864
85865         Merge from coreutils.
85866
85867         * lib/posixver.c: Include posixver.h.
85868
85869         * lib/same.c: Include <stdbool.h>, <limits.h>.
85870         (_POSIX_NAME_MAX): Define if not defined.
85871         (MIN): New macro.
85872         (same_name): If file names are silently truncated, report
85873         that the file names are the same if they are the same after
85874         the silent truncation.
85875
85876         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85877         conversion function.
85878         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85879         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85880         longer needed.
85881
85882 2004-01-15  Jim Meyering  <jim@meyering.net>
85883
85884         Merge from coreutils.
85885
85886         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85887         if no library is required.
85888         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85889         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85890         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85891         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85892         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85893         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85894         value, $ac_cv_search_crypt, if it's "none required".
85895         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85896         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85897         not gl_FUNC_GETLOADAVG.
85898         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85899         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85900
85901 2004-01-15  Jim Meyering  <jim@meyering.net>
85902
85903         Merge from coreutils.
85904
85905         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85906         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85907         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85908
85909         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85910         optional configure-time default.
85911
85912         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85913
85914         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85915
85916 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85917
85918         Merge from coreutils.
85919
85920         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85921         value, $ac_cv_search_nanosleep, if it's "none required".
85922
85923 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85924
85925         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85926         with like-named macro in fnmatch.c.
85927         (EXT): Use an internal constant instead.
85928
85929         Merge fnmatch patches from glibc.
85930         * lib/fnmatch.c (mbsinit): Remove define.
85931         Add libc_hidden_ver (__fnmatch, fnmatch).
85932         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
85933         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
85934
85935 2004-01-14  Karl Berry  <karl@gnu.org>
85936
85937         * config/install-sh: update from automake.
85938
85939 2004-01-13  Karl Berry  <karl@gnu.org>
85940
85941         * config/install-sh: update from automake.
85942
85943 2004-01-09  Karl Berry  <karl@gnu.org>
85944
85945         * config/install-sh: update from automake.
85946
85947 2004-01-05  Karl Berry  <karl@gnu.org>
85948
85949         * config/config.{sub,guess}: update from config.
85950
85951 2003-12-31  Karl Berry  <karl@gnu.org>
85952
85953         * config/depcomp: update from automake.
85954
85955 2003-12-14  Karl Berry  <karl@gnu.org>
85956
85957         * lib/config.charset: update from gettext-runtime.
85958
85959 2003-12-03  Paul Eggert  <eggert@twinsun.com>
85960
85961         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
85962         Bug reported by Alfred M. Szmidt.
85963
85964 2003-12-03  Bruno Haible  <bruno@clisp.org>
85965
85966         * m4/gettext.m4: Upgrade from gettext-0.13.
85967         * m4/po.m4: Upgrade from gettext-0.13.
85968         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
85969         * m4/intmax.m4: New file, from gettext-0.13.
85970         * m4/printf-posix.m4: New file, from gettext-0.13.
85971
85972 2003-11-29  Karl Berry  <karl@gnu.org>
85973
85974         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
85975
85976 2003-11-25  Paul Eggert  <eggert@twinsun.com>
85977             Bruno Haible  <bruno@clisp.org>
85978
85979         * lib/printf-parse.h: Don't include sys/types.h.
85980         (ARG_NONE): New macro.
85981         (char_directive): Change type of *arg_index fields to size_t.
85982         * lib/printf-parse.c: Don't include sys/types.h.
85983         (SSIZE_MAX): Remove macro.
85984         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
85985         Remove unnecessary overflow check.
85986         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
85987         fields.
85988
85989 2003-11-25  Bruno Haible  <bruno@clisp.org>
85990
85991         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
85992
85993 2003-11-25  Bruno Haible  <bruno@clisp.org>
85994
85995         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
85996         gt_TYPE_SSIZE_T.
85997
85998 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85999
86000         * modules/alloca: Remove dependency on xalloc.
86001
86002 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86003
86004         * lib/alloca.c: Remove dependency on xalloc module.
86005         (xalloc_die): Remove.
86006         (memory_full) [!defined emacs]: New macro.
86007         [!defined emacs]: Don't include xalloc.h.
86008         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86009         address arithmetic overflows.  Change datatypes a bit to avoid
86010         unnecessary casts.
86011
86012 2003-11-22  Jim Meyering  <jim@meyering.net>
86013
86014         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86015         s/size/size_t/.
86016
86017 2003-11-21  Karl Berry  <karl@gnu.org>
86018
86019         * config/config.{sub,guess}: update from config.
86020
86021 2003-11-18  Karl Berry  <karl@gnu.org>
86022
86023         * config/config.{sub,guess}: update from config.
86024
86025         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86026
86027 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86028
86029         * README: Mention that S+T cannot overflow if S is the size of
86030         an existing object and T is sufficiently small.
86031
86032 2003-11-17  Jim Meyering  <jim@meyering.net>
86033
86034         On systems without utime and without a utimes function capable of
86035         dealing with a NULL struct utimbuf* argument, this utime replacement
86036         could -- in unusual circumstances -- leak a file descriptor.
86037         * lib/utime.c: Include <unistd.h> and <errno.h>.
86038         (utime_null): Be sure to close `fd' and to preserve errno.
86039         Reported by Geoff Collyer via Arnold Robbins.
86040
86041 2003-11-17  Bruno Haible  <bruno@clisp.org>
86042
86043         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86044         (Depends-on): Add xsize.
86045
86046 2003-11-17  Bruno Haible  <bruno@clisp.org>
86047
86048         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86049
86050 2003-11-17  Bruno Haible  <bruno@clisp.org>
86051
86052         * lib/vasnprintf.c (alloca): Remove fallback definition.
86053         (freea): Remove definition.
86054         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86055         Reported by Paul Eggert.
86056
86057 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86058             Bruno Haible  <bruno@clisp.org>
86059
86060         Protect against address arithmetic overflow.
86061         * lib/printf-args.h: Include stddef.h.
86062         (arguments): Change type of field 'count' to size_t.
86063         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86064         'unsigned int' where appropriate.
86065         * lib/printf-parse.h: Include sys/types.h.
86066         (char_directive): Change type of *arg_index fields to ssize_t.
86067         (char_directives): Change type of fields 'count', max_*_length to
86068         size_t.
86069         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86070         (SSIZE_MAX): Define fallback value.
86071         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86072         instead of 'int' where appropriate. Check a_allocated, d_allocated
86073         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86074         * lib/vasnprintf.c: Include xsize.h.
86075         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86076         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86077         overflow. Avoid wraparound when converting a width or precision from
86078         decimal to binary.
86079
86080 2003-11-16  Bruno Haible  <bruno@clisp.org>
86081
86082         Update from GNU gettext.
86083         * lib/printf-parse.c: Generalize to it can be compiled for wide
86084         strings.
86085         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86086         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86087         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86088         SNPRINTF): New macros.
86089         Don't include <alloca.h> if the file is used inside libintl.
86090         (local_wcslen): New function, for Solaris 2.5.1.
86091         (VASNPRINTF): Use it instead of wcslen.
86092
86093 2003-11-16  Bruno Haible  <bruno@clisp.org>
86094
86095         * lib/xsize.h (xmax): New function.
86096         (xsum, xsum3, xsum4): Declare as "pure" functions.
86097
86098 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86099
86100         * modules/xalloc (Files): Undo latest change, since xalloc.h
86101         no longer needs SIZE_MAX or PTRDIFF_MAX.
86102
86103 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86104
86105         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86106         gl_PTRDIFF_MAX.
86107
86108 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86109
86110         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86111         "return", to pacify some unknown compiler.  Problem reported
86112         by Joerg Schilling.
86113
86114 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86115
86116         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86117         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86118         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86119         heuristic is just as accurate as far as we know, and it removes a
86120         dependency on size_max.m4 and ptrdiff_max.m4.
86121
86122 2003-11-11  Bruno Haible  <bruno@clisp.org>
86123
86124         * modules/xsize (Files): Add m4/size_max.m4.
86125         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86126
86127 2003-11-11  Bruno Haible  <bruno@clisp.org>
86128
86129         * m4/size_max.m4: New file.
86130         * m4/ptrdiff_max.m4: New file.
86131         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86132         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86133         (gl_XALLOC): Invoke it.
86134
86135 2003-11-11  Bruno Haible  <bruno@clisp.org>
86136
86137         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86138         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86139         defined.
86140
86141 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86142
86143         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86144         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86145         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86146         From Bruno Haible.
86147         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86148         not (size_t) -1, since it's defined here.
86149
86150 2003-11-09  Karl Berry  <karl@gnu.org>
86151
86152         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86153
86154 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86155
86156         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86157         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86158         Reject sizes of exactly SIZE_MAX bytes.
86159         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86160         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86161
86162 2003-11-05  Bruno Haible  <bruno@clisp.org>
86163
86164         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86165         SIZE_MAX defined in <limits.h> on Solaris.
86166
86167 2003-11-04  Jim Meyering  <jim@meyering.net>
86168
86169         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86170         variable names, rather than @VAR@.
86171         * modules/poll: Likewise.
86172
86173 2003-11-04  Bruno Haible  <bruno@clisp.org>
86174
86175         * modules/xsize: New file.
86176         * modules/linebreak: Depend on xsize.
86177         * MODULES.html.sh (func_all_modules): Add xsize.
86178
86179 2003-11-04  Bruno Haible  <bruno@clisp.org>
86180
86181         * m4/xsize.m4: New file.
86182
86183 2003-11-04  Bruno Haible  <bruno@clisp.org>
86184
86185         * lib/xsize.h: New file.
86186         * lib/linebreak.c: Include xsize.h.
86187         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86188         argument for overflow.
86189         Suggested by Paul Eggert.
86190
86191 2003-11-03  Karl Berry  <karl@gnu.org>
86192
86193         * config/config.{guess,sub}: update from config.
86194
86195 2003-11-03  Jim Meyering  <jim@meyering.net>
86196
86197         * modules/userspec (lib_SOURCES): Add userspec.h.
86198         (Include): Add "userspec.h".
86199         Improve description.
86200
86201 2003-11-03  Jim Meyering  <jim@meyering.net>
86202
86203         * lib/userspec.c: Include "userspec.h".
86204         * lib/userspec.h: New file.
86205
86206 2003-11-03  Bruno Haible  <bruno@clisp.org>
86207
86208         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86209
86210 2003-11-03  Bruno Haible  <bruno@clisp.org>
86211
86212         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86213         available, to avoid (extremely rare) race condition.
86214         Suggested by Paul Eggert.
86215
86216 2003-11-02  Karl Berry  <karl@gnu.org>
86217
86218         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86219
86220 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86221
86222         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86223         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86224         (read_filesystem_list): Set and use me_type_malloced.
86225         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86226         whatever the type happens to be), for brevity and consistency.
86227         Check for size calculation overflow on Alphas running OSF/1.
86228
86229 2003-10-31  Jim Meyering  <jim@meyering.net>
86230
86231         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86232
86233         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86234
86235 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86236             Bruno Haible  <bruno@clisp.org>
86237
86238         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86239         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86240
86241 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86242
86243         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86244         netbsd*-gnu*.  Suggested by Robert Millan.
86245
86246 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86247
86248         * modules/group-member: Depend on stdbool.
86249
86250 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86251
86252         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86253
86254 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86255
86256         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86257         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86258         after the 'gnu' in these cases.  This fixes some bugs in the
86259         previous change, and is based on suggestions by Robert Millan.
86260
86261 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86262
86263         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86264         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86265         no longer needed.
86266         * lib/quotearg.c (quotearg_n_options): Use it.
86267         * lib/group-member.c: Include <stdbool.h>.
86268         (free_group_info): Arg is now const *; don't free arg.
86269         (get_group_info): Now returns bool and accepts struct group_info *,
86270         rather than returning a malloc'ed struct group_info *.
86271         All uses changed.  Check for overflow in internal size calculation.
86272
86273         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86274         rather than xmalloc/xrealloc.
86275         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86276         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86277         conformance bug: the old code used a pointer after freeing the
86278         storage that it addressed.
86279         * lib/hash.c (hash_initialize): Simplify the code by using
86280         xalloc_oversized rather than doing it by hand.
86281         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86282         the buffer preserved.  Use free and xmalloc instead.
86283         * lib/quotearg.c (quotearg_n_options): Likewise.
86284         Use a simpler test for size overflow.  Don't use xalloc_oversized
86285         because unsigned int might be wider than size_t (!); this suggests
86286         that we should switch from unsigned int to size_t for slot numbers.
86287
86288 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86289
86290         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86291         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86292         NetBSD kernels.  Requested by Richard Stallman.
86293
86294 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86295
86296         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86297         to allocate the returned structure.  Do not allocate a subarray,
86298         as x2nrealloc will do that.
86299         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86300         instead of xnrealloc.
86301         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86302
86303 2003-10-27  Bruno Haible  <bruno@clisp.org>
86304
86305         * lib/stdbool_.h: Better support for BeOS.
86306
86307 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86308
86309         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86310         now uses inline.
86311
86312 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86313
86314         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86315         callers that want to do their own size-overflow checking.  Include
86316         <stdbool.h>, since xalloc_oversized returns bool.
86317         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86318         to use xalloc_oversized.
86319
86320         Add two functions x2realloc, x2nrealloc, for programs that grow
86321         arrays dynamically by doubling their sizes.
86322         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86323         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86324         New functions.
86325
86326         Port to C99 semantics for 'inline' of external functions.
86327         Bug reported by Bruno Haible.
86328         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86329         with the old contents of xnmalloc.
86330         (xnmalloc, xmalloc): Use it.
86331         (xnrealloc_inline): New static inline function,
86332         with the old contents of xnrealloc.
86333         (xnrealloc, xrealloc): Use it.
86334
86335         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86336         that.
86337
86338 2003-10-26  Karl Berry  <karl@gnu.org>
86339
86340         * config/srclist.txt (COPYING.DOC): no longer available from
86341         /gd/gnuorg; don't know where the ultimate source is.
86342
86343 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86344
86345         Fix several address-calculation bugs in the hash modules,
86346         plus some minor code cleanup.
86347
86348         * lib/hash.h: Include <stdbool.h>, for bool.
86349         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86350         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86351         hash_get_n_entries, hash_get_max_bucket_length,
86352         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86353         hash_rehash): Use size_t rather than unsigned.
86354         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86355         hash_get_n_buckets_used, hash_get_n_entries,
86356         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86357         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86358         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86359         Likewise.
86360         (SIZE_MAX): Define if not defined.
86361         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86362         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86363         hash_print):
86364         Use const * when possible.
86365         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86366         (check_tuning): Fix bug: if tuning parameters were very close to
86367         0 or 1, rounding errors could have caused subscript violations.
86368         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86369         (hash_initialize): Add 'fail:' label
86370         to free table and return NULL, and use it to simplify code.
86371         Use calloc rather than clearing the storage ourself.
86372         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86373         buffer size calculations.
86374         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86375         Include <stddef.h>, for size_t.
86376         * lib/hash-pjw.c (hash_pjw): Likewise.
86377         Switch to method described by Bruno Haible.
86378         Include <limits.h>, for CHAR_BIT.
86379         (SIZE_BITS): New macro.
86380
86381 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86382
86383         * m4/getline.m4 (AM_FUNC_GETLINE):
86384         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86385         hosts.  Problem reported by Derek Robert Price in
86386         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86387         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86388         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86389
86390 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86391
86392         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86393         ceiling the allocation at NMAX bytes rather than silently
86394         discarding input bytes before NMAX is reached.  This makes
86395         a difference only if NMAX exceeds SIZE_MAX / 2.
86396
86397         * lib/obstack.c: Merge from glibc.
86398         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86399         Add libc_hidden_def (_obstack_newchunk).
86400         (_obstack_free) [! defined _LIBC]: Remove.
86401         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86402         a clone of the function body.
86403         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86404         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86405
86406         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86407         glibc.
86408         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86409         arg to memcpy.
86410
86411         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86412         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86413         Don't use lvalue casts, as GCC plans to remove support for them
86414         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86415         was also present in the non-GCC version, indicating that this
86416         code had always been buggy and had never been widely used.
86417         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86418         Use the fast variant of each macro, rather than copying the
86419         definiens of the fast variant; that way, we'll be more likely to
86420         catch future bugs in the fast variants.
86421
86422 2003-10-20  Bruno Haible  <bruno@clisp.org>
86423
86424         * modules/wait-process: New file.
86425         * MODULES.html.sh (func_all_modules): Add wait-process.
86426
86427 2003-10-20  Bruno Haible  <bruno@clisp.org>
86428
86429         * m4/wait-process.m4: New file.
86430
86431 2003-10-20  Bruno Haible  <bruno@clisp.org>
86432
86433         * lib/wait-process.h: New file, from GNU gettext.
86434         * lib/wait-process.c: New file, from GNU gettext.
86435
86436 2003-10-19  Jim Meyering  <jim@meyering.net>
86437
86438         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86439         HPUX 10.20.
86440
86441 2003-10-18  Karl Berry  <karl@gnu.org>
86442
86443         * config/config.guess: update from config.
86444
86445 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86446
86447         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86448         (getgroups): First arg is int, not size_t.
86449         Don't let 'free' mangle errno.
86450
86451 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86452
86453         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86454
86455 2003-10-16  Karl Berry  <karl@gnu.org>
86456
86457         * config/config.{guess,sub}: update from config.
86458
86459 2003-10-16  Jim Meyering  <jim@meyering.net>
86460
86461         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86462         memcpy.
86463
86464 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86465
86466         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86467         (SIZE_MAX): Remove.
86468         (new_exclude, add_exclude_file): Initial size no longer needs to
86469         be a power of 2.
86470         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86471         our own address arithmetic overflow checking.
86472
86473         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86474         (fnmatch): Do not alloca more than 2000 wide characters;
86475         instead, use malloc for large buffers.
86476         Check for address arithmetic overflow, and return -1
86477         with errno set to ENOMEM in that case.
86478         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86479         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86480         instead, return -1.  Check for address arithmetic overflow.
86481
86482 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86483
86484         Handle invalid suffixes and overflow independently, so that
86485         callers can treat them independently as needed.  Fix some bugs in
86486         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86487         suffix for a human-readable blocksize.  The major caller-visible
86488         change is the addition of a new
86489         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86490         that both overflow and suffix chars were found.
86491
86492         * lib/human.c (humblock): Don't check separately for invalid suffix
86493         char; that is xstrtoumax's job (now that its bug is fixed).
86494         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86495         INTMAX_MAX]: New macros.
86496         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86497         TYPE_MAXIMUM): New macros.
86498         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86499         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86500         if overflow occurs, as it's what __strtol does and it's more useful
86501         in practice.
86502         (__xstrtol): If __strtol reports some error other than ERANGE,
86503         reflect it to the caller as LONGINT_INVALID.  If it reports
86504         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86505         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86506         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86507         value.
86508         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86509         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86510         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86511         [defined UINTMAX_MAX]: New macros.
86512
86513 2003-10-14  Bruno Haible  <bruno@clisp.org>
86514
86515         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86516
86517 2003-10-14  Bruno Haible  <bruno@clisp.org>
86518
86519         * m4/sig_atomic_t: New file, from GNU gettext.
86520         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86521
86522 2003-10-14  Bruno Haible  <bruno@clisp.org>
86523
86524         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86525         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86526         Also use volatile where needed.
86527
86528 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86529
86530         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86531         Change maintainer from Bruno Haible to 'all'.
86532
86533 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86534
86535         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86536
86537 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86538
86539         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86540         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86541         and define in terms of the other primitives.
86542         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86543         (SIZE_MAX): Define if not already defined.
86544         (array_size_overflow): New function.
86545         (xalloc_die): Abort instead of exiting if 'error' returns.
86546         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86547         (xmalloc, xrealloc): Use them.
86548         (xcalloc): Check for address arithmetic overflow.
86549         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86550         a bit faster than strcpy.
86551
86552 2003-10-10  Simon Josefsson  <jas@extundo.com>
86553
86554         * modules/argp (Depends-on): Add restrict and strcase.
86555
86556 2003-10-10  Simon Josefsson  <jas@extundo.com>
86557
86558         * m4/argp.m4: Add AC_C_INLINE.
86559
86560 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86561
86562         Merge getpass from libc, plus a few fixes.
86563
86564         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86565         Include <stdbool.h>.
86566         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86567         __fsetlocking to empty.
86568         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86569         do include <bits/libc-lock.h>.
86570         Do not include <fcntl.h>; not needed.
86571         [_LIBC]: Include <wchar.h>.
86572         (NOTCANCEL_MODE): New macro.
86573         (flockfile, funlockfile) [_LIBC]: New macros.
86574         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86575         [!_LIBC]: New macros.
86576         (call_fclose): New function.
86577         (getpass): Use it.  Save tty stream separately; this simplifies the
86578         code and makes it more reliable if stdin happens to equal stdout.
86579         Invoke __fsetlocking on tty.
86580         Handle thread cancellation if needed.
86581         Namespace cleanup (use __tcgetattr, __getline).
86582         Use bool for Booleans.
86583         [USE_IN_LIBIO]: Handle wide streams.
86584         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86585         stream might go where.
86586
86587         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86588         doesn't have to include <stdio.h> before us.
86589         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86590         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86591         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86592         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86593         if not declared, so that we can use getpass.c code from libc without
86594         rewriting it.
86595         (flockfile, ftrylockfile, funlockfile): New macros.
86596
86597 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86598
86599         * modules/getpass: Depend on stdbool.
86600
86601 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86602
86603         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86604
86605 2003-10-07  Karl Berry  <karl@gnu.org>
86606
86607         * config/config.{guess,sub}: update from config.
86608
86609 2003-10-06  Jim Meyering  <jim@meyering.net>
86610             Bruno Haible  <bruno@clisp.org>
86611
86612         This lets translators provide better translations for the
86613         "Written by ..." part of --version output.
86614         * lib/version-etc.h: Include stdarg.h.
86615         (version_etc_copyright): Declare as readonly.
86616         (version_etc): Make this function variadic with a NULL-terminated list
86617         of author name strings.
86618         (version_etc_va): New declaration.
86619         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86620         (version_etc_copyright): Declare as readonly.
86621         (version_etc_va): New function. Provide a different translatable string
86622         for each possible number of authors < 10. Abbreviate when there are 10
86623         authors or more.
86624         (version_etc): Make this function variadic. Call version_etc_va.
86625         Suggestion from Gary V. Vaughan.
86626
86627         * lib/long-options.h (parse_long_options): Change prototype: the
86628         authors string is moved to the end and becomes variadic.
86629         * lib/long-options.c: Include stdarg.h.
86630         (parse_long_options): Make this function variadic, too.
86631         Call version_etc_va, not version_etc.
86632
86633 2003-10-06  Bruno Haible  <bruno@clisp.org>
86634
86635         * modules/version-etc-2: Remove file.
86636         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86637
86638 2003-10-06  Bruno Haible  <bruno@clisp.org>
86639
86640         * modules/fatal-signal: New file.
86641         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86642
86643 2003-10-06  Bruno Haible  <bruno@clisp.org>
86644
86645         * m4/fatal-signal.m4: New file.
86646         * m4/signalblocking.m4: New file, from GNU gettext.
86647
86648 2003-10-06  Bruno Haible  <bruno@clisp.org>
86649
86650         * lib/version-etc-2.h: Remove file.
86651         * lib/version-etc-2.c: Remove file.
86652
86653 2003-10-06  Bruno Haible  <bruno@clisp.org>
86654
86655         * lib/fatal-signal.h: New file, from GNU gettext.
86656         * lib/fatal-signal.c: New file, from GNU gettext.
86657
86658 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86659
86660         * README: Rework advice for preventing empty .o files.
86661         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86662         not <sys/types.h>.
86663
86664 2003-10-04  Karl Berry  <karl@gnu.org>
86665
86666         * lib/argp*: update from libc.
86667
86668 2003-10-04  Karl Berry  <karl@gnu.org>
86669
86670         * config/config.{guess,sub}: update from config.
86671
86672 2003-10-02  Bruno Haible  <bruno@clisp.org>
86673
86674         * modules/lchown (Include): Add lchown.h.
86675         * modules/time_r (Include): Use "..." syntax.
86676         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86677
86678 2003-10-01  Simon Josefsson  <jas@extundo.com>
86679
86680         * MODULES.html.sh (func_all_modules): Move gethostname from section
86681         'based on' to section 'lacking' POSIX:2001.
86682
86683 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86684
86685         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86686         to output mode on the same stream.
86687
86688 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86689
86690         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86691         Fix arg typo in previous patch.
86692
86693 2003-09-28  Jim Meyering  <jim@meyering.net>
86694
86695         * lib/error.c: Correct cpp indentation.
86696
86697 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86698
86699         * modules/free: New file.
86700
86701 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86702
86703         * m4/free.m4: New file.
86704
86705 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86706
86707         * lib/minmax.h (MIN, MAX)
86708         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86709         Omit the special code that used __typeof__, since we worry that
86710         it could be more trouble than it's worth.  See:
86711         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86712         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86713
86714         * lib/free.c: New file.
86715
86716 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86717
86718         Trivial fixes to Makefile.am parts of module listings.
86719         * modules/strstr: Append strstr.h to lib_SOURCES.
86720         * modules/strcase: Likewise, for strcase.h.
86721
86722 2003-09-27  Karl Berry  <karl@gnu.org>
86723
86724         * config/mkinstalldirs: update from automake.
86725
86726 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86727
86728         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86729         (error_tail): Do not loop, reallocating temporary buffer, since
86730         the output cannot contain more wide characters than the input
86731         contains bytes, the size must be big enough already.  This avoids
86732         one potential size overflow calculation.  Check for size overflow
86733         when calculating temporary buffer size.  Free temporary buffer
86734         when done, if it was allocated with malloc; this plugs a memory
86735         leak.  Remove casts from void * to pointers, that are no longer
86736         needed now that we're assuming C89 or better.
86737
86738         Merge error changes from glibc.
86739
86740         * lib/error.c, error.h: Update copyright notice header to match glibc.
86741         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86742         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86743         Disable cancellation while printing error.
86744         * lib/error.h: Prepend __ to parameter names.
86745
86746 2003-09-26  Jim Meyering  <jim@meyering.net>
86747
86748         * lib/error.c (error_tail): Move some declarations
86749         into inner scope where the local variables are used.
86750
86751 2003-09-26  Bruno Haible  <bruno@clisp.org>
86752
86753         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86754         stpncpy().
86755         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86756
86757 2003-09-26  Bruno Haible  <bruno@clisp.org>
86758
86759         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86760         (stpncpy): Define as alias for gnu_stpncpy.
86761         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86762
86763 2003-09-25  Simon Josefsson  <jas@extundo.com>
86764
86765         * lib/xgetdomainname.h: New file.
86766         * lib/xgetdomainname.c: New file.
86767
86768 2003-09-25  Simon Josefsson  <jas@extundo.com>
86769             Bruno Haible  <bruno@clisp.org>
86770
86771         * modules/getdomainname: New file.
86772         * modules/xgetdomainname: New file.
86773         * MODULES.html.sh (func_all_modules): Add getdomainname,
86774         xgetdomainname.
86775
86776 2003-09-25  Simon Josefsson  <jas@extundo.com>
86777             Bruno Haible  <bruno@clisp.org>
86778
86779         * m4/getdomainname.m4: New file.
86780
86781 2003-09-25  Simon Josefsson  <jas@extundo.com>
86782             Bruno Haible  <bruno@clisp.org>
86783
86784         * lib/getdomainname.h: New file.
86785         * lib/getdomainname.c: New file.
86786
86787 2003-09-25  Karl Berry  <karl@gnu.org>
86788
86789         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86790
86791 2003-09-25  Karl Berry  <karl@gnu.org>
86792
86793         * config/install-sh: update from automake.
86794
86795 2003-09-25  Bruno Haible  <bruno@clisp.org>
86796
86797         * modules/version-etc-2: New file, from modules/version-etc with
86798         modifications.
86799         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86800
86801 2003-09-25  Bruno Haible  <bruno@clisp.org>
86802
86803         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86804         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86805
86806 2003-09-24  Simon Josefsson  <jas@extundo.com>
86807
86808         * modules/xgethostname: Add xgethostname.h.
86809
86810 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86811
86812         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86813         the buffer associated with the argument.  Bug reported by
86814         Simon Josefsson.
86815
86816 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86817
86818         * README: Document assumptions that 'int' is at least 32 bits
86819         wide, that integer arithmetic is 2's complement without overflow,
86820         that there are no holes in integer values, that adding sizes of
86821         two nonoverlapping objects can't overflow, and that all-bits-zero
86822         yields scalar zero.  Fix spelling and capitalization typos.
86823
86824 2003-09-19  Karl Berry  <karl@gnu.org>
86825
86826         * lib/argp.h: update from libc.
86827
86828 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86829
86830         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86831         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86832         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86833
86834 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86835
86836         * gnulib-tool: Use "test -h", not "test -L", for portability
86837         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86838         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86839         (sed_extract_prog): Issue s commands one-by-one, rather than
86840         using \| in one s command.
86841
86842 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86843
86844         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86845         input error, instead of returning NULL the next time we are called
86846         (and therefore losing track of errno).
86847
86848 2003-09-16  Bruno Haible  <bruno@clisp.org>
86849
86850         * gnulib-tool (func_create_testdir): Warn about duplicated
86851         dependencies.
86852
86853 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86854
86855         * modules/argmatch, modules/fatal, modules/obstack,
86856         modules/xalloc, modules/xgethostname: Sort dependencies by
86857         importance, not alphabetically.
86858
86859 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86860
86861         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86862         fails, so that the caller gets the proper errno.
86863
86864         * lib/readutmp.c (read_utmp): Likewise.
86865         Check for fstat error.  Close stream and free storage
86866         when failing.
86867
86868 2003-09-14  Karl Berry  <karl@gnu.org>
86869
86870         * config/srclist.txt (strdup.c): disable for c89 changes.
86871
86872 2003-09-14  Jim Meyering  <jim@meyering.net>
86873
86874         * lib/getloadavg.c: Correct cpp indentation.
86875         * lib/strdup.c: Likewise.
86876         * lib/vasnprintf.c: Likewise.
86877
86878 2003-09-14  Bruno Haible  <bruno@clisp.org>
86879
86880         * modules/fwriteerror: New file.
86881         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86882
86883 2003-09-14  Bruno Haible  <bruno@clisp.org>
86884
86885         * lib/fwriteerror.h: New file.
86886         * lib/fwriteerror.c: New file.
86887
86888 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86889
86890         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86891         modules/xgethostname, modules/xalloc: Depend on exit.
86892
86893 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86894
86895         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86896
86897         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86898         and AC_MINIX, too, so that their extensions are available.
86899
86900         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86901         This macro has been superseded by gl_BACKUPFILE.
86902
86903         More patches to assume C89 or better.
86904
86905         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86906
86907         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86908         unconditionally.
86909         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86910         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86911         Include <string.h>, <stdlib.h> unconditionally.
86912         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86913         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86914         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86915         headers or for string.h.
86916         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86917         or strtoul.
86918
86919         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86920         headers.
86921         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86922         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86923         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86924         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86925         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86926         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86927         memcpy, memset.
86928         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
86929         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
86930         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
86931         strtol.
86932         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
86933         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
86934         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
86935         strtoul.
86936
86937 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86938
86939         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
86940         * lib/obstack.c [!defined _LIBC]: Likewise.
86941         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
86942         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
86943         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
86944
86945         More changes to assume C89 or better.
86946
86947         * lib/error.c (error_tail): Assume vprintf.
86948
86949         * lib/argmatch.c (getenv): Remove decl.
86950         * lib/progreloc.c (get_full_program_name): Define via prototype.
86951         * lib/setenv.c (clearenv): Likewise.
86952         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
86953         needed.
86954         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
86955         (malloc, memcpy): Remove decls.
86956         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
86957         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
86958         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86959         (memcpy): Remove macro.
86960         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
86961         (__P): Remove.  All uses removed.
86962         (PTR): Remove.  All uses changed to void *.
86963         (CHAR_BIT, NULL): Remove.
86964         (spaces, zeros, memset_space, memset_zero)
86965         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
86966         Remove.
86967         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
86968         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
86969         Define with prototype.
86970         Remove now-unnecessary prototype decl.
86971         (extra_args_spec): Assume ANSI C.  All uses changed.
86972         (extra_args_spec_iso): Remove.
86973         (my_strftime, emacs_strftimeu): Define via prototype.
86974         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
86975         unconditionally.
86976         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
86977         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
86978         (strtoul, strtol): Remove decls.
86979         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
86980         LONG_MAX): Remove.
86981         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86982         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
86983         (LOCALE_PARAM_PROTO): New macro.
86984         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
86985         (INTERNAL (strtol), strtol): Define with a prototype.
86986         (PARAMS): Remove.  All uses removed.
86987         * lib/tempname.c: Include <string.h> unconditionally.
86988         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
86989         * lib/xgethostname.c (main): Define with a prototype.
86990         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
86991         Include <stdlib.h> unconditionally.
86992         (calloc, malloc, realloc, free): Remove decls.
86993         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
86994         Include <stdlib.h> unconditionally.  Sort include file names.
86995         (strtod): Remove.
86996         (xstrtod): Define with a prototype.
86997         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
86998         (strtol, strtoul): Remove decls.
86999
87000 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87001
87002         More patches to assume C89 or better.
87003         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87004         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87005         string.h, memchr, STDC_HEADERS.
87006
87007 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87008
87009         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87010         Include <stdlib.h>, <string.h> unconditionally.
87011         Remove now-unnecessary cast to char *.
87012         * lib/strnlen.c: Include <string.h> unconditionally.
87013         * lib/yesno.c (yesno): Define with a prototype.
87014
87015 2003-09-11  Bruno Haible  <bruno@clisp.org>
87016
87017         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87018
87019 2003-09-10  Jim Meyering  <jim@meyering.net>
87020
87021         * lib/error.c: Correct indentation of cpp directives.
87022
87023 2003-09-10  Bruno Haible  <bruno@clisp.org>
87024
87025         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87026         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87027         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87028         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87029         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87030         <stdlib.h> and <string.h> checks.
87031         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87032         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87033
87034 2003-09-10  Bruno Haible  <bruno@clisp.org>
87035
87036         * lib/strcspn.c: Include <string.h> unconditionally.
87037         * lib/strpbrk.c: Include <string.h> unconditionally.
87038         * lib/strstr.c: Include <string.h> unconditionally.
87039         * lib/unicodeio.c: Include <string.h> unconditionally.
87040         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87041         * lib/unsetenv.c: Likewise.
87042         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87043         * lib/yesno.c: Include <stdlib.h> unconditionally.
87044         (rpmatch): Add prototype.
87045
87046 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87047
87048         More patches to assume C89 or better.
87049         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87050         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87051         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87052         or for string.h.
87053         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87054         stdlib.h.
87055         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87056         C headers.
87057         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87058         string.h.
87059         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87060         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87061         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87062         or for string.h.
87063         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87064         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87065         C headers.
87066         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87067         memcpy.
87068         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87069         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87070         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87071         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87072         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87073         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87074         string.h, free.
87075         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87076         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87077         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87078         C headers, or for string.h.
87079         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87080         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87081         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87082         headers, memory.h, stdlib.h, string.h, strings.h.
87083         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87084         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87085         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87086         strchr.
87087         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87088         headers, memory.h, string.h.
87089         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87090         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87091         free.
87092         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87093         headers.
87094         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87095         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87096         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87097         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87098         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87099
87100 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87101
87102         More K&R removal.
87103
87104         * lib/acosl.c (main): Use a prototype.
87105         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87106         tanl.c: Likewise.
87107
87108         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87109
87110         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87111         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87112         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87113         with a prototype.
87114         * lib/getopt.c (const): Remove macro.
87115         Include <string.h> unconditionally.
87116         (my_index): Remove; all uses changed to strchr.
87117         (strlen): Remove decl.
87118         (exchange): Remove forward decl; no longer needed.
87119         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87120         Define with prototype.
87121         * lib/getopt1.c (const): Remove macro.
87122         (getopt_long, getopt_long_only, main): Define with prototype.
87123
87124         * lib/getugroups.c: Include <string.h> unconditionally.
87125
87126         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87127         (getusershell, setusershell, endusershell, readname, main):
87128         Define with prototypes.
87129
87130         * lib/group-member.c: Include group-member.h first.
87131         Include <stdlib.h> unconditionally.
87132
87133         * lib/hard-locale.c: Include hard-locale.h first.
87134         Include <stdlib.h>, <string.h> unconditionally.
87135
87136         * lib/hash.c (free, malloc): Remove decls.
87137         Include <stdlib.h> unconditionally.
87138
87139         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87140         (getenv): Do not declare.
87141
87142         * lib/idcache.c: Include <string.h> unconditionally.
87143
87144         * lib/long-options.c: Include long-options.h first, to test interface.
87145         Include <stdlib.h> unconditionally.
87146
87147         * lib/makepath.c: Include makepath.h first, to test interface.
87148         Include <stdlib.h> and <string.h> unconditionally.
87149
87150         * lib/linebuffer.c: Include <stdlib.h>.
87151         (free): Remove decl.
87152
87153         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87154         stddef.h. rpl_malloc returns void *, not char *.
87155         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87156         prototype.
87157
87158         * lib/md5.h: Include <limits.h> unconditionally.
87159         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87160         (__P): Remove; all uses removed.
87161         * lib/md5.c: Include "md5.h" first.
87162         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87163         md5_buffer, md5_process_bytes, md5_process_block):
87164         Define with prototypes.
87165         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87166         * lib/sha.c: Include "sha.h" first.
87167         Include <stdlib.h>, <string.h> unconditionally.
87168
87169         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87170         * lib/memcmp.c (__ptr_t): Likewise.
87171         * lib/memrchr.c (__ptr_t): Likewise.
87172         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87173         Include <string.h> unconditionally.
87174         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87175         * lib/memchr.c: Include <stdlib.h> unconditionally.
87176         * lib/memchr.c (LONG_MAX): Remove.
87177         * lib/memrchr.c (LONG_MAX): Likewise.
87178         * lib/memchr.c (__memchr): Define via a prototype.
87179         * lib/memrchr.c (__memrchr): Likewise.
87180         * lib/memcmp.c (__P): Remove, and remove all uses.
87181         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87182         Remove forward decls; no longer needed.
87183         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87184         Use types required by C89 in prototype.
87185
87186         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87187         * lib/savedir.c: Likewise.
87188         * lib/mkdir.c (free): Remove decl.
87189         * lib/rmdir.c (rmdir): Define with a prototype.
87190         * lib/savedir.c: Include savedir.h first, to test interface.
87191
87192         * lib/mktime.c (STDC_HEADERS): Remove.
87193         Include <stdlib.h>, <string.h> unconditionally.
87194
87195         * lib/modechange.c: Include <stdlib.h> unconditionally.
87196         (malloc): Remove decl.
87197
87198         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87199         (free): Remove decl.
87200
87201         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87202         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87203         (This type really should be intptr_t, but that's a C99ism.)
87204         (_obstack_memcpy): Remove: all uses changed to memcpy.
87205         Include <string.h> unconditionally.
87206         (struct obstack): Assume __STDC__ for types of members
87207         chunkfun, freefun, extra_arg.
87208         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87209         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87210         obstack_begin, obstack_specify_allocation,
87211         obstack_specify_allocation_with_arg, obstack_chunkfun,
87212         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87213         Remove unprototyped decls and the macros that use them.
87214         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87215         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87216         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87217         (defined __STDC__ && __STDC__)]:
87218         Remove nonprototyped code.
87219         Include <stdlib.h> unconditionally.
87220         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87221         _obstack_allocated_p, _obstack_free, obstack_free,
87222         _obstack_memory_used, print_and_abort):
87223         Define using prototypes.
87224         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87225         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87226         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87227         obstack_next_free, obstack_object_size, obstack_room) [0]:
87228         Remove unused, unprototyped code.
87229
87230         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87231
87232         * lib/physmem.c (physmem_total, physmem_available, main): Define
87233         with prototypes.
87234
87235         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87236         (main): Define with a prototype.
87237
87238         * lib/posixver.c (getenv): Remove decl.
87239
87240         * lib/putenv.c (malloc): Returns void *, not char *.
87241         Include <string.h> unconditionally.
87242         (strchr, memcpy, NULL): Do not define.
87243
87244         * lib/readtokens.c: Include readtokens.h first, to test interface.
87245         Include <stdlib.h>, <string.h> unconditionally.
87246         (init_tokenbuffer): Define with a prototype.
87247
87248         * lib/regex.c (PARAMS): Remove.  All uses removed.
87249         All uses of _RE_ARGS removed, too.
87250         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87251         unconditionally.
87252         (bzero): Assume memset exists.
87253         (memcmp, memcpy, NULL): Remove.
87254         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87255         char, or assignments to local vars of type signed char.
87256         (init_syntax_once, PREFIX(extract_number_and_incr),
87257         PREFIX(print_partial_compiled_pattern),
87258         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87259         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87260         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87261         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87262         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87263         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87264         wcs_compile_range, byte_compile_range, truncate_wchar,
87265         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87266         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87267         count_mbs_length, wcs_re_match_2_internal,
87268         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87269         PREFIX(alt_match_null_string_p),
87270         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87271         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87272         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87273         now-unnecessary declaration, if any.
87274         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87275         regcomp, regexec):
87276         Remove now-unnecessary casts among pointer types.
87277         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87278
87279         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87280         (free): Remove decl.
87281
87282         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87283
87284         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87285         (free): Remove decl.
87286
87287         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87288         * lib/xgetcwd.c: Likewise.
87289
87290         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87291         (free): Remove decl.
87292
87293         * lib/strchrnul.c (strchrnul): Define with a prototype.
87294         Fix bug: c_in was not converted to char before searching.
87295
87296         The following changes are not K&R related:
87297
87298         * lib/group-member.h: Include <sys/types.h>, so that this file is
87299         self-contained.
87300         * lib/makepath.h: Likewise.
87301
87302         * lib/getusershell.c (readname, default_index, line_size, readname):
87303         Use size_t, not int, for sizes.
87304         (readname): If the size overflows, report an error instead of
87305         looping forever.
87306
87307 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87308
87309         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87310         libc.
87311
87312 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87313
87314         * README: New section: portability guidelines.
87315
87316 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87317
87318         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87319         C89 spec.
87320
87321 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87322
87323         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87324
87325 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87326
87327         Assume C89 or better; remove K&R cruft.
87328         A few of these changes were first proposed by Derek Robert Price
87329         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87330
87331         * lib/addext.c: Include <string.h> unconditionally.
87332         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87333         Don't declare getenv or malloc.
87334
87335         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87336         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87337         (NULL): Remove.
87338         (find_stack_direction, alloca): Use prototypes.
87339
87340         * lib/atexit.c (atexit): Define using a prototype.
87341
87342         * lib/basename.c, dirname.c, stripslash.c:
87343         Include <string.h> unconditionally.
87344
87345         * lib/bcopy.c: Include <stddef.h>.
87346         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87347
87348         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87349
87350         * lib/error.h (error, error_at_line, error_print_progname)
87351         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87352         * lib/error.c: Include error.h first, to check interface.
87353         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87354         (VA_START): Remove; all uses changeed to va_start.
87355         (exit, strerror): Remove decls.
87356         (error_print_progname): Prototype uncondionally.
87357         Don't include <errno.h>; no longer needed.
87358         (private_strerror): Remove.
87359         (error_tail): Always define.
87360         (error, error_at_line): Assume C89 or better; always use prototypes.
87361         * lib/fatal.c: Include "fatal.h" first, to test interface.
87362         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87363         (VA_START): Remove; all uses changed to va_start.
87364         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87365         this case.
87366         (exit): Remove decl.
87367         (fatal): Prototype unconditionally.  Assume va_start works.
87368         Abort at end, to pacify gcc.
87369
87370         * lib/euidaccess.c (main): Define with a prototype.
87371
87372         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87373
87374         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87375
87376         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87377         prototypes.
87378         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87379         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87380         (getenv): Remove decl.
87381         (fnmatch): Define using a prototype.
87382         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87383         (FCT): Define using a prototype.
87384
87385         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87386
87387         * lib/gethostname.c: Include <stddef.h>.
87388         (gethostname): Define with prototype.  Length is size_t, not int.
87389
87390 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87391
87392         Assume C89 or better; remove K&R cruft.
87393         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87394         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87395         string.h, getenv, malloc.
87396         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87397         headers.
87398         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87399         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87400         do not check for strerror.
87401         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87402         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87403         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87404         do not check for doprnt or vprintf.
87405         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87406         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87407
87408 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87409
87410         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87411         getversion.c should have been removed then, but was accidentally
87412         preserved.
87413
87414         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87415         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87416
87417 2003-09-08  Karl Berry  <karl@gnu.org>
87418
87419         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87420                 config, forget about prep.
87421
87422         * config/depcomp, missing: update from automake.
87423
87424 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87425
87426         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87427         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87428
87429 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87430
87431         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87432         copy_tm_result.  Bug reported by Simon Josefsson in
87433         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87434
87435 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87436
87437         * m4/time_r.m4: New file.
87438         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87439         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87440         is. Check for timegm declaration.
87441         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87442         Do not check for gmtime_r.
87443         Replace mktime if __mktime_internal does not exist and if mktime
87444         hasn't been replaced already.
87445
87446 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87447
87448         * lib/time_r.c, lib/time_r.h: New files.
87449
87450         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87451         __localtime_r.
87452         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87453         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87454
87455         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87456         __gmtime_r.
87457         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87458         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87459         Include <time_r.h>.
87460
87461         * lib/timegm.c: Switch to glibc implementation, with the following
87462         changes:
87463         [defined HAVE_CONFIG_H]: Include <config.h>.
87464         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87465         (__mktime_internal) [!defined _LIBC]: New decl.
87466         (__gmtime_r) [!defined _LIBC]: New macro and function.
87467         (timegm): Use a prototype, since gnulib assumes C89.
87468         Do not bother declaring tmp to be const, as it's not really usefu.
87469         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87470         (timegm): Declare only if HAVE_DECL_TIMEGM.
87471
87472 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87473
87474         * MODULES.html.sh (func_all_modules): Add time_r.
87475         * modules/time_r: New file.
87476         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87477         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87478
87479 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87480
87481         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87482         Bug reported by Lute Kamstra in
87483         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87484
87485         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87486         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87487         course with correspondingly smaller numbers for tomorrow and
87488         yesterday.  From Tadayoshi Funaba.  Originally installed into
87489         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87490         coreutils merge?).
87491
87492 2003-08-31  Simon Josefsson  <jas@extundo.com>
87493
87494         * modules/timegm: New file.
87495         * MODULES.html.sh (func_all_modules): Add timegm.
87496
87497 2003-08-31  Simon Josefsson  <jas@extundo.com>
87498
87499         * m4/timegm.m4: New file.
87500
87501 2003-08-31  Simon Josefsson  <jas@extundo.com>
87502
87503         * lib/timegm.h: New file.
87504         * lib/timegm.c: New file.  Based on
87505         wget-1.8.2/src/http.c:mktime_from_utc.
87506
87507 2003-08-31  Karl Berry  <karl@gnu.org>
87508
87509         * lib/argp.h: update from libc.
87510
87511 2003-08-28  Bruno Haible  <bruno@clisp.org>
87512
87513         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87514         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87515         followed by '#define fnmatch fnmatch_posix' gives an error.
87516
87517 2003-08-28  Bruno Haible  <bruno@clisp.org>
87518
87519         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87520         warning on QNX, which defines O_BINARY to 000000.
87521
87522 2003-08-27  Jim Meyering  <jim@meyering.net>
87523
87524         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87525         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87526         would fail after 32.  Reported by Danny Levinson.  Details here:
87527         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87528
87529 2003-08-24  Bruno Haible  <bruno@clisp.org>
87530
87531         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87532         MSVC7 <stdio.h> is included later.
87533
87534 2003-08-22  Simon Josefsson  <jas@extundo.com>
87535
87536         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87537
87538 2003-08-20  Karl Berry  <karl@gnu.org>
87539
87540         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87541
87542 2003-08-20  Bruno Haible  <bruno@clisp.org>
87543
87544         * modules/progname: New file.
87545         * MODULES.html.sh (func_all_modules): Add progname.
87546
87547 2003-08-20  Bruno Haible  <bruno@clisp.org>
87548
87549         * lib/progname.h: New file, from GNU gettext.
87550         * lib/progname.c: New file, from GNU gettext.
87551         * lib/progreloc.c: New file, from GNU gettext.
87552
87553 2003-08-19  Jim Meyering  <jim@meyering.net>
87554
87555         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87556         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87557
87558 2003-08-19  Bruno Haible  <bruno@clisp.org>
87559
87560         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87561         more.
87562
87563 2003-08-19  Bruno Haible  <bruno@clisp.org>
87564
87565         * lib/xstrdup.c: Assume <string.h> exists.
87566
87567 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87568
87569         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87570         in makefile rules.
87571
87572 2003-08-18  Jim Meyering  <jim@meyering.net>
87573
87574         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87575         * m4/lib-ld.m4: Likewise.
87576
87577 2003-08-18  Jim Meyering  <jim@meyering.net>
87578
87579         * lib/setenv.h: Indent nested cpp directive.
87580         * lib/vasnprintf.c: Remove trailing blanks.
87581
87582 2003-08-17  Simon Josefsson  <jas@extundo.com>
87583
87584         * modules/xstrndup: New file.
87585         * MODULES.html.sh (func_all_modules): Add xstrndup.
87586
87587 2003-08-17  Simon Josefsson  <jas@extundo.com>
87588
87589         * modules/argp: Fix autoconf macro name. Add more dependencies.
87590
87591 2003-08-17  Simon Josefsson  <jas@extundo.com>
87592
87593         * m4/xstrndup.m4: New file.
87594
87595 2003-08-17  Simon Josefsson  <jas@extundo.com>
87596
87597         * m4/argp.m4: New file.
87598
87599 2003-08-17  Simon Josefsson  <jas@extundo.com>
87600             Bruno Haible  <bruno@clisp.org>
87601
87602         * lib/xstrndup.h: New file.
87603         * lib/xstrndup.c: New file.
87604
87605 2003-08-17  Bruno Haible  <bruno@clisp.org>
87606
87607         * modules/strndup (Files, Include): Add lib/strndup.h.
87608
87609 2003-08-17  Bruno Haible  <bruno@clisp.org>
87610
87611         * modules/euidaccess (Files): Add lib/euidaccess.h.
87612
87613 2003-08-17  Bruno Haible  <bruno@clisp.org>
87614
87615         * lib/strndup.h: New file.
87616
87617 2003-08-17  Bruno Haible  <bruno@clisp.org>
87618
87619         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87620         like AC_GNU_SOURCE.
87621         * modules/extensions (configure.ac): Comment out the invocation of
87622         gl_USE_SYSTEM_EXTENSIONS.
87623
87624 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87625
87626         Merges from coreutils, etc.
87627         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87628         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87629         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87630         fixing a typo.
87631         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87632         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87633
87634 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87635
87636         Document merge from coreutils.
87637         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87638         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87639         * modules/utime: Add m4/utimes-null.m4.
87640
87641 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87642
87643         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87644         space, undoing this 2003-08-12 change:
87645         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87646
87647 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87648
87649         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87650         strtoul.c from libc, undoing this 2003-08-12 change:
87651         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87652
87653 2003-08-16  Jim Meyering  <jim@meyering.net>
87654
87655         Merges from coreutils.
87656         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87657         prefix.  Adjust cache variables similarly.  Create 500 rather than
87658         just 300 files, to exercise bug on Darwin6.5, too.
87659         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87660         $missing_dir.
87661         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87662         AM_SYS_POSIX_TERMIOS.
87663         Reported by mkc@mathdogs.com.
87664         Also change use of $am_cv_sys_posix_termios
87665         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87666         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87667         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87668         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87669         in /proc/mounts until it finds one with matching device number.  This
87670         is unnecessary when the FILE argument *is* a mount point.  No stat call
87671         is necessary in that case.  So, disable the statvfs-testing code on
87672         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87673         as RedHat bug# 84846.
87674         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87675         to 1MB, so as not to render systems with no stack size limit (e.g.,
87676         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87677         Include <unistd.h>.  On some systems,
87678         it is required for the definition of _SC_PAGESIZE.
87679
87680 2003-08-16  Jim Meyering  <jim@meyering.net>
87681
87682         Merge from coreutils.
87683         * lib/xstrtoimax.c: #else #if -> #elif.
87684         * lib/xstrtoumax.c: Likewise.
87685
87686 2003-08-16  Jim Meyering  <jim@meyering.net>
87687
87688         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87689         * m4/utimes.m4: Removed.
87690         * m4/utimes-null.m4: Renamed from utimes.m4.
87691
87692         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87693         to 1MB, so as not to render systems with no stack size limit (e.g.,
87694         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87695         Include <unistd.h>.  On some systems,
87696         it is required for the definition of _SC_PAGESIZE.
87697
87698 2003-08-16  Jim Meyering  <jim@meyering.net>
87699         and Paul Eggert  <eggert@cs.ucla.edu>
87700
87701         Merges from coreutils, etc.
87702
87703         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87704         using the latest version from cvs.  This avoids problems with #line
87705         directives using a vendor (Sun) compiler.
87706         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87707         Don't set GETGROUPS_LIB here; now it's
87708         done via getgroups.m4's wrapper function.
87709         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87710         rather than just in sh-util/configure.in, so that the
87711         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87712         same.
87713         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87714         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87715         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87716         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87717         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87718         Remove code that is now done by the newly-required macros.
87719         Append $(EXEEXT) to DF_PROG.
87720         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87721         Do not invoke or require the following here,
87722         since prereq.m4 or some gnulib .m4 now does this for us:
87723         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87724         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87725         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87726         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87727         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87728         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87729         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87730         AC_FUNC_OBSTACK.
87731         Do not replace the following functions, as this is now the job
87732         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87733         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87734         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87735         atexit getpass, strdup, getpagesize.
87736         Replace 'raise'.
87737         Do not check for the following functions, as this is now the job
87738         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87739         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87740         setregid.
87741         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87742         Check for sys/sysctl.h.
87743         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87744         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87745         of checking for ssize_t ourselves.
87746
87747         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87748         Require every macro that gnulib/modules/* suggests for us.
87749         (jm_PREREQ_ADDEXT): New macro.
87750         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87751         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87752
87753         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87754         (gl_PHYSMEM): Use it.
87755         Also check for `table' function.
87756         Check for new headers and functions.
87757         Add check for sys/sysmp.h.
87758         With suggestions from Kaveh Ghazi.
87759         Ignore headers that are present but cannot be compiled.  This
87760         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87761         C 5.4.
87762
87763 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87764
87765         Document merge from coreutils.
87766         * modules/userspec: Depend on posixver.
87767         * modules/strftime: Depend on tzset.
87768
87769 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87770
87771         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87772         rather than tab, after '#' in shell-script copyright notices.
87773         Suggested by Bruno Haible.
87774
87775 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87776
87777         * config/srclist-update: Use three spaces, rather than tab, after '#'
87778         in shell-script copyright notices.  Suggested by Bruno Haible.
87779         Remove unnecessary parenthesization in regular expression.
87780
87781 2003-08-15  Jim Meyering  <jim@meyering.net>
87782
87783         Merge from coreutils.
87784         * lib/xgethostname.c: Include <stdlib.h>.
87785         (xghostname): Don't exit for anything other than memory-related
87786         failure; just return NULL.
87787         * lib/userspec.c: Include "posixver.h".
87788         (parse_user_spec): Accept `.' as a separator only
87789         in pre-POSIX-200112 mode.
87790         * lib/strtoimax.c: Use #elif rather than #else #if.
87791         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87792         Remove function, now that we can rely on a working tzset function.
87793         [!_LIBC]: Ensure that the required autoconf test has been run.
87794         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87795         Use underlying_strftime for %r.
87796         * lib/sha.c: Merge in some clean-up and optimization changes from
87797         glibc.
87798         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87799         Ensure that it is a multiple of 64.
87800         Rearrange loop exit tests so as to avoid performing an
87801         additional fread after encountering an error or EOF.
87802         * lib/realloc.c: Update copyright date.
87803
87804 2003-08-15  Jim Meyering  <jim@meyering.net>
87805         and Paul Eggert  <eggert@twinsun.com>
87806
87807         Merge from coreutils.
87808         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87809         member but strut utmpx does not.  Needed for AIX 4.3.3.
87810         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87811
87812 2003-08-15  Jim Meyering  <jim@meyering.net>
87813         and Paul Eggert  <eggert@cs.ucla.edu>
87814
87815         Merges from coreutils, etc.
87816         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87817         Require gl_FUNC_TZSET_CLOBBER.
87818         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87819         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87820         members.
87821
87822 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87823
87824         Help the merge from coreutils.
87825         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87826         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87827         * m4/tzset.m4: Use it too.
87828
87829 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87830
87831         * modules/tzset: New file.
87832
87833 2003-08-14  Jim Meyering  <jim@meyering.net>
87834
87835         Merges from coreutils.
87836         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87837         variable names, rather than @FNMATCH_H@.
87838         * modules/alloca: Likewise for $(ALLOCA_H).
87839
87840         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87841         the three copies of the literal target, `fnmatch.h'.
87842         * modules/alloca (alloca.h): Likewise.
87843
87844 2003-08-14  Jim Meyering  <jim@meyering.net>
87845
87846         Merge from coreutils.
87847         * m4/tzset.m4: New file.
87848         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87849         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87850         otherwise, AIX 5.1 systems would end up using the latter.
87851         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87852         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87853         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87854         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87855
87856 2003-08-14  Jim Meyering  <jim@meyering.net>
87857
87858         Merge from coreutils.
87859         * lib/obstack.h: Whitespace changes.
87860         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87861         and xcalloc return values.
87862         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87863         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87864         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87865         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87866         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87867         error from mntctl.
87868         Use mntctl's return value to drive the entry-processing loop, since
87869         we can't rely on the value of the vmt_length member in the last
87870         entry.  On some systems doing so could result in exhausting
87871         virtual memory.  Based in part on a patch from Mike Jetzer.
87872
87873 2003-08-14  Jim Meyering  <jim@meyering.net>
87874         and Paul Eggert  <eggert@twinsun.com>
87875
87876         Merges from coreutils, plus other fixes.
87877         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87878         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87879         for credits and details.  Thanks to Kaveh Ghazi for helping
87880         to keep these files in sync.
87881         (ARRAY_SIZE): Define it.
87882         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87883         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87884         (memcasecmp): Don't assume size_t fits in unsigned int.
87885         Remove casts and duplicate code.
87886         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87887         (memcpy): Remove definition.
87888         Merge in some clean-up and optimization changes from glibc.
87889         [BLOCKSIZE]: Move definition to top of file.
87890         Ensure that it is a multiple of 64.
87891         Rearrange loop exit tests so as to avoid performing an
87892         additional fread after encountering an error or EOF.
87893         * lib/md5.h (md5_uintptr): Define.
87894         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87895         return to the initial working directory.  Preserve errno
87896         for caller.
87897         * lib/idcache.c: Include "xalloc.h".
87898         (xmalloc, xrealloc): Remove decls.
87899         (getuser): Remove casts no longer required in C89.
87900         * lib/human.c: Include stdio.h, for sprintf.
87901         * lib/group-member.c: Include "xalloc.h".
87902         (xmalloc, xrealloc): Remove decls.
87903         (get_group_info): Remove casts no longer required in C89.
87904         * lib/getusershell.c (readname): Remove casts no longer required in
87905         C89.
87906         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87907         * lib/getline.c: Whitespace fix, from coreutils.
87908
87909 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87910
87911         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87912         Check for isascii.
87913
87914         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87915         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87916         Undo previous (whitespace-only) change.
87917
87918 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87919
87920         * lib/exclude.c: Include <ctype.h>
87921         (IN_CTYPE_DOMAIN): New macro.
87922         (is_space): New fn.
87923         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87924         and empty lines.
87925
87926         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87927         Undo previous (whitespace-only) change.
87928
87929 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87930
87931         * config/srclist-update: Change update back to the old behavior,
87932         leaving whitespace alone.  Use one 'sed' command rather than a
87933         pipeline.
87934         (fixlicense): Now a variable, not a function.
87935         (remove_trailing_blanks): Remove.
87936         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
87937         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87938         Undo previous (whitespace-only) change.
87939
87940 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87941
87942         Merge from coreutils.
87943         * modules/euidaccess: Add lib_SOURCES, include for new
87944         file euidaccess.h
87945
87946 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87947
87948         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87949         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87950         Normalize leading white space and remove trailing white space.
87951
87952         Merge from coreutils
87953         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
87954
87955         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
87956         0.12.1.  These files are now being upgraded automatically by
87957         ../config/srclist-update.
87958
87959 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87960
87961         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87962         Normalize leading white space and remove trailing white space.
87963         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
87964         notice, as per ../config/srclist-update.
87965
87966         Merge from coreutils.
87967         * lib/euidaccess.h: New file.
87968         * lib/euidaccess.c: Include it.
87969         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
87970         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
87971         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
87972
87973 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87974
87975         * config/srclist-update: Add copyright notice.
87976         (remove_id_lines, remove_trailing_blanks): New constants.
87977         (fixfile): Use them to normalize spacing a bit in copied files.
87978         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87979         Normalize leading white space and remove trailing white space.
87980
87981         * config/texinfo.tex: Sync with texinfo.
87982
87983         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
87984         strtoul.c from libc, to merge coreutils whitespace changes.
87985
87986         * config/srclist.txt: Get the following m4 files from gettext:
87987         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
87988         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
87989         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
87990         wint_t.m4.
87991
87992 2003-08-12  Karl Berry  <karl@gnu.org>
87993
87994         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
87995         been made.
87996
87997 2003-08-11  Paul Eggert  <eggert@twinsun.com>
87998
87999         * modules/gnu-source, m4/gnu-source.m4:
88000         Remove; we're assuming Autoconf 2.54 or later now.
88001         Suggested by Bruno Haible.
88002         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88003
88004 2003-08-11  Bruno Haible  <bruno@clisp.org>
88005
88006         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88007
88008 2003-08-11  Bruno Haible  <bruno@clisp.org>
88009
88010         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88011         (vasnprintf): Use it instead of wcslen.
88012
88013 2003-08-11  Bruno Haible  <bruno@clisp.org>
88014
88015         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88016         value to ensure that _Bool promotes to int. Use #define for _Bool when
88017         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88018
88019 2003-08-10  Karl Berry  <karl@gnu.org>
88020
88021         * lib/regex.h: update from libc (whitespace fix).
88022
88023 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88024
88025         Merge some files from coreutils.  These changes were
88026         originally made by Jim Meyering.
88027         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88028         many older Unixes require this.
88029         * lib/alloca.c (alloca): Remove cast to argument of free;
88030         no longer needed in C89.
88031         * lib/alloca_.h, regex.h: Fix white space to match
88032         what GNU indent does.
88033
88034 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88035
88036         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88037         apparently Emacs's Unicode mode got confused before my 2003-08-05
88038         checkin.
88039
88040 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88041
88042         * m4/extensions.m4: New file.
88043         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88044         Require gl_USE_SYSTEM_EXTENSIONS.
88045         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88046         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88047
88048 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88049
88050         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88051         * modules/extensions, modules/gnu-source: New files.
88052         * modules/timespec, modules/unlocked-io: Depend on extensions.
88053
88054 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88055
88056         * modules/restrict: New file.
88057         * MODULES.html.sh (func_all_modules): Add restrict.
88058         * modules/regex: Depend on restrict.
88059
88060 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88061
88062         * m4/restrict.m4: New file.
88063         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88064
88065 2003-08-07  Bruno Haible  <bruno@clisp.org>
88066
88067         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88068         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88069
88070 2003-08-07  Bruno Haible  <bruno@clisp.org>
88071
88072         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88073         makes the module 'getndelim2' compatible with the module 'getline'.
88074
88075 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88076
88077         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88078         byte with "\201" to avoid glitches when editing that source file
88079         with multi-gnome-terminal.
88080
88081 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88082
88083         * lib/bumpalloc.h: Remove.
88084
88085 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88086
88087         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88088         * modules/bumpalloc: Remove.
88089
88090 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88091
88092         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88093         GNU coding style.
88094
88095         Merge from coreutils.
88096         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88097         1. From glibc.
88098         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88099         from Karl Berry, implemented by Jim Meyering.
88100         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88101         from Dmitry V. Levin.
88102         Remove anachronistic cast of xrealloc.
88103         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88104         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88105         type. Otherwise, it wouldn't compile with at least /bin/cc on
88106         ymp-cray-unicos9.0.2.X.
88107         Combine two mostly-identical uses of alloca into one.
88108         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88109
88110 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88111
88112         [From Emacs.]
88113
88114         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88115         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88116         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88117         obsolete NLIST_NAME_UNION.
88118         [__GNU__]: Undef BSD and FSCALE.
88119         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88120
88121 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88122
88123         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88124         an enum type, so that it's guaranteed to promote to int.  See:
88125         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88126
88127 2003-08-03  Karl Berry  <karl@gnu.org>
88128
88129         * config/depcomp: update from automake.
88130
88131 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88132
88133         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88134         (strerror): Don't assume that a printable int fits in 14 bytes.
88135
88136 2003-07-31  Bruno Haible  <bruno@clisp.org>
88137
88138         * modules/getpass-gnu: New file.
88139         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88140
88141 2003-07-31  Bruno Haible  <bruno@clisp.org>
88142
88143         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88144
88145 2003-07-24  Karl Berry  <karl@gnu.org>
88146
88147         * config/missing: update from automake.
88148
88149 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88150             Bruno Haible  <bruno@clisp.org>
88151
88152         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88153         * lib/getline.c (getline, getdelim): Likewise.
88154         Remove _GNU_SOURCE define; now it's defined in config.h through
88155         m4/getline.m4.
88156
88157 2003-07-23  Karl Berry  <karl@gnu.org>
88158
88159         * config/config.sub: update from prep.
88160
88161 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88162
88163         * modules/xalloc (Depends-on): Add exitfail.
88164         * modules/xmemcoll: Likewise.
88165
88166 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88167
88168         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88169         over-parenthesization in macros.
88170
88171         Sync with coreutils.
88172
88173         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88174         required by C99.
88175
88176         Use `exit_failure' for xalloc and xmemcoll instead of their own
88177         private exit-failure variables.
88178         * lib/xalloc.h (xalloc_exit_failure): Remove.
88179         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88180         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88181         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88182         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88183         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88184
88185 2003-07-20  Jim Meyering  <jim@meyering.net>
88186
88187         * modules/closeout (Depends-on): Add exitfail.
88188         Suggestion from Bruno Haible.
88189
88190 2003-07-19  Karl Berry  <karl@gnu.org>
88191
88192         * config/config.sub: update from prep.
88193
88194 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88195
88196         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88197         Remove.
88198         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88199         to test that it can stand by itself.  Include "exitfail.h".
88200         Clients should set exit_failure instead.
88201         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88202
88203 2003-07-18  Bruno Haible  <bruno@clisp.org>
88204
88205         * modules/getndelim2: New file.
88206         * modules/getline: Share files with module getndelim2.
88207         * modules/getnline: Depend on getndelim2 instead of sharing files with
88208         it. Add getnline.c to lib_SOURCES.
88209         * MODULES.html.sh (func_all_modules): Add getndelim2.
88210
88211 2003-07-18  Bruno Haible  <bruno@clisp.org>
88212
88213         * m4/getndelim2.m4: New file.
88214         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88215         invoke gl_PREREQ_GETNDELIM2.
88216         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88217         gl_PREREQ_GETNDELIM2.
88218         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88219         gl_GETNDELIM2.
88220
88221 2003-07-18  Bruno Haible  <bruno@clisp.org>
88222
88223         * lib/getndelim2.h: New file.
88224         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88225         getndelim2.h.
88226         (getndelim2): Make non-static. Change return type to ssize_t.
88227         * lib/getline.h: Change argument names.
88228         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88229         * lib/getnline.c: Include getndelim2.h.
88230
88231 2003-07-18  Andreas Schwab  <schwab@suse.de>
88232
88233         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88234
88235 2003-07-17  Karl Berry  <karl@gnu.org>
88236
88237         * config/config.sub: update from prep.
88238
88239 2003-07-17  Bruno Haible  <bruno@clisp.org>
88240
88241         * modules/getnline: New file.
88242         * modules/getline: Add lib/getndelim2.c to source file list.
88243         * MODULES.html.sh (func_all_modules): Add getnline.
88244
88245 2003-07-17  Bruno Haible  <bruno@clisp.org>
88246
88247         * m4/getnline.m4: New file.
88248
88249 2003-07-17  Bruno Haible  <bruno@clisp.org>
88250
88251         * m4/Makefile.am.in: Remove file.
88252         * m4/Makefile.am: Remove file.
88253         * m4/Makefile.in: Remove file.
88254
88255 2003-07-17  Bruno Haible  <bruno@clisp.org>
88256
88257         * lib/getnline.h: New file.
88258         * lib/getnline.c: New file.
88259         * lib/getndelim2.c: New file, extracted from getline.c.
88260         (getndelim2): Renamed from getdelim2, with added nmax argument.
88261         * lib/getline.c: Include getndelim2.c.
88262         (getdelim2): Moved out to getndelim2.c.
88263         (getline, getdelim): Update.
88264
88265 2003-07-17  Bruno Haible  <bruno@clisp.org>
88266
88267         * lib/Makefile.am: Remove file.
88268         * lib/Makefile.in: Remove file.
88269
88270 2003-07-17  Bruno Haible  <bruno@clisp.org>
88271
88272         * configure.in: Remove file.
88273         * Makefile.in: Remove file.
88274
88275 2003-07-17  Bruno Haible  <bruno@clisp.org>
88276
88277         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88278
88279 2003-07-16  Karl Berry  <karl@gnu.org>
88280
88281         * config/srclist-update: was running fixlicense twice, which caused
88282                 texinfo.tex to be nullified for some reason.  Simplify,
88283                 $gplsrc is no longer needed as far as I can see?
88284
88285 2003-07-16  Jim Meyering  <jim@meyering.net>
88286
88287         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88288
88289 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88290
88291         * config/srclist.txt: Get the following files from gettext-runtime/intl
88292         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88293         ref-del.sin.  From Bruno Haible.
88294         * config/srclist-update (fixfile): Change grep pattern again, since the
88295         previous fix didn't work (there was another trailing $).  Use
88296         '[$]' to escape the $s.
88297
88298 2003-07-15  Karl Berry  <karl@gnu.org>
88299
88300         * lib/vasnprintf.c: update from gettext.
88301
88302 2003-07-15  Karl Berry  <karl@gnu.org>
88303
88304         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88305         gets expanded when surrounded by '$'.
88306
88307 2003-07-15  Jim Meyering  <jim@meyering.net>
88308
88309         * modules/save-cwd: Don't depend on error.  From Derek Price.
88310
88311 2003-07-15  Jim Meyering  <jim@meyering.net>
88312
88313         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88314
88315 2003-07-14  Simon Josefsson  <jas@extundo.com>
88316
88317         * modules/mempcpy: New file.
88318         * MODULES.html.sh (func_all_modules): Add mempcpy.
88319
88320 2003-07-14  Simon Josefsson  <jas@extundo.com>
88321
88322         * m4/mempcpy.m4: New file.
88323
88324 2003-07-14  Simon Josefsson  <jas@extundo.com>
88325
88326         * lib/mempcpy.h: New file.
88327         * lib/mempcpy.c: New file.
88328
88329 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88330
88331         * modules/getdate, modules/posixtm: Depend on mktime.
88332
88333 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88334
88335         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88336         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88337         unicodeio.c, unicodeio.h, unlocked-io.h:
88338         Switch from LGPL to GPL.
88339
88340 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88341
88342         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88343         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88344         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88345         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88346         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88347         updated automatically by ../config/srclist-update.  This changes
88348         their license from LPGL to GPL.
88349
88350 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88351
88352         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88353         assumed to refer to the root of the most recent stable gettext version.
88354         * config/srclistvars.sh: Add defaults for eggert.
88355         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88356         Match "This program" as well as "The program".  This is needed
88357         for gettext.
88358
88359 2003-07-14  Jim Meyering  <jim@meyering.net>
88360
88361         Don't emit diagnostics.  Let callers do that.
88362         * lib/save-cwd.c: Don't include "error.h".
88363         (save_cwd): Don't call error.  Ensure that errno is valid
88364         when returning nonzero.
88365
88366         * lib/save-cwd.h (restore_cwd): Update prototype.
88367         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88368         Simplify.  Don't call error upon failure.  Let callers do that.
88369         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88370         when auditing is enabled.  But don't bother updating the #if.
88371
88372 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88373
88374         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88375         it breaks C++ compilation.
88376         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88377
88378 2003-07-10  Simon Josefsson  <jas@extundo.com>
88379
88380         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88381
88382 2003-07-10  Jim Meyering  <jim@meyering.net>
88383
88384         * m4/clock_time.m4: Remove trailing blank.
88385         * m4/intmax_t.m4: Likewise.
88386
88387 2003-07-10  Jim Meyering  <jim@meyering.net>
88388
88389         * lib/vasnprintf.c: Remove trailing blanks.
88390         Make cpp indentation consistent.
88391
88392 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88393
88394         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88395         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88396         Switch from LGPL to GPL.
88397
88398 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88399
88400         * config/srclist.txt: Sort sublists.  Add
88401         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88402         that differ from gnulib for one reason or another; we'd like this list
88403         to be smaller but for now let's document what we have.
88404
88405 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88406
88407         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88408         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88409         and sweeter "eval x=$x".
88410         * config/srclist.txt: Get lib/argp* from glibc.
88411
88412 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88413
88414         * lib/mktime.c: Fix some boundary cases and remove need for floating
88415         point.
88416
88417         Issue a compile-time diagnostic if time_t is floating point, or if
88418         two's complement arithmetic is not in effect, or if arithmetic
88419         right shift does not propagate the sign.  These assumptions were
88420         all in the original code but they weren't checked.
88421
88422         (TIME_T_MIDPOINT, verify): New macros.
88423         (__isleap): Remove; it has integer overflow problems.
88424         (leapyear): New function, without those problems.
88425         (ydhms_tm_diff): Remove; splitting into two parts.
88426         (ydhms_diff): New function, containing the arithmetic part of
88427         the old ydhms_tm_diff function.  Issue a compile-time
88428         diagnostic if we are not using C99 integer division.
88429         Avoid casts when possible.
88430         (guess_time_tm): New function, containing the checking part of
88431         the old ydhms_tm_diff function.  Return the new value, rather than
88432         the difference between it and the old.  Accept a new argument T
88433         so that *T specifies the old value.  Check for overflow in the result.
88434
88435         (__mktime_internal): Use a time_t offset, not a long int offset.
88436         This undoes the 2003-06-04 change, which is no longer needed now
88437         that we have better overflow checking.
88438         (localtime_offset): Likewise.
88439
88440         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88441         and long are 64-bit but int is only 32-bit.
88442         (ydhms_diff): Use long int to store year1 and yday1.
88443         Issue a compile-time diagnostic if long int is not wide enough.
88444
88445         (__mktime_internal): Use long int to store adjusted year and yday.
88446         Use plain C rather than preprocessor commands, if that doesn't
88447         affect efficiency.
88448         Check for overflow (and try to repair) after each probe
88449         rather than checking only at the very end.  This avoids some bugs
88450         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88451         does not equal GMT offset at maximum time).
88452         Use integer to check for overflow rather than floating point; this
88453         is more portable to non-IEEE hosts, and is a tad faster.
88454         When we detect that we are oscillating between two values,
88455         don't check whether tm_isdst has the requested value, since
88456         we already know the answer.  When tm_isdst has the wrong value,
88457         use a different heuristic to find the right one, based on the
88458         extreme values actually observed in practice in tz2003a,
88459         rather than the (overly optimistic) "previous 3 calendar quarters".
88460
88461         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88462         "T const" to accommodate glibc style.
88463         (check_result): Use less-confusing report format.  "long" -> "long int.
88464         (main): Likewise.
88465         Don't loop if the iteration overflows time_t.
88466         Allow a negative step in the iteration.
88467
88468 2003-07-06  Karl Berry  <karl@gnu.org>
88469
88470         * config/depcomp: update from automake.
88471         * config/config.sub: update from prep.
88472
88473 2003-07-03  Karl Berry  <karl@gnu.org>
88474
88475         * config/config.guess: update from prep.
88476
88477 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88478
88479         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88480         xreadlink.c now includes it unconditionally.
88481
88482 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88483
88484         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88485         having it depend on HAVE_SYS_TYPES_H.
88486
88487 2003-07-01  Bruno Haible  <bruno@clisp.org>
88488
88489         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88490         <sys/types.h> should be sufficient.
88491         Reported by Paul Eggert.
88492
88493 2003-06-26  Karl Berry  <karl@gnu.org>
88494
88495         * config/depcomp: update from automake.
88496
88497 2003-06-26  Bruno Haible  <bruno@clisp.org>
88498
88499         * modules/human: Depend on module stdbool.
88500
88501 2003-06-25  Bruno Haible  <bruno@clisp.org>
88502
88503         * modules/readlink: New file.
88504         * modules/xreadlink: Depend on it.
88505         * MODULES.html.sh (func_all_modules): Add readlink.
88506
88507 2003-06-25  Bruno Haible  <bruno@clisp.org>
88508
88509         * m4/readlink.m4: New file.
88510
88511 2003-06-25  Bruno Haible  <bruno@clisp.org>
88512
88513         * lib/readlink.c: New file.
88514
88515 2003-06-22  Karl Berry  <karl@gnu.org>
88516
88517         * config/srclist.txt: update mkinstalldirs from automake.
88518         * config/mkinstalldirs: update.
88519
88520 2003-06-22  Bruno Haible  <bruno@clisp.org>
88521
88522         Portability to mingw32.
88523         * m4/ssize_t.m4: New file, from GNU gettext.
88524         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88525         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88526
88527 2003-06-22  Bruno Haible  <bruno@clisp.org>
88528
88529         * modules/safe-read: Add m4/ssize_t.m4.
88530         * modules/xreadlink: Add m4/ssize_t.m4.
88531
88532 2003-06-20  Bruno Haible  <bruno@clisp.org>
88533
88534         Assume C89, so PARAMS isn't needed.
88535         * lib/unicodeio.h (PARAMS): Remove.
88536         * lib/unicodeio.c: Don't use PARAMS.
88537
88538 2003-06-18  Karl Berry  <karl@gnu.org>
88539
88540         * config/config.{guess,sub}: update from prep.
88541
88542 2003-06-18  Jim Meyering  <jim@meyering.net>
88543
88544         Merge changes from coreutils.
88545         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88546         Remove explicit declarations of xmalloc and realloc.
88547         Include xalloc.h.
88548         (read_utmp): Remove anachronistic cast of xmalloc.
88549
88550 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88551
88552         Assume C89, so PARAMS isn't needed.
88553         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88554         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88555         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88556         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88557         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88558         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88559         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88560         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88561         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88562         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88563         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88564         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88565         no longer needed. Anyway, config.h should always be included before any
88566         other file.
88567
88568 2003-06-11  Simon Josefsson  <jas@extundo.com>
88569
88570         * modules/sysexits: New file.
88571         * MODULES.html.sh (func_all_modules): Add sysexits.
88572
88573 2003-06-11  Simon Josefsson  <jas@extundo.com>
88574
88575         * lib/sysexit_.h: New file.
88576
88577 2003-06-11  Derek Price  <derek@ximbiot.com>
88578
88579         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88580         necessary.
88581
88582 2003-06-11  Bruno Haible  <bruno@clisp.org>
88583
88584         * m4/sysexits.m4: New file.
88585
88586 2003-06-10  Simon Josefsson  <jas@extundo.com>
88587
88588         * lib/argp.h: New file, from glibc.
88589         * lib/argp-ba.c: New file, from glibc.
88590         * lib/argp-eexst.c: New file, from glibc.
88591         * lib/argp-fmtstream.c: New file, from glibc.
88592         * lib/argp-fmtstream.h: New file, from glibc.
88593         * lib/argp-fs-xinl.c: New file, from glibc.
88594         * lib/argp-help.c: New file, from glibc.
88595         * lib/argp-namefrob.h: New file, from glibc.
88596         * lib/argp-parse.c: New file, from glibc.
88597         * lib/argp-pv.c: New file, from glibc.
88598         * lib/argp-pvh.c: New file, from glibc.
88599         * lib/argp-xinl.c: New file, from glibc.
88600
88601 2003-06-10  Simon Josefsson  <jas@extundo.com>
88602
88603         * modules/strchrnul: New file.
88604
88605 2003-06-10  Simon Josefsson  <jas@extundo.com>
88606
88607         * modules/argp: New file.
88608
88609 2003-06-10  Simon Josefsson  <jas@extundo.com>
88610
88611         * m4/strchrnul.m4: New file.
88612
88613 2003-06-10  Simon Josefsson  <jas@extundo.com>
88614
88615         * lib/strchrnul.h: New file.
88616         * lib/strchrnul.c: New file.
88617
88618 2003-06-10  Bruno Haible  <bruno@clisp.org>
88619
88620         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88621
88622 2003-06-07  Karl Berry  <karl@gnu.org>
88623
88624         * config/config.{guess,sub}: update from prep.
88625
88626 2003-06-07  Jim Meyering  <jim@meyering.net>
88627
88628         * modules/strtod: Use $(...) notation, not @...@ for
88629         AC_REPLACE'd variables.
88630         * modules/localcharset: Likewise.
88631
88632 2003-06-07  Jim Meyering  <jim@meyering.net>
88633
88634         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88635         in place of my name in the copyright comment.
88636         Remove definition and uses of __P.
88637
88638         From coreutils.
88639         * lib/stat.c: Don't declare xmalloc explicitly.
88640         Instead, include "xalloc.h".
88641         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88642         xrealloc, and xcalloc return values.
88643         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88644         Improve comment.
88645         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88646
88647 2003-06-07  Bruno Haible  <bruno@clisp.org>
88648
88649         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88650         avoid AC_CONFIG_LINKS.
88651         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88652         fnmatch.h, to avoid AC_CONFIG_LINKS.
88653         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88654
88655 2003-06-07  Bruno Haible  <bruno@clisp.org>
88656
88657         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88658         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88659         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88660         directory.
88661         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88662         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88663         directory.
88664
88665 2003-06-06  Jim Meyering  <jim@meyering.net>
88666
88667         Merge from coreutils.
88668         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88669         Consolidate declarations and initializations of *_base* locals.
88670
88671         Merge from coreutils.
88672         This avoids a core dump on systems without GNU putenv,
88673         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88674         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88675         (unsetenv): New static function, from GNU libc.
88676         (rpl_putenv): Use it.
88677
88678         * lib/modechange.c: Remove trailing blanks.
88679
88680         Merge from coreutils.
88681         * lib/fsusage.c: Remove declaration of statfs.
88682         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88683
88684         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88685
88686 2003-06-06  Jim Meyering  <jim@meyering.net>
88687
88688         * lib/stdbool_.h: Renamed from stdbool.h.in.
88689
88690 2003-06-06  Jim Meyering  <jim@meyering.net>
88691             Bruno Haible  <bruno@clisp.org>
88692
88693         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88694         Adjust Makefile.am snippet not to redirect directly to target.
88695         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88696
88697 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88698
88699         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88700         mismatch, look in future quarters as well as past.  This fixes a
88701         bug when processing fall-backwards gaps immediately after a long
88702         period of daylight-saving time.
88703
88704         * lib/mktime.c: Assume freestanding C89 or better.
88705         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88706         (__P): Remove; not used.
88707         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88708         (mktime, not_equal_tm, print_tm, check_result,
88709         main): Use prototypes.  Use const * where appropriate.
88710         (main): Fix typo in testing code that uncovered by above changes.
88711         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88712
88713 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88714
88715         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88716         locale.h, localeconv.  This merges changes from coreutils.
88717
88718         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88719         It can be removed after the next Autoconf is released.
88720         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88721         needed.
88722
88723 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88724
88725         * lib/mktime.c: Fix Debian bug 177940
88726         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88727         (localtime_offset): Now long int, not time_t, because we want it
88728         to be guaranteed to be signed.  All uses changed.
88729         (__mktime_internal): If overflow would occur when adding offset,
88730         don't add it.
88731
88732         Merge 'human' changes from coreutils.  Rewrite to support
88733         locale-specific notations like thousands separators.
88734         * lib/human.c: Simplify authorship notice.
88735         Include human.h immediately after config.h.
88736         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88737         <limits.h>: Do not include, since human.h does.
88738         (SIZE_MAX, UINTMAX_MAX): New macros.
88739         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88740         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88741         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88742         (power_letter): Renamed from suffixes.
88743         (generate_suffix_backwards): Remove.
88744         (adjust_value): Now takes int style (because of human.h changes)
88745         and long double value (for greater precision on some platforms).
88746         (group_number): New function.
88747         (human_readable): Use it.  Use integer options, not enum.
88748         Put the options before the sizes in the arg list.
88749         Support all the new options.
88750         The old human_readable function has been removed;
88751         use inttostr.h instead.
88752         (human_readable, default_block_size, humblock):
88753         Use uintmax_t, not int, for block sizes.
88754         (human_readable_inexact, block_size_types): Remove.
88755         (block_size_opts): New constant.
88756         (human_options): Renamed from human_block_size, with new signature
88757         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88758         * lib/human.h: Add copyright and authorship notice.
88759         Include <limits.h> and <stdbool.h> unconditionally.
88760         (PARAMS): Remove.  All uses removed.
88761         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88762         (enum human_inexact_style): Remove tag; now a nameless enum.
88763         (human_floor, human_ceiling, human_round_to_even): Now have
88764         values 2, 0, 1 rather than -1, 1, 0.
88765         (human_group_digits, human_suppress_point_zero, human_autoscale,
88766         human_base_1024, human_SI, human_B): New constants.
88767         (human_readable_inexact, human_block_size): Remove.
88768         (human_readable): Size args are now uintmax_t, not int.
88769         (human_options): New decl.
88770
88771         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88772         unnecessary now that we assume C89 or better.  This change
88773         imported from coreutils.
88774
88775         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88776         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88777         in the 2003-05-30 sync from glibc.
88778
88779         .h files should stand alone, but we shouldn't include <sys/types.h>
88780         if we can get away with just <stddef.h>.
88781
88782         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88783         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88784         rather than <sys/types.h>, as we merely need size_t.
88785         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88786         to get size_t.
88787         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88788         Include <stdio.h>, to get FILE.
88789         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88790         memcasecmp.h has included <stddef.h> and all we need is size_t.
88791         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88792         our interface, instead of including <sys/types.h>
88793
88794 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88795
88796         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88797         now, as glibc mktime is buggy on non-glibc systems.
88798
88799 2003-06-03  Karl Berry  <karl@gnu.org>
88800
88801         * config/config.sub: update from prep.
88802
88803 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88804
88805         [from coreutils]
88806         Fix some minor time-related bugs with POSIX time arguments.
88807         Some valid time stamps were being rejected (notably -1, and
88808         time stamps before 1900 on 64-bit hosts).  And some invalid
88809         time stamps were being accepted, e.g. September 31.
88810
88811         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88812         that we can return (time_t) -1 successfully.
88813         * lib/posixtm.c: Likewise.
88814         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88815         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88816         (t): Remove static var.
88817         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88818         of static var.  All uses changed.
88819         (year): Do not reject years before 1900; they can occur with
88820         64-bit time_t.
88821         (posix_time_parse): Do not check for out-of-range components;
88822         that is now the caller's responsibility, since our checks were
88823         only approximations.
88824         (posixtime): Use mktime to check for out-of-range components,
88825         since it knows them exactly.
88826         If mktime returns (time_t) -1, check whether an error actually occurred
88827         by invoking localtime on -1.
88828         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88829         posixtime failures better.
88830         Improve the test data (in comments only).
88831
88832 2003-06-02  Karl Berry  <karl@gnu.org>
88833
88834         * config/mkinstalldirs (version): new variable.
88835         (--version): new option.
88836         (usage): improve message.
88837
88838 2003-05-30  Karl Berry  <karl@gnu.org>
88839
88840         * lib/mktime.c: update from libc.
88841
88842 2003-05-30  Bruno Haible  <bruno@clisp.org>
88843
88844         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88845         * config/config.rpath: Upgrade to gettext-0.12.1.
88846
88847 2003-05-30  Bruno Haible  <bruno@clisp.org>
88848
88849         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88850         * m4/nls.m4: New file, from gettext-0.12.1.
88851         * m4/po.m4: New file, from gettext-0.12.1.
88852         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88853
88854 2003-05-30  Bruno Haible  <bruno@clisp.org>
88855
88856         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88857         * lib/localcharset.h: Likewise.
88858         * lib/localcharset.c: Likewise.
88859
88860 2003-05-29  Karl Berry  <karl@gnu.org>
88861
88862         * config/config.rpath: update from gettext.
88863
88864 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88865
88866         Assume the headers required for C89 freestanding compilers.
88867         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88868         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88869         * m4/human.m4 (gl_HUMAN): Likewise.
88870         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88871         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88872         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88873         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88874         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88875         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88876
88877 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88878
88879         Assume the headers required for C89 freestanding compilers.
88880         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88881         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88882         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88883         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88884         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88885         define, since <limits.h> is guaranteed to do that.
88886         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88887         * lib/exclude.c: Include <stdbool.h> unconditionally.
88888         * lib/tempname.c: Include <stddef.h> unconditionally.
88889         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88890         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88891         <stddef.h> does that.
88892         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88893         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88894         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88895         needed.
88896         * lib/xstrtol.c: Likewise.
88897         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88898         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88899
88900         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88901         warnings on some platforms.
88902
88903         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88904         arbitrarily.
88905
88906 2003-05-26  Jim Meyering  <jim@meyering.net>
88907
88908         Merge in a change from coreutils:
88909         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88910         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88911         that condition, rather than `-1' which is slightly misleading.
88912         Change the name of the cache variable to have the gl_ prefix.
88913         Prompted by a patch from Richard Dawe for DJGPP.
88914
88915 2003-05-24  Karl Berry  <karl@gnu.org>
88916
88917         * config/config.guess: update from prep.
88918
88919 2003-05-22  Karl Berry  <karl@gnu.org>
88920
88921         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88922
88923 2003-05-20  Karl Berry  <karl@gnu.org>
88924
88925         * config/config.guess: update from prep.
88926
88927 2003-05-18  Karl Berry  <karl@gnu.org>
88928
88929         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
88930         might actually be set by the user.
88931
88932         * config/depcomp, install-sh, mdate-sh: update from automake.
88933
88934 2003-05-17  Bruno Haible  <bruno@clisp.org>
88935
88936         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
88937         invalid expansion for AC_EGREP_CPP.
88938         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
88939         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
88940         Suggested by Akim Demaille <akim@epita.fr> in
88941         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
88942
88943 2003-05-12  Jim Meyering  <jim@meyering.net>
88944
88945         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
88946         the space-padded-by-default conversion specifiers, %e, %k, %l.
88947
88948 2003-05-12  Bruno Haible  <bruno@clisp.org>
88949
88950         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
88951         the string is longer than 4 KB.
88952
88953 2003-05-11  Karl Berry  <karl@gnu.org>
88954
88955         * config/config.{guess,sub}: update from prep.
88956
88957 2003-05-09  Bruno Haible  <bruno@clisp.org>
88958
88959         * modules/error: Add m4/strerror_r.m4 to file list.
88960
88961 2003-05-03  Bruno Haible  <bruno@clisp.org>
88962
88963         Upgrade to Unicode-4.0.
88964         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
88965         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
88966         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
88967         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
88968         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
88969         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
88970         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
88971         Change width of U+E0100..U+E01EF from 1 to 0.
88972
88973 2003-04-25  Jim Meyering  <jim@meyering.net>
88974
88975         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
88976         of type size_t, not int.
88977
88978 2003-04-25  Bruno Haible  <bruno@clisp.org>
88979
88980         * lib/copy-file.c: Include <stddef.h>, for size_t.
88981
88982 2003-04-21  Paul Eggert  <eggert@twinsun.com>
88983
88984         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
88985         code which expansion is under static control.  Patch imported from
88986         Akim Demaille's patch to Bison; see
88987         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
88988
88989 2003-04-14  Bruno Haible  <bruno@clisp.org>
88990
88991         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
88992
88993 2003-04-11  Jim Meyering  <jim@meyering.net>
88994
88995         Merge changes from Coreutils.
88996
88997         2003-03-22  Jim Meyering  <jim@meyering.net>
88998
88999         * lib/strftime.c (widen): Cast alloca return value to proper type.
89000
89001         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89002
89003         From GNU libc.
89004         * lib/strftime.c (my_strftime): Handle very large width
89005         specifications for numeric values correctly.  Improve checks for
89006         overflow.
89007
89008         2003-01-19  Jim Meyering  <jim@meyering.net>
89009
89010         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89011         definitions.
89012         (nl_get_alt_digit) [! defined my_strftime]: Define.
89013         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89014         _nl_get_alt_digit and _nl_get_walt_digit.
89015
89016         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89017         libc. These changes have no effect outside of _LIBC.
89018
89019 2003-04-10  Bruno Haible  <bruno@clisp.org>
89020
89021         * modules/findprog: New file.
89022         * MODULES.html.sh (func_all_modules): Add it.
89023
89024 2003-04-10  Bruno Haible  <bruno@clisp.org>
89025
89026         * m4/findprog.m4: New file.
89027         * m4/eaccess.m4: New file.
89028
89029 2003-04-10  Bruno Haible  <bruno@clisp.org>
89030
89031         * lib/findprog.h: New file, from GNU gettext.
89032         * lib/findprog.c: New file, from GNU gettext.
89033
89034 2003-04-05  Jim Meyering  <jim@meyering.net>
89035
89036         Merge changes from Coreutils.
89037
89038         * lib/exclude.h (PARAMS): Remove definition and uses.
89039         * lib/exclude.c: Remove uses of `PARAMS'.
89040
89041         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89042         Add test-cases for DOS filenames. Declare program_name.
89043         (main): Set up program_name.  Patch by Rich Dawe.
89044
89045         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89046         error from mntctl.
89047         Use mntctl's return value to drive the entry-processing loop, since
89048         we can't rely on the value of the vmt_length member in the last
89049         entry.  On some systems doing so could result in exhausting
89050         virtual memory.  Based in part on a patch from Mike Jetzer.
89051
89052 2003-04-04  Bruno Haible  <bruno@clisp.org>
89053
89054         * modules/linebreak: New file.
89055         * MODULES.html.sh (func_all_modules): Add it.
89056
89057 2003-04-04  Bruno Haible  <bruno@clisp.org>
89058
89059         * m4/linebreak.m4: New file.
89060
89061 2003-04-04  Bruno Haible  <bruno@clisp.org>
89062
89063         * lib/linebreak.h: New file, from GNU gettext.
89064         * lib/linebreak.c: New file, from GNU gettext with slight
89065         modifications.
89066         * lib/lbrkprop.h: New file, from GNU gettext.
89067
89068 2003-04-03  Bruno Haible  <bruno@clisp.org>
89069
89070         * modules/utf8-ucs4: New file.
89071         * modules/utf16-ucs4: New file.
89072         * modules/ucs4-utf8: New file.
89073         * modules/ucs4-utf16: New file.
89074         * MODULES.html.sh (func_all_modules): Add them.
89075
89076 2003-04-03  Bruno Haible  <bruno@clisp.org>
89077
89078         * m4/utf-ucs4.m4: New file.
89079         * m4/ucs4-utf.m4: New file.
89080
89081 2003-04-03  Bruno Haible  <bruno@clisp.org>
89082
89083         * lib/utf8-ucs4.h: New file, from GNU gettext.
89084         * lib/utf16-ucs4.h: New file, from GNU gettext.
89085         * lib/ucs4-utf8.h: New file, from GNU gettext.
89086         * lib/ucs4-utf16.h: New file, from GNU gettext.
89087
89088 2003-04-02  Bruno Haible  <bruno@clisp.org>
89089
89090         * modules/binary-io: New file.
89091         * MODULES.html.sh (func_all_modules): Add it.
89092
89093 2003-04-02  Bruno Haible  <bruno@clisp.org>
89094
89095         * lib/binary-io.h: New file, from GNU gettext.
89096
89097 2003-04-01  Bruno Haible  <bruno@clisp.org>
89098
89099         * modules/pathname: New file.
89100         * MODULES.html.sh (func_all_modules): Add it.
89101
89102 2003-04-01  Bruno Haible  <bruno@clisp.org>
89103
89104         * lib/pathname.h: New file, from GNU gettext.
89105         * lib/concatpath.c: New file, from GNU gettext.
89106
89107 2003-03-30  Bruno Haible  <bruno@clisp.org>
89108
89109         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89110
89111 2003-03-30  Bruno Haible  <bruno@clisp.org>
89112
89113         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89114         function chown() doesn't exist.
89115
89116 2003-03-28  Bruno Haible  <bruno@clisp.org>
89117
89118         * modules/copy-file: New file.
89119         * MODULES.html.sh (func_all_modules): Add it.
89120
89121 2003-03-28  Bruno Haible  <bruno@clisp.org>
89122
89123         * m4/copy-file.m4: New file.
89124
89125 2003-03-28  Bruno Haible  <bruno@clisp.org>
89126
89127         * lib/copy-file.h: New file, from GNU gettext.
89128         * lib/copy-file.c: New file, from GNU gettext.
89129
89130 2003-03-18  Jim Meyering  <jim@meyering.net>
89131
89132         * lib/quote.c (quote_n): Fix typo in comment.
89133
89134 2003-03-18  Bruno Haible  <bruno@clisp.org>
89135
89136         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89137         checking.
89138         * m4/onceonly_2_57.m4: Likewise.
89139
89140 2003-03-17  Bruno Haible  <bruno@clisp.org>
89141
89142         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89143         (m4_quote): Remove macro.
89144         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89145
89146 2003-03-14  Jim Meyering  <jim@meyering.net>
89147
89148         Merge changes from Coreutils.
89149         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89150         to be const, in order to avoid warnings.
89151         (obstack_room): Likewise.
89152         (obstack_empty_p): Likewise.
89153
89154 2003-03-14  Bruno Haible  <bruno@clisp.org>
89155
89156         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89157         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89158
89159 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89160
89161         Merge changes from Bison.
89162         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89163         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89164         when compiling Bison 1.875's `bitset bset = obstack_alloc
89165         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89166         * lib/hash.c: Include <stdbool.h> unconditionally.
89167
89168 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89169
89170         * m4/onceonly.m4 (m4_quote): New macro.
89171         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89172         Quote AC_FOREACH variable-expansions properly.
89173
89174 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89175
89176         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89177
89178 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89179
89180         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89181         Reported by Bruce Becker; see:
89182         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89183
89184 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89185             Bruno Haible  <bruno@clisp.org>
89186
89187         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89188         Reported by John Hughes, see
89189         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89190
89191 2003-02-20  Bruno Haible  <bruno@clisp.org>
89192
89193         * MODULES.html.sh (func_all_modules): Add poll.
89194
89195 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89196
89197         * modules/poll: New file.
89198
89199 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89200
89201         * lib/poll_.h: New file.
89202         * lib/poll.c: New file.
89203
89204 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89205
89206         * m4/poll.m4: New file.
89207
89208 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89209
89210         * modules/mathl: New file.
89211
89212 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89213
89214         * lib/mathl.h: New file.
89215         * lib/acosl.c: New file.
89216         * lib/asinl.c: New file.
89217         * lib/atanl.c: New file.
89218         * lib/ceill.c: New file.
89219         * lib/cosl.c: New file.
89220         * lib/expl.c: New file.
89221         * lib/floorl.c: New file.
89222         * lib/frexpl.c: New file.
89223         * lib/ldexpl.c: New file.
89224         * lib/logl.c: New file.
89225         * lib/sincosl.c: New file.
89226         * lib/sinl.c: New file.
89227         * lib/sqrtl.c: New file.
89228         * lib/tanl.c: New file.
89229         * lib/trigl.c: New file.
89230         * lib/trigl.h: New file.
89231
89232 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89233
89234         * m4/mathl.m4: New file.
89235
89236 2003-02-18  Bruno Haible  <bruno@clisp.org>
89237
89238         * MODULES.html.sh (func_all_modules): Add mathl.
89239
89240 2003-02-17  Bruno Haible  <bruno@clisp.org>
89241
89242         * modules/mkdtemp: New module.
89243         * MODULES.html.sh (func_all_modules): Add it.
89244
89245 2003-02-17  Bruno Haible  <bruno@clisp.org>
89246
89247         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89248
89249 2003-02-17  Bruno Haible  <bruno@clisp.org>
89250
89251         * lib/mkdtemp.h: New file, from GNU gettext.
89252         * lib/mkdtemp.c: New file, from GNU gettext.
89253
89254 2003-02-02  Jim Meyering  <jim@meyering.net>
89255
89256         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89257         e.g. glibc-2.2.93.
89258
89259 2003-01-31  Bruno Haible  <bruno@clisp.org>
89260
89261         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89262         'rpl_rename'.
89263         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89264         'rpl_strnlen'.
89265         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89266         'rpl_strtod'.
89267         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89268         'rpl_utime'.
89269
89270 2003-01-31  Bruno Haible  <bruno@clisp.org>
89271
89272         * lib/rename.c: #undef rename before defining rpl_rename.
89273         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89274
89275 2003-01-30  Bruno Haible  <bruno@clisp.org>
89276
89277         * modules/vasnprintf, modules/vasprintf: New modules.
89278         * MODULES.html.sh (func_all_modules): Add them.
89279
89280 2003-01-30  Bruno Haible  <bruno@clisp.org>
89281
89282         * m4/signed.m4: New file, from GNU gettext.
89283         * m4/longdouble.m4: New file, from GNU gettext.
89284         * m4/wchar_t.m4: New file, from GNU gettext.
89285         * m4/wint_t.m4: New file, from GNU gettext.
89286         * m4/vasnprintf.m4: New file.
89287         * m4/vasprintf.m4: New file.
89288
89289 2003-01-30  Bruno Haible  <bruno@clisp.org>
89290
89291         * lib/printf-args.h: New file, from GNU gettext.
89292         * lib/printf-args.c: New file, from GNU gettext.
89293         * lib/printf-parse.h: New file, from GNU gettext.
89294         * lib/printf-parse.c: New file, from GNU gettext.
89295         * lib/vasnprintf.h: New file, from GNU gettext.
89296         * lib/vasnprintf.c: New file, from GNU gettext.
89297         * lib/asnprintf.c: New file, from GNU gettext.
89298         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89299         * lib/vasprintf.c: New file, from GNU gettext.
89300         * lib/asprintf.c: New file, from GNU gettext.
89301
89302 2003-01-29  Bruno Haible  <bruno@clisp.org>
89303
89304         * modules/stpncpy: New module.
89305         * MODULES.html.sh (func_all_modules): Add it.
89306
89307 2003-01-29  Bruno Haible  <bruno@clisp.org>
89308
89309         * m4/stpncpy.m4: New file.
89310
89311 2003-01-29  Bruno Haible  <bruno@clisp.org>
89312
89313         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89314         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89315
89316 2003-01-28  Bruno Haible  <bruno@clisp.org>
89317
89318         * modules/c-ctype: New module.
89319         * MODULES.html.sh (func_all_modules): Add it.
89320
89321 2003-01-28  Bruno Haible  <bruno@clisp.org>
89322
89323         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89324         Paul Eggert.
89325         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89326         Paul Eggert.
89327
89328 2003-01-27  Bruno Haible  <bruno@clisp.org>
89329
89330         * modules/xsetenv: New module.
89331         * MODULES.html.sh (func_all_modules): Add it.
89332
89333 2003-01-27  Bruno Haible  <bruno@clisp.org>
89334
89335         * lib/xsetenv.h: New file, from GNU gettext.
89336         * lib/xsetenv.c: New file, from GNU gettext.
89337
89338 2003-01-23  Jim Meyering  <jim@meyering.net>
89339
89340         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89341         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89342
89343 2003-01-23  Bruno Haible  <bruno@clisp.org>
89344
89345         * modules/minmax: New module.
89346         * MODULES.html.sh (func_all_modules): Add it.
89347
89348 2003-01-23  Bruno Haible  <bruno@clisp.org>
89349
89350         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89351         Eggert.
89352
89353 2003-01-22  Bruno Haible  <bruno@clisp.org>
89354
89355         * modules/exit: New module.
89356         * MODULES.html.sh (func_all_modules): Add it.
89357
89358 2003-01-22  Bruno Haible  <bruno@clisp.org>
89359
89360         * lib/exit.h: New file, from GNU gettext.
89361
89362 2003-01-19  Bruno Haible  <bruno@clisp.org>
89363
89364         * gnulib-tool: Recognize option --extract-maintainer.
89365         (func_get_maintainer): New function.
89366         * modules/*: Add Maintainer entry.
89367
89368 2003-01-16  Jim Meyering  <jim@meyering.net>
89369
89370         * m4/regex.m4: The `regex' struct is both input and output.
89371         Initialize it before each use.  Patch by Tim Waugh.
89372
89373 2003-01-16  Bruno Haible  <bruno@clisp.org>
89374
89375         * MODULES.html.sh: Add a table of contents. Add the module name as
89376         leftmost column. Add hyperlinks.
89377
89378 2003-01-15  Bruno Haible  <bruno@clisp.org>
89379
89380         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89381
89382 2003-01-15  Bruno Haible  <bruno@clisp.org>
89383
89384         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89385         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89386         suffix.
89387
89388 2003-01-15  Bruno Haible  <bruno@clisp.org>
89389
89390         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89391
89392 2003-01-15  Bruno Haible  <bruno@clisp.org>
89393
89394         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89395         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89396
89397 2003-01-14  Jim Meyering  <jim@meyering.net>
89398
89399         * lib/same.c (same_name): Tweak a comment.
89400
89401 2003-01-14  Bruno Haible  <bruno@clisp.org>
89402
89403         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89404         when a string comparison is sufficient.
89405
89406 2003-01-14  Bruno Haible  <bruno@clisp.org>
89407
89408         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89409         'unsigned int'.
89410
89411 2003-01-14  Bruno Haible  <bruno@clisp.org>
89412
89413         * lib/hash-pjw.c: Add comment about low quality of this function.
89414
89415 2003-01-13  Bruno Haible  <bruno@clisp.org>
89416
89417         * modules/stpcpy: Distribute lib/stpcpy.h.
89418         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89419
89420 2003-01-13  Bruno Haible  <bruno@clisp.org>
89421
89422         * modules/*: Add a description.
89423         * modules/strpbrk: Fix Makefile.am snippet.
89424         * modules/strtoimax: Fix dependencies.
89425         * modules/strtoumax: Likewise.
89426
89427 2003-01-13  Bruno Haible  <bruno@clisp.org>
89428
89429         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89430         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89431         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89432
89433 2003-01-13  Bruno Haible  <bruno@clisp.org>
89434
89435         * gnulib-tool (func_create_testdir): Store config/* files in the main
89436         directory.
89437         * config.rpath: Move to ...
89438         * config/config.rpath: ... here.
89439         * modules/gettext: Contains config/config.rpath, not config.rpath.
89440         * modules/iconv: Likewise.
89441
89442 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89443
89444         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89445         to avoid collisions with libcurses and libreadline.
89446
89447         * m4/getstr.m4: Remove.
89448         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89449
89450 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89451
89452         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89453         to avoid collisions with libcurses and libreadline.
89454
89455         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89456         * lib/getstr.h, getstr.c: Remove.
89457         * lib/getline.c: Include "getline.h", to check interface.
89458         Move body of old getstr.c here: this defines MIN_CHUNK and
89459         declares getdelim2, which is renamed from getstr.
89460         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89461
89462         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89463         All uses changed.
89464         * lib/linebuffer.h: Likewise.
89465         (readline): Remove backward-compatibility macro.
89466
89467 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89468
89469         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89470         to avoid collisions with libcurses and libreadline.
89471         * getstr: Remove.
89472         * MODULES.html.sh: Remove getstr.
89473         * modules/getline: Depend on unlocked-io, not getstr.
89474
89475 2003-01-12  Jim Meyering  <jim@meyering.net>
89476
89477         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89478
89479 2003-01-10  Bruno Haible  <bruno@clisp.org>
89480
89481         * modules/alloca: Change Makefile.am requirements. Simplify Include
89482         requirements. Add lib/alloca_.h to file list.
89483
89484 2003-01-10  Bruno Haible  <bruno@clisp.org>
89485
89486         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89487
89488 2003-01-10  Bruno Haible  <bruno@clisp.org>
89489
89490         * lib/alloca_.h: New file.
89491         * lib/getdate.y: Unconditionally include alloca.h.
89492         * lib/makepath.c: Likewise.
89493         * lib/setenv.c: Likewise.
89494         * lib/userspec.c: Likewise.
89495
89496 2003-01-09  Karl Berry  <karl@gnu.org>
89497
89498         * MODULES.html.sh: include `dirname $0` in PATH, to find
89499         gnulib-tool.
89500
89501 2003-01-09  Bruno Haible  <bruno@clisp.org>
89502
89503         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89504         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89505
89506 2003-01-09  Bruno Haible  <bruno@clisp.org>
89507
89508         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89509
89510 2003-01-09  Bruno Haible  <bruno@clisp.org>
89511
89512         * lib/stdbool.h.in: New file.
89513
89514 2003-01-09  Bruno Haible  <bruno@clisp.org>
89515
89516         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89517         * MODULES.html.sh: Likewise.
89518
89519 2003-01-08  Jim Meyering  <jim@meyering.net>
89520
89521         * lib/full-write.c: Undefine and define-away `const' after inclusion
89522         of errno.h, not before.  Suggestion from Bruno Haible.
89523
89524 2003-01-08  Bruno Haible  <bruno@clisp.org>
89525
89526         * modules/full-read: Depend on full-write.
89527
89528 2003-01-08  Bruno Haible  <bruno@clisp.org>
89529
89530         * lib/safe-read.c: Include specification header first, to ensure its
89531         selfcontainedness.
89532         * lib/full-write.c: Likewise.
89533
89534 2003-01-07  Jim Meyering  <jim@meyering.net>
89535
89536         * lib/full-write.c: Rework so that it may serve to define full_read,
89537         too.
89538         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89539
89540 2003-01-07  Bruno Haible  <bruno@clisp.org>
89541
89542         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89543         <inttypes.h>.
89544         * lib/xstrtol.h: Likewise.
89545         * lib/xstrtoimax.c: Likewise.
89546         * lib/xstrtoumax.c: Likewise.
89547         * lib/human.h: Likewise.
89548
89549         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89550         on systems that have <inttypes.h> but not <stdint.h>.
89551
89552 2003-01-07  Bruno Haible  <bruno@clisp.org>
89553
89554         * MODULES.html.sh: Add copyright notice.
89555         (missed_files): Omit CVS directory entries.
89556         (func_module): Make it work with sed-3.02.
89557         * MODULES.txt: Remove file.
89558
89559 2003-01-06  Jim Meyering  <jim@meyering.net>
89560
89561         * lib/version-etc.c: Update year in translatable copyright string.
89562
89563 2003-01-03  Karl Berry  <karl@gnu.org>
89564
89565         * config/config.{guess,sub}: update from prep.
89566
89567 2003-01-02  Karl Berry  <karl@gnu.org>
89568
89569         * doc/COPYING.DOC: belatedly updated to 1.2.
89570
89571 2003-01-01  Karl Berry  <karl@gnu.org>
89572
89573         * gnulib-tool (func_verify_module): report module name $module in
89574         error message, not $1.
89575         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89576         be created, only if it doesn't exist.
89577         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89578
89579 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89580
89581         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89582
89583 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89584
89585         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89586         memcmp if strcoll doesn't work.
89587
89588 2002-12-31  Bruno Haible  <bruno@clisp.org>
89589
89590         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89591         nonempty.
89592
89593 2002-12-31  Bruno Haible  <bruno@clisp.org>
89594
89595         * lib/memcoll.c (STRCOLL): New macro.
89596         (memcoll): Use it.
89597
89598 2002-12-31  Bruno Haible  <bruno@clisp.org>
89599
89600         * lib/localcharset.h: New file.
89601         * lib/localcharset.c: Include it.
89602         * lib/unicodeio.c: Likewise.
89603
89604 2002-12-31  Bruno Haible  <bruno@clisp.org>
89605
89606         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89607         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89608
89609 2002-12-31  Bruno Haible  <bruno@clisp.org>
89610
89611         * lib/getline.h: Include <stddef.h>, for size_t.
89612
89613         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89614         * lib/unicodeio.c: Don't include <stddef.h>.
89615
89616 2002-12-31  Bruno Haible  <bruno@clisp.org>
89617
89618         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89619         HAVE_TM_ZONE.
89620
89621 2002-12-24  Karl Berry  <karl@gnu.org>
89622
89623         * config/config.guess: update from prep.
89624
89625 2002-12-24  Bruno Haible  <bruno@clisp.org>
89626
89627         General infrasructure.
89628         * m4/README: Rewritten.
89629         * m4/onceonly.m4: New file.
89630         * m4/onceonly_2_57.m4: New file.
89631
89632         Module atexit.
89633         * m4/atexit.m4: New file.
89634
89635         Module strtod.
89636         * m4/strtod.m4: New file.
89637
89638         Module strtol.
89639         * m4/strtol.m4: New file.
89640
89641         Module strtoul.
89642         * m4/strtoul.m4: New file.
89643
89644         Module memchr.
89645         * m4/memchr.m4: New file.
89646
89647         Module memcmp.
89648         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89649         (jm_FUNC_MEMCMP): Invoke it.
89650
89651         Module memcpy.
89652         * m4/memcpy.m4: New file.
89653
89654         Module memmove.
89655         * m4/memmove.m4: New file.
89656
89657         Module memset.
89658         * m4/memset.m4: New file.
89659
89660         Module strcspn.
89661         * m4/strcspn.m4: New file.
89662
89663         Module strpbrk.
89664         * m4/strpbrk.m4: New file.
89665
89666         Module strstr.
89667         * m4/strstr.m4: New file.
89668
89669         Module strerror.
89670         * m4/strerror.m4: New file.
89671
89672         Module mktime.
89673         * m4/mktime.m4: Renamed from jm-mktime.m4.
89674         (gl_PREREQ_MKTIME): New macro.
89675         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89676
89677         Module malloc.
89678         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89679         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89680         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89681
89682         Module realloc.
89683         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89684         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89685         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89686
89687         Module strftime.
89688         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89689         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89690         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89691         gl_TM_GMTOFF.
89692         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89693
89694         Module xalloc.
89695         * m4/xalloc.m4: New file.
89696
89697         Module alloca.
89698         * m4/alloca.m4: New file.
89699
89700         Module putenv.
89701         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89702         (jm_FUNC_PUTENV): Invoke it.
89703
89704         Module setenv.
89705         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89706         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89707         when invoked twice.
89708         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89709         gt_FUNC_SETENV.
89710
89711         Module memrchr.
89712         * m4/memrchr.m4: New file.
89713
89714         Module stpcpy.
89715         * m4/stpcpy.m4: New file.
89716
89717         Module strcase.
89718         * m4/strcase.m4: New file.
89719
89720         Module strdup.
89721         * m4/strdup.m4: New file.
89722
89723         Module strnlen.
89724         * m4/strnlen.m4: New file.
89725
89726         Module strndup.
89727         * m4/strndup.m4: New file.
89728
89729         Module xstrtod.
89730         * m4/xstrtod.m4: New file.
89731
89732         Module xstrtol.
89733         * m4/xstrtol.m4: New file.
89734
89735         Module getdate.
89736         * m4/getdate.m4: New file.
89737
89738         Module unlocked-io.
89739         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89740         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89741         * m4/jm-glibc-io.m4n: Remove file.
89742
89743         Module long-options.
89744         * m4/long-options.m4: New file.
89745
89746         Module md5.
89747         * m4/md5.m4: New file.
89748
89749         Module sha.
89750         * m4/sha.m4: New file.
89751
89752         Module getstr.
89753         * m4/getstr.m4: New file.
89754
89755         Module getline.
89756         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89757         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89758         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89759         simply getline. Infoke gl_PREREQ_GETLINE.
89760
89761         Module obstack.
89762         * m4/obstack.m4: New file.
89763
89764         Module hash.
89765         * m4/hash.m4: New file.
89766
89767         Module readtokens.
89768         * m4/readtokens.m4: New file.
89769
89770         Module strverscmp.
89771         * m4/strverscmp.m4: New file.
89772
89773         Module stdbool.
89774         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89775         OSF/1.
89776
89777         Module strtoll.
89778         * m4/strtoll.m4: New file.
89779
89780         Module strtoull.
89781         * m4/strtoull.m4: New file.
89782
89783         Module strtoimax.
89784         * m4/strtoimax.m4: New file.
89785
89786         Module strtoumax.
89787         * m4/strtoumax.m4: New file.
89788
89789         Module xstrtoimax.
89790         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89791         jm_AC_PREREQ_XSTRTOIMAX.
89792         Moved the strtol prerequisites to strtol.m4.
89793         Moved the strtoll prerequisites to strtoll.m4.
89794         Moved the strtoimax prerequisites to strtoimax.m4.
89795
89796         Module xstrtoumax.
89797         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89798         jm_AC_PREREQ_XSTRTOUMAX.
89799         Moved the strtoul prerequisites to strtoul.m4.
89800         Moved the strtoull prerequisites to strtoull.m4.
89801         Moved the strtoumax prerequisites to strtoumax.m4.
89802
89803         Module chown.
89804         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89805         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89806
89807         Module dup2.
89808         * m4/dup2.m4: New file.
89809
89810         Module ftruncate.
89811         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89812         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89813
89814         Module getgroups.
89815         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89816         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89817
89818         Module gettimeofday.
89819         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89820         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89821         gl_PREREQ_GETTIMEOFDAY.
89822
89823         Module mkdir.
89824         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89825         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89826
89827         Module mkstemp.
89828         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89829         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89830         jm_AC_TYPE_UINTMAX_T.
89831         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89832
89833         Module stat.
89834         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89835         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89836
89837         Module lstat.
89838         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89839         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89840
89841         Module timespec.
89842         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89843         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89844         * m4/st_mtim.m4: Indentation.
89845
89846         Module nanosleep.
89847         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89848         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89849         gl_PREREQ_NANOSLEEP.
89850
89851         Module regex.
89852         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89853         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89854         (gl_REGEX): New macro.
89855
89856         Module rename.
89857         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89858         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89859
89860         Module rmdir.
89861         * m4/rmdir.m4: New file.
89862
89863         Module utime.
89864         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89865         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89866         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89867
89868         Module dirname.
89869         * m4/dirname.m4: New file.
89870
89871         Module getopt.
89872         * m4/getopt.m4: New file.
89873
89874         Module unistd-safer.
89875         * m4/unistd-safer.m4: New file.
89876
89877         Module fnmatch.
89878         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89879         declaration.
89880         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89881         (gl_FUNC_FNMATCH_POSIX): New macro.
89882         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89883         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89884         simply fnmatch.
89885
89886         Module exclude.
89887         * m4/exclude.m4: New file.
89888
89889         Module human.
89890         * m4/human.m4: New file.
89891
89892         Module acl.
89893         * m4/acl.m4: Nop.
89894
89895         Module backupfile.
89896         * m4/backupfile.m4: New file.
89897         * m4/d-ino.m4: Indentation.
89898
89899         Module fsusage.
89900         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89901         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89902         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89903
89904         Module dirfd.
89905         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89906         requirements.
89907
89908         Module euidaccess.
89909         * m4/euidaccess.m4: New file.
89910
89911         Module file-type.
89912         * m4/file-type.m4: New file.
89913
89914         Module fileblocks.
89915         * m4/fileblocks.m4: New file.
89916
89917         Module filemode.
89918         * m4/filemode.m4: New file.
89919
89920         Module isdir.
89921         * m4/isdir.m4: New file.
89922
89923         Module lchown.
89924         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89925         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89926
89927         Module makepath.
89928         * m4/makepath.m4: New file.
89929
89930         Module modechange.
89931         * m4/modechange.m4: New file.
89932
89933         Module mountlist.
89934         * m4/mountlist.m4: New file.
89935         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
89936         Indentation.
89937
89938         Module path-concat.
89939         * m4/path-concat.m4: New file.
89940
89941         Module pathmax.
89942         * m4/pathmax.m4: New file.
89943
89944         Module same.
89945         * m4/same.m4: New file.
89946
89947         Module save-cwd.
89948         * m4/save-cwd.m4: New file.
89949
89950         Module savedir.
89951         * m4/savedir.m4: New file.
89952
89953         Module xgetcwd.
89954         * m4/xgetcwd.m4: New file.
89955         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
89956
89957         Module xreadlink.
89958         * m4/xreadlink.m4: New file.
89959
89960         Module safe-read.
89961         * m4/safe-read.m4: New file.
89962
89963         Module safe-write.
89964         * m4/safe-write.m4: New file.
89965
89966         Module closeout.
89967         * m4/closeout.m4: New file.
89968
89969         Module stdio-safer.
89970         * m4/stdio-safer.m4: New file.
89971
89972         Module getpass.
89973         * m4/getpass.m4: New file.
89974
89975         Module getugroups.
89976         * m4/getugroups.m4: New file.
89977
89978         Module group-member.
89979         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
89980         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
89981
89982         Module idcache.
89983         * m4/idcache.m4: New file.
89984
89985         Module userspec.
89986         * m4/userspec.m4: New file.
89987
89988         Module gettime.
89989         * m4/clock_time.m4: New file.
89990         * m4/gettime.m4: New file.
89991
89992         Module settime.
89993         * m4/settime.m4: New file.
89994
89995         Module posixtm.
89996         * m4/posixtm.m4: New file.
89997
89998         Module gethostname.
89999         * m4/gethostname.m4: New file.
90000
90001         Module canon-host.
90002         * m4/canon-host.m4: New file.
90003
90004         Module gettext.
90005         * m4/codeset.m4: New file, from gettext-0.11.5.
90006         * m4/gettext.m4: New file, from gettext-0.11.5.
90007         * m4/glibc21.m4: New file, from gettext-0.11.5.
90008         * m4/iconv.m4: New file, from gettext-0.11.5.
90009         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90010         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90011         * m4/inttypes.m4: New file, from gettext-0.11.5.
90012         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90013         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90014         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90015         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90016         * m4/lib-link.m4: New file, from gettext-0.11.5.
90017         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90018         * m4/progtest.m4: New file, from gettext-0.11.5.
90019         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90020         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90021         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90022
90023         Module localcharset.
90024         * m4/localcharset.m4: New file.
90025
90026         Module hard-locale.
90027         * m4/hard-locale.m4: New file.
90028
90029         Module mbswidth.
90030         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90031         onceonly macros.
90032         * m4/mbrtowc.m4: Add comment.
90033
90034         Module memcasecmp.
90035         * m4/memcasecmp.m4: New file.
90036
90037         Module memcoll.
90038         * m4/memcoll.m4: New file.
90039
90040         Module unicodeio.
90041         * m4/unicodeio.m4: New file.
90042
90043         Module rpmatch.
90044         * m4/rpmatch.m4: New file.
90045
90046         Module yesno.
90047         * m4/yesno.m4: New file.
90048
90049         Module exitfail.
90050         * m4/exitfail.m4: New file.
90051
90052         Module c-stack.
90053         * m4/c-stack.m4 (gl_C_STACK): New macro.
90054         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90055
90056         Module error.
90057         * m4/error.m4 (gl_ERROR): New macro.
90058         (jm_PREREQ_ERROR): Use onceonly macros.
90059
90060         Module fatal.
90061         * m4/fatal.m4: New file.
90062
90063         Module getloadavg.
90064         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90065         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90066
90067         Module getpagesize.
90068         * m4/getpagesize.m4: New file.
90069
90070         Module getusershell.
90071         * m4/getusershell.m4: New file.
90072
90073         Module physmem.
90074         * m4/physmem.m4: New file.
90075
90076         Module posixver.
90077         * m4/posixver.m4: New file.
90078
90079         Module quotearg.
90080         * m4/quotearg.m4: New file.
90081
90082         Module quote.
90083         * m4/quote.m4: New file.
90084
90085         Module readutmp.
90086         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90087
90088         Module sig2str.
90089         * m4/sig2str.m4: New file.
90090
90091         Other.
90092         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90093         ulonglong.m4.
90094         * m4/intmax_t.m4: New file.
90095         * m4/d-type.m4: Indentation.
90096         * m4/jm-macros.m4: Update.
90097         * m4/prereq.m4 (jm_PREREQ): Update.
90098         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90099         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90100         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90101         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90102         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90103         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90104         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90105         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90106         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90107         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90108         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90109         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90110         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90111         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90112         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90113         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90114         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90115         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90116         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90117
90118 2002-12-24  Bruno Haible  <bruno@clisp.org>
90119
90120         * MODULES.txt: Update according to m4/ changes.
90121
90122         Module gettext.
90123         * config.rpath: New file, from gettext-0.11.5.
90124
90125         * modules/*: New module descriptions.
90126         * gnulib-tool: New file.
90127         * MODULES.html.sh: New file.
90128
90129 2002-12-21  Karl Berry  <karl@gnu.org>
90130
90131         * doc/fdl.texi: update to version 1.2.
90132
90133 2002-12-19  Karl Berry  <karl@gnu.org>
90134
90135         * config/config.guess: update from prep.
90136
90137 2002-12-18  Bruno Haible  <bruno@clisp.org>
90138
90139         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90140         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90141
90142 2002-12-17  Bruno Haible  <bruno@clisp.org>
90143
90144         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90145         stdlib.h, string.h.
90146
90147 2002-12-17  Bruno Haible  <bruno@clisp.org>
90148
90149         * lib/canon-host.c (strdup): Remove unused declaration.
90150
90151         * lib/fsusage.c: Include full_read.h.
90152         (get_fs_usage): Use full_read instead of safe_read.
90153
90154         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90155
90156 2002-12-12  Karl Berry  <karl@gnu.org>
90157
90158         * config/config.guess: update from prep.
90159
90160 2002-12-11  Bruno Haible  <bruno@clisp.org>
90161
90162         * m4/setenv.m4: New file, from gettext-0.11.5.
90163
90164 2002-12-11  Bruno Haible  <bruno@clisp.org>
90165
90166         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90167         not unsetenv().
90168         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90169         modifications:
90170
90171         2002-12-11  Bruno Haible  <bruno@clisp.org>
90172
90173                 * setenv.c (alloca): Fall back to malloc.
90174                 (freea): New macro.
90175                 (setenv): Use freea() to free memory allocated with alloca().
90176
90177         2002-11-13  Bruno Haible  <bruno@clisp.org>
90178
90179                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90180                 function declarations.
90181                 * unsetenv.c (unsetenv): Likewise.
90182
90183         2002-03-04  Bruno Haible  <bruno@clisp.org>
90184
90185                 Portability to AIX 4.3.3.
90186                 * unsetenv.c: New file, extracted from setenv.c.
90187                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90188
90189         2001-12-20  Bruno Haible  <bruno@clisp.org>
90190
90191                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90192                 use malloc instead. For SunOS 4.
90193
90194         2001-12-11  Bruno Haible  <bruno@clisp.org>
90195
90196                 * setenv.c: Declare alloca.
90197                 (compar_fn_t): New typedef.
90198                 (KNOWN_VALUE, STORE_VALUE): Use it.
90199
90200         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90201         setenv.h.
90202
90203 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90204
90205         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90206         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90207         Choose values that are less likely to collide with system fnmatch
90208         options.
90209         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90210         defined (e.g., a pure POSIX system).
90211         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90212         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90213
90214 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90215
90216         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90217         a pain in practice to deal with generated m4 files.  This change
90218         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90219
90220         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90221         and jm-glibc-io.m4, as they are no longer a special case.
90222         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90223         kludge and the auto-generation stuff.  Check only whether the
90224         functions are declared, not whether they exist, since older hosts
90225         that don't declare the functions can't use the optimization anyway.
90226
90227 2002-12-06  Jim Meyering  <jim@meyering.net>
90228
90229         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90230
90231         Merge in changes from libc's misc/error.c, in preparation
90232         for the merge of gnulib's changes back into libc.
90233
90234         * lib/error.c (_): Define only if not already defined.
90235         Move definition to follow all #include directives.
90236         Include unlocked-io.h only if !_LIBC.
90237         [_LIBC]: Include <libio/libioP.h>.
90238         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90239         (fflush): Tweak definition to use INTUSE.
90240         (putc): Define.
90241
90242 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90243
90244         * lib/alloca.c [defined emacs]: Include "lisp.h".
90245         (xalloc_die) [defined emacs]: New macro.
90246         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90247         [! defined emacs]: Include <xalloc.h>.
90248         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90249         (pointer): Typedef to POINTER_TYPE *.
90250         (malloc): Remove decl; we now always use xmalloc.
90251         (alloca): Use old-style definition, since Emacs needs this.
90252         Check for arithmetic overflow when computing combined size.
90253
90254 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90255
90256         Do not generate unlocked-io.h automatically, since it's easier to
90257         maintain it by hand.
90258
90259         * lib/unlocked-io.h: New file, from GNU diffutils,
90260         but with proper copyright notice and attribution.
90261         * lib/gen-uio: Remove.
90262         * lib/Makefile.am: Add copyright notice.
90263         (libfetish_a_SOURCES): Add unlocked-io.h.
90264         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90265         (DISTCLEANFILES, io_functions): Remove macros.
90266         (EXTRA_DIST): Remove gen_uio.
90267         (unlocked-io.h): Remove rule.
90268
90269 2002-12-04  Jim Meyering  <jim@meyering.net>
90270
90271         Reflect the fact that stat.c and lstat.c are no longer generated.
90272         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90273         (DISTCLEANFILES): Likewise.
90274         (EXTRA_DIST): Likewise.
90275         (all_local): Don't depend on stat.c or lstat.c.
90276         (stat.c, lstat.c): Remove rules.
90277         (EXTRA_DIST): Remove xstat.in.
90278
90279         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90280         * lib/stat.c: New file.  Contents mostly from xstat.in.
90281         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90282         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90283
90284         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90285         too.
90286         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90287
90288 2002-12-03  Jim Meyering  <jim@meyering.net>
90289
90290         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90291         but not semantics, to minimize the differences between these two files.
90292         (safe_read): Change comment to mention SAFE_READ_ERROR.
90293
90294         * lib/safe-read.c (IS_EINTR): Define.
90295         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90296
90297 2002-12-02  Jim Meyering  <jim@meyering.net>
90298
90299         * lib/safe-read.c (EINTR): Define.
90300         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90301         (INT_MAX): Provide fallback.
90302         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90303
90304         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90305
90306 2002-12-02  Bruno Haible  <bruno@clisp.org>
90307
90308         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90309         Define, taken from safe-read.c.
90310         (INT_MAX): Provide fallback.
90311         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90312         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90313
90314         * lib/safe-read.c (EINTR): Remove definition.
90315         (safe_read): Don't use EINTR if it is absent.
90316
90317 2002-12-01  Jim Meyering  <jim@meyering.net>
90318
90319         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90320         zero.
90321         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90322
90323 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90324
90325         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90326         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90327         with `if (! (value < limit)) abort ();', for readability.
90328
90329 2002-11-26  Karl Berry  <karl@gnu.org>
90330
90331         * lib/strdup.c: copy from libc again, with jim's ok.
90332         * lib/.cppi-disable: re-add strdup.c
90333
90334 2002-11-25  Karl Berry  <karl@gnu.org>
90335
90336         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90337         instead of "strtol.c".
90338
90339 2002-11-25  Karl Berry  <karl@gnu.org>
90340
90341         * config/install-sh: update from automake for variable quoting, $0 in
90342         error msgs, etc.
90343
90344         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90345         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90346         entry.
90347
90348 2002-11-25  Jim Meyering  <jim@meyering.net>
90349
90350         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90351
90352 2002-11-24  Karl Berry  <karl@gnu.org>
90353
90354         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90355         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90356
90357 2002-11-24  Jim Meyering  <jim@meyering.net>
90358
90359         Update from coreutils:
90360
90361         * lib/mktime.c: Merge in changes from libc.
90362
90363         Avoid a link-time failure on some Linux systems.
90364         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90365         (otherwise).
90366         (__mon_yday): Declare with the STATIC attribute.
90367         (__mktime_internal): Likewise.
90368         Based on a report from Greg Schafer.
90369
90370 2002-11-23  Jim Meyering  <jim@meyering.net>
90371
90372         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90373         Use `unsigned', not `int', as type of index.
90374
90375         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90376
90377         * lib/fsusage.c: Remove unneeded parentheses around operands of
90378         `defined'.
90379
90380 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90381
90382         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90383         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90384         so that we can be included first.
90385         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90386         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90387         No need to include stddef.h or sys/types.h any more.
90388         Surround local include files with "", not "<>".
90389         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90390         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90391         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90392         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90393         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90394         (ISPRINT): Remove; no longer needed now that we assume C89.
90395
90396         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90397         Preserve errno.
90398
90399         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90400         quotearg_char): Use SIZE_MAX rather than
90401         (size_t) -1 when we are talking about "infinity".
90402
90403         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90404
90405 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90406
90407         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90408         hint that one should use `if (! x) abort ();' rather than `assert
90409         (x);', and anyway it's one less thing to worry about configuring.
90410         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90411         hash_rehash, hash_insert): Use abort rather than assert.
90412
90413 2002-11-22  Bruno Haible  <bruno@clisp.org>
90414
90415         * lib/safe-read.h: Assume C89. Add comments.
90416         (safe_read): Change return type to size_t.
90417         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90418         byte counts > SSIZE_MAX correctly.
90419         * lib/safe-write.h: New file.
90420         * lib/safe-write.c: New file.
90421         * lib/full-read.h: New file.
90422         * lib/full-read.c: New file.
90423         * lib/full-write.h: Assume C89. Add comments.
90424         * lib/full-write.c: Include safe-write.h.
90425         (full_write): Rewritten to use safe_write.
90426         Suggested by Jim Meyering and Paul Eggert.
90427
90428 2002-11-21  Jim Meyering  <jim@meyering.net>
90429
90430         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90431
90432         Merge in changes from the coreutils.
90433
90434         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90435         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90436         <stdint.h>.
90437         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90438         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90439         int.  Work more efficiently if X is the same width as uintmax_t.
90440         Do not compare X to -1, to avoid bogus compiler warning.
90441         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90442         Don't assume that f_frsize and f_bsize are the same type.
90443
90444         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90445         warning on FreeBSD.
90446
90447         * lib/makepath.c (make_path): Restore umask *before* creating the final
90448         component.
90449         (make_path): Minor reformatting.
90450
90451         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90452         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90453         HAVE_MALLOC/HAVE_REALLOC.
90454
90455         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90456         dummy ones.  At least on GNU/Linux systems, `auto' means something
90457         else.
90458         From Michael Stone.
90459
90460 2002-11-21  Bruno Haible  <bruno@clisp.org>
90461
90462         Remove case insensitive option matching.
90463         * lib/argmatch.h (argcasematch): Remove declaration.
90464         (ARGCASEMATCH): Remove macro.
90465         (__xargmatch_internal): Remove case_sensitive argument.
90466         (XARGMATCH): Update.
90467         (XARGCASEMATCH): Remove macro.
90468         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90469         case_sensitive argument.
90470         (argcasematch): Remove function.
90471         (__xargmatch_internal): Remove case_sensitive argument.
90472         (main): Use XARGMATCH instead of XARGCASEMATCH.
90473
90474         * lib/xmalloc.c: Change compile-time error message. Add comment about
90475         required autoconf version.
90476
90477 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90478
90479         Merge argmatch cleanups from Bison.  Assume C89.
90480
90481         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90482         Include stdlib.h, for EXIT_FAILURE.
90483         Always include <string.h>, since we assume C89.
90484         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90485         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90486         Include <stddef.h> instead, since it's all we need for size_t.
90487         (PARAMS): Remove.  All uses removed.
90488         (ARRAY_CARDINALITY): Do not bother to #undef.
90489         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90490         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90491         Remove unnecessary parentheses.
90492         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90493         Insert necessary parentheses.
90494         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90495         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90496
90497 2002-11-19  Bruno Haible  <bruno@clisp.org>
90498
90499         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90500         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90501
90502         * lib/mbswidth.h (PARAMS): Remove macro.
90503         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90504         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90505
90506         * lib/gcd.h (PARAMS): Remove macro.
90507         (gcd): Use ANSI C function declarations.
90508         * lib/gcd.c (gcd): Likewise.
90509
90510 2002-11-15  Bruno Haible  <bruno@clisp.org>
90511
90512         * lib/strcspn.c: Include <stddef.h>.
90513         (strcspn): Use ANSI C function declaration. Change return type to
90514         size_t. Use NULL.
90515         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90516         (strpbrk): Use NULL.
90517         * lib/strpbrk.h (PARAMS): Remove macro.
90518         (strpbrk): Use ANSI C function declaration.
90519         * lib/strstr.c: Don't include <sys/types.h>.
90520         * lib/strstr.h (PARAMS): Remove macro.
90521         (strstr): Use ANSI C function declarations.
90522
90523 2002-11-14  Karl Berry  <karl@gnu.org>
90524
90525         * config/mkinstalldirs: `do' on separate line, instead of
90526         `for var; do'.
90527
90528 2002-11-06  Bruno Haible  <bruno@clisp.org>
90529
90530         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90531         * lib/gcd.c (gcd): Likewise.
90532
90533 2002-11-05  Bruno Haible  <bruno@clisp.org>
90534
90535         * lib/gcd.h: New file, from gettext-0.11.5.
90536         * lib/gcd.c: New file, from gettext-0.11.5.
90537
90538 2002-11-05  Bruno Haible  <bruno@clisp.org>
90539
90540         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90541         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90542         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90543         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90544
90545         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90546         <libintl.h>.
90547         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90548         <libintl.h>.
90549
90550         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90551         * lib/human.c: Include gettext.h instead of <libintl.h>.
90552         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90553         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90554         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90555         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90556         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90557         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90558         (textdomain): Remove definition.
90559         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90560
90561         * lib/long-options.c: Remove include of <libintl.h> and definition of
90562         _.
90563         * lib/same.c: Remove include of <libintl.h> and definition of _.
90564
90565 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90566
90567         * lib/config.charset: A few additions for Solaris.
90568
90569 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90570
90571         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90572         * lib/localcharset.c (locale_charset): Declare as extern "C".
90573
90574 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90575
90576         * lib/config.charset: msdos in uk_UA uses CP1125.
90577
90578 2002-11-04  Bruno Haible  <bruno@clisp.org>
90579
90580         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90581         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90582         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90583         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90584         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90585
90586 2002-11-04  Bruno Haible  <bruno@clisp.org>
90587
90588         * lib/localcharset.c (locale_charset): Don't return an empty string.
90589
90590 2002-11-04  Bruno Haible  <bruno@clisp.org>
90591
90592         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90593         aliases.
90594
90595 2002-11-04  Bruno Haible  <bruno@clisp.org>
90596
90597         * lib/config.charset: Update for newest glibc. Add canonical names
90598         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90599
90600 2002-11-04  Bruno Haible  <bruno@clisp.org>
90601
90602         * lib/config.charset: Add support for NetBSD.
90603
90604 2002-11-04  Bruno Haible  <bruno@clisp.org>
90605
90606         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90607
90608 2002-11-01  Bruno Haible  <bruno@clisp.org>
90609
90610         * configure.in: Add AC_CONFIG_AUX_DIR call.
90611         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90612         test/Makefile.
90613         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90614
90615 2002-09-28  Karl Berry  <karl@gnu.org>
90616
90617         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90618         installed automake until the next release, since changes have been
90619         made.
90620
90621 2002-09-25  Karl Berry  <karl@gnu.org>
90622
90623         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90624         * lib/getopt*: copy from libc/posix.
90625         * lib/gettext.h: copy from gettext.
90626         * lib/.cppi-disable: add strdup.c, gettext.h.
90627
90628 2002-09-25  Karl Berry  <karl@gnu.org>
90629
90630         * config/srclist.txt: enable gettext.h check.
90631         * config/config.{guess,sub}: update from prep.
90632         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90633                 from automake 1.6.3.
90634         See srclist*.
90635
90636 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90637
90638         * regex.c (PATFETCH): Remove the translating fetch.
90639         (PATFETCH_RAW): Rename to PATFETCH.
90640         (set_image_of_range): New fun.
90641         (SET_RANGE_TABLE_WORK_AREA): Use it.
90642         (regex_compile): Don't translate the pattern chars so eagerly.
90643         Only do it when inserting an `exactn' bytecode or when handling
90644         a char-range.
90645         (mutually_exclusive_p): Avoid empty statement.
90646
90647 2002-07-06  Jim Meyering  <meyering@lucent.com>
90648
90649         * m4/README: Don't mention Makefile.am.in.
90650         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90651
90652 2002-07-01  Jim Meyering  <meyering@lucent.com>
90653
90654         * lib/c-stack.c: Include sys/time.h.
90655         From Volker Borchert.
90656
90657 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90658
90659         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90660
90661 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90662
90663         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90664         New macro.  Use it uniformly instead of
90665         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90666         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90667         reported by Vin Shelton.
90668
90669 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90670
90671         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90672         Do not assume SA_SIGINFO behavior.
90673         Bug reported by Jim Meyering on NetBSD 1.5.2.
90674
90675 2002-06-22  Jim Meyering  <meyering@lucent.com>
90676
90677         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90678         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90679
90680         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90681         now that configure.ac uses AC_GNU_SOURCE.
90682         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90683         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90684
90685         Update to latest tools.  Suggestions from Paul Eggert.
90686         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90687         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90688         * m4/fnmatch.m4: Likewise.
90689         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90690         to AC_HEADER_STDBOOL
90691
90692 2002-06-22  Jim Meyering  <meyering@lucent.com>
90693
90694         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90695         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90696
90697 2002-06-22  Jim Meyering  <meyering@lucent.com>
90698
90699         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90700
90701         * lib/exitfail.c, exitfail.h: Likewise.
90702         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90703
90704         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90705         of fnmatch.h.
90706         (EXTRA_DIST): Add fnmatch_loop.c.
90707         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90708
90709         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90710         * lib/fnmatch.c: Update from diffutils-2.8.2.
90711         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90712         * lib/fnmatch.h: Remove file.
90713
90714 2002-06-21  Jim Meyering  <meyering@lucent.com>
90715
90716         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90717         * m4/mbrtowc.m4: Likewise.
90718
90719         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90720         * m4/mbswidth.m4: Reflect name change:
90721         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90722         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90723
90724         * m4/lib-link.m4: Update from gettext-0.11.2.
90725         * m4/gettext.m4: Likewise.
90726
90727         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90728         From Alfred M. Szmidt.
90729
90730 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90731
90732         * lib/file-type.h: Report an error if neither S_ISREG nor
90733         S_IFREG is defined, instead of using a test specific to glibc
90734         2.2.  This should be safe, since POSIX requires S_ISREG and
90735         Unix Version 7 had S_IFREG.  We don't need to check for
90736         <sys/types.h> since we don't use any symbols that it defines.
90737
90738 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90739
90740         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90741         $@-t, so that each temporary file name is unique and valid in the first
90742         8 characters, for operation under DOS.
90743
90744 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90745
90746         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90747
90748 2002-06-15  Jim Meyering  <meyering@lucent.com>
90749
90750         Work even with DJGPP 2.03, which lacks support for symlinks.
90751         From Richard Dawe.
90752         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90753         is defined.
90754         * lib/lchown.c (S_ISLNK): Likewise.
90755
90756 2002-06-15  Jim Meyering  <meyering@lucent.com>
90757
90758         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90759         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90760         have been included before this file.
90761
90762 2002-06-14  Jim Meyering  <meyering@lucent.com>
90763
90764         * lib/file-type.h: Use the version from diffutils-2.8.2.
90765         * lib/file-type.c: Likewise.
90766
90767 2002-06-07  Jim Meyering  <meyering@lucent.com>
90768
90769         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90770         They're needed at least for NetBSD 1.5.2.
90771         ($statxfs_includes): Include those same headers.
90772         ($statxfs_includes): Include sys/vfs.h if available.
90773         ($statxfs_includes): Likewise for sys/statvfs.h.
90774         Check for the following members in both structs statfs and statvfs:
90775         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90776
90777 2002-06-01  Jim Meyering  <meyering@lucent.com>
90778
90779         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90780         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90781
90782 2002-05-28  Jim Meyering  <meyering@lucent.com>
90783
90784         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90785         Reported by Volker Borchert.
90786
90787 2002-05-27  Jim Meyering  <meyering@lucent.com>
90788
90789         Fix a problem seen only on nonconforming systems whereby ls.c's
90790         use of localtime, and then of gettimeofday would cause trouble:
90791         the localtime call used to initialize rpl_gettimeofday's save
90792         mechanism would clobber ls's current local time information so
90793         that in any long listing the first file would always be listed
90794         with date 1970-01-01.  Analysis by Volker Borchert.
90795
90796         * lib/gettimeofday.c (localtime): Undefine.
90797         (rpl_localtime): New function.
90798
90799 2002-05-27  Jim Meyering  <meyering@lucent.com>
90800
90801         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90802         localtime.
90803
90804         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90805         use the replacement function; it wouldn't resolve at link time.
90806         Reported by Volker Borchert.
90807
90808 2002-05-22  Jim Meyering  <meyering@lucent.com>
90809
90810         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90811         file-type.h.
90812         * lib/file-type.h: New file.
90813         * lib/file-type.c (file_type): New file/function.  Extracted from
90814         diffutils.
90815
90816 2002-04-30  Jim Meyering  <meyering@lucent.com>
90817
90818         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90819
90820 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90821
90822         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90823
90824 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90825
90826         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90827         Do not check for alloca.h (no longer used) or stdbool.h (was never
90828         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90829
90830 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90831
90832         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90833
90834 2002-04-29  Jim Meyering  <meyering@lucent.com>
90835
90836         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90837         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90838         Use AC_FUNC_STRNLEN here instead.
90839
90840         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90841         With autoconf-2.53a, it's part of AC_PROG_CC.
90842
90843 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90844
90845         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90846         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90847
90848 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90849
90850         * lib/sig2str.h, lib/sig2str.c: New files.
90851         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90852
90853 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90854
90855         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90856         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90857         of 127, since 64 is the largest conceivable number for ancient
90858         nonstandard hosts.
90859         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90860
90861 2002-04-28  Jim Meyering  <meyering@lucent.com>
90862
90863         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90864
90865 2002-04-24  Jim Meyering  <meyering@lucent.com>
90866
90867         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90868         (jm_PREREQ): Use it.
90869
90870         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90871         mach/mach.h fcntl.h.
90872         Check for this function: setlocale.
90873
90874 2002-04-24  Jim Meyering  <meyering@lucent.com>
90875
90876         * lib/gettext.h: New file, from Gettext.
90877         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90878         (libfetish_a_SOURCES): Add gettext.h.
90879
90880 2002-04-16  Jim Meyering  <meyering@lucent.com>
90881
90882         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90883         ut_pid, ut_id, ut_exit.
90884
90885 2002-04-16  Jim Meyering  <meyering@lucent.com>
90886
90887         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90888         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90889         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90890
90891 2002-04-12  Jim Meyering  <meyering@lucent.com>
90892
90893         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90894         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90895         existence of the getmntinfo function.  Needed for Darwin 5.3.
90896
90897         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90898         This is necessary at least on Darwin 5.3.
90899
90900         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90901         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90902         strnlen.o in the library, and that makes some versions of ranlib
90903         object.
90904
90905 2002-04-12  Jim Meyering  <meyering@lucent.com>
90906
90907         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90908
90909 2002-04-09  Jim Meyering  <meyering@lucent.com>
90910
90911         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90912         to be more precise.  Rather than saying we're checking whether the
90913         function `works', say what we're testing.
90914         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90915         Reported by Bruno Haible.
90916
90917 2002-03-10  Jim Meyering  <meyering@lucent.com>
90918
90919         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90920         Suggestion from Santiago Vila.
90921
90922 2002-03-08  Jim Meyering  <meyering@lucent.com>
90923
90924         * lib/rename.c: Mention that this wrapper is needed also on
90925         mips-dec-ultrix4.4 systems.
90926
90927 2002-03-02  Jim Meyering  <meyering@lucent.com>
90928
90929         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
90930         not HAVE_CLOCK_SETTIME.
90931
90932 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90933
90934         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
90935         Check for clock_settime.
90936
90937 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90938
90939         * lib/nanosleep.h: Rename to....
90940         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
90941
90942         * lib/gettime.c: New file.
90943         * lib/settime.c: New file.
90944         * lib/stime.c: Remove.
90945
90946         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
90947         timespec.h.  Remove nanosleep.h.
90948
90949 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90950
90951         * m4/acl.m4: New file.
90952         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
90953         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
90954
90955 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90956
90957         * lib/acl.c, lib/acl.h: New files.
90958         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
90959
90960 2002-02-24  Jim Meyering  <meyering@lucent.com>
90961
90962         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
90963         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
90964         cause trouble.  Reported by Nelson Beebe.
90965
90966 2002-02-23  Paul Eggert  <eggert@twinsun.com>
90967
90968         * lib/path-concat.c (xpath_concat): Reorder code to pacify
90969         compilers that don't know that xalloc_die never returns.
90970
90971 2002-02-20  Jim Meyering  <meyering@lucent.com>
90972
90973         * lib/getdate.c: Regenerate using bison-1.33.
90974
90975 2002-02-17  Jim Meyering  <meyering@lucent.com>
90976
90977         * config/config.guess (main): Don't use `head -1'; it's no longer
90978         portable. Use `sed 1q' instead.
90979
90980 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
90981
90982         * m4/codeset.m4: Upgrade to gettext-0.11.
90983         * m4/gettext.m4: Upgrade to gettext-0.11.
90984         * m4/glibc21.m4: Upgrade to gettext-0.11.
90985         * m4/iconv.m4: Upgrade to gettext-0.11.
90986         * m4/isc-posix.m4: Upgrade to gettext-0.11.
90987         * m4/lcmessage.m4: Upgrade to gettext-0.11.
90988         * m4/lib-ld.m4: New file, from gettext-0.11.
90989         * m4/lib-link.m4: New file, from gettext-0.11.
90990         * m4/lib-prefix.m4: New file, from gettext-0.11.
90991         * m4/progtest.m4: Upgrade to gettext-0.11.
90992
90993 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90994
90995         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
90996         (jm_PREREQ): Use it.
90997
90998 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90999
91000         * lib/posixver.c, lib/posixver.h: New files.
91001         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91002
91003 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91004             Bruno Haible  <bruno@clisp.org>
91005
91006         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91007         (fwrite_success_callback): New declaration.
91008         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91009         print_unicode_char. Call failure callback instead of error.
91010         (fwrite_success_callback): New function.
91011         (exit_failure_callback): New function.
91012         (fallback_failure_callback): New function.
91013         (print_unicode_char): Call unicode_to_mb.
91014
91015 2002-01-26  Jim Meyering  <meyering@lucent.com>
91016
91017         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91018         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91019
91020 2002-01-26  Jim Meyering  <meyering@lucent.com>
91021
91022         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91023
91024 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91025
91026         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91027
91028 2002-01-22  Jim Meyering  <meyering@lucent.com>
91029
91030         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91031         Otherwise, some versions of automake would omit the rule that makes
91032         Makefile from Makefile.in.
91033
91034 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91035
91036         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91037         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91038         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91039         (memcoll): Set errno to zero if there is no error.
91040
91041         * lib/quotearg.c (quotearg_buffer_restyled):
91042         Fix bug with quoting buffers containing NUL when backslashing escapes.
91043         This bug was exposed by the other changes in this patch.
91044         (quotearg_n_options): New arg ARGSIZE.
91045         All callers changed.
91046         (quoting_options_from_style): New function.
91047         (quotearg_n_style): Use it.
91048         (quotearg_n_style_mem): New function.
91049
91050         * lib/quotearg.h (quotearg_n_style_mem): New function.
91051
91052 2002-01-19  Jim Meyering  <meyering@lucent.com>
91053
91054         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91055         Remove useless quotes: DF_PROG="df".
91056         * m4/strnlen.m4: New file.
91057
91058 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91059
91060         * lib/backupfile.c (ISDIGIT): Comment fix.
91061         * lib/getdate.y (ISDIGIT): Likewise.
91062         * lib/posixtm.c (ISDIGIT, year): Likewise.
91063         * lib/strverscmp.c (ISDIGIT): Likewise.
91064         * lib/userspec.c (ISDIGIT): Likewise.
91065
91066 2002-01-16  Jim Meyering  <meyering@lucent.com>
91067
91068         * lib/getdate.y: Add three semicolons, each just before a closing
91069         brace. Bison (as of version 1.31) no longer papers over that mistake.
91070
91071 2002-01-05  Jim Meyering  <meyering@lucent.com>
91072
91073         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91074
91075 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91076
91077         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91078         not silently exit merely because the output buffer happens to
91079         have nothing pending.
91080
91081 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91082
91083         See the big note in ../ChangeLog.
91084         * lib/human.c (suffixes): Prefer K to k for 1024.
91085         (generate_suffix_backwards): New function.
91086         (human_readable_inexact): Use it.
91087         * lib/xstrtol.c (__xstrtol): If there is no number but there
91088         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91089         Accept 'K' as well as 'k'.
91090
91091 2001-12-15  Jim Meyering  <meyering@lucent.com>
91092
91093         * lib/regex.h (__restrict_arr): Update from libc.
91094
91095         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91096         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91097         (STREQ): Define.
91098
91099 2001-12-14  Jim Meyering  <meyering@lucent.com>
91100
91101         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91102         Suggestion from Bruno Haible.
91103
91104 2001-12-10  Jim Meyering  <meyering@lucent.com>
91105
91106         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91107         xrealloc, Instead, include "xalloc.h".
91108         (initbuffer): Don't cast xmalloc return value to char*.
91109         (readline): Reword comment.
91110         Don't cast xrealloc return value to char*
91111         Return NULL, not 0.
91112
91113 2001-12-09  Jim Meyering  <meyering@lucent.com>
91114
91115         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91116         about `signed and unsigned type in conditional expression'.
91117         * lib/posixtm.c (posix_time_parse): Likewise.
91118
91119         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91120
91121         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91122         to avoid a pedantic warning.
91123
91124         * lib/getstr.c: Don't include assert.h.
91125         (getstr): Remove warning-evoking assertions.
91126         Return -1 if offset parameter is out of bounds.
91127         Change the type of a local from int to size_t.
91128
91129         * lib/strftime.c (my_strftime_localtime_r): Include this function
91130         definition in the `#if ! HAVE_TM_GMTOFF' block.
91131
91132         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91133         Include xalloc.h instead.
91134
91135 2001-12-02  Jim Meyering  <meyering@lucent.com>
91136
91137         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91138         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91139         included.
91140
91141         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91142         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91143
91144 2001-11-30  Akim Demaille  <akim@epita.fr>
91145
91146         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91147         before being defined.
91148
91149 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91150
91151         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91152         First arg is int, not unsigned.
91153         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91154         (SIZE_MAX, UINT_MAX): New macros.
91155         (quotearg_n_options): Abort if N is negative.
91156         Avoid overflow check on hosts where size_t is 64 bits and int
91157         is 32 bits, as overflow is impossible there.
91158         Fix off-by-one typo that caused unnecessary reallocation.
91159
91160 2001-11-27  Jim Meyering  <meyering@lucent.com>
91161
91162         * lib/tempname.c: Merge with version from libc.
91163         * lib/regex.c: Likewise.
91164
91165         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91166         systems for which STDC_HEADERS is 0, it was not included, resulting in
91167         a warning about an integer-to-pointer conversion problem with getenv.
91168         Reported by Volker Borchert.
91169
91170 2001-11-26  Jim Meyering  <meyering@lucent.com>
91171
91172         * lib/gtod.h: Remove file.
91173         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91174         * lib/gettimeofday.c: Don't include gtod.h.
91175         (GTOD_init): Remove function.
91176         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91177         Suggestion from Volker Borchert.
91178
91179 2001-11-23  Jim Meyering  <meyering@lucent.com>
91180
91181         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91182         it.
91183         * lib/hash.c (struct hash_table): Define it here instead.
91184
91185 2001-11-22  Jim Meyering  <meyering@lucent.com>
91186
91187         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91188
91189 2001-11-20  Jim Meyering  <meyering@lucent.com>
91190
91191         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91192         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91193
91194 2001-11-19  Jim Meyering  <meyering@lucent.com>
91195
91196         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91197         directory.  Use "conftestXXXXXX" as the template.
91198         Suggestion from Paul Eggert.
91199
91200         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91201         immediately, so the test doesn't mistakenly hit the max-open-files
91202         limit.
91203
91204 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91205
91206         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91207         (TEMPORARIES): New macro.
91208         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91209         removes an artificial limitation (e.g. HP-UX 10.20, where
91210         TMP_MAX is 17576).
91211
91212 2001-11-18  Jim Meyering  <meyering@lucent.com>
91213
91214         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91215
91216 2001-11-18  Jim Meyering  <meyering@lucent.com>
91217
91218         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91219         on SunOS 4.
91220
91221         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91222         files will be created before anything else.
91223
91224 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91225
91226         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91227         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91228
91229 2001-11-17  Jim Meyering  <meyering@lucent.com>
91230
91231         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91232         Prompted by a report from Bob Proulx.
91233
91234         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91235         Instead, require UTILS_FUNC_MKSTEMP.
91236
91237 2001-11-17  Jim Meyering  <meyering@lucent.com>
91238
91239         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91240         Now, that's done as part of AC_FUNC_STRTOD.
91241
91242 2001-11-17  Jim Meyering  <meyering@lucent.com>
91243
91244         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91245         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91246         rather than group writable.  Patch by Juan F. Codagnone.
91247
91248         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91249         xrealloc, Instead, include "xalloc.h".
91250
91251         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91252         Remove explicit declarations of xmalloc, xrealloc,
91253         and xstrdup.  Instead, include "xalloc.h".
91254
91255         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91256         unlocked-io.h.
91257         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91258         Likewise.
91259         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91260
91261         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91262         Reported by Padraig Brady.
91263
91264         * lib/mkstemp.c: #undef mkstemp.
91265         Include config.h.
91266         (rpl_mkstemp): Rename from mkstemp.
91267         Protoize.
91268
91269 2001-11-16  Jim Meyering  <meyering@lucent.com>
91270
91271         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91272         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91273         determine the amount of total physical memory, use pstat_getstatic.
91274         HPUX-11 doesn't define _SC_PHYS_PAGES.
91275         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91276         If sysconf couldn't be used to determine the amount of available
91277         physical memory, use both pstat_getstatic and pstat_getdynamic.
91278         Based on a patch from Bob Proulx.
91279
91280 2001-11-10  Jim Meyering  <meyering@lucent.com>
91281
91282         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91283         (jm_PREREQ): Use it.
91284
91285 2001-11-09  Jim Meyering  <meyering@lucent.com>
91286
91287         * m4/jm-macros.m4: Require autoconf-2.52f.
91288         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91289         Use these AC_-prefixed names, not the AM_-prefixed ones.
91290
91291         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91292
91293 2001-11-05  Jim Meyering  <meyering@lucent.com>
91294
91295         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91296
91297 2001-11-04  Jim Meyering  <meyering@lucent.com>
91298
91299         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91300         $DEFS.
91301
91302 2001-11-03  Jim Meyering  <meyering@lucent.com>
91303
91304         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91305         of AC_DEFUN.
91306
91307         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91308         know the name of the variable in the macro definition.
91309
91310 2001-11-03  Jim Meyering  <meyering@lucent.com>
91311
91312         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91313         in argmatch_to_argument call.
91314
91315         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91316         argument.
91317
91318         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91319         e.g., a fault due to an attempt to free a NULL pointer.
91320
91321 2001-11-01  Jim Meyering  <meyering@lucent.com>
91322
91323         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91324         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91325
91326 2001-11-01  Jim Meyering  <meyering@lucent.com>
91327
91328         * lib/dirfd.c, lib/dirfd.h: New files.
91329         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91330
91331         * lib/hash.c (hash_print) [TESTING]: Clean up.
91332
91333 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91334
91335         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91336         to avoid a warning if -Wall.
91337
91338 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91339
91340         * README: New file
91341         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91342         (per RMS's instructions, this is now the canonical source)
91343         * lgpl/, gpl/: New directories.
91344
91345 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91346
91347         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91348
91349 2001-10-21  Jim Meyering  <meyering@lucent.com>
91350
91351         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91352         this code would end up calling gettext even in packages built
91353         with --disable-nls.
91354         * lib/getopt.c (_): Likewise.
91355         * lib/regex.c (_): Likewise.
91356
91357 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91358
91359         * m4/error.m4 (jm_PREREQ_ERROR):
91360         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91361         AC_FUNC_STRERROR_R does that.
91362         Check for strerror declaration.
91363
91364         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91365         are supposed to have them these days.
91366         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91367         Merge changes from latest Autoconf CVS.
91368         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91369         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91370         POSIX decided to standardize on the int flavor of strerror_r.
91371
91372 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91373
91374         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91375         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91376         Use strerror_r that is only a macro, even if it is not a function.
91377         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91378         (private_strerror): Use prototypes, not old-style function definition.
91379         (print_errno_message): New function.
91380         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91381         char*-flavored one.
91382         (error_tail, error, error_at_line): Use it.
91383
91384 2001-10-11  Jim Meyering  <meyering@lucent.com>
91385
91386         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91387         and quote_n (1, ... to avoid clobbering a buffer.
91388
91389 2001-10-05  Jim Meyering  <meyering@lucent.com>
91390
91391         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91392         hash-pjw.h.
91393         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91394         * lib/hash-pjw.h: New file.
91395
91396 2001-09-30  Jim Meyering  <meyering@lucent.com>
91397
91398         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91399         `struct fsstat' has the `f_fstypename' member.
91400         Use that to define FS_TYPE, which is now used to make
91401         the getfsstat link test tighter.
91402
91403 2001-09-30  Jim Meyering  <meyering@lucent.com>
91404
91405         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91406         Include <sys/ucred.h>, for Apple Darwin.
91407         Include sys/mount.h and sys/fs_types.h only if available.
91408         (FS_TYPE): Define.
91409         (read_filesystem_list): Use FS_TYPE.
91410
91411 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91412
91413         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91414         a boolean context.
91415
91416 2001-09-29  Jim Meyering  <meyering@lucent.com>
91417
91418         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91419         [one-argument getmntent function]): Include stdio.h before mntent.h.
91420         SunOS 4.1.x needs it for the declaration of `FILE'.
91421         Patch by Volker Borchert.
91422
91423         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91424         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91425         sys/fs_types.h, and make the link-test for getfsstat guard #include
91426         directives with appropriate #if HAVE_*_H tests so that we can
91427         detect getfsstat on Apple Darwin1.3.7 systems.
91428         Reported by Nelson Beebe.
91429         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91430
91431 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91432
91433         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91434         #defines strtoimax.  Also treat the other strto* functions
91435         like strtoimax.
91436
91437         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91438         Check for strtoul and strtoumax,
91439         as those declarations are made even in the signed case.
91440         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91441         Likewise, for strtol and strtoimax.
91442
91443 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91444
91445         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91446         #defines strtoimax.  Also treat the other strto* functions
91447         like strtoimax.
91448
91449         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91450         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91451         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91452
91453 2001-09-26  Jim Meyering  <meyering@lucent.com>
91454
91455         Most macros in unlocked-io.h had the wrong number of arguments.
91456         * lib/gen-uio: New script.
91457         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91458         * lib/unlocked-io.hin: Remove file.
91459         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91460         rather than trying to embed it here.
91461         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91462         Reported by Padraig Brady.
91463
91464 2001-09-25  Volker Borchert  <bt@teknon.de>
91465
91466         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91467         `result'.
91468
91469 2001-09-24  Jim Meyering  <meyering@lucent.com>
91470
91471         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91472
91473 2001-09-23  Jim Meyering  <meyering@lucent.com>
91474
91475         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91476         instead of the mere test for existence of mntent.h.  The latter
91477         would get a false-positive on AIX 3.4 systems.
91478         In the outer getmntent if-block, don't die if neither of the getmntent
91479         tests succeeds.  Instead, just fall through and continue with the
91480         remaining tests.
91481
91482 2001-09-23  Jim Meyering  <meyering@lucent.com>
91483
91484         * lib/mountlist.c: Remove useless parentheses in #if directives.
91485         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91486         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91487
91488 2001-09-22  Jim Meyering  <meyering@lucent.com>
91489
91490         * m4/gettext.m4: New file.  From gettext.
91491         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91492         * m4/progtest.m4: Likewise
91493         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91494         * m4/glibc21.m4: Likewise.
91495
91496         * m4/libintl.m4: Remove.  No longer used.
91497
91498 2001-09-22  Jim Meyering  <meyering@lucent.com>
91499
91500         * lib/localcharset.c: Update from latest gettext.
91501         * lib/config.charset: Likewise.
91502
91503 2001-09-20  Jim Meyering  <meyering@lucent.com>
91504
91505         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91506         strtoimax.
91507         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91508         strtoumax.
91509
91510 2001-09-20  Jim Meyering  <meyering@lucent.com>
91511
91512         * lib/xstrtol.c (strtoimax): Guard declaration with
91513         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91514         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91515         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91516         (strtoumax): Likewise, for completeness (it wasn't necessary).
91517
91518 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91519
91520         * lib/strtoimax.c (HAVE_LONG_LONG):
91521         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91522         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91523         to work around bug in IBM C compiler.
91524
91525 2001-09-17  Jim Meyering  <meyering@lucent.com>
91526
91527         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91528         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91529         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91530         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91531         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91532         whenever the right hand side need not be expanded by the shell.
91533
91534 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91535
91536         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91537         library.  It's not correct, as some older glibcs are buggy.
91538         fnmatch wasn't fixed until glibc 2.2.
91539
91540         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91541         special shell magic here.
91542
91543 2001-09-16  Jim Meyering  <meyering@lucent.com>
91544
91545         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91546         * m4/jm-macros.m4: Require it.
91547
91548 2001-09-16  Jim Meyering  <meyering@lucent.com>
91549
91550         * lib/mkdir.c: New file.
91551
91552 2001-09-15  Jim Meyering  <meyering@lucent.com>
91553
91554         * m4/jm-macros.m4: Check for help2man.
91555
91556 2001-09-11  Jim Meyering  <meyering@lucent.com>
91557
91558         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91559         The body, by Paul Eggert, was moved here from configure.in.
91560         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91561
91562 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91563
91564         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91565         (jm_PREREQ): Use it.
91566
91567 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91568
91569         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91570         Use ssize_t, not int, to store result of readlink.
91571         Check for ssize_t overflow as well as size_t overflow,
91572         as POSIX says the result of readlink is implementation-defined
91573         when ssize_t overflows.
91574         Remove unnecessary cast to char*.
91575         Use free+malloc instead of realloc, as the storage doesn't need
91576         to be preserved and it's clearer and can be more efficient that way.
91577         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91578         * lib/xreadlink.h (xreadlink): Update prototype.
91579
91580 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91581
91582         * lib/xgetcwd.c: Revert some of the previous change; intead,
91583         fix the HAVE_GETCWD_NULL code to behave more like the
91584         !HAVE_GETCWD_NULL code used to.
91585
91586         Include "xalloc.h".
91587         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91588         invoke xalloc_die.
91589
91590 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91591
91592         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91593         sys/param.h, as pathmax.h includes them.
91594
91595 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91596
91597         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91598         (jm_PREREQ_XGETCWD): New macro.
91599
91600         * m4/getcwd.m4: New file.
91601
91602 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91603
91604         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91605         like the HAVE_GETCWD_NULL code.
91606         Include pathmax.h if not HAVE_GETCWD.
91607         Do not include xalloc.h.
91608         (INITIAL_BUFFER_SIZE): New symbol.
91609         Do not use xmalloc / xrealloc, since the caller is responsible for
91610         handling errors.  Preserve errno around `free' during failure.
91611         Do not overrun buffer when using getwd.
91612
91613 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91614
91615         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91616         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91617         getcwd (NULL, 0).
91618
91619 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91620
91621         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91622         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91623         spotted by Jim Meyering.
91624
91625 2001-09-03  Jim Meyering  <meyering@lucent.com>
91626
91627         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91628         failure.
91629
91630 2001-09-02  Jim Meyering  <meyering@lucent.com>
91631
91632         * lib/error.c: Update from GNU libc.
91633
91634 2001-09-01  Jim Meyering  <meyering@lucent.com>
91635
91636         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91637         Used by df.
91638
91639 2001-09-01  Jim Meyering  <meyering@lucent.com>
91640
91641         * lib/xreadlink.c: New file.
91642         * lib/xreadlink.h: New file.
91643         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91644         xreadlink.h.
91645
91646         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91647         doesn't conflict with sparc Solaris 7's definition in
91648         /usr/include/sys/int_types.h.
91649
91650         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91651         files.
91652         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91653         and strncasecmp as r-values.  Unixware didn't have declarations.
91654
91655 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91656
91657         * lib/xstrtol.h: Add copyright notice.
91658         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91659         LONGINT_INVALID_SUFFIX_CHAR.
91660
91661 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91662
91663         * lib/xstrtol.c (strtoimax): New decl.
91664
91665 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91666
91667         * lib/xgetcwd.c: Don't include pathmax.h.
91668         Include stdlib.h and unistd.h if available.
91669         Include xalloc.h.
91670         (xmalloc, xstrdup, free): Remove decls.
91671         (xgetcwd): Don't assume sizes fit in unsigned.
91672         Check for overflow when computing sizes.
91673         Simplify reallocation code.
91674
91675 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91676
91677         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91678         a directory's st_size can have an arbitrary value, so the old
91679         usage could waste an arbitrary amount of memory.  All uses
91680         changed.
91681         * lib/savedir.h: Update prototype.
91682
91683 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91684
91685         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91686
91687         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91688         old strtoimax.c.
91689
91690         Also, make the following further changes to make this file's
91691         configuration more similar to that of strtol.c:
91692         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91693         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91694         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91695         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91696         changed to signed values.
91697
91698         And make the following changes as well:
91699         Fix copyright notice, as 1999 was missing.
91700         (verify): New macro.
91701         (strtoimax): Check sizes at compile-time, not run-time.
91702         Prefer strtol to strtoll if both work.
91703         (main): Remove; it was not that useful and was a pain to maintain.
91704
91705         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91706
91707 2001-08-31  Jim Meyering  <meyering@lucent.com>
91708
91709         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91710         Use an initial, malloc'd, buffer of length 128 rather than
91711         a statically allocated one of length 1024.
91712
91713 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91714
91715         Simplify code, partly by assuming autoconf 2.52 semantics.
91716
91717         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91718
91719         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91720         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91721         All uses removed.
91722         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91723         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91724         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91725         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91726         jm_AC_HEADER_INTTYPES_H.
91727         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91728
91729         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91730
91731         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91732         Quote first arg of AC_DEFUN.
91733         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91734         since they are needed to parse the include file even if we need
91735         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91736         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91737         but with opposite signedness.
91738
91739 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91740
91741         Merge 'exclude' changes from tar 1.13.22.
91742         This fixes one or two unlikely storage allocation overflow bugs,
91743         but doesn't change user-visible behavior otherwise.
91744
91745 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91746
91747         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91748         (jm_PREREQ_EXCLUDE): New macro.
91749
91750 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91751
91752         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91753         tm to be declared.
91754
91755 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91756
91757         * lib/hash.c: Remove '2001' from copyright notice.
91758
91759 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91760
91761         * lib/full-write.h: New file.
91762         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91763         * lib/full-write.c: Correct credits, as cccp.c no longer
91764         exists and anyway it was so heavily changed from the old cccp
91765         code as to be unrecognizable.  Include full-write.h.
91766         (full_write): Return size_t, with short writes meaning failure.
91767         All callers changed.  This fixes a bug with large buffers
91768         on 64-bit hosts.
91769         * lib/utime.c: Include full-write.h.
91770
91771 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91772
91773         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91774         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91775         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91776         Include if available.
91777         (<xalloc.h>): Include
91778         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91779         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91780         collide with FNM macros.
91781         (struct patopts): New struct.
91782         (struct exclude): Use it, as exclude patterns now come with options.
91783         (new_exclude): Support above changes.
91784         (new_exclude, add_exclude_file):
91785         Initial size must now be a power of two to simplify overflow checking.
91786         (free_exclude, fnmatch_no_wildcards): New function.
91787         (excluded_filename): No longer requires options arg, as the options
91788         are determined by add_exclude.  Now returns bool, not int.
91789         (excluded_filename, add_exclude):
91790         Add support for the fancy new exclusion options.
91791         (add_exclude, add_exclude_file): Now takes int options arg.
91792         Check for arithmetic overflow when computing sizes.
91793         (add_exclude_file): xrealloc might modify errno, so don't
91794         realloc until after errno might be used.
91795
91796         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91797         New macros.
91798         (free_exclude): New decl.
91799         (add_exclude, add_exclude_file): Now takes int options arg.
91800         (excluded_filename): No longer requires options arg, as the options
91801         are determined by add_exclude.  Now returns bool, not int.
91802
91803 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91804
91805         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91806
91807 2001-08-27  Jim Meyering  <meyering@lucent.com>
91808
91809         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91810
91811         * lib/version-etc.c (N_): Remove definition.
91812         Revert most of last change.
91813         Instead, simply don't mark the `Copyright...' string for translation.
91814         Based on advice from Paul Eggert.
91815
91816         * lib/strtoxmax.c: Tweak comment.
91817
91818 2001-08-26  Jim Meyering  <meyering@lucent.com>
91819
91820         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91821
91822         * m4/xstrtoimax.m4: New file.
91823         * m4/xstrtoumax.m4: Add comments explaining why we
91824         AC_REPLACE_FUNCS(strtol).
91825
91826 2001-08-26  Jim Meyering  <meyering@lucent.com>
91827
91828         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91829         of copyright with `%s' so translators don't get an untranslated
91830         message in 2002.
91831         (COPYRIGHT_YEAR): Define.
91832         (version_etc): Use fprintf rather than fputs.
91833         Suggestion from Ulrich Drepper.
91834
91835         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91836
91837         * lib/strtoll.c: New file, from GNU libc.
91838         * lib/xstrtoimax.c: New file.
91839
91840         * lib/xstrtol.h: Add xstrtoimax.
91841         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91842         * lib/strtoimax.c: New file.  Likewise, but first define
91843         STRTOUXMAX_SIGNED.
91844
91845         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91846         ...
91847         * lib/strtoxmax.c: ... then renamed to this.
91848
91849 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91850
91851         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91852         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91853         (jm_AC_TYPE_INTMAX_T): New macro.
91854         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91855
91856         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91857
91858         * m4/longlong.m4: Renamed from ulonglong.m4.
91859         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91860         * m4/uintmax_t.m4: Removed.
91861
91862 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91863
91864         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91865         Port to Solaris 8, where 'sed' requires a space after the 'r'
91866         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91867         Redirect output to $tmp just once.
91868
91869 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91870
91871         * lib/addext.c (<errno.h>): Include.
91872         (errno): Declare if not defined.
91873         (addext): Work correctly when pathconf returns -1 and leaves
91874         errno alone because there is no limit.  Also, work even if
91875         pathconf returns a value greater than SIZE_MAX.
91876
91877 2001-08-12  Jim Meyering  <meyering@lucent.com>
91878
91879         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91880         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91881         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91882         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91883         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91884         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91885         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91886         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91887         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91888         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91889         utime.m4, utimes.m4, xstrtoumax.m4:
91890         Quote the first argument in each use of AC_DEFUN.
91891
91892 2001-08-12  Jim Meyering  <meyering@lucent.com>
91893
91894         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91895         Simply `return getcwd (NULL, 0);'.
91896         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91897         Use 1300 as initial value for length, not PATH_MAX.
91898
91899         * lib/pathmax.h: Clean up cpp syntax.
91900
91901 2001-08-12  Jim Meyering  <meyering@lucent.com>
91902
91903         * lib/gettimeofday.c: New file.
91904         * lib/gtod.h: New file.
91905         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91906
91907 2001-08-05  Jim Meyering  <meyering@lucent.com>
91908
91909         * m4/jm-macros.m4: Require autoconf-2.52.
91910
91911 2001-08-04  Jim Meyering  <meyering@lucent.com>
91912
91913         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91914         stmt, to get in sync with glibc.
91915
91916 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91917
91918         The following changes are from gettext 0.10.39 as maintained by
91919         Bruno Haible.
91920
91921         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91922         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91923         with inverted sense.  All uses changed.
91924
91925         * lib/mbswidth.c: Don't include <limits.h>.
91926         Include <stdlib.h> and <string.h> unconditionally.
91927         (iswcntrl, mbsinit, ISCNTRL): New macros.
91928         (mbsnwidth): Use K&R style function declarations.
91929         Don't bother checking for MB_LEN_MAX == 1, since the compiler
91930         can optimize it when MB_CUR_MAX == 1.
91931         The width of control characters is zero, not 1.
91932
91933 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91934
91935         The following changes are from gettext 0.10.39 as maintained by
91936         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
91937
91938         * m4/codeset.m4: Upgrade to serial AM1.
91939         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
91940         all uses changed.  Quote first arg of AC_DEFUN.
91941         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
91942
91943         * m4/iconv.m4: Upgrade to serial AM2.
91944         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
91945         Add --with-libconv-prefix.
91946         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
91947         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
91948         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
91949         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
91950         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
91951
91952         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
91953         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
91954         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
91955         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
91956         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
91957         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
91958         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
91959         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
91960         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91961
91962         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
91963         string.h any more.
91964
91965         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
91966         not the default value.
91967
91968         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
91969         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
91970         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
91971         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
91972         Also check for iswcntrl, used for wcwidth fallback.
91973         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
91974         to Autoconf 2.13.
91975
91976 2001-08-03  Jim Meyering  <meyering@lucent.com>
91977
91978         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
91979         as it was in the original.  Reported by Paul Eggert.
91980
91981 2001-07-16  Jim Meyering  <meyering@lucent.com>
91982
91983         * m4/gettimeofday.m4: New file.
91984         Prompted by a report from Bernhard Baehr.
91985
91986 2001-07-15  Jim Meyering  <meyering@lucent.com>
91987
91988         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
91989         stuff. Now it's in ../Makefile.cfg.
91990
91991 2001-07-15  Jim Meyering  <meyering@lucent.com>
91992
91993         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
91994         (BUILT_SOURCES): Add unlocked-io.h.
91995         (io_functions): Define.
91996         (unlocked-io.h): New rule.
91997         (DISTCLEANFILES): Add unlocked-io.h.
91998         (all-local): Depend on unlocked-io.h, to ensure it is created.
91999
92000         * lib/unlocked-io.hin: New file
92001
92002         * lib/regex.c: Update from glibc.
92003
92004 2001-07-05  Jim Meyering  <meyering@lucent.com>
92005
92006         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92007         recommendation.
92008         (libfetish_a_SOURCES): Put all .h files here instead.
92009         Remove a thus-exposed (better checks in automake) duplicate and
92010         two unnecessary .h files.
92011
92012 2001-07-04  Jim Meyering  <meyering@lucent.com>
92013
92014         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92015         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92016         distcheck failure.
92017
92018 2001-07-02  Jim Meyering  <meyering@lucent.com>
92019
92020         The following changes were prompted by suggestions from Bruno Haible.
92021
92022         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92023         is now generated.
92024         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92025         definition of EXTRA_DIST.
92026         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92027         ensure that the generated file is created/updated whenever the list
92028         of $(unlocked_functions) is changed.
92029         (jm-glibc-io.m4): New rule.
92030         (unlocked-io.h): New rule -- currently unused.
92031
92032 2001-06-24  Jim Meyering  <meyering@lucent.com>
92033
92034         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92035         unmatched right bracket, rather than kludging it with an extra,
92036         falsely-matching quote in a comment.  Patch by Akim Demaille.
92037
92038 2001-06-11  Jim Meyering  <meyering@lucent.com>
92039
92040         * lib/regex.c: Update from GNU libc.
92041
92042 2001-05-27  Jim Meyering  <meyering@lucent.com>
92043
92044         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92045         Check for ut_type in struct utmp.
92046
92047 2001-05-27  Jim Meyering  <meyering@lucent.com>
92048
92049         * lib/readutmp.h (UT_TYPE): Define.
92050
92051 2001-05-24  Jim Meyering  <meyering@lucent.com>
92052
92053         * lib/argmatch.c: Include "quote.h".
92054         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92055         quote function.  Reported by Göran Uddeborg.
92056
92057 2001-05-22  Jim Meyering  <meyering@lucent.com>
92058
92059         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92060         now that we use the package-supplied version unconditionally.
92061         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92062
92063 2001-05-21  Jim Meyering  <meyering@lucent.com>
92064
92065         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92066         shell syntax errors.
92067
92068 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92069
92070         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92071
92072 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92073
92074         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92075         Don't bother to check library strftime, since
92076         we'll be using our own my_strftime function anyway.
92077         Define my_strftime instead of strftime.
92078
92079 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92080
92081         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92082         which is not yet declared.
92083
92084 2001-05-15  Jim Meyering  <meyering@lucent.com>
92085
92086         * m4/regex.m4: Use proper quoting so brackets appear in the test
92087         program.
92088         Reported by, and with help from, Bruno Haible.
92089
92090 2001-05-13  Jim Meyering  <meyering@lucent.com>
92091
92092         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92093         undefined.
92094
92095 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92096
92097         dirname code cleanup.  base_name now behaves more compatibly
92098         with POSIX basename when given file names that have trailing
92099         slashes, and similarly for dir_name.  Add new primitives
92100         base_len and dir_len.  Put the directory-name-related decls
92101         into dirname.h.
92102
92103         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92104         * lib/backupfile.c (base_name): Likewise.
92105         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92106         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92107         * lib/makepath.c (strip_trailing_slashes): Likewise.
92108         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92109         ISSLASH): Likewise.
92110         * lib/rename.c (strip_trailing_slashes): Likewise.
92111         * lib/same.c (base_name): Likewise.
92112         * lib/stripslash.c (ISSLASH): Likewise.
92113
92114         * lib/addext.c: Include <dirname.h> after size_t is defined.
92115         * lib/backupfile.c: Likewise.
92116
92117         * lib/addext.c (addext): Use base_len to trim redundant
92118         trailing slashes instead of doing it ourselves.
92119         But do not trim the last slash if it is not redundant.
92120
92121         * lib/backupfile.c (find_backup_file_name,
92122         max_backup_version): Use base_len instead of rolling it ourselves.
92123         Handle the case of "" and (on DOS) "C:" correctly.
92124
92125         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92126         needed. Include <string.h>, <dirname.h>.
92127         (base_name): Allow file names ending in slashes, other than names
92128         that are all slashes.  In this case, return the basename followed
92129         by the slashes.  This is more general, and can be used in places
92130         where the original base_name purposely had an assertion failure.
92131         (base_len): New function.
92132
92133         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92134         Do not include <assert.h>; no longer needed.
92135         Include xalloc.h.
92136         (memrchr): Remove decl.
92137         (dir_name_r): Remove.
92138         (dir_len): Renamed from dirlen.  All callers changed.
92139         Rewrite in terms of base_name, for simplicity and consistency.
92140         (dir_name): Never return NULL.  All callers changed.
92141         Do not include <stdlib.h> in test program; no longer needed.
92142         return 0; is fine for test program.
92143
92144         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92145         New macros.
92146         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92147
92148         * lib/path-concat.c (path_concat): Use base_len to compute
92149         base length, not strlen; this means we cannot rely on memcpy
92150         to null-terminate.
92151
92152         * lib/same.c (STREQ): Remove.
92153         (same_name): Handle the case where the basename ends in trailing '/'.
92154
92155         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92156         a slash was stripped.  Do not strip the last slash after a
92157         file system prefix.
92158
92159 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92160
92161         * lib/Makefile.am (libfetish_a_SOURCES):
92162         Add strftime.c, since we now compile it on all hosts.
92163
92164         * lib/strftime.c (my_strftime):
92165         Define to nstrftime if emacs, but only if my_strftime is not defined.
92166         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92167         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92168         Add one more extra argument: a nanoseconds value.
92169         All uses changed.
92170         (ns): New macro.
92171         (my_strftime function): Add %N format.
92172         (emacs_strftimeu): Renamed from emacs_strftime,
92173         with extra ut argument.
92174
92175 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92176
92177         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92178
92179 2001-04-21  Jim Meyering  <meyering@lucent.com>
92180
92181         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92182         doesn't interfere.
92183
92184 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92185
92186         * m4/ftruncate.m4: Check for chsize.
92187         Link with ftruncate.o unconditionally if ftruncate is missing.
92188         This was required when cross-compiling to i586-mingw32msvc.
92189
92190 2001-04-08  Jim Meyering  <meyering@lucent.com>
92191
92192         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92193         recomputed; that's necessary when the offset spans a DST transition.
92194         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92195
92196 2001-04-02  Jim Meyering  <meyering@lucent.com>
92197
92198         * lib/regex.h, regex.c: Update from GNU libc.
92199
92200 2001-03-24  Jim Meyering  <meyering@lucent.com>
92201
92202         * m4/jm-macros.m4: Require autoconf-2.49d.
92203
92204 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92205
92206         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92207
92208 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92209
92210         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92211
92212 2001-03-17  Jim Meyering  <meyering@lucent.com>
92213
92214         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92215         now that the version in autoconf is equivalent.
92216         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92217
92218         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92219         Suggestion from Akim Demaille.
92220
92221         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92222         (jm_PREREQ_TEMPNAME): New function.
92223
92224 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92225
92226         * lib/tempname.c (uint64_t): Define to uintmax_t if
92227         not defined, and if UINT64_MAX is not defined.
92228         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92229         Reported by John David Anglin.
92230
92231 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92232
92233         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92234         resolve alias if codeset is empty.
92235         * lib/config.charset (BeOS): Use wildcard syntax.
92236
92237 2001-03-13  Jim Meyering  <meyering@lucent.com>
92238
92239         * lib/path-concat.c (path_concat)
92240         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92241         concatenating e.g., `C:' and `foo'.
92242         From Bruno Haible.
92243
92244 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92245
92246         * lib/localcharset.c (locale_charset): Don't use
92247         setlocale(LC_CTYPE,NULL). Don't return NULL.
92248         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92249
92250 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92251
92252         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92253         support for DOS/DJGPP.
92254
92255 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92256
92257         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92258         lacks mkstemp.  Compile our own tempname.c if we compile our own
92259         mkstemp.c, as mkstemp relies on tempname.
92260
92261 2001-03-01  Jim Meyering  <meyering@lucent.com>
92262
92263         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92264         AH_VERBATIM really does output its argument verbatim.
92265
92266 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92267
92268         * lib/Makefile.am (libfetish_a_SOURCES):
92269         Add dup-safer.c, fopen-safer.c.
92270         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92271
92272         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92273         * lib/unistd-safer.h: New files.
92274
92275 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92276
92277         The mkstemp replacement is taken from glibc 2.2.2, with some
92278         portability fixes for use outside glibc, as follows:
92279
92280         * lib/tempname.c (struct_stat64): New macro.
92281         (direxists, __gen_tempname): Use it.
92282         This avoids a portability problem with Solaris 8.
92283
92284         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92285         (<stddef.h>, <stdint.h>, <string.h>):
92286         Include only if STDC_HEADERS || _LIBC.
92287         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92288         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92289         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92290         (__set_errno): Define this macro if <errno.h> doesn't.
92291         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92292         Define these macros if <stdio.h> doesn't.
92293         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92294         Define these macros if <sys/stat.h>
92295         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92296         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92297         __xstat64): Define if not _LIBC.
92298         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92299         (__gen_tempname): Invoke gettimeofday only if
92300         HAVE_GETTIMEOFDAY || _LIBC;
92301         otherwise, fall back on plain "time".
92302         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92303
92304         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92305
92306         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92307
92308 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92309
92310         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92311
92312 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92313
92314         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92315         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92316         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92317         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92318
92319 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92320
92321         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92322         Remove workaround macros for hosts that have mbrtowc but not
92323         mbstate_t, as we now insist on proper declarations for both
92324         before using mbrtowc.
92325
92326 2001-02-17  Jim Meyering  <meyering@lucent.com>
92327
92328         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92329         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92330         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92331         UnixWare 7.1.1.
92332
92333         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92334         rather than AC_CACHE_VAL.
92335
92336 2001-02-17  Jim Meyering  <meyering@lucent.com>
92337
92338         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92339         around included file name.
92340
92341         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92342
92343         * lib/strftime.c: Update from GNU libc (the only changes were to
92344         comments).
92345
92346 2001-02-17  Jim Meyering  <meyering@lucent.com>
92347
92348         * lib/regex.c: Update from libc.
92349
92350 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92351
92352         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92353         clash.
92354
92355 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92356
92357         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92358         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92359         Reported by Mark Hounschell via Paul Eggert.
92360
92361 2001-02-07  Jim Meyering  <meyering@lucent.com>
92362
92363         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92364
92365 2001-02-05  Jim Meyering  <meyering@lucent.com>
92366
92367         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92368         it includes the patch required for `large file' support with at least
92369         HP-UX's 10.20 /bin/cc.
92370
92371 2001-02-03  Jim Meyering  <meyering@lucent.com>
92372
92373         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92374         AS_IF, now that it works once again (mysteriously).
92375         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92376
92377 2001-01-30  Jim Meyering  <meyering@lucent.com>
92378
92379         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92380         * m4/chown.m4: Rename conftestchown to conftest.chown.
92381         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92382         s/conftestdir2/conftest.d2/.
92383         * m4/utimes.m4: s/conftestdata/conftest.data/
92384         Inspired by Pavel Roskin's change in autoconf.
92385
92386 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92387
92388         * lib/config.charset: Update for FreeBSD 4.2.
92389
92390 2001-01-27  Jim Meyering  <meyering@lucent.com>
92391
92392         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92393         a use of AS_IF.
92394         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92395
92396 2001-01-26  Jim Meyering  <meyering@lucent.com>
92397
92398         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92399         quotearg.c includes it.
92400
92401 2001-01-26  Jim Meyering  <meyering@lucent.com>
92402
92403         * lib/quotearg.c: Include stddef.h.
92404         * lib/quote.c: Include stddef.h.
92405         Reported by Axel Kittenberger.
92406
92407         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92408         line in double quotes so that it evokes a better diagnostic.
92409         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92410         Reported by Axel Kittenberger.
92411
92412 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92413
92414         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92415         as if it was a `charset'.
92416
92417 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92418
92419         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92420         has const.
92421
92422 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92423
92424         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92425         to avoid a warning.  Add back 'const' to inptr.
92426
92427 2001-01-20  Jim Meyering  <meyering@lucent.com>
92428
92429         Be sure that headers are checked before used in code compiled
92430         for the type checks.
92431         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92432         In place of that, invoke jm_CHECK_ALL_TYPES.
92433         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92434         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92435         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92436         The check for ssize_t was mistakenly run before the test for unistd.h.
92437
92438         The configure-time check for stdbool.h was missing.
92439         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92440         (jm_PREREQ_HASH): New function.
92441
92442 2001-01-17  Jim Meyering  <meyering@lucent.com>
92443
92444         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92445         for autoconf-2.49c.
92446         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92447
92448 2001-01-16  Jim Meyering  <meyering@lucent.com>
92449
92450         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92451         From Bruno Haible.
92452
92453 2001-01-14  Jim Meyering  <meyering@lucent.com>
92454
92455         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92456         foo and bar.  Create conftestdir/ in the script, not in the C code.
92457         Remove directories in the script, not in the C code.
92458         Remove conftestdir{,2} before trying to create the directory.
92459         Make the entire configure script fail if the mkdir fails.
92460
92461 2001-01-14  Jim Meyering  <meyering@lucent.com>
92462
92463         * lib/rename.c: New file.  From Volker Borchert.
92464         Include stdlib.h, string.h or strings.h, and xalloc.h.
92465         Use strip_trailing_slashes rather than open-coding it.
92466
92467 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92468
92469         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92470
92471 2001-01-03  Jim Meyering  <meyering@lucent.com>
92472
92473         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92474         of local `inptr' to avoid warning with some system declarations of
92475         iconv.
92476
92477 2001-01-02  Volker Borchert  <bt@teknon.de>
92478
92479         * m4/rename.m4: New file.
92480         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92481
92482 2001-01-01  Jim Meyering  <meyering@lucent.com>
92483
92484         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92485         even on systems with utmpx.h.  It's necessary for the declaration of
92486         utmp's ut_user member.  Reported by Andreas Jaeger.
92487
92488         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92489         available. They are required for the declarations of getgrgid and
92490         getpwuid resp.
92491         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92492         Reported by Andreas Jaeger.
92493
92494 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92495
92496         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92497         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92498         so `make install' also works in VPATH builds.
92499
92500 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92501
92502         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92503         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92504         can be used in subdirectories.
92505
92506 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92507
92508         * lib/modechange.c: Do not assume that mode_t uses the
92509         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92510         the other-execute bit of FOO even if S_IXOTH != 1.
92511
92512         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92513         WOTH, XOTH, ALLM): New macros.
92514         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92515          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92516         Use them.
92517         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92518         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92519         (mode_compile):
92520         No need to use uintmax_t; unsigned long is long enough.
92521         Don't bother to get suffix since we don't use it.
92522
92523 2000-12-26  Jim Meyering  <meyering@lucent.com>
92524
92525         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92526         better with autoheader.
92527
92528 2000-12-24  Jim Meyering  <meyering@lucent.com>
92529
92530         * lib/hash.c (is_prime): Return explicit boolean values.
92531         (hash_get_first): Return NULL to appease Irix5.6's 89.
92532         Reported by Nelson Beebe.
92533
92534 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92535
92536         * lib/localcharset.c (locale_charset): Add support for Win32.
92537
92538 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92539
92540         * lib/physmem.h, lib/physmem.c: New files.
92541
92542         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92543         (noinst_HEADERS): Add physmem.h.
92544
92545         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92546         't' for compatibility with Solaris 8 sort.
92547
92548 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92549
92550         * lib/config.charset: Add support for BeOS.
92551
92552 2000-12-17  Jim Meyering  <meyering@lucent.com>
92553
92554         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92555         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92556
92557 2000-12-16  Jim Meyering  <meyering@lucent.com>
92558
92559         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92560         N and M) would have treated it like `chown N:N FILE'.
92561
92562         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92563
92564 2000-12-16  Jim Meyering  <meyering@lucent.com>
92565
92566         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92567         SHELLS_FILE to a file name that's useful on djgpp systems.
92568         Include stdlib.h.
92569         (ADDITIONAL_DEFAULT_SHELLS): Define.
92570         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92571         Based mostly on a patch from Prashant TR.
92572
92573 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92574
92575         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92576         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92577         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92578
92579 2000-12-08  Andreas Schwab  <schwab@suse.de>
92580
92581         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92582         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92583
92584 2000-12-07  Jim Meyering  <meyering@lucent.com>
92585
92586         * lib/stripslash.c (ISSLASH): Define.
92587         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92588         `/'.
92589         From Prashant TR.
92590
92591         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92592         (dir_name_r): Declare this function as static.
92593         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92594         manifest itself on a name containing a mix of slashes and
92595         backslashes.
92596         Make this function work with names starting with a DOS-style
92597         drive letter and colon prefix.
92598         (dir_name): Append `.' if necessary.
92599         Based mostly on patches from Prashant TR and Eli Zaretskii.
92600
92601         * lib/dirname.h (dir_name_r): Remove prototype.
92602
92603 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92604
92605         * m4/off_t-format.m4: Remove this file.
92606         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92607
92608 2000-12-06  Jim Meyering  <meyering@lucent.com>
92609
92610         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92611         replacement strtoull, we may well need the replacement strtoul, too.
92612         Check for declarations of strtoul and strtoull.
92613         Check for strtol.  Mainly as a cue to cause automake to include
92614         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92615         Check for limits.h -- strtol.c needs it.
92616
92617 2000-12-05  Jim Meyering  <meyering@lucent.com>
92618
92619         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92620
92621 2000-12-04  Jim Meyering  <meyering@lucent.com>
92622
92623         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92624         Also include memory.h, stdlib.h, unistd.h if appropriate.
92625         Reported by Andreas Jaeger (conflicting declaration of malloc).
92626
92627 2000-12-02  Jim Meyering  <meyering@lucent.com>
92628
92629         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92630         * m4/jm-macros.m4 (jm_MACROS): require it.
92631
92632 2000-12-02  Jim Meyering  <meyering@lucent.com>
92633
92634         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92635
92636 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92637
92638         * lib/memrchr.c: Include <config.h> before any system include file.
92639
92640 2000-11-30  Jim Meyering  <meyering@lucent.com>
92641
92642         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92643
92644 2000-11-30  Jim Meyering  <meyering@lucent.com>
92645
92646         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92647
92648 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92649
92650         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92651
92652 2000-11-26  Jim Meyering  <meyering@lucent.com>
92653
92654         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92655
92656 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92657
92658         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92659         size of (size_t) -1; it's not portable.
92660
92661 2000-11-17  Jim Meyering  <meyering@lucent.com>
92662
92663         * lib/strstr.c: Update from GNU libc.
92664
92665 2000-11-17  Akim Demaille  <akim@epita.fr>
92666
92667         * lib/obstack.h: Formatting changes.
92668         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92669         prevent type checking.
92670         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92671         cast the value to (void *): assigning a `foo *' to a `void *'
92672         variable is valid.
92673         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92674
92675 2000-11-16  Jim Meyering  <meyering@lucent.com>
92676
92677         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92678
92679 2000-11-11  Jim Meyering  <meyering@lucent.com>
92680
92681         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92682
92683 2000-11-10  Jim Meyering  <meyering@lucent.com>
92684
92685         * lib/obstack.h: Update from GNU libc.
92686         * lib/obstack.c: Likewise.
92687
92688 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92689
92690         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92691
92692 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92693
92694         * lib/getusershell.c (setusershell): Use rewind rather than
92695         fseek/fseeko, to avoid configuration hassles with fseeko.
92696         Don't bother opening SHELLS_FILE if shellstream is NULL;
92697         it's not necessary.
92698
92699 2000-11-05  Jim Meyering  <meyering@lucent.com>
92700
92701         * lib/makepath.h (make_dir): Declare.
92702         * lib/makepath.c (make_dir): Remove `static' attribute.
92703         Tweak a comment.
92704
92705 2000-11-04  Jim Meyering  <meyering@lucent.com>
92706
92707         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92708
92709 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92710
92711         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92712         last one in a bucket, advance to the next bucket.
92713
92714 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92715
92716         * lib/fnmatch.c: Do not comment out all the code if we are using
92717         the GNU C library, because in some cases we are replacing buggy
92718         code in the GNU C library itself.
92719
92720 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92721
92722         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92723         (regex_compile): Catch bogus \(\1\).
92724
92725 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92726
92727         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92728         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92729         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92730
92731 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92732
92733         * lib/error.h, getline.h, modechange.h:
92734         Remove "2000" from Copyright line, as the file hasn't been
92735         changed this year other than in the copyright notice.
92736
92737         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92738         was changed this year.
92739
92740 2000-10-29  Jim Meyering  <meyering@lucent.com>
92741
92742         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92743         renaming.
92744         * m4/ls-mntd-fs.m4: Likewise
92745
92746 2000-10-29  Jim Meyering  <meyering@lucent.com>
92747
92748         * lib/xstat.in: Fix grammar in comment.
92749
92750 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92751
92752         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92753         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92754         doesn't define __restrict_arr.
92755
92756 2000-10-28  Jim Meyering  <meyering@lucent.com>
92757
92758         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92759         (jm_PREREQ_MEMCHR): New function.
92760
92761 2000-10-28  Jim Meyering  <meyering@lucent.com>
92762
92763         * lib/memchr.c: Update from libc.
92764         Adjust for portability:
92765         [HAVE_STDLIB_H]: Include stdlib.h.
92766         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92767         Undef __memchr, too.
92768         [!weak_alias]: Define __memchr to memchr.
92769
92770         * lib/regex.c: Update from libc.
92771         * lib/regex.h: Likewise.
92772         * lib/getopt1.c: Likewise.
92773         * lib/memcmp.c: Likewise.
92774
92775         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92776         Avoid using fseek, when possible -- it's broken by design.
92777         Patch by Ulrich Drepper.
92778
92779 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92780
92781         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92782         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92783         Giving in to popular pressure to shut up the compiler with casts.
92784
92785 2000-10-26  Jim Meyering  <meyering@lucent.com>
92786
92787         * lib/strftime.c: Update from libc.
92788
92789 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92790
92791         * regex.c: More `unsigned char' -> `re_char' changes.
92792         Also change several `int' into `re_wchar_t'.
92793         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92794         (PUSH_FAILURE_POINTER): Don't cast any more.
92795         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92796         We want GCC to complain, since this piece of code makes
92797         re_match non-reentrant, which *should* be fixed.
92798         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92799         (EXTEND_BUFFER): Use RETALLOC.
92800         (SET_LIST_BIT): Don't cast.
92801         (re_wchar_t): New type.
92802         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92803         that those two functions will always properly return.
92804         (IMMEDIATE_QUIT_CHECK): Cast to void.
92805         (analyse_first): Use recursion rather than an explicit stack.
92806         (re_compile_fastmap): Can't fail anymore.
92807         (re_search_2): Don't check re_compile_fastmap for failure.
92808         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92809         Now also sets the new value (passed in a new argument).
92810         (re_match_2_internal): Use it.
92811         Also, use a new var `reg' of type size_t when looping through regs
92812         rather than reuse the inappropriate `mcnt'.
92813
92814 2000-10-25  Jim Meyering  <meyering@lucent.com>
92815
92816         * lib/obstack.c: Update from libc.
92817
92818 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92819
92820         * regex.c (regex_compile): Change the way of handling a range from
92821         a char less than 256 to a char not less than 256.
92822
92823 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92824
92825         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92826         NT-Emacs only.
92827         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92828         so that re_search functions only quit when callers expect them to.
92829
92830 2000-10-23  Jim Meyering  <meyering@lucent.com>
92831
92832         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92833         wrong.  That set_locale call must not have any side effects.
92834         From Paul Eggert.
92835
92836 2000-10-22  Jim Meyering  <meyering@lucent.com>
92837
92838         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92839         [CYCLIC]: Remove now-unused definition.
92840
92841         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92842         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92843         Suggestion from Ulrich Drepper.
92844
92845 2000-10-21  Jim Meyering  <meyering@lucent.com>
92846
92847         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92848         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92849         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92850
92851 2000-10-21  Jim Meyering  <meyering@lucent.com>
92852
92853         * lib/dirname.c (memrchr): Declare if necessary.
92854         (dir_name): Remove the restriction that there be no
92855         trailing slashes.  Now, this code skips past them, effectively
92856         ignoring them.
92857         [TEST_DIRNAME] (main): New unit tests.
92858
92859         * lib/memrchr.c: New file from GNU libc.
92860         Undef __memrchr, too.
92861         [!weak_alias]: Define __memrchr to memrchr.
92862         Guard weak_alias use with `#ifdef weak_alias'.
92863
92864 2000-10-21  Jim Meyering  <meyering@lucent.com>
92865
92866         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92867         (dir_name): Use dir_name_r.
92868         * lib/dirname.h (dir_name_r): Declare it.
92869
92870 2000-10-17  Jim Meyering  <meyering@lucent.com>
92871
92872         * lib/quote.h (PARAMS): Define and use.
92873         Reported by Akim Demaille.
92874
92875         * lib/getopt.c: Update from libc.
92876
92877 2000-10-16  Jim Meyering  <meyering@lucent.com>
92878
92879         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92880         setlocale.
92881         From Jan Fedak.
92882
92883 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92884
92885         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92886
92887 2000-09-25  Jim Meyering  <meyering@lucent.com>
92888
92889         * lib/md5.h (rol): Define (from GnuPG).
92890
92891         * lib/sha.c: Give credit (GnuPG) where due.
92892         (M): Use rol rather than open-coding it.
92893         Add a FIXME comment.
92894
92895 2000-09-21  Jim Meyering  <meyering@lucent.com>
92896
92897         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92898         Reported by Michael Stone.
92899
92900 2000-09-20  Jim Meyering  <meyering@lucent.com>
92901
92902         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92903         (noinst_HEADERS): Add sha.h.
92904         Based on code from Scott G. Miller and from GnuPG.
92905
92906 2000-09-18  Jim Meyering  <meyering@lucent.com>
92907
92908         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92909         LIBS. Otherwise, everyone ends up linking with -lelf for some
92910         configurations.
92911         Reported by Mike Stone.
92912
92913 2000-09-15  Jim Meyering  <meyering@lucent.com>
92914
92915         * lib/regex.c: Update from libc.
92916
92917 2000-09-10  Jim Meyering  <meyering@lucent.com>
92918
92919         * lib/getopt.c (_getopt_internal): Update from glibc.
92920
92921 2000-09-09  Jim Meyering  <meyering@lucent.com>
92922
92923         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92924         think it should be used as a general replacement for isascii.
92925         * lib/fnmatch.c: Likewise.
92926         * lib/mbswidth.c: Likewise
92927         * lib/regex.c: Likewise.
92928
92929         Don't use atoi.
92930         * lib/userspec.c: Include sys/param.h and limits.h.
92931         Include xstrtol.h.
92932         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92933         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
92934         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
92935         UID, GID.  Check range.
92936
92937 2000-09-06  Jim Meyering  <meyering@lucent.com>
92938
92939         * lib/getopt.c (_getopt_internal): Update from glibc.
92940
92941 2000-08-30  Jim Meyering  <meyering@lucent.com>
92942
92943         * lib/strftime.c: Merge in changes from GNU libc.
92944
92945 2000-08-26  Jim Meyering  <meyering@lucent.com>
92946
92947         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
92948         * m4/fpending.m4: New file.
92949
92950 2000-08-26  Jim Meyering  <meyering@lucent.com>
92951
92952         * lib/closeout.c: Include "__fpending.h".
92953         (close_stdout_status): Return right away if there's nothing to flush.
92954
92955         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
92956         * lib/__fpending.c: New file.
92957         * lib/__fpending.h: New file.
92958
92959 2000-08-20  Jim Meyering  <meyering@lucent.com>
92960
92961         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
92962         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
92963         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
92964
92965 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
92966
92967         Improve fileutils installation on systems where running
92968         programs (like install) can't be unlinked.
92969         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
92970         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
92971
92972 2000-08-07  Paul Eggert  <eggert@twinsun.com>
92973
92974         Standardize on "memory exhausted" instead of "Memory exhausted"
92975         or "virtual memory exhausted".
92976         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
92977         "virtual memory exhausted".
92978         * lib/same.c (same_name): Invoke xalloc_die instead of printing
92979         our own message.
92980         * lib/userspec.c (parse_user_spec): Likewise.
92981         * lib/bumpalloc.h: comment fix
92982         * lib/same.c, userspec.c: Include xalloc.h.
92983
92984         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
92985         not char *const and pointing to a constant array.
92986         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
92987         (xrealloc): Comment fix.
92988
92989         * lib/userspec.c (parse_user_spec):
92990         Don't translate a message until just before returning,
92991         to avoid unnecessary translation.
92992
92993 2000-08-07  Jim Meyering  <meyering@lucent.com>
92994
92995         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
92996         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
92997         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
92998         getgroups.c, gethostname.c, getopt.h, group-member.c,
92999         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93000         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93001         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93002         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93003         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93004         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93005         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93006         yesno.c: Back out Copyright date changes for each file with no change
93007         this year.  This eases coordination with other programs using the same
93008         source code modules.  From Paul Eggert.
93009
93010 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93011
93012         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93013         not char, for compatibility with glibc 2.1.3 strftime.c.
93014
93015 2000-08-03  Greg McGary  <greg@mcgary.org>
93016
93017         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93018         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93019         (EXTEND_BUFFER): Use them.
93020
93021 2000-08-01  Jim Meyering  <meyering@lucent.com>
93022
93023         * lib/dirname.c (ISSLASH): Define.
93024         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93025         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93026         both `\' and `/' may be use as path separators.
93027         Based on a patch from Prashant TR.
93028
93029 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93030
93031         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93032         slot vector a constant, since it might get modified.
93033
93034 2000-07-31  Jim Meyering  <meyering@lucent.com>
93035
93036         * lib/xmalloc.c: Use `virtual memory exhausted', not
93037         `Memory exhausted'.
93038         * lib/obstack.c (print_and_abort): Likewise.
93039
93040 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93041
93042         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93043         buffer, so that the caller can always quote one small
93044         component of a "memory exhausted" message in slot 0.
93045         From a suggestion by Jim Meyering.
93046
93047 2000-07-30  Jim Meyering  <meyering@lucent.com>
93048
93049         * lib/makepath.c (make_path): Quote the other instance, too.
93050
93051         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93052         (STATIC_BUF_SIZE): Define.
93053         (quotearg_n_options): Use only statically allocated storage when
93054         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93055         than STATIC_BUF_SIZE.
93056
93057 2000-07-29  Jim Meyering  <meyering@lucent.com>
93058
93059         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93060         * lib/dirname.c (dir_name): Likewise.
93061
93062         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93063         `/'.
93064
93065         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93066         (dir_name): Assert that there are no trailing slashes.
93067
93068 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93069
93070         * lib/mbswidth.h (mbswidth): Add a flags argument.
93071         (mbswidth): New declaration.
93072         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93073         * lib/mbswidth.c (mbswidth): Add a flags argument.
93074         (mbsnwidth): New function.
93075
93076 2000-07-24  Jim Meyering  <meyering@lucent.com>
93077
93078         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93079
93080 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93081
93082         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93083
93084 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93085
93086         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93087         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93088         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93089         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93090         invoke multibyte primitives.
93091
93092 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93093
93094         * lib/quotearg.c:
93095         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93096         so that mbstate_t is always defined.
93097
93098         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93099         be 1 in at least one GCC installation, and this configuration
93100         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93101         performance on hosts that have mbrtowc but have only unibyte
93102         locales, but I assume these hosts are rare.
93103
93104 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93105
93106         * lib/mbswidth.c (_XOPEN_SOURCE):
93107         Don't define; this causes problems on Solaris 7.
93108         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93109
93110 2000-07-23  Jim Meyering  <meyering@lucent.com>
93111
93112         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93113         too: getgrgid, getpwuid, getuid.
93114
93115 2000-07-23  Jim Meyering  <meyering@lucent.com>
93116
93117         * lib/basename.c (base_name): Add an assertion.
93118
93119 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93120
93121         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93122         shadow its mbsinit function.
93123
93124 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93125
93126         * lib/mbswidth.h: New file.
93127         * lib/mbswidth.c: New file.
93128         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93129         (noinst_HEADERS): Add mbswidth.h.
93130
93131 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93132
93133         * lib/config.charset: Add support for FreeBSD. Improve support for
93134         HP-UX and IRIX 6.
93135
93136 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93137
93138         * m4/mbswidth.m4: New file.
93139         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93140
93141 2000-07-15  Jim Meyering  <meyering@lucent.com>
93142
93143         * lib/makepath.c: Include quote.h.
93144         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93145         corresponding argument in a `quote (...)' call.
93146         Give better diagnostics.
93147
93148         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93149         (noinst_HEADERS): Add quote.h.
93150
93151         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93152         from tar's src/misc.c.
93153         * lib/quote.h: New file.  Prototypes for same.
93154
93155 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93156
93157         From a suggestion by Bruno Haible.
93158         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93159         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93160         to decide whether to define the BeOS workaround macro;
93161         this adjusts to the change to AC_MBSTATE_T.
93162
93163 2000-07-14  Jim Meyering  <meyering@lucent.com>
93164
93165         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93166         jm_AC_TYPE_UINTMAX_T.
93167
93168 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93169
93170         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93171
93172         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93173         quotearg_buffer_restyled): Add support for
93174         clocale_quoting_style.  Undo previous change to
93175         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93176         and "{RIGHT QUOTATION MARK}" msgids.
93177
93178 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93179
93180         From a suggestion by Bruno Haible.
93181         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93182         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93183         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93184         and mbstate_t, to a single-part test that simply defines mbstate_t.
93185         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93186         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93187
93188 2000-07-10  Jim Meyering  <meyering@lucent.com>
93189
93190         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93191
93192         * m4/gnu-source.m4: Output to confdefs.h directly.
93193         Suggestion from Akim Demaille.
93194
93195 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93196
93197         The old behavior of quoting `like this' doesn't look good with
93198         newer, ISO-style fonts.  See:
93199         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93200
93201         Instead, quote "like this" by default.  Let the translator
93202         tailor the locale-specific quoting behavior by providing
93203         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93204
93205         * lib/quotearg.c (N_): New macro.
93206         (gettext_default): New function.
93207         (quotearg_buffer_restyled): Use
93208         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93209         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93210
93211 2000-07-09  Jim Meyering  <meyering@lucent.com>
93212
93213         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93214         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93215
93216         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93217         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93218
93219 2000-07-09  Jim Meyering  <meyering@lucent.com>
93220
93221         * lib/Most files: Update copyright dates to include 2000.
93222
93223 2000-07-08  Jim Meyering  <meyering@lucent.com>
93224
93225         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93226         if not defined.
93227         (xgethostname): Remove now-unnecessary #ifdef.
93228         Move declaration of `err' into loop where it's used.
93229
93230 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93231         and Bruno Haible  <haible@clisp.cons.org>
93232
93233         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93234         only if the test for an object-type mbstate_t fails.  This
93235         prevents us from mistakenly reporting that mbstate_t is a
93236         system object type after we "#define mbstate_t int" to work
93237         around its lack.
93238
93239 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93240         and Bruno Haible  <haible@clisp.cons.org>
93241
93242         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93243
93244 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93245
93246         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93247         to strerror_r.
93248         Include <ctype.h> for use of isalpha.
93249
93250 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93251
93252         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93253         by allocating a larger buffer. Test the gethostname return value for
93254         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93255         returns an error and ENAMETOOLONG isn't defined.
93256
93257 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93258
93259         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93260         dimension.
93261
93262 2000-07-04  Jim Meyering  <meyering@lucent.com>
93263
93264         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93265         of the deprecated AC_CHECKING.
93266
93267 2000-07-04  Jim Meyering  <meyering@lucent.com>
93268
93269         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93270         Reported by Bruno Haible.
93271
93272 2000-07-04  Jim Meyering  <meyering@lucent.com>
93273
93274         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93275         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93276         lacks mbrtowc.
93277
93278 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93279
93280         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93281         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93282
93283 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93284         and Bruno Haible  <haible@clisp.cons.org>
93285
93286         * lib/quotearg.c (mbrtowc):
93287         Assign to *pwc, and return 1 only if result is nonzero.
93288         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93289
93290 2000-07-03  Jim Meyering  <meyering@lucent.com>
93291
93292         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93293
93294 2000-07-03  Jim Meyering  <meyering@lucent.com>
93295
93296         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93297         This is necessary to get a definition of e.g., UTMP_FILE on
93298         HP-UX 10.20.
93299         From Bob Proulx.
93300
93301 2000-07-02  Jim Meyering  <meyering@lucent.com>
93302
93303         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93304
93305         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93306         AC_LIBOBJ(function_name).
93307         * m4/chown.m4: Likewise.
93308         * m4/fnmatch.m4: Likewise.
93309         * m4/ftruncate.m4: Likewise.
93310         * m4/getgroups.m4: Likewise.
93311         * m4/getline.m4: Likewise.
93312         * m4/group-member.m4: Likewise.
93313         * m4/jm-macros.m4: Likewise.
93314         * m4/lstat.m4: Likewise.
93315         * m4/malloc.m4: Likewise.
93316         * m4/memcmp.m4: Likewise.
93317         * m4/nanosleep.m4: Likewise.
93318         * m4/putenv.m4: Likewise.
93319         * m4/realloc.m4: Likewise.
93320         * m4/regex.m4: Likewise.
93321         * m4/stat.m4: Likewise.
93322         * m4/strftime.m4: Likewise.
93323
93324 2000-07-02  Jim Meyering  <meyering@lucent.com>
93325
93326         * lib/quotearg.c (mbstate_t): Don't define here.
93327
93328 2000-07-02  Jim Meyering  <meyering@lucent.com>
93329
93330         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93331
93332 2000-07-01  Jim Meyering  <meyering@lucent.com>
93333
93334         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93335
93336 2000-07-01  Jim Meyering  <meyering@lucent.com>
93337
93338         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93339         problem.
93340
93341 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93342
93343         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93344         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93345
93346 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93347
93348         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93349         per change in ../m4/ls-mntd-fs.m4.
93350         (read_filesystem_list): Ignore symbolic links.
93351
93352 2000-06-29  Jim Meyering  <meyering@lucent.com>
93353
93354         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93355         for declaration of strcmp.
93356
93357         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93358
93359         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93360         Avoid warning by casting result to `char *' to remove `const'.
93361
93362 2000-06-28  Jim Meyering  <meyering@lucent.com>
93363
93364         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93365         included by quotearg.c, for which we perform this test.  From
93366         Bruno Haible.
93367
93368 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93369
93370         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93371         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93372         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93373
93374 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93375
93376         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93377
93378 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93379
93380         savedir now sets errno on failure and invokes xmalloc to get memory.
93381         Fix a couple of other minor bugs while we're at it.
93382
93383         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93384         (NAMLEN): Remove macro.
93385         (malloc, realloc): Remove decls.
93386         (stpcpy): Likewise.
93387         ("xalloc.h"): Include.
93388         (NAME_SIZE_DEFAULT): New macro.
93389         (savedir): Use xmalloc / xrealloc to allocate memory.
93390         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93391         Skip "" directory entries.
93392         Use strlen to calculate directory entry length, since the old method
93393         is rarely used these days and isn't worth supporting.
93394         Don't use a pointer after freeing it.
93395         Check for integer overflow when calculating allocation size.
93396         Use memcpy to copy entries, instead of stpcpy.
93397         Set errno properly when returning NULL.
93398         Check for readdir error.
93399
93400 2000-06-26  Jim Meyering  <meyering@lucent.com>
93401
93402         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93403
93404 2000-06-25  Jim Meyering  <meyering@lucent.com>
93405
93406         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93407         Linux header bug when _XOPEN_SOURCE is defined to 500.
93408
93409 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93410
93411         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93412         deficiency.
93413
93414 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93415
93416         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93417         Include xalloc.h.
93418         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93419
93420 2000-06-24  Jim Meyering  <meyering@lucent.com>
93421
93422         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93423         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93424         for which strerror does return char*, but which lacks a conveniently
93425         accessible declaration of the function.  If the compile-test says
93426         strerror_r doesn't work, then resort to a `run'-test that works on
93427         BeOS and segfaults on DEC Unix.
93428
93429 2000-06-24  Jim Meyering  <meyering@lucent.com>
93430
93431         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93432
93433 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93434
93435         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93436         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93437
93438 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93439
93440         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93441         (mbrtowc, mbstate_t): Define substitutes if
93442         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93443         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93444         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93445
93446 2000-06-23  Jim Meyering  <meyering@lucent.com>
93447
93448         * m4/afs.m4: Add missing AC_MSG_RESULT.
93449         Reported by Bruno Haible.
93450
93451         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93452         Suggestion from Bruno Haible.
93453
93454 2000-06-23  Jim Meyering  <meyering@lucent.com>
93455
93456         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93457
93458 2000-06-21  Jim Meyering  <meyering@lucent.com>
93459
93460         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93461
93462 2000-06-21  Jim Meyering  <meyering@lucent.com>
93463
93464         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93465         (noinst_HEADERS): Add getstr.h.
93466
93467         * lib/getline.c (getstr): Move into a separate file.
93468         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93469         the following changes: new parameter, delim2; both delim[12]
93470         parameters have type `int', not `char'.  The latter would lose
93471         with 8-bit delimiters.
93472         * lib/getstr.h: New file.
93473
93474 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93475
93476         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93477         than 1024, return a memory chunk of least possible size, instead
93478         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93479         Use free/xmalloc instead of xrealloc to avoid copying for very long
93480         paths.
93481
93482 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93483
93484         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93485         the empty string.
93486
93487 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93488
93489         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93490         address, not strdup.  Include <stdlib.h> and don't declare free().
93491
93492 2000-06-19  Jim Meyering  <meyering@lucent.com>
93493
93494         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93495
93496 2000-06-18  Jim Meyering  <meyering@lucent.com>
93497
93498         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93499
93500         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93501         `checking whether...' message to be consistent with that of the
93502         lstat test.
93503
93504 2000-06-18  Jim Meyering  <meyering@lucent.com>
93505
93506         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93507         Besides, these days every porting target provides a mkdir function.
93508
93509         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93510         needed. (this snippet comes from src/system.h).
93511
93512 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93513
93514         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93515
93516 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93517
93518         * lib/human.c (adjust_value): New function.
93519         (human_readable_inexact): Apply rounding style even when
93520         printing approximate values.
93521
93522 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93523
93524         * lib/human.c (human_readable_inexact): Allow an input block
93525         size that is not a multiple of the output block size, and vice versa.
93526         Reported by Piergiorgio Sartor.
93527
93528 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93529
93530         * lib/getdate.y (get_date): Apply relative times after time
93531         zone indicator, not before.  Reported by Todd A. Jacobs.
93532
93533 2000-06-13  Jim Meyering  <meyering@lucent.com>
93534
93535         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93536
93537         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93538
93539 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93540
93541         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93542
93543 2000-06-12  Jim Meyering  <meyering@lucent.com>
93544
93545         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93546         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93547         optional argument.
93548         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93549         the optional argument, `lib'.
93550
93551 2000-06-08  Jim Meyering  <meyering@lucent.com>
93552
93553         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93554
93555 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93556
93557         Rewrite largefile configuration so that we don't need to run
93558         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93559         AC_CANONICAL_HOST in configure.in -- jmm]
93560
93561         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93562         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93563         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93564         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93565         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93566         All uses changed.
93567         Instead of inspecting the output of getconf, try to compile the
93568         test program without and with the macro definition.
93569         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93570         for getconf.  Instead, check for the needed flags by compiling
93571         test programs.
93572
93573 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93574
93575         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93576
93577 2000-06-04  Jim Meyering  <meyering@lucent.com>
93578
93579         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93580         SunOS 4.1.4 for which gid_t is an unsigned type.
93581
93582 2000-06-03  Jim Meyering  <meyering@lucent.com>
93583
93584         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93585         now that autoconf requires that.
93586
93587         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93588         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93589         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93590
93591 2000-06-03  Jim Meyering  <meyering@lucent.com>
93592
93593         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93594
93595 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93596
93597         * m4/glibc21.m4: New file.
93598         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93599
93600 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93601
93602         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93603         newer, don't install charset.alias.
93604         * lib/config.charset: Change the Linux/glibc rules so they become empty
93605         on glibc-2.1 or newer.
93606
93607 2000-06-02  Jim Meyering  <meyering@lucent.com>
93608
93609         * lib/mountlist.c: Back out last change.  Instead, do this...
93610         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93611         me_dummy member using the same `ignore'-testing code.
93612         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93613         fs_type strings.
93614         From Mark D. Roth.
93615
93616 2000-05-29  Jim Meyering  <meyering@lucent.com>
93617
93618         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93619         mounts with the `ignore' attribute.  Based on a patch from
93620         Mark D. Roth.
93621
93622 2000-05-28  Jim Meyering  <meyering@lucent.com>
93623
93624         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93625         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93626         * m4/stat.m4: Likewise.
93627         * m4/lstat.m4: Likewise.
93628         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93629
93630         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93631         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93632
93633 2000-05-26  Jim Meyering  <meyering@lucent.com>
93634
93635         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93636
93637 2000-05-24  Jim Meyering  <meyering@lucent.com>
93638
93639         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93640         autoconf requires that.
93641         * m4/lib-check.m4: Likewise.
93642         * m4/jm-macros.m4: Likewise.
93643         * m4/strftime.m4: Likewise.
93644
93645         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93646         AC_CHECK_DECLS, now that autoconf requires that.
93647
93648 2000-05-22  Jim Meyering  <meyering@lucent.com>
93649
93650         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93651         * m4/lstat.m4: Likewise.
93652
93653 2000-05-22  Jim Meyering  <meyering@lucent.com>
93654
93655         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93656
93657 2000-05-20  Jim Meyering  <meyering@lucent.com>
93658
93659         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93660         (jm_PREREQ): Use it.
93661
93662 2000-05-18  Jim Meyering  <meyering@lucent.com>
93663
93664         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93665         back, too, since it may have been modified by allocate_entry.
93666         (hash_delete): Rewrite to use neither the assignment operator
93667         nor the comma operator in an if-expression.
93668
93669 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93670
93671         * lib/closeout.c:
93672         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93673         Remove; no longer needed.
93674         "quotearg.h": Add include.
93675         (file_name): Do not bother to explicitly initialize to NULL; it's less
93676         efficient on some hosts.
93677         (close_stdout_status): Remove test as to whether stdout was already
93678         closed; it breaks for the case "echo x | sort >&-".
93679         Quote file name colons.
93680         Do not assume that _("write error") lacks format strings.
93681
93682 2000-05-15  Jim Meyering  <meyering@lucent.com>
93683
93684         * lib/version-etc.c (version_etc_copyright): Update the copyright
93685         string used in all --version output.
93686
93687 2000-05-14  Jim Meyering  <meyering@lucent.com>
93688
93689         * lib/closeout.c (close_stdout_set_file_name): New function.
93690         (close_stdout_status): Use new file-scoped global.
93691         Return right away if fstat says the stdout file descriptor is invalid.
93692         * lib/closeout.h (close_stdout_set_file_name): Declare.
93693
93694 2000-05-10  Jim Meyering  <meyering@lucent.com>
93695
93696         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93697         (close_stdout_set_status): New function.
93698         * lib/closeout.h (close_stdout_set_status): Declare.
93699
93700 2000-05-09  Jim Meyering  <meyering@lucent.com>
93701
93702         * m4/gettext.m4: Rename this...
93703         * m4/libintl.m4: ...to this.
93704
93705 2000-05-08  Jim Meyering  <meyering@lucent.com>
93706
93707         * lib/long-options.c: Don't include closeout.h.
93708         (parse_long_options): Don't call close_stdout for --version.
93709
93710 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93711
93712         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93713         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93714         2.1.3 bug.  This avoids a clash when files like regex.c define
93715         _GNU_SOURCE.
93716
93717 2000-05-06  Jim Meyering  <meyering@lucent.com>
93718
93719         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93720         (AC_REPLACE_FUNCS): Add strnlen.
93721
93722         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93723         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93724
93725         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93726         AC_SEARCH_LIBS call for nanosleep.
93727         (LIB_NANOSLEEP): Set and AC_SUBST.
93728
93729 2000-05-06  Jim Meyering  <meyering@lucent.com>
93730
93731         * lib/strnlen.c: Undefine __strnlen and strnlen.
93732         [!weak_alias]: Define __strnlen to strnlen.
93733
93734         * lib/atexit.c: New file, from libiberty.
93735
93736 2000-05-06  Jim Meyering  <meyering@lucent.com>
93737
93738         * lib/closeout.c (close_stdout_status): Also check for errors on the
93739         stderr stream.
93740
93741 2000-05-05  Jim Meyering  <meyering@lucent.com>
93742
93743         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93744         AC_SEARCH_LIBS call for clock_gettime.
93745         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93746
93747         * m4/search-libs.m4: Update from autoconf.
93748
93749         su doesn't work on Solaris 2.6.
93750         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93751         <shadow.h>.  Reported by Dragos Harabor.
93752
93753 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93754
93755         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93756         memcpy instead of xmalloc, xrealloc, path_concat.
93757         (locale_charset): Treat empty environment variables as absent.
93758         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93759
93760 2000-05-04  Jim Meyering  <meyering@lucent.com>
93761
93762         * lib/getopt.c: Update from glibc.
93763         * lib/obstack.c: Likewise.
93764         * lib/obstack.h: Likewise.
93765         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93766         file
93767
93768         * lib/regex.h: Likewise.
93769         * lib/strndup.c: Likewise.
93770         * lib/strnlen.c: New file, from glibc.
93771
93772 2000-05-03  Jim Meyering  <meyering@lucent.com>
93773
93774         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93775
93776 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93777
93778         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93779         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93780         compile-time test, rather than inspecting host and OS, to
93781         decide whether to define _LARGEFILE_SOURCE.
93782
93783 2000-05-01  Jim Meyering  <meyering@lucent.com>
93784
93785         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93786
93787         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93788         Based on a patch from Bruno Haible.
93789
93790 2000-05-01  Jim Meyering  <meyering@lucent.com>
93791
93792         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93793
93794 2000-04-29  Jim Meyering  <meyering@lucent.com>
93795
93796         * lib/path-concat.c: Declare strdup only if it's not defined.
93797         * lib/canon-host.c: Likewise.
93798
93799 2000-04-28  Jim Meyering  <meyering@lucent.com>
93800
93801         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93802         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93803         is included first, then limits.h is included by locale.h by libintl.h.
93804         From John David Anglin.
93805
93806 2000-04-25  Jim Meyering  <meyering@lucent.com>
93807
93808         * lib/makepath.c (S_IRWXUGO): Define.
93809         (make_path): Always perform explicit chmod if MODE specifies any
93810         of the `special' permission bits.  Prompted by a bug report against
93811         install from Mate Wierdl and Joost van Baal.
93812
93813 2000-04-18  Jim Meyering  <meyering@lucent.com>
93814
93815         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93816         (jm_PREREQ): Use it.
93817
93818 2000-04-18  Jim Meyering  <meyering@lucent.com>
93819
93820         * lib/README: New file.
93821
93822         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93823         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93824
93825 2000-04-17  Jim Meyering  <meyering@lucent.com>
93826
93827         Get it right :-)
93828         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93829         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93830         Suggestion from Akim Demaille.
93831
93832 2000-04-17  Jim Meyering  <meyering@lucent.com>
93833
93834         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93835         the definition of it to rpl_strftime also defined-away the system's
93836         declaration.
93837
93838 2000-04-15  Jim Meyering  <meyering@lucent.com>
93839
93840         Use `C' to denote so-called `contiguous' files, the same way
93841         that tar does.
93842         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93843         (ftypelet): Use S_ISCTG.
93844         From Michael Deutschmann.
93845
93846 2000-04-14  Jim Meyering  <meyering@lucent.com>
93847
93848         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93849         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93850         clobbered.
93851
93852 2000-04-14  Jim Meyering  <meyering@lucent.com>
93853
93854         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93855
93856 2000-04-13  Jim Meyering  <meyering@lucent.com>
93857
93858         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93859         AH_VERBATIM to insert required #ifndef into config.h.in.
93860         Suggestion from Akim Demaille.
93861
93862 2000-04-12  Jim Meyering  <meyering@lucent.com>
93863
93864         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93865         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93866         Christian Krackowizer.
93867
93868         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93869         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93870         (AC_SYS_LARGEFILE): Require.
93871         (AM_C_PROTOTYPES): Require.
93872
93873 2000-04-08  Jim Meyering  <meyering@lucent.com>
93874
93875         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93876         names don't conflict.  Reported by Eli Zaretskii.
93877
93878 2000-04-07  Jim Meyering  <meyering@lucent.com>
93879
93880         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93881         sys/types.h, to work around system header problems on AIX 3.2.5.
93882         From Bruno Haible.
93883
93884 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93885
93886         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93887         bug.  Deal with the different error behavior of Irix iconv.
93888
93889 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93890
93891         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93892         IRIX if the installer said otherwise.
93893
93894 2000-04-05  Jim Meyering  <meyering@lucent.com>
93895
93896         Portability tweaks required for ultrix4.3.
93897         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93898         (jm_CHECK_DECLS): Add getutent to the list of functions.
93899         (_jm_DECL_HEADERS): Add utmpx.h.
93900         From John David Anglin.
93901
93902         * m4/strftime.m4: Back out the 2000-04-02 change.
93903         Instead of that change, simply undefine putenv in the test program.
93904
93905 2000-04-05  Jim Meyering  <meyering@lucent.com>
93906
93907         Portability tweaks required for ultrix4.3.
93908         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93909         getutent.
93910         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93911         * lib/canon-host.c: Declare strdup.
93912         * lib/path-concat.c: Likewise.
93913         From John David Anglin.
93914
93915 2000-04-04  Jim Meyering  <meyering@lucent.com>
93916
93917         Be more DOS 8.3-friendly.
93918         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93919         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93920         * lib/Makefile.am: Reflect renaming.
93921         Reported by Eli Zaretskii.
93922
93923         Use a temporary file name that won't clash with `charset.alias'
93924         in the DOS 8.3 name space.
93925         * lib/Makefile.am (charset_tmp): Define.
93926         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93927         (uninstall-local): Likewise.
93928         Reported by Eli Zaretskii.
93929
93930 2000-04-03  Jim Meyering  <meyering@lucent.com>
93931
93932         * m4/gettext.m4: Fix typo in comment.
93933
93934         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
93935         textutils/configure.in).  Suggestion from Paul Eggert.
93936         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
93937
93938 2000-04-02  Paul Eggert  <eggert@twinsun.com>
93939
93940         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
93941         variable in the shell rather than using putenv, which isn't
93942         portable.  This avoids the configure-time inter-test dependency
93943         on the potentially-renamed putenv function.
93944
93945 2000-03-30  Paul Eggert  <eggert@twinsun.com>
93946
93947         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
93948         before checking struct stat.st_blksize, so that
93949         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
93950
93951 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93952
93953         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
93954         since strftime.c uses HAVE_STRFTIME to decide whether to use
93955         the underlying strftime.
93956
93957 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93958
93959         * lib/time/strftime.c (my_strftime): Make sure we call the system
93960         strftime, not ourselves, when invoking the underlying strftime.
93961
93962 2000-03-24  Jim Meyering  <meyering@lucent.com>
93963
93964         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
93965         (charset_alias): Define.
93966         (install-exec-local): Factor out common code.
93967         (uninstall-local): Split lines longer than 80.
93968         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
93969         (SUFFIXES): Define.
93970         (.sed.in.sed): New rule.  Don't redirect directly to $@.
93971         (CLEANFILES): Add ref-add.sed and ref-del.sed.
93972
93973 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
93974
93975         * lib/config.charset: Output a line containing "Packages using this
93976         file".
93977         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
93978         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
93979         ref-del.sed): New rules.
93980
93981 2000-03-17  Jim Meyering  <meyering@lucent.com>
93982
93983         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
93984         Otherwise, include <strings.h>
93985
93986 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
93987
93988         * lib/unicodeio.c (utf8_wctomb): New function.
93989         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
93990         format instead of in UCS-4 with platform dependent endianness.
93991
93992 2000-03-10  Jim Meyering  <meyering@lucent.com>
93993
93994         * m4/lib-check.m4: Look for getspnam in -lgen, too.
93995         From Marco Franzen.
93996
93997 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93998
93999         * lib/savedir.c (savedir): Work even if directory size is
94000         negative; this can happen with some screwy NFS configurations.
94001
94002 2000-03-06  Jim Meyering  <meyering@lucent.com>
94003
94004         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94005         if it's NULL (because we ran out of memory).  From Bruno Haible.
94006
94007 2000-03-05  Jim Meyering  <meyering@lucent.com>
94008
94009         * lib/localcharset.c ("path-concat.h"): Include.
94010         (get_charset_aliases): Use path_concat instead of ANSI string
94011         concatenation.
94012
94013         * lib/unicodeio.h (PARAMS): Define.
94014         Use it to guard prototype.
94015
94016 2000-03-04  Jim Meyering  <meyering@lucent.com>
94017
94018         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94019         for lib/localcharset.c.
94020
94021 2000-03-04  Jim Meyering  <meyering@lucent.com>
94022
94023         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94024         installing into it.
94025         (uninstall-local): Uncomment this rule so `make distcheck' works
94026         once again.
94027
94028         * lib/unicodeio.c (<errno.h>): Include it.
94029         (errno): Declare if not defined.
94030
94031         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94032
94033         * lib/config.charset: New version, incorporating remarks from a linux
94034         i18n mailing list.  From Bruno Haible.
94035
94036 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94037
94038         * m4/codeset.m4: New file.
94039         * m4/iconv.m4: New file.
94040         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94041
94042 2000-03-03  Jim Meyering  <meyering@lucent.com>
94043
94044         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94045
94046 2000-03-02  Jim Meyering  <meyering@lucent.com>
94047
94048         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94049         the messages come out on separate lines.
94050
94051         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94052         rather than jm_CHECK_DECLARATIONS.
94053         * m4/decl.m4: Remove now-unused file.
94054
94055         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94056         geteuid.
94057
94058 2000-03-02  Jim Meyering  <meyering@lucent.com>
94059
94060         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94061
94062 2000-03-01  Jim Meyering  <meyering@lucent.com>
94063
94064         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94065         * lib/unicodeio.c: Likewise.
94066
94067 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94068
94069         * lib/config.charset: New file.
94070         * lib/localcharset.c: New file.
94071         * lib/unicodeio.h, lib/unicodeio.c: New files.
94072         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94073         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94074         (noinst_HEADERS): Add unicodeio.h.
94075         (all-local, install-exec-local, charset.alias): New targets.
94076
94077 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94078
94079         * lib/quotearg.c (ALERT_CHAR): New macro.
94080         (quotearg_buffer_restyled): Use it.
94081
94082 2000-02-27  Jim Meyering  <meyering@lucent.com>
94083
94084         * m4/check-decl.m4: Add getenv to the list.
94085
94086 2000-02-27  Jim Meyering  <meyering@lucent.com>
94087
94088         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94089         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94090
94091         * lib/backupfile.c: Guard inclusion of stdlib.h with
94092         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94093         Declare malloc if needed.
94094
94095         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94096         `#ifndef HAVE_DECL..'
94097         now that autoconf always defines the HAVE_DECL_ symbols.
94098         * lib/human.c: Likewise.
94099         * lib/same.c: Likewise.
94100         * lib/strtoumax.c: Likewise.
94101
94102         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94103         declaration check was not run.
94104         * lib/hash.c: Likewise.
94105         * lib/human.c: Likewise.
94106         * lib/same.c: Likewise.
94107         * lib/strtoumax.c: Likewise.
94108
94109         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94110         `.', then first look up the entire `.'-containing string as a login
94111         name.
94112
94113 2000-02-23  Jim Meyering  <meyering@lucent.com>
94114
94115         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94116         in place of my hack.
94117
94118 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94119
94120         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94121         (textint): New typedef.
94122         (parser_control): Member year changed from int to textint.
94123         All uses changed.
94124         (YYSTYPE): Removed; replaced by %union with int and textint members.
94125         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94126         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94127         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94128         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94129         (date, number, to_year): Use width of number in digits, not its value,
94130         to determine whether it's a 2-digit year, or a 2-digit time.
94131         (yylex): Store number of digits of numeric tokens.
94132         Reported by John Kendall.
94133
94134         (parser_control): Changed from struct parser_control to typedef (for
94135         consistency).  All uses changed.
94136
94137         (tID): Removed; not used.
94138         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94139
94140 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94141
94142         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94143         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94144
94145 2000-02-12  Jim Meyering  <meyering@lucent.com>
94146
94147         * lib/userspec.c (ISDIGIT): Define it.
94148         (isdigit): Remove definition.
94149         (is_number): Use ISDIGIT, not isdigit.
94150         <libintl.h>: Include.
94151         (_ and N_): Define.
94152         (parse_user_spec): Mark translatable strings.
94153
94154 2000-02-10  Jim Meyering  <meyering@lucent.com>
94155
94156         With these changes, nanosleep.[ch] are finally enough like the other
94157         lib/* replacement files to compile on a few more losing systems.
94158
94159         * lib/nanosleep.h: Don't include config.h.
94160         Remove prototype from declaration of nanosleep.
94161         (PARAMS): Remove now-unneeded definition.
94162         * lib/nanosleep.c: #undef nanosleep.
94163         (rpl_nanosleep): Rename from nanosleep.
94164
94165 2000-02-10  Jim Meyering  <meyering@lucent.com>
94166
94167         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94168         gnu_nanosleep to rpl_nanosleep.
94169
94170 2000-02-09  Jim Meyering  <meyering@lucent.com>
94171
94172         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94173         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94174
94175 2000-02-08  Akim Demaille  <akim@epita.fr>
94176
94177         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94178         `[' and `]' and remove uses of `changequote'.
94179         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94180         (AC_SYS_LARGEFILE): Likewise.
94181         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94182         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94183         of changequote.
94184         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94185         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94186         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94187         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94188
94189 2000-02-05  Jim Meyering  <meyering@lucent.com>
94190
94191         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94192         Remove explicit use of AC_HEADER_TIME.  It is required by
94193         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94194         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94195         in autoconf whereby the expansion of the latter ended up preceding
94196         the expansion of its prerequisite, AC_HEADER_TIME.
94197         Reported by Volker Borchert.
94198
94199 2000-02-03  Jim Meyering  <meyering@lucent.com>
94200
94201         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94202
94203 2000-02-03  Jim Meyering  <meyering@lucent.com>
94204
94205         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94206         rather than with `#if HAVE_UTMPNAME'.
94207
94208 2000-02-02  Jim Meyering  <meyering@lucent.com>
94209
94210         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94211         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94212         Reported by Eli Zaretskii.
94213
94214 2000-02-01  Jim Meyering  <meyering@lucent.com>
94215
94216         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94217
94218 2000-01-31  Jim Meyering  <meyering@lucent.com>
94219
94220         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94221         functions.  Add the time.h and sys/time.h headers along with the
94222         AC_REQUIRE'ment of AC_HEADER_TIME.
94223
94224 2000-01-31  Jim Meyering  <meyering@lucent.com>
94225
94226         * lib/nanosleep.h (nanosleep): Guard declaration with
94227         `#if ! HAVE_DECL_NANOSLEEP'.
94228         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94229         the declaration in that vendor's sys/timers.h.
94230         Reported by Christian Krackowizer.
94231
94232         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94233         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94234         (ISPRINT): Likewise.
94235         Reported by Tom Tromey.
94236
94237 2000-01-30  Jim Meyering  <meyering@lucent.com>
94238
94239         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94240
94241         * m4/prereq.m4 (utmp_includes): Define.
94242         Check for ut_user and ut_name members in both struct utmpx
94243         and struct utmp.
94244
94245 2000-01-30  Jim Meyering  <meyering@lucent.com>
94246
94247         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94248         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94249         header files where only utmpx.ut_user is declared.
94250
94251         * lib/readutmp.h (UT_USER): Define.
94252
94253 2000-01-29  Jim Meyering  <meyering@lucent.com>
94254
94255         * m4/lib-check.m4: New file containing library-related checks from
94256         fileutils and sh-utils (textutils had none).
94257
94258 2000-01-28  Jim Meyering  <meyering@lucent.com>
94259
94260         * m4/perl.m4: Change format of warning message to look more like that
94261         from the missing script.  Suggestion from François Pinard.
94262
94263 2000-01-25  Jim Meyering  <meyering@lucent.com>
94264
94265         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94266         well as time.h in the compile check.
94267         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94268         Fix typo in cross-compiling case: s/yes/no/.
94269
94270 2000-01-23  Jim Meyering  <meyering@lucent.com>
94271
94272         * m4/jm-macros.m4: Move df-related tests here from
94273         fileutils/configure.in
94274
94275         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94276         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94277
94278         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94279         s/space/ac_fsusage_space/.
94280         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94281
94282         * m4/ftruncate.m4: New file (derived from part of
94283         fileutils/configure.in).
94284         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94285         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94286
94287         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94288         AC_SUBST these here, rather than just in sh-util/configure.in, so
94289         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94290         all the same.
94291         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94292         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94293         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94294         (AC_SUBST(POW_LIBM)): Likewise.
94295         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94296
94297 2000-01-23  Jim Meyering  <meyering@lucent.com>
94298
94299         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94300         obstack.c.
94301
94302 2000-01-22  Jim Meyering  <meyering@lucent.com>
94303
94304         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94305
94306         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94307
94308         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94309         configure.in
94310         (AC_CHECK_HEADERS): Likewise for sh-utils.
94311         (AC_CHECK_HEADERS): Likewise for textutils.
94312         Merge the three lists of headers.
94313
94314         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94315         from fileutils' configure.in.
94316
94317         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94318         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94319         check-decl.m4.
94320
94321         * m4/check-decl.m4: Use #if rather than #ifdef.
94322         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94323         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94324         (_jm_DECL_HEADERS): Define new function.
94325         (jm_CHECK_DECLARATIONS): Require it.
94326
94327 2000-01-22  Jim Meyering  <meyering@lucent.com>
94328
94329         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94330         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94331         Required for some AIX systems.  Reported by Christian Krackowizer.
94332         [TESTING] (main): New function.
94333
94334         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94335         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94336         letters.
94337
94338         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94339         iswprint.
94340
94341         * lib/strverscmp.c (ISDIGIT): Define.
94342         (strverscmp): Use ISDIGIT, not isdigit.
94343
94344 2000-01-19  Jim Meyering  <meyering@lucent.com>
94345
94346         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94347         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94348         defines `struct timespec' in <sys/time.h>
94349
94350         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94351         Thanks to Akim for explaining.
94352
94353 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94354
94355         * lib/nanosleep.c (nanosleep):
94356         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94357         POSIX.1 doesn't require SA_INTERRUPT and some systems
94358         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94359         it's been part of POSIX.1 since day 1 (in 1988).
94360
94361 2000-01-17  Jim Meyering  <meyering@lucent.com>
94362
94363         * lib/interlock: Remove unused file.  Reported by François Pinard.
94364
94365 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94366
94367         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94368         alert, backslash, formfeed, and vertical tab unnecessarily in
94369         shell quoting style.
94370
94371 2000-01-16  Jim Meyering  <meyering@lucent.com>
94372
94373         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94374         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94375         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94376         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94377
94378 2000-01-16  Jim Meyering  <meyering@lucent.com>
94379
94380         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94381         because the latter didn't work.
94382
94383 2000-01-15  Jim Meyering  <meyering@lucent.com>
94384
94385         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94386         (AC_REPLACE_FUNCS): Add memcpy and memset.
94387         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94388         Add strpbrk.
94389         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94390
94391 2000-01-12  Jim Meyering  <meyering@lucent.com>
94392
94393         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94394         (jm_PREREQ): Use it.
94395         (jm_PREREQ_READUTMP): New macro.
94396         (jm_PREREQ): Use it.
94397
94398 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94399
94400         Quote multibyte characters correctly.
94401         * m4/c-bs-a.m4: New file.
94402         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94403         (jm_PREREQ): Use it.
94404
94405 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94406
94407         * m4/uintmax_t.m4: Port to autoconf 2.13.
94408
94409 2000-01-08  Jim Meyering  <meyering@ascend.com>
94410
94411         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94412         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94413
94414 2000-01-04  Jim Meyering  <meyering@ascend.com>
94415
94416         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94417         jm_STRUCT_DIRENT_D_TYPE.
94418         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94419         jm_STRUCT_DIRENT_D_INO.
94420         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94421         jm_STRUCT_UTIMBUF.
94422         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94423         renamings.
94424         * m4/utime.m4: Likewise.
94425
94426         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94427         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94428
94429 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94430
94431         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94432         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94433
94434 2000-01-02  Jim Meyering  <meyering@ascend.com>
94435
94436         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94437         remember if this is necessary.
94438
94439 1999-12-26  Jim Meyering  <meyering@ascend.com>
94440
94441         * m4/jm-macros.m4: Use it here.
94442         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94443
94444 1999-12-23  Jim Meyering  <meyering@ascend.com>
94445
94446         * m4/jm-macros.m4: Check for clock_gettime (moved from
94447         fileutils/configure.in)
94448         Check for gettimeofday.
94449
94450 1999-12-20  Jim Meyering  <meyering@ascend.com>
94451
94452         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94453         autoconf-2.14a-1999-12-20.
94454
94455 1999-12-19  Jim Meyering  <meyering@ascend.com>
94456
94457         * m4/lstat-slash.m4: New file.
94458         * m4/jm-macros.m4: Use the new macro:
94459         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94460
94461 1999-12-07  Jim Meyering  <meyering@ascend.com>
94462
94463         * m4/perl.m4: Require that File::Compare be available, too.
94464         Too many systems seem to lack it.
94465
94466         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94467         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94468
94469 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94470
94471         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94472         problem with the QNX 4.25 shell, which doesn't propagate exit
94473         status of failed commands inside shell assignments.
94474
94475 1999-11-17  Jim Meyering  <meyering@ascend.com>
94476
94477         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94478
94479 1999-11-07  Jim Meyering  <meyering@ascend.com>
94480
94481         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94482
94483 1999-11-06  Jim Meyering  <meyering@ascend.com>
94484
94485         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94486         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94487
94488 1999-11-05  Jim Meyering  <meyering@ascend.com>
94489
94490         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94491         configure.in of textutils, fileutils, and sh-utils into this one
94492         (shared between those packages) file.
94493         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94494         AC_STRUCT_ST_BLKSIZE.
94495
94496 1999-11-03  Jim Meyering  <meyering@ascend.com>
94497
94498         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94499         of AC_CHECK_TYPE checks includes unistd.h.
94500         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94501         Suggestion from Akim Demaille.
94502
94503 1999-10-30  Jim Meyering  <meyering@ascend.com>
94504
94505         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94506         m4-quoted string.
94507         * m4/ls-mntd-fs.m4: Likewise.
94508         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94509         * m4/jm-winsz1.m4: Likewise.
94510
94511         * m4/const.m4: Remove file, since the fix made it into the experimental
94512         version of autoconf.
94513         * m4/mktime.m4: Likewise.
94514
94515         * m4/check-type.m4: Remove file, now that the latest version of
94516         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94517
94518         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94519         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94520         AC_CHECK_TYPE.
94521
94522 1999-10-04  Jim Meyering  <meyering@ascend.com>
94523
94524         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94525
94526 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94527
94528         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94529         2.95.1 bug with HP-UX 10.20.
94530
94531 1999-09-17  Jim Meyering  <meyering@ascend.com>
94532
94533         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94534         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94535         due to missing strdup (against sh-utils-2.0).
94536
94537 1999-08-29  Jim Meyering  <meyering@ascend.com>
94538
94539         * m4/jm-macros.m4: Require jm_BISON.
94540         * m4/bison.m4: New file.
94541
94542 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94543
94544         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94545         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94546
94547 1999-08-05  Jim Meyering  <meyering@ascend.com>
94548
94549         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94550         to avoid conflicts with `conftest' on 8+3 filesystems.
94551         Suggestion from Eli Zaretskii.
94552
94553 1999-08-04  Jim Meyering  <meyering@ascend.com>
94554
94555         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94556         fileutils and sh-utils (textutils's getline test was inadequate).
94557         (AM_FUNC_GETLINE): Run this test.
94558         (AC_CHECK_FUNCS): Check for getdelim.
94559         Reported by Bob Proulx.
94560
94561 1999-08-02  Jim Meyering  <meyering@ascend.com>
94562
94563         * m4/jm-macros.m4: Add a comment.
94564
94565 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94566
94567         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94568         <inttypes.h> defines strtoumax as a macro (and not as a
94569         function).
94570
94571 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94572
94573         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94574         that we can shift, multiply and divide unsigned long long
94575         values; Ultrix cc can't do it.
94576
94577 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94578
94579         * m4/mktime.m4: New file, which is a preview of what should appear
94580         in the next public autoconf release.
94581
94582 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94583
94584         * m4/lfs.m4: Remove this file.
94585         * m4/largefile.m4: New file.  It contains the old contents of
94586         lfs.m4, except that all names with prefix AC_LFS have been
94587         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94588         compatible with future autoconf versions.  Also, some minor m4
94589         quoting problems have been fixed.
94590
94591 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94592
94593         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94594         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94595         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94596         and simplify the shell code.
94597
94598 1999-08-01  Jim Meyering  <meyering@ascend.com>
94599
94600         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94601         m4.
94602
94603 1999-07-20  Jim Meyering  <meyering@ascend.com>
94604
94605         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94606
94607 1999-07-15  Jim Meyering  <meyering@ascend.com>
94608
94609         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94610
94611 1999-05-22  Jim Meyering  <meyering@ascend.com>
94612
94613         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94614
94615 1999-05-20  Jim Meyering  <meyering@ascend.com>
94616
94617         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94618         Add a colon after each `then' in case $4 is empty.
94619
94620 1999-05-16  Jim Meyering  <meyering@ascend.com>
94621
94622         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94623
94624 1999-05-10  Jim Meyering  <meyering@ascend.com>
94625
94626         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94627
94628         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94629         AC_FUNC_MKTIME.
94630
94631 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94632
94633         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94634
94635 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94636
94637         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94638         not CPPFLAGS, so that linking works correctly in IRIX.
94639
94640 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94641
94642         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94643
94644 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94645
94646         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94647         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94648         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94649         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94650         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94651
94652         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94653
94654 1999-04-20  Jim Meyering  <meyering@ascend.com>
94655
94656         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94657         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94658         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94659
94660 1999-04-18  Jim Meyering  <meyering@ascend.com>
94661
94662         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94663         * m4/jm-macros.m4: Use it.
94664
94665 1999-04-06  Jim Meyering  <meyering@ascend.com>
94666
94667         * m4/strftime.m4: Remove test for %f.
94668
94669 1999-03-29  Jim Meyering  <meyering@ascend.com>
94670
94671         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94672         superset of the AC_TYPE_* checks in the textutils, fileutils,
94673         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94674         AC_TYPE_PID_T.
94675
94676 1999-03-28  Jim Meyering  <meyering@ascend.com>
94677
94678         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94679         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94680         replaced e.g., in the *.sh files of the sh-utils.
94681
94682 1999-03-20  Jim Meyering  <meyering@ascend.com>
94683
94684         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94685         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94686         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94687
94688 1999-03-19  Jim Meyering  <meyering@ascend.com>
94689
94690         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94691
94692 1999-03-12  Jim Meyering  <meyering@ascend.com>
94693
94694         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94695
94696 1999-03-07  Jim Meyering  <meyering@ascend.com>
94697
94698         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94699         declared.
94700
94701 1999-02-17  Jim Meyering  <meyering@ascend.com>
94702
94703         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94704         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94705
94706 1999-02-07  Jim Meyering  <meyering@ascend.com>
94707
94708         * m4/group-member.m4: New file -- extracted from sh-utils'
94709         configure.in.
94710
94711         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94712         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94713
94714 1999-02-06  Jim Meyering  <meyering@ascend.com>
94715
94716         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94717         * m4/fnmatch.m4: Likewise.
94718         * m4/getgroups.m4: Likewise.
94719         * m4/lstat.m4: Likewise.
94720         * m4/malloc.m4: Likewise.
94721         * m4/putenv.m4: Likewise.
94722         * m4/realloc.m4: Likewise.
94723         * m4/regex.m4: Likewise.
94724         * m4/stat.m4: Likewise.
94725         * m4/strftime.m4: Likewise.
94726         Suggestion from Alain Magloire.
94727
94728         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94729         * m4/fnmatch.m4: Likewise.
94730         * m4/getgroups.m4: Likewise.
94731         * m4/getline.m4: Likewise.
94732         * m4/lstat.m4: Likewise.
94733         * m4/malloc.m4: Likewise.
94734         * m4/memcmp.m4: Likewise.
94735         * m4/putenv.m4: Likewise.
94736         * m4/realloc.m4: Likewise.
94737         * m4/regex.m4: Likewise.
94738         * m4/stat.m4: Likewise.
94739         * m4/strftime.m4: Likewise.
94740         Suggestion from Alain Magloire.
94741
94742         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94743         an argument.
94744
94745         * m4/regex.m4: Add a run-time Test for proper operation of
94746         re_compile_pattern.
94747
94748 1999-01-31  Jim Meyering  <meyering@ascend.com>
94749
94750         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94751
94752 1999-01-30  Jim Meyering  <meyering@ascend.com>
94753
94754         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94755
94756         * m4/jm-mktime.m4: Make this a wrapper around the official
94757         AM_FUNC_MKTIME rather than my private copy, now that the official one
94758         is up to date.
94759         * m4/mktime.m4: Remove file.
94760
94761         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94762         * m4/uptime.m4: Likewise.
94763         * m4/uintmax_t.m4: Likewise.
94764
94765 1999-01-28  Jim Meyering  <meyering@ascend.com>
94766
94767         * m4/jm-macros.m4: Use jm_AFS.
94768         * m4/afs.m4: New file (from fileutils' configure.in).
94769
94770         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94771         * m4/chown.m4: Likewise.
94772         * m4/d-ino.m4: Likewise.
94773         * m4/d-type.m4: Likewise.
94774         * m4/fnmatch.m4: Likewise.
94775         * m4/getgroups.m4: Likewise.
94776         * m4/gettext.m4: Likewise.
94777         * m4/jm-mktime.m4: Likewise.
94778         * m4/jm-winsz2.m4: Likewise.
94779         * m4/lcmessage.m4: Likewise.
94780         * m4/ls-mntd-fs.m4: Likewise.
94781         * m4/malloc.m4: Likewise.
94782         * m4/memcmp.m4: Likewise.
94783         * m4/putenv.m4: Likewise.
94784         * m4/realloc.m4: Likewise.
94785         * m4/st_mtim.m4: Likewise.
94786         * m4/strftime.m4: Likewise.
94787
94788 1999-01-16  Jim Meyering  <meyering@ascend.com>
94789
94790         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94791         (ARGMATCH_DIE_DECL): Define.
94792
94793 1999-01-12  Jim Meyering  <meyering@ascend.com>
94794
94795         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94796         Reported by Lars Hecking.
94797
94798 1999-01-10  Jim Meyering  <meyering@ascend.com>
94799
94800         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94801         gross kludge.
94802         * m4/inttypes_h.m4: Likewise.
94803         * m4/lstat.m4: Likewise.
94804         * m4/malloc.m4: Likewise.
94805         * m4/readdir.m4: Likewise.
94806         * m4/realloc.m4: Likewise.
94807         * m4/st_dm_mode.m4: Likewise.
94808         * m4/stat.m4: Likewise.
94809         * m4/utimbuf.m4: Likewise.
94810         * m4/utimes.m4: Likewise.
94811
94812         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94813         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94814         comments in config.h.in are meaningful.
94815
94816         * m4/jm-macros.m4: Require autoconf-2.13 here.
94817
94818         * m4/regex.m4: By default, don't use the included regex.c on systems
94819         with glibc 2.  Suggestion from Uli Drepper.
94820
94821 1999-01-02  Jim Meyering  <meyering@ascend.com>
94822
94823         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94824
94825 1998-12-18  Jim Meyering  <meyering@ascend.com>
94826
94827         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94828         Based on a suggestion from Lars Hecking.
94829
94830 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94831
94832         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94833
94834 1998-11-16  Jim Meyering  <meyering@ascend.com>
94835
94836         * m4/lfs.m4: Double-quote the `uname...` expression.
94837
94838 1998-11-14  Jim Meyering  <meyering@ascend.com>
94839
94840         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94841         * m4/stat.m4: Likewise.
94842
94843 1998-11-03  Jim Meyering  <meyering@ascend.com>
94844
94845         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94846         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94847
94848 1998-10-18  Jim Meyering  <meyering@ascend.com>
94849
94850         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94851
94852 1998-10-17  Jim Meyering  <meyering@ascend.com>
94853
94854         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94855         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94856         calls for those previously hard-coded headers.  Instead, take a new
94857         parameter.
94858         (jm_CHECK_DECLARATIONS): Reflect interface change.
94859         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94860         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94861
94862         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94863
94864 1998-10-14  Jim Meyering  <meyering@ascend.com>
94865
94866         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94867         instead of "TZ=America/Vancouver".  From Paul Eggert.
94868
94869 1998-10-11  Jim Meyering  <meyering@ascend.com>
94870
94871         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94872         This adds a test for a recently added compatibility fix for mktime.c.
94873         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94874
94875 1998-09-27  Jim Meyering  <meyering@ascend.com>
94876
94877         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94878
94879         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94880         ../configure.in, including a change from Gordon Matzigkeit to allow
94881         cross-compiling for the Hurd.
94882
94883         * m4/glibc.m4: New file/macro to test for the GNU C Library
94884         versions 1 and 2.  From Gordon Matzigkeit.
94885         Indent.
94886
94887 1998-09-21  Jim Meyering  <meyering@ascend.com>
94888
94889         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94890
94891 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94892
94893         Port nanosecond-resolution times to UnixWare 2.1.2 and
94894         pedantic Solaris 2.6.
94895
94896         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94897         AC_STRUCT_ST_MTIM.
94898         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94899         Generate name of ns member, instead of just 1 or undef.
94900         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94901
94902 1998-08-15  Jim Meyering  <meyering@ascend.com>
94903
94904         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94905         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94906         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94907         instead of jm_TYPE_SSIZE_T.
94908
94909 1998-08-12  Jim Meyering  <meyering@ascend.com>
94910
94911         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94912
94913 1998-08-02  Jim Meyering  <meyering@ascend.com>
94914
94915         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94916         in acconfig.h manually.
94917
94918 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94919
94920         * m4/st_mtim.m4: New file.
94921
94922 1998-07-28  Jim Meyering  <meyering@ascend.com>
94923
94924         * m4/utimes.m4: Undef stat.
94925
94926 1998-07-25  Jim Meyering  <meyering@ascend.com>
94927
94928         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
94929         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
94930
94931 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
94932
94933         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
94934         uid and gid actually remain unchanged.
94935
94936 1998-07-07  Jim Meyering  <meyering@ascend.com>
94937
94938         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
94939
94940 1998-07-04  Jim Meyering  <meyering@ascend.com>
94941
94942         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
94943         to prove that this macro can be used in packages without regex.c.
94944
94945 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
94946
94947         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
94948         is to be used.
94949
94950 1998-07-03  Jim Meyering  <meyering@ascend.com>
94951
94952         * m4/gettext.m4: Add -lintl if it's found to be necessary.
94953
94954         * m4/gettext.m4: New file -- from gettext-0.10.35.
94955         * m4/lcmessage.m4: Likewise.
94956         * m4/progtest.m4: Likewise.
94957
94958         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
94959         * m4/jm-macros.m4: Require the new macro.
94960
94961 1998-06-29  Jim Meyering  <meyering@ascend.com>
94962
94963         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
94964         for the definition of NGROUPS (used in a system header included
94965         by sys/mount.h).
94966
94967 1998-06-28  Jim Meyering  <meyering@ascend.com>
94968
94969         * m4/ls-mntd-fs.m4: New file.
94970         * m4/fstypename.m4: New file.
94971
94972         * m4/jm-macros.m4: Require the new macro.
94973         * m4/jm-glibc-io.m4: New file.
94974
94975 1998-05-19  Jim Meyering  <meyering@ascend.com>
94976
94977         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
94978         * m4/lchown.m4: New file.
94979
94980         * m4/Makefile.am.in: New file.
94981         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
94982
94983 1998-05-14  Jim Meyering  <meyering@ascend.com>
94984
94985         * m4/Makefile.am (EXTRA_DIST): Add them.
94986         * m4/jm-macros.m4: New file.
94987         * m4/utimbuf.m4: New file.
94988
94989 1998-05-12  Jim Meyering  <meyering@ascend.com>
94990
94991         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
94992
94993 1998-05-11  Jim Meyering  <meyering@ascend.com>
94994
94995         * m4/isc-posix.m4: New file.
94996
94997 1998-05-10  Jim Meyering  <meyering@ascend.com>
94998
94999         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95000
95001 1998-05-09  Jim Meyering  <meyering@ascend.com>
95002
95003         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95004         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95005         with automake.
95006
95007         * m4/ssize_t.m4: New file.
95008         * m4/mktime.m4: Remove file -- the new automake has this now.
95009
95010 1998-04-26  Jim Meyering  <meyering@ascend.com>
95011
95012         * m4/assert.m4: New file.
95013         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95014
95015 1998-04-05  Jim Meyering  <meyering@ascend.com>
95016
95017         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95018         (jm_PREREQ): Use it here.
95019
95020 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95021
95022         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95023         in acconfig.h.
95024
95025 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95026
95027         * m4/prereq.m4: New file.
95028         * m4/error.m4: New file.
95029         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95030
95031 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95032
95033         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95034         cache-check for the same variable -- that defeated the purpose of
95035         the test; the test program was never run.  This was a problem only
95036         on systems with losing getline functions -- HP-UX 10.20 is one.
95037         Reported by Bjorn Helgaas.
95038
95039 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95040
95041         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95042
95043 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95044
95045         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95046
95047         * m4/const.m4: New file.  Use an initializer in this declaration
95048         typedef int charset[2]; const charset x;
95049         Reported by Bob Glickstein.
95050
95051 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95052
95053         * m4/chown.m4: Fix reversed types on -1 args to chown.
95054         From Kaveh Ghazi.
95055
95056 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95057
95058         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95059         Add lseek and memchr.
95060
95061         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95062         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95063         have a 20-character limit on names.
95064
95065 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95066
95067         * m4/inttypes_h.m4: New file.
95068         * m4/uintmax_t.m4: New file.
95069         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95070
95071
95072         -----
95073
95074         Local Variables:
95075         coding: utf-8
95076         End:
95077
95078         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95079
95080         Copying and distribution of this file, with or without
95081         modification, are permitted provided the copyright notice
95082         and this notice are preserved.